Pathak Report
-
Upload
amar-chauhan -
Category
Documents
-
view
241 -
download
0
Transcript of Pathak Report
-
7/28/2019 Pathak Report
1/92
Social Site (Pals Book)
A project report submitted
to
MAHAMAYA TECHNICAL UNIVERSITY
NOIDA
For partial Fulfillment of the Requirement for the
Award of the Degree
of
MASTER OF COMPUTER APPLICATION
by
Abhinesh PathakRoll No.1002714003
Ajay Kumar Garg Engineering College,
Ghaziabad
Under the guidance of
Ms. Varsha Singh (Project Manager)in
CMC Pvt. Ltd. D-108, Sec-2, Noida (U.P.)
-
7/28/2019 Pathak Report
2/92
Social Site (Pals Book)
A project report submitted
to
MAHAMAYA TECHNICAL UNIVERSITY
NOIDA
For partial Fulfillment of the Requirement for the
Award of the Degree
of
MASTER OF COMPUTER APPLICATION
by
Abhinesh PathakRoll No.1002714003
Ajay Kumar Garg Engineering College,
Ghaziabad
Under the guidance of
Ms. Varsha Singh (Project Manager)in
CMC Pvt. Ltd. D-108, Sec-2, Noida (U.P.)
-
7/28/2019 Pathak Report
3/92
CERTIFICATE FROM COLLEGE
This is to certify that Mr. Abhinesh Pathak roll no. 1002714003, is a bonafide student
of Ajay Kumar Grag Engineering College, Ghaziabad, and has submitted this project
report on Social Site (Pals Book) for fulfillment of the requirements of
Mahamaya. Technical University, Noida for awarding the degree of
MASTER OF COMPUTER APPLICATION. And all information provided is
correct to the best of my knowledge and belief.
-
7/28/2019 Pathak Report
4/92
ACKNOWLEDGEMENT
I would like to take this opportunity to express my gratitude towards all those people whowere helpful in the successful completion of my project. I am very grateful to mySupervisorMs. Varsha Singh, Project Managerat CMC, Noida who has given me thechance to participate in several interesting brain-storming sessions concerning the Projectand always encouraged me to experiment and think differently. I would also like to thank
all other team members of CMC for their encouragement and expert guidance. I am alsoindebted to them for providing me with excellent and useful materials that helped me inthe development of modules assigned to me.
I am grateful to Mr. Sanjeev Kumar Prasad MCA VI Sem Coordinator for hisinvaluable guidance and his kind supervision. I would also like to express myindebtedness to Prof. S.L. Kapoor, H.O.D of the MCA Dept and all the FacultyMembers for their intellectual support throughout the course of the work and all Friendswho appreciated me for my work and motivated me.
Abhinesh PathakRoll No. 1002714003MCA VISem,AKGEC,Ghaziabad.
-
7/28/2019 Pathak Report
5/92
CONTENTS
Content Page No.
1. ABSTRACT 1
2. INTRODUCTION 2
2.1 Background 3
2.2 Anything else you want to add 4
2.3 Project Specification 5-6
3. SYSTEM ANALYSIS
3.1 Theoretical Background 7
3.2 Existing System 8
3.3 Proposed System 9
3.4 Feasibility Study 10-12
3.5 Brief Study of System 13
4. SYSTEM DESIGN 14-17
4.1 Modular Design 18
4.2 Context Diagram 19-22
4.3 Data Flow Diagram4.4 Structure Chart 23-25
5. SYSTEM IMPLEMENTATION
5.1 H/W and S/W Requirement 26-29
5.2 Data Dictionary 30-33
5.3 User Interface Design 32-38
5.3 Coding 39-69
6. LIMITATION AND SPECIAL FEATURE 707. CONCLUSION 71
8. GLOSSERY 72
9. FUTURE SCOPE 73
10. ORGANIZATION PROFILE 74-75
11. COLLEGE PROFILE 76-78
12. BIBLOGRAPHY 79
-
7/28/2019 Pathak Report
6/92
1. ABSTRACT
This project Social Site (Pals Book) aims of providing a good communication interfacefor the organization. It can cut down the time of employees spend on routine
communication tasks. Its successful implementation makes easy the job of employees in
the organization.
The basic problem is that the employees in the organization communicate or make
correspondence only through post, as their units are located in remote areas. This method
of communication is very slow in nature and it is not reliable.
Therefore the solution for this problem is to develop a communication channel that meets
the need of the organization. Basically, the computerized solution is for improving the
services as well as self-efficiency of the computer.
The objective of the system is for meeting the needs of the employees in the organization
for communicating with each other within their units. This application provides basic
requirements such as Mail management, File transfer and instant messaging. It also has
enhanced features like web browsing and utilities.
The Social-mailing System is very user-friendly application. Only certain applications
like system monitoring instant messaging, chatting between two users needs a little
training.
-
7/28/2019 Pathak Report
7/92
2. INTRODUCTION
Social Site (Pals Book) is the mapping and measuring of relationships and flows betweenpeople, groups, organizations, computers, URLs, and other connected
information/knowledge entities. The nodes in the network are the people and groups
while the links show relationships or flows between the nodes. SS(PB) provides both a
visual and a mathematical analysis of human relationships. Management consultants use
this methodology with their business clients and call it Organizational Network Analysis
[ONA].
This application provides facilities like mails, instant messages and allows employees to
communicate more effectively, and access the resources they need to maximize their day-
to-day productivity. It provides fast and better access to up-to-date information.
-
7/28/2019 Pathak Report
8/92
2.1 Background
The basic problem is that they communicate or make correspondence only through
post as their units are located in remote areas. This method of communication is
very slow in nature and it is not reliable.Therefore the solution for this problem is to develop a communication channel that meets
the need of the organization. Basically, the computerized solution is for improving the
services as well as self-efficiency of the computer.
This project Socail Site (Pals Book) aims at providing a good communication interface
for the organization. It can cut down the time of employees spend on routine
communication tasks. Its successful implementation makes easy the job of employees in
the organization.
This application provides facilities like mails, instant messages and allows employees to
communicate more effectively, and access the resources they need to maximize their day-
to-day productivity. It provides fast and better access to up-to-date information.
-
7/28/2019 Pathak Report
9/92
2.1 About Project
Put simply, social networking is a way for one person to meet up with other people on theinternet. People use social networking sites for meeting new friends, finding old friends,or locating people who have the same problems or interests they have, called nichenetworking.
Social networking sites play a vital role in this area as well. Being able to meet someoneas a "friend" and see what common interests you share and how you have built up yourfriend base and "likes" you can truly see a fuller picture of the person you are talkingwith. Most sites are free instead of being pay based which allows younger people withstricter budgets to enjoy some of the same features as those of adults who are more likelyto be able to afford pay based sites. While not the intended or original use for these socialsites, a large area of their current function has stemmed from people wanting to meetother people in person and with the extremely busy schedules of most people, it is a fast,reliable and easy way in which to do so that costs you little time and money (if any).Users do not necessarily share with others the content which is of most interest to them,but rather that which projects a good impression of themselves.
Notifications on websites
There has been a trend for social networking sites to send out only 'positive' notifications
to users. For example sites such as Bebo, Facebook, and MySpace will not send
notifications to users when they are removed from a person's friends list. Likewise, Bebo
will send out a notification if a user is moved to the top of another user's friends list but
no notification is sent if they are moved down the list.
This allows users to purge undesirables from their list extremely easily and often withoutconfrontation since a user will rarely notice if one person disappears from their friends
list. It also enforces the general positive atmosphere of the website without drawing
attention to unpleasant happenings such as friends falling out, rejection and failed
relationships.
Access to information
Many social networking services, such as Facebook, provide the user with a choice of
who can view their profile. This prevents unauthorized user(s) from accessing their
information. Parents who want to access their child's MySpace or Facebook account have
become a big problem for teenagers who do not want their profile seen by their parents.
By making their profile private, teens can select who may see their page, allowing only
people added as "friends" to view their profile and preventing unwanted viewing of the
profile by parents. Most teens are constantly trying to create a structural barrier between
their private life and their parents.
-
7/28/2019 Pathak Report
10/92
To edit information on a certain social networking service account, the social networking
sites require you to login or provide apassword. This prevents unauthorized user(s) from
adding, changing, or removing personal information, pictures, and/or other data.
A social networking service is a platform to build social networks orsocial
relations among people who, for example, share interests, activities, backgrounds, or real-
life connections. A social network service consists of a representation of each user (often
a profile), his/her social links, and a variety of additional services. Most social network
services are web-based and provide means for users to interact over the Internet .
This is Social Networking Script like Facebook developed in php. Facebook has become
world wide famous social network. Using this software, a user can chat with the online
persons they wish to. They can even go for a video chat. At first they need to sign up
providing all the details and the user is selected their username and password to log
in. Any photos, status can be uploaded. Even the posts or photos can be liked, shared and
can even comment on that particular photo or post.
A new friend can be added by sending a friend request. And any friend request can also
be confirmed or rejected. Once the friend request is accepted, that particular friend will
be added to the friend list. Finally the user can log out to come out of that social network.
http://en.wikipedia.org/wiki/Loginhttp://en.wikipedia.org/wiki/Passwordhttp://en.wikipedia.org/wiki/Social_networkhttp://en.wikipedia.org/wiki/Social_relationhttp://en.wikipedia.org/wiki/Social_relationhttp://en.wikipedia.org/wiki/Web-basedhttp://en.wikipedia.org/wiki/Internethttp://en.wikipedia.org/wiki/Loginhttp://en.wikipedia.org/wiki/Passwordhttp://en.wikipedia.org/wiki/Social_networkhttp://en.wikipedia.org/wiki/Social_relationhttp://en.wikipedia.org/wiki/Social_relationhttp://en.wikipedia.org/wiki/Web-basedhttp://en.wikipedia.org/wiki/Internet -
7/28/2019 Pathak Report
11/92
2.2 PROJECT SPECIFICATION
There are varios module in Socail Site (Pals Book) :-
Login Module
Registration Module
Profile Module
Add Friend Module
Search Module
Create Page Module
Wall Post Module
Event Module
Notification Module
Group Module
Upload/DownLoad Module
Login Module :
Your existing users can furthermore link their regular account to one or more social
networks or identity providers and can then use these social network accounts to loginwithout having to remember another username/password combination.
Registration Module :
The registration is an iframe that websites can add with just one line of code, andcustomize to request the specific fields required to create an account. When a user islogged into Facebook and arrives at the registration plugin on a website, they'll see thatthe form is prefilled with the relevant information he or she has already shared on theirFacebook profile. Users can see the specific information the site is requesting of them,giving them more control to decide whether to sign up.
The site can request information stored on Facebook (e.g., name, verified email address,current location, etc.) or custom information (e.g., text fields, checkboxes, dropdownmenus, security checks, typeaheads, etc.). Users can decide whether to share theirinformation with the site by clicking "Register," or if a Facebook account isn't requiredby the site, select an option to fill out the form manually. Because the plugin worksthrough an iframe, no data is shared with the website until the user clicks "Register."
-
7/28/2019 Pathak Report
12/92
When a user registers for the site with their Facebook account (similar to FacebookLogin), the site is given permission to access the user's basic information on Facebook inaddition to the data presented in the form, and in turn can provide the user with apersonalized and social experience.
Profile Module :
Unlike most professional sites, non-professional sites typically feature users' interests, sothey are the only ones relevant to the present study. Four of the largest non-professionalsites in the English-speaking world are MySpace, Facebook, Friendster, and Orkut. Whilereports vary as to how many millions of users are on these sites
A MySpace profile provides many ways for users to express their tastes. Textually, userscan complete forms to provide demographic details and lists of cultural interests; they canalso write about themselves in free text. Users can choose photos and customize the lookand feel of their profiles using code they find online. According to a user's friendconnections speak to their identitythe public display of friend connections constitutes asocial milieu that contextualizes one's identity. The act of "friending" others, and
choosing the subset of these friends to display in the so-called
Search Module :
This module integrates the Search API with the Views module, allowing searches on anyindex to be created and viewed via Views. All of an entity's properties, as well as those ofrelated entities (e.g. a node's author's name), are available as fields, filters and argumentsfor all indexed fields are available and sorts (as well as click sorts) can be created on anyindexed single-valued field. Also some additional features, like linking the results to theentity, are available.
This module provides the ability to create facets on any search executed anywhere , be ita search page, a view or any other source. The feature isn't available for all servers,though, since it would be too complex to implement for some service classes. Right nowonly the Solr servers support this, facet support for the database-based searches might bedone in the future.
Friend Module :
The Friends module takes you a step further towards Social Networking for your website.It allows your users to create and manage lists of friends just like Facebook. Aside fromthe typical friend request/confirm method, some alternate usages might be to follow othermembers, only allow friends to view your full profile, bookmark your favoriteauthors and subscribe to their channel entries, etc.
http://drupal.org/project/viewshttp://drupal.org/project/views -
7/28/2019 Pathak Report
13/92
3. SYSTEM ANALYSIS
3.1 Theoretical Background:
This document is a theoretical background for the social site Project. After giving
information about the definition of the project at the beginning part of the document, we
will give complete description for overview and list the requirements which meet the
needs of the company roughly
The overall description of our project can be stated as creating and managing the
database, developing a friendly user interface to manipulate the database, provide an
authentication mechanism to safely accomplish tasks mentioned above.
Social network analysis is focused on uncovering the patterning of people's interaction.Network analysis is based on the intuitive notion that these patterns are importantfeatures of the lives of the individuals who display them. Network analysts believe thathow an individual lives depends in large part on how that individual is tied into the largerweb of social connections. Many believe, moreover, that the success or failure ofsocieties and organizations often depends on the patterning of their internal structure.From the outset, the network approach to the study of behavior has involved twocommitments:
(1) it is guided by formal theory organized in mathematical terms, and(2) it is grounded in the systematic analysis of empirical data. It was not that the study ofsocial networks really began to take off as an interdisciplinary specialty. Since then itsgrowth has been rapid. It has found important applications in organizational behavior,inter-organizational relations, the spread of contagious diseases, mental health, socialsupport, the diffusion of information and animal social organization.
-
7/28/2019 Pathak Report
14/92
3.2Existing System
This Existing System providing a good communication interface for the organization. It
can cut down the time of employees spend on routine communication tasks. Its successful
implementation makes easy the job of employees in the organization.
This application provides facilities like mails, instant messages and allows employees to
communicate more effectively, and access the resources they need to maximize their day-
to-day productivity. It provides fast and better access to up-to-date information.
Some of the shortcoming of the existing System are:
Low Functionality:
With the existing system the biggest problem was the low functionality of theorganization.Because We can not send large amount of files to any user.
Security:
In existing System files was not secure. Whereas in the software just a password makes it
absolutely secure from the reach of the unauthorized person.
Data Redundancy:
In existing system same data may be uploaded again and again.In the software the concept of the primary key and foreign key is used very effectivelywhich will prevent the redundancy of the data
-
7/28/2019 Pathak Report
15/92
3.3 Proposed System
The proposed system overcomes the drawbacks of the existing system. It allows us to
send /receive any number of messages without any restriction on the data size. It also
supports sending sending spontaneously.
Social network analysis [SNA] is the mapping and measuring of relationships and flowsbetween people, groups, organizations, computers or other information/knowledgeprocessing entities. The nodes in the network are the people and groups while the linksshow relationships or flows between the nodes. SNA provides both a visual and amathematical analysis of complex human systems.
Network analysis is the study of social relations among a set of actors. It is a field ofstudy -- a set of phenomena or data which we seek to understand. In the process ofworking in this field, network researchers have developed a set of distinctive theoreticalperspectives as well. Some of the hallmarks of these perspectives are:
focus on relationships between actors rather than attributes of actors
sense of interdependence: a molecular rather atomistic view
structure affects substantive outcomes
emergent effects
-
7/28/2019 Pathak Report
16/92
3.4 Feasibility Study
Feasibility study is a test of the proposed system regarding its ability to meet the userrequirement and effective use of resources.
Basically, there are three types of feasibility study perform the role. They are:
1. Economic feasibility
2. Technical feasibility
3. Operational feasibility
In feasibility study, we check the durability, reliability, operability, compatibility etc. of
the system. A feasibility study is a preliminary study undertaken to determine and
document a project's viability. The results of this study are used to make a decision
whether to proceed with the project, or table it. If it indeed leads to a project being
approved, it will - before the real work of the proposed project starts - be used to
ascertain the likelihood of the project's success. It is an analysis of possible alternative
solutions to a problem and a recommendation on the best alternative. It, for example, can
decide whether an order processing be carried out by a new system more efficiently thanthe previous one.
Economical feasibility study:
This involves questions such as whether the firm can afford to build the system, whether
its benefits should substantially exceed its costs, and whether the project has higher
priority and profits than other projects that might use the same resources. This also
includes whether the project is in the condition to fulfill all the eligibility criteria and the
responsibility of both sides in case there are two parties involved in performing any
project.
In this study, we analysis the cost of different parts related with software. It may be either
manpower cost or cost of hardware or software.
Manpower cost:
-
7/28/2019 Pathak Report
17/92
Here the manpower cost is reduced as the work can now be done by lesser number of
powers. If work is done by greater number of manpower, the cost will increase, so
manpower should be low. In this project there are six peoples. And one is team leader.
Hardware and Software cost:
Hardware and Software cost will be added in the total cost, because whole project is
designed and developed at the administrator site.
Justification:
Justification for any capital outlay is that it will increase profit, reduce expenditure, or
improve quality of a service which in turn may be expected to provide profits proposed or
developing system must be justified by cost and benefit criteria to ensure that effort is
concentrated on projects which will give the best return at the earliest opportunities.
The technique of cost benefit analysis is often used as a basis for assessing Economic
Feasibility. The factors for evaluation are:
Cost of operation of the existing and proposed system.
Cost of development of the proposed system.
Value of the proposed system.
Economic Feasibility Study plays a very important role in a development of software.
Technical Feasibility study:
This involves questions such as whether the technology needed for the system exists, how
difficult it will be to build, and whether the firm has enough experience using that
technology. The assessment is based on an outline design of system requirements in
terms of Input, Output, Fields, Programs, and Procedures. This can be qualified in terms
of volumes of data, trends, frequency of updating, etc. In order to give an introduction to
the technical system.
Technical Feasibility is concerned with the availability and capability of hardware,
software and people. In Technical Feasibility Study we studied on those facts that are
covering the whole technological facts such as:
-
7/28/2019 Pathak Report
18/92
Hardware requirement specification
Software requirement specification
Technology used
What software technology should be opted so as to develop the project efficiently?
Operational feasibility:
In this we determine what change will be brought in system, new skills required and other
human organization and political aspects.
Non-Programmers can easily use our software. However it is desirable that the
user has the basic knowledge of the computers.
Without making any changes in the rules and regulations of the existing system
proposed system can easily adopted.
Legal Feasibility:
Our Project does not infringe with known acts, status or any pending legislation. Hence
it is legally feasible.
Social Feasibility:
Since, the proposed system is inexpensive, easy to install, reduces human errors, fast and
simple, hence socially accepted by all organization and institutes being directly affected
by it.
-
7/28/2019 Pathak Report
19/92
3.5 Brief Study of System
We define social network sites as web-based services that allow individuals to (1)
construct a public or semi-public profile within a bounded system, (2) articulate a list of
other users with whom they share a connection, and (3) view and traverse their list of
connections and those made by others within the system. The nature and nomenclature of
these connections may vary from site to site.
While we use the term "social network site" to describe this phenomenon, the term
"social networking sites" also appears in public discourse, and the two terms are often
used interchangeably. We chose not to employ the term "networking" for two reasons:
emphasis and scope. "Networking" emphasizes relationship initiation, often between
strangers. While networking is possible on these sites, it is not the primary practice on
many of them, nor is it what differentiates them from other forms of computer-mediated
communication (CMC).
-
7/28/2019 Pathak Report
20/92
4. SYSTEM DESIGN
MethodologyIn this project, Spiral model is used for the development. Spiral model has features of
prototyping and linear sequential model. It helps to develop incremental versions of the
software rapidly. Because software evolves as the process progresses, the developer and
customer better understand and react to risks at each evolutionary level. This is a very
powerful model to develop large-scale system and software.
This model is divided into a number of task regions. Each of the regions is populated by a
set of work tasks called a task set that are done according to the requirement of the
project to be developed. For small projects the number of tasks and their formality is low.
Conversely, for large projects the reverse is true.
These task regions of spiral model are:
-
7/28/2019 Pathak Report
21/92
Customer communication: - In this task region customers are asked about their
requirements from the system, through a dialog between developer and the customer.
Planning: - In this task region resources, timelines and other project related
information are considered and appropriate decision taken
Risk analysis: - In this region technical and management risks are identified and
suitable measures taken wherever feasible.
Engineering: - In this region one or more representations of application are built.
Construction and Release: - In this region, application is constructed, tested,
installed and user support is provided.
Customer evaluation: - In this region, feedback is taken from the customer about
the overall performance of the application built during the engineering and
implemented during installation stage.
The evolutionary process begins at the centre position and moves in a clockwise
direction. Each traversal of the spiral typically results in a deliverable. For example, the
first and second spiral traversals may result in the production of a product specification
and a prototype, respectively. In this way a more stochastic version of the software is
produced after some subsequent traversal. A key difference between the spiral model
and other software models is that risk analysis is performed in former and not in later.
Advantages of the Spiral Model
The spiral model is a very good approach to develop large-scale software because
of its evolutionary approach to develop software. Besides this both customer and
developer can identify and remove the risks that can occur during the software
development.
Prototyping is used to reduce the risk as it can be developed at any stage of the
evolutionary level.
Due to its demand of considering technical risks at all stages, it reduces risks that
may become a big problem in future.
It combines iterative and linear feature which helps in developing better software.
-
7/28/2019 Pathak Report
22/92
Thus according to the steps of spiral model first of all following steps are performed for
the proposed site:
The requirements are collected and a partial site is developed fulfilling basic
requirements of the institution (based on the requirement collected).
As the information, the head of the institution wants to put on the web site and the
manner in which they want to give the information has already been discussed, the
technical and managerial risks were reduced.
After designing and creation of some pages of site, a feedback is asked from the
members of the institution. According to the given feedback, further refinement to the
pages of the site was made, wherever required.
This procedure was followed until the whole site was completely developed.
Thus the complete website was developed in an iterative and sequential way to the entire
satisfaction of the members of the institution
-
7/28/2019 Pathak Report
23/92
4.1 Modular Design
There are varios module in Socail Site (Pals Book) :-
Login Module
Registration Module
Profile Module
Add Friend Module
Search Module Create Page Module
Wall Post Module
Event Module
Notification Module
Group Module
Upload/DownLoad Module
Login Module :
Your existing users can furthermore link their regular account to one or more socialnetworks or identity providers and can then use these social network accounts to loginwithout having to remember another username/password combination.
Registration Module :
The registration is an iframe that websites can add with just one line of code, andcustomize to request the specific fields required to create an account. When a user islogged into Facebook and arrives at the registration plugin on a website, they'll see thatthe form is prefilled with the relevant information he or she has already shared on theirFacebook profile. Users can see the specific information the site is requesting of them,giving them more control to decide whether to sign up.
The site can request information stored on Facebook (e.g., name, verified email address,current location, etc.) or custom information (e.g., text fields, checkboxes, dropdownmenus, security checks, typeaheads, etc.). Users can decide whether to share their
-
7/28/2019 Pathak Report
24/92
information with the site by clicking "Register," or if a Facebook account isn't requiredby the site, select an option to fill out the form manually. Because the plugin worksthrough an iframe, no data is shared with the website until the user clicks "Register."
When a user registers for the site with their Facebook account (similar to FacebookLogin), the site is given permission to access the user's basic information on Facebook inaddition to the data presented in the form, and in turn can provide the user with apersonalized and social experience.
Profile Module :
Unlike most professional sites, non-professional sites typically feature users' interests, sothey are the only ones relevant to the present study. Four of the largest non-professionalsites in the English-speaking world are MySpace, Facebook, Friendster, and Orkut. Whilereports vary as to how many millions of users are on these sites
A MySpace profile provides many ways for users to express their tastes. Textually, userscan complete forms to provide demographic details and lists of cultural interests; they can
also write about themselves in free text. Users can choose photos and customize the lookand feel of their profiles using code they find online. According to a user's friendconnections speak to their identitythe public display of friend connections constitutes asocial milieu that contextualizes one's identity. The act of "friending" others, andchoosing the subset of these friends to display in the so-called
-
7/28/2019 Pathak Report
25/92
4.2 Context Diagram
Gather data or user requirement
Analyze the requirement data
Validate the design against therequirement
Refine and document the design
Conceive the high level design
Obtain answers torequirement questions
-
7/28/2019 Pathak Report
26/92
-
7/28/2019 Pathak Report
27/92
THE SYMBOLIC REPRESENTATION OF THE DATA FLOW DIAGRAM (DFD)
There are some symbols that are used to represent the data flow f the data flow diagram(DFD) that is given below.
DATAFLOW:
Data move in a specific direction from an origin to a destination.
PROCESS:
People, procedures, or devices that use or produce (Transform) Data. The physical
component is not identified.
SOURCE:
External sources or destination of data, which may be People, programs, organizations or
other entities.
DATA STORE:
Here data are stored or referenced by a process in the System.
-
7/28/2019 Pathak Report
28/92
User Registration
User registration
Horizontal1. Friend_set_table
Dynamic table1. Friend _ userid
2. RequestsReceiver_UserID
3. RequestsSender_UserID
4. Posts_sender_id
5. Posts_receiver_id
6. Timeline_user_id
RegistrationMSTR_TBL_USER
USER General info
USER Gender
USER DOB
USER _BASIC_INFO(RUser Emails
-
7/28/2019 Pathak Report
29/92
User login
Login
USER_LOGON_DETAIL
MASTER_TABLE_USER
USER _BASIC_INFO (Getsession)
USER_LOGOUT_DETAIL
MSTR_TBL_USER
Email verified
User Emails
-
7/28/2019 Pathak Report
30/92
User profile update
User edit Name/show type/cityname
USER _BASIC_INFO
USER General info
Friend _user ID
(dyanamic)
-
7/28/2019 Pathak Report
31/92
User send request and accept
Cancel request
Delete request
Create default friend set
Request logos
2 time
Delete request
User send request and cancelrequest
Requests receiver _UseID
Requests sender _User
User accept request
Friend _set _table
Request _cancel _table
Request _cancel _table
Friend _user ID(dynam2 time
Requests receiver _Use
ID
Requests sender _User
-
7/28/2019 Pathak Report
32/92
Add previous 10/20 post id
User post
User Send post
Posts _receiver_id(D)
Time line (D)
Posts _sender _id(D)
Posts _receiver _id(D)Posts _receiver _id(D)
-
7/28/2019 Pathak Report
33/92
5.SYSTEM IMPLEMENTATION
5.1 H/W and S/W Requirement
The installation of the software is very easy but it is to be ensured by the user that thefollowing hardware & software requirements are met at the time of the installation.
1. Software Requirement Specification:
a) Software Tool
Front end: The languages used at front-end are PHP, OOPS
The causes of selecting this language are:
Highly technical language.
User friendly environment of working.
Provide low cost solution to the project.
GUI feature.
Better designing aspects for developers.
Back end: The Database used is MYSQL
Important features of MY SQL are:
It provides better security aspect to the
System.
Better portability that enables user to be flexible on
work.
Can manage large amount of data.
It provides reliable system with better integrity
and
validity of data.
-
7/28/2019 Pathak Report
34/92
b)Platform Used:
Windows XP or above
Hardware Requirement Specification:
The required hardware combination for this project will be as following :-
Processor Pentium 4
Speed 1.6 GHz.
Main Memory 256 MB
Hard Disk Drive 20 GB (Minimum)
Monitor Standard Monitor
Mouse Standard Mouse
Printer One High Speed Printer
Keyboard Standard Keyboard
Requests sender _User
-
7/28/2019 Pathak Report
35/92
5.2 Data Dictionary :
logs, datetime, count and activity
Notifications are more important than other posts, separate theseUser information
User Basic Info
MSTR_TBL_USER
User ID : unsigned big int primary keyUser _Email : varchar (60) uniqueUser _Password : varchar (15)User _email _verified : binary
USER General info
User id big int
User FName v 10User LName v 15User MName v 20(NULL)Display As: 1/0(Default-1)User AltName v 20User AltNameIOT c1UserCityID big intUserCountryID int
USER Gender
User ID bigint unsignedUser Gender b 1/0Show Gender On Timeline boolean
USER DOB
User ID big int unsignedUser DOB dateUser DOBSW intShow BdayType B(only month or year)(default)
-
7/28/2019 Pathak Report
36/92
USER _BASIC_INFO (this is redundant table use for search info and session
creation)
User id : bigint longUser full name : var(50)City Town name : varchar User _status : binary(Table user for join with post, request etc. And check status show post, friend list andprofile picture)
User address
User _id bigintAddress varchar(100)City Town int(11)Zip varchar(15)Neighborhood varchar(100)
USER COVER PAGE
UserID bigintUserCoverPage varchar 100
User Interested In
User Id bigint unsignedInterested In char(1)Interested In SW int
User Relationship Status
UserID bigint unsignedRelationStatusID int(2) (FK)
InRelationshipWithID- bigint (updated to single status wehave to empty this.) (FK)UserRelationSW BUserRelationAnniv : date
User Languages
UserId bigint unsignedLanguagesIDsvarchar 100 (multiple) (limit user optionsshould one try to select too many)UserLanguagesSW B
UserReligionUserID bigint unsignedReligionID intDescription varchar 500UserReligionSW B
Values in VARCHARcolumns are variable-length strings. The length can be specified as avalue from 0 to 255 before MySQL 5.0.3, and 0 to 65,535 in 5.0.3 and later versions. Theeffective maximum length of a VARCHARin MySQL 5.0.3 and later is subject to the
-
7/28/2019 Pathak Report
37/92
maximum row size (65,535 bytes, which is shared among all columns) and the characterset used. See Section E.7.4, Table Column-Count and Row-Size Limits.
User Political Views
User ID bigint unsignedPolitical View IDDescription v 500User Political ViewSW
User about You
User Id bigint unsignedAbout you v 500User about You SW
User _search _info (this part is SKIP)
User Id : bigint unsignedSearching text : varchar(200)Full _name : varchar(100)Profile _pic : varchar(100)
Friend and Request
Friend _user ID (dyanamic)
Name : bigint unsignedFriend _id (image path) : bigintDate time : dateCity Name : varchar
(In this table we user only friend city not how many total friend or mutual friend (realtime data))
Friend _log
Friend _id : bigint unsignedUN friend _id : intDate time : dateUn friend _date time : date
Requests receiver _User ID (dynamic)
Sender _id : big int(100)Status : B
Requests sender _User ID (dynamic)
Receiver _id : big int(100)Date time : date
Request _cancel _table (logs tbl)
Sender _id : intReceiver _id : intSending time : datetime
http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.htmlhttp://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html -
7/28/2019 Pathak Report
38/92
Cancel time : datetimeCancel by : varchar(1)
Friend _set _table (horizontal)
Friend _set _id big intFriend _set _name varchar(30)Created by big intMember List varchar(4000)Date time date timeStatus B
Login and logout
USER _login _detail
User _id : big int unsignedLogin _time : date timeLocation : var(15)Browser : var(15)
User _logout _detail
User _id : bigint unsignedLogout _time : datetimeLocation : var(15)Browser : var(15)
Event
Events _table (static)
Event _id bigint(20)Event _name varchar(100)Event _image varchar(100)
Created by _id bigint(20)Details varchar(500)City town _id big intFrom date dateTo date dateFrom time timeTo time timePrivacy _id int(11)(friend set id or group id)Guest _can_ invite BDate time date time
User _use rid _events (dynamic table)
Event id big intDate time date timeStatus tinyint(1)
Event _id _Post (Skip part)
Work and Education
-
7/28/2019 Pathak Report
39/92
User _attend _university
User _id bigint(20)University _name int(11)City _id int(11)From year varchar(4)To year varchar(4)From month varchar(10)To month varchar(10)Graduated tinyint(1)Description varchar(1000)Course _id int(11)Course _id int(11)Course _id int(11)Attend for t inyint(1)user_univSW int(11)
``````````````````````````````logs, date time, count and activity
notifications are more important than other posts, separate these
UserSNLanguage
UserID bigint unsignedSNLanguageId int
USER Work in Comp
Company ID big int
User ID bigint unsignedPosition ID intCity Town ID intDescription varchar(500)From Year intFrom MonthTo YearTo MonthCurrently Work Here: 1/0 (Data consistency when updating or changing from to timealong with currently working here)USER Work-in CompSW
Skip Add Project for now
UserWorkProject
UserID bigint unsigned
-
7/28/2019 Pathak Report
40/92
Company IDProject IDDescriptionWithFrom yearFrom monthTo yearTo monthCurrentlyOnProject
||||||||||||||||||||||||||||||||||||||||||||||||USER UNIV CLASS
UserId bigint unsignedUnivIdClassIdWithDescription
User Sec School Details
User Id bigint unsignedSec School IdFrom YearFrom MonthTo YearTo MonthGraduatedDescriptionUser Sec School SW
USER Sec School CLASS
User Id bigint unsignedClass NameSec School NameWithDescription=================Living
User IDCurrent Location City Town ID store city idCurrent Location SWHometown City Town ID: store city id
Hometown SW================User Family
User ID bigint unsignedFamily Person IDRelationship ID (needs modification twice as two persons details get updated)User Family SWUser Family TL
USER TIMELINE
-
7/28/2019 Pathak Report
41/92
UserIDUserNameAboutYouUserDOBShowBdayTypeUserGenderShowGenderOnTimelineInterestedIn
Contact InfoUser Emails
User Id bigint unsignedEmail Ours GeneratedEmail Ours User CreatedEmail others: emailId,verified/unverified,emailSW;....
UserMobile
UserId bigint unsignedMobile Numbers: CountrycodeId, number,Verified/unverified, mobilenumberSW BVerified B
USER EMAIL DETAILS
User Id bigint unsignedUser Email AddressesUser Friends Email
User Other Emails
User Id
EmailIdVerifiedEmailSW
People my use email addresses to find friends, we need all available emails in a listformat for quick search. Perhaps to speed up search we somehow index using companynames gmail, yahoo, rediff etc.VerifiedEmails (single entity table)This table lists all the emailIds that have been verified. The coloumns for this table are1)email ID and 2)the first character of the domain name 3)first character of person name.This is to speed up search, we can have special character or number for yahoo and gmail.
The email and mobile numbers need to be in list format so that for new users quickverification search can be provided. Proper database should exist at least and especiallyfor the ones for which verification has been provided.VerifiedMobileNum(single entity column)This table would have the following columns: CountryCode and the Mobile numberGENERAL ACCOUNT SETTINGSUserOtherPhones
Otherphones: work/home, CountryCode, number(this is with statecode),phoneNumSW;......
-
7/28/2019 Pathak Report
42/92
-
7/28/2019 Pathak Report
43/92
-
7/28/2019 Pathak Report
44/92
POSTS
Check difference in terms of notifications etc
Do not provide a comment service currently on posts.
Posts _sender_id (dynamic)
Post _id : (datetime)big intPost : var(500)Image : varchar(100)Date time : dateStatus : binary (global status)Friend _set _id : bigint(20)LikesTagPlace
Post _received _user ID (dynamic)Post _id : big intStatus : b (local status)Posting person ld : bigint(20)
Timeline _user ID (dynamic)
Post _id : big intStatus : bPosting person id : big int
POSTS
Post IDPosting Person ID: bigint unsignedPosted OnPerson ID: bigint unsigned self id or friend idPostPostSW depends on whose wall it has been postedDateTimeLikesTag
-
7/28/2019 Pathak Report
45/92
PlaceImagePostStatus
Post Additionals
Post IdLikesLikes People IDsComment Details:CommentIDPerson, DateTime, Comment Status, comment, likesDate Time
WallPosts
PostIDPostingUserIDPostDateTimeLikesPostStatus
WallPostsAdditionals
WallPostIdLikesLikesPeopleIDsCommentDetails:CommentIDPerson, DateTime, Comment Status, comment, likesDateTime
UPDATES EVENTS
LIKES FAVOURITES
USER MUSIC
User IDBrand Page ID
USER BOOKS
User IDBrand Page ID
USER MOVIES
User IDBrand Page ID
USER TELEVISION
User IDBrand Page ID
USER GAMES
User IDBrand Page ID
-
7/28/2019 Pathak Report
46/92
USER ATHLETES
User IDBrand Page ID
USER ACTORS
Create page
Localbusinesspage_tbl
Post_id : unsigned big int primary key
User_id : bigint(20) unique
Category_id : int(10)
City_id : int(10)
Pics : var(225)Agree : enum(y,n)
status : binary
localbusinesscitystate_tbl
citystate_id : int(20)
citystate_name : var( 100)
status : binary
localbusinesscategory_id
category_id : int(20)
category_name : var(100)
status : binary
localbusinessaddress_tbl
-
7/28/2019 Pathak Report
47/92
page_id : unsigned big int primarykey
phone : bigint(20)
zipcode : varchar(20)
address : varchar(225)
companyorganizationpage_tbl
page_id : unsigned big int primarykey
companyorgcategory_id : int(20)
company_name : var(200)
agree: enum(y,n)
status: binary
companyorgcategory_tbl
companyorgcategory_id : unsigned big intprimarykeycompanyorgcategory_name : var(200)status : binary
brandorproductpage_tbl
page_id : unsigned big intprimarykey
brandorproductcategory_id : int(20)
brandorproduct_name: var(200)
agree: enum(y,n)
status: binary
brandorproductcategory_id
brandorproductcategory_id :unsigned big int primarykey
brandorproductcategory_name : var(200)
status : binary
-
7/28/2019 Pathak Report
48/92
artistbandpage_tbl
page_id : unsigned big int primarykey
artistbandcategory_id : int(20)
artistband_name : var(200)
agree : enum(y,n)status : binary
artistbandcategory_tbl
artistbandcategory_id:unsigned big int primarykey
artistbandcategory_name : var(200)
status : binary
entertainmentpage_tbl
page_id : unsigned big int primarykey
entertainmentcategory_id : int(20)
entertainment_name : var(200)
agree : enum(y,n)
status : binary
entertainmentcategory_tbl
entertainmentcategory_id : unsigned big intprimarykeyentertainmentcategory_name : var(200)
Status : binary
pagesetupabout_tbl
Page_id : unsigned big int primarykey
About: text(225)
Website_name: varchar(25)
Agree: enum(y,n)
-
7/28/2019 Pathak Report
49/92
5.3 User Interface Design
-
7/28/2019 Pathak Report
50/92
-
7/28/2019 Pathak Report
51/92
-
7/28/2019 Pathak Report
52/92
-
7/28/2019 Pathak Report
53/92
-
7/28/2019 Pathak Report
54/92
5.3 Coding
Home Page :
-
7/28/2019 Pathak Report
55/92
$msg="User Name and password not match";}
}
if(isset($_POST['signup'])){
if($clsCustomer->Signup()){
redirect("home.php");exit;
}else{$smsg="This email id exist in database";}
}
?>
social sitesName: Password:
-
7/28/2019 Pathak Report
56/92
-
7/28/2019 Pathak Report
57/92
D.O.Bday2month2year1990gender
malefemalei agrre to terms and conditions
Library :
Comman.php :
-
7/28/2019 Pathak Report
58/92
-
7/28/2019 Pathak Report
59/92
}
}
function lindecrypt($enpass){
if(!$enpass)return ;
else if($enpass != ''){$decript = base64_decode($enpass);return $decript;}
}
/*** Function for redirect.** Function redirect browser to another URL and exit current flow.** @param string $url redirect to this URL.*/
function redirect($url){
header("Location: $url");exit();
}
?>Connect.Php
Model
Customer.cls.php
-
7/28/2019 Pathak Report
60/92
function SetPostVars(){isset($_POST['email'])?$this->email = strtolower($_POST['email']) : "";isset($_POST['password'])?$this->password = stripslashes($_POST['password']) :
"";isset($_POST['first_name'])?$this->first_name =
strtolower($_POST['first_name']) : "";isset($_POST['last_name'])?$this->last_name =
strtolower($_POST['last_name']) : "";isset($_POST['mob_no'])?$this->mob_no = strtolower($_POST['mob_no']) : "";isset($_POST['gender'])?$this->gender = strtolower($_POST['gender']) : "";isset($_POST['email_id'])?$this->email = strtolower($_POST['email_id']) : "";
}
function SetGetVars(){}
public function GetFriends(){$uid=$_SESSION['id'];$sql = "select friend_id from friends where user_id=$uid AND status=2";$res=GetAll($sql);
$allfriend="";foreach($res as $k=>$v){
$sql = "select * from login where id=".$v['friend_id'];$x=@fetchOneRow($sql);$allfriend[$k]=$x;
}
return $allfriend;}
public function Signup(){
if($_POST['gender']=="male")$this->gender="M";
else$this->gender="F";
$this->password=linencrypt($this->password);$sql="SELECT * from login where emailid='$this->email'";
$result = @fetchOneRow($sql);
if(!$result)
-
7/28/2019 Pathak Report
61/92
{$sql="INSERT INTO `login` (`fname` ,`lname` ,`phone_no` ,`emailid` ,`gender`,
`password`) VALUES ('$this->first_name' ,'$this->last_name' ,'$this->mob_no' ,'$this->email' ,'$this->gender', '$this->password')";
$y=mysql_query($sql);session_start();$_SESSION['id']=mysql_insert_id();$email=$this->email;session_register("email");$_SESSION['email'] = $this->email;
$_SESSION['firstname'] = $this->first_name;$_SESSION['lastname'] = $this->last_name;return true;
}else{return false;}}
public function CheckLogin(){
//$email_id=$_SESSION['email'];
//return $email_id;}
public function GetLoginByPasswordAndEmail(){
$password=linencrypt($this->password);
$sel_customer = "SELECT *FROM loginWHERE emailid ='".$this->email."'
AND password='".$password."'";
$result = @fetchOneRow($sel_customer);
if($result){session_start();$email=$result['emailid'];session_register("email");$_SESSION['email'] = $result['emailid'];
-
7/28/2019 Pathak Report
62/92
$_SESSION['id'] = $result['id'];$_SESSION['firstname'] = $result['fname'];$_SESSION['lastname'] = $result['lname'];return true;
}else{
return false;}
}public function Insertmsg(){$uid=$_SESSION['id'];$msg=$_POST['msg'];
$sql="INSERT INTO `message` (`id` ,`remark`) VALUES ('$uid' ,'$msg')";
mysql_query($sql);}
public function GetAllmsg(){$sql="select * from message ";$res=GetAll($sql);
// _dx($res);return $res;
}
public function GetCustomerDetail(){@session_start();
$user_check=$_SESSION['email'];$sel_customer = "SELECT *
FROM loginWHERE emailid='".$user_check."'";
$result = @fetchOneRow($sel_customer);
return $result;}
public function Update(){$img=$_FILES['pics']['name'];$email=$_SESSION['email'];if($img){
-
7/28/2019 Pathak Report
63/92
$sql="update login set fname='$this->first_name',lname='$this->last_name',
p_image ='$img'where emailid='$email'";
}else
{$sql="update login set fname='$this->first_name',
lname='$this->last_name'where emailid='$email'";
}
$result=mysql_query($sql);
return true;
}
public function GetCusdetail(){$sql="select * from login where id=".$_SESSION['id'];
$pdetail=fetchOneRow($sql);return $pdetail;
}
public function GetAllCustomerDetail(){$sql="SELECT * from login";
$result=GetAll($sql);return $result;
}
public function AcceptFriends(){
$uid=$_SESSION['id'];$fid=$_GET['id'];
$sql="update friends set status='2'
where user_id='$fid'AND friend_id='$uid'";
mysql_query($sql);
$sql="INSERT INTO `friends` (`user_id` ,`friend_id` ,`status`) VALUES ('$uid' ,'$fid' ,'2')";
-
7/28/2019 Pathak Report
64/92
mysql_query($sql);}
public function GetFrendsNotify(){$sql="select * from friends where friend_id=".$_SESSION['id']." AND status=1 ";
$res=GetAll($sql);
foreach($res as $k=>$v){$sql="SELECT * from login where id =".$v['user_id'] ;$detail=fetchOneRow($sql);$final_array[$k]=$detail;}return $final_array;//_dx($final_array);
}
public function Search(){session_start();$_SESSION['search']=$_POST['search_txt'];$sql="SELECT * from login where fname like '%".$_SESSION['search']."%'";
$result=GetAll($sql);
$sql="SELECT * FROM friends where user_id=".$_SESSION['id'];$x=GetAll($sql);
foreach($result as $k=>$v)
{foreach($x as $a=>$b){if($v['id'] ==$b['friend_id'] && $b['status']==1){
$result[$k]['flag']=1;}
}}
return $result;
}
public function Addfriends(){
$userid=$_SESSION['id'];$fr_id=$_GET['id'];$sql="INSERT INTO `friends` (`user_id` ,`friend_id` ,`status`) VALUES
('$userid' ,'$fr_id' ,1)";mysql_query($sql);
-
7/28/2019 Pathak Report
65/92
$sql="SELECT * FROM friends where user_id=".$_SESSION['id'];$x=GetAll($sql);
$res=$_SESSION['result'];foreach($_SESSION['result'] as $k=>$v){
foreach($x as $a=>$b){if($v['id'] ==$b['friend_id'] && $b['status']==1){
$res[$k]['flag']=1;}
}}$_SESSION['result']=$res;}
}?>Registration.cls.php
-
7/28/2019 Pathak Report
66/92
$this->dob = $this->year.'-'.$this->month.'-'.$this->day;
$this->mobile = trim($_POST['mobile']);$this->gendar = $_POST['gender'];//master table attribute$this->email = trim($_POST['email']);$this->password =
base64_encode(trim($_POST['password']));$this->userStatus = 1;$this->userVerified = 1;}
function userRegistration(){parent::dbMysqlConnect();}
function checkUserName(){$query="select count(*) as c from mstr_tblm_user where user_email='".
$this->email."'";$result=mysql_query($query);$array=mysql_fetch_array($result);if($array['c']>0)
{header('location:login.php?msg=existing account');die;}
else{$this->insertUserRegistrationDetails();}
}//end check userfunction insertUserRegistrationDetails()
{try
{//create master table$sql="insert into mstr_tblm_user(user_email, user_pwd, user_email_verified, user_status)values('".$this->email."','".$this->password."','".$this-
>userVerified."','".$this->userStatus."')";mysql_query($sql);
$user_id=mysql_insert_id();
//create table receiver table$sqlReceiverTable="create table `admaron`.`Receiver_".
$user_id."`(`post_id` integer unsigned not null,`datetime` date not null,`status` boolean not null)";mysql_query($sqlReceiverTable);
-
7/28/2019 Pathak Report
67/92
//creat table friend table$sqlFriendTable="create table `admaron`.`Friend_".$user_id."`(`name` varchar(20) not null,
`datetime` date not null,`friend_id` integer unsigned not null)";mysql_query($sqlFriendTable);
//create friend set table$sqlReceiverPost="insert into post_rel_tblvalues('1,1',".$user_id.")";mysql_query($sqlReceiverPost);$sqlFriendSet="insert into friend_set_tbl
(friend_set_name,createdByID,datetime,status)values('Friend',".$user_id.",now(),1)";
mysql_query($sqlFriendSet);
//create userbasic info$str="insert into user_basic_info(user_id, userFName, userLName, userProfilePic)values(".$user_id.",'".$this->userFname."','".$this-
>userLname."','default.jpg')";mysql_query($str);
//create user gender$sqlUserBasic="insert into user_gender(user_id, user_gender, accountCreateTime )values(".$user_id.",".$this->gendar.",now())";mysql_query($sqlUserBasic);
//create time line$sqlTimeLine="insert into timeline_tbl
(timeLineId)values (".$user_id.")";
mysql_query($sqlTimeLine);
//create user personal info$sqlUserPersonal="insert into user_personal_info(user_id, mobile, userDOB )values(".$user_id.",'".$this->mobile."','".$this->dob."')";mysql_query($sqlUserPersonal);
header('location:login.php?msg=account create successfully pleaseverified user email');
-
7/28/2019 Pathak Report
68/92
}catch(Exception $e)
{
}//end catch}//end insertUserRegistration
}//end Class
?>
Post.cls.php
-
7/28/2019 Pathak Report
69/92
mysql_query($queryPost);$this->lastPostID=mysql_insert_id();$this->setPostOnTimeLine();$this->setPostOnPersonId($this->friendSetID);}//end insert post Status
function setPostFileValue(){
$this->postingPersonID =$_SESSION['userId'];$this->posts =$_POST['post'];$this->friendSetID =$_POST['frinedSet'];$this->timeLineID =$_POST['timeLine'];if ($_FILES["image"]["error"] > 0){echo "Error: " .$_FILES["image"]["error"] . "
";}else{$this->postPic=date('Ymdhmsn').$_FILES["image"]["name"];move_uploaded_file($_FILES["image"]["tmp_name"],"Photos/" . $this-
>postPic);}
}//end setPostStatus
function insertPostFile(){$queryPost="insert into post_tbl
(post, PostingPersonId,image, datetime,status, friend_set_id)values('".$this->posts."',".$_SESSION['userId'].",'".$this->postPic."',now(),1,".
$this->friendSetID.")";mysql_query($queryPost);$this->lastPostID=mysql_insert_id();$this->setPostOnTimeLine();$this->setPostOnPersonId($this->friendSetID);
}//end insert post Status
function setPostOnTimeLine()
{$sqlTimeLinePost="update timeline_tbl
set postIDs=concat('".$this->lastPostID.",',postIDs)where timeLineId=".$this->timeLineID;
mysql_query($sqlTimeLinePost);}
function setPostOnPersonId($personId){
-
7/28/2019 Pathak Report
70/92
$sqlfriendSet="SELECT memberList as memberIds FROM friend_set_tblwhere friend_set_id=".$personId." and createdByID=".
$_SESSION['userId']."";$rsfriendSet=mysql_query($sqlfriendSet);$arrayfriendSet=mysql_fetch_array($rsfriendSet);$memberId= explode(',',$arrayfriendSet['memberIds']);$condition="";
for($i=0;$ilastPostID.",1;',postIDs)where ".$whereClause;mysql_query($queryPost);
}//end set post person
function getAllPost($userid){
$sqlPersonID="SELECT postIDs FROM post_rel_tbl where receiverID=".$userid;
$rsPerson=mysql_query($sqlPersonID);$arrayPerson=mysql_fetch_array($rsPerson);$arrayPerson['postIDs'];$postdetail =$arrayPerson['postIDs'];$post= explode(';', $postdetail ) ;for($i=0;$i
-
7/28/2019 Pathak Report
71/92
{echo "";
echo"";
echo"".$arrayShowPost['userFName']." ".
$arrayShowPost['userLName']."";
echo"".$arrayShowPost['DateTime']."";
echo"";echo"";
echo"".$arrayShowPost['post']."";
echo "";echo "";
if($arrayShowPost['image']!=NULL){
echo "";echo"
";}
echo "";}
echo "";
//echo $postID[0];//echo $postID[1];}
}//end get all post
function getTimeLinePost($timeLineID){$sqlPostID="SELECT postIds FROM timeline_tblwhere timeLineId=".$timeLineID;$rsPost=mysql_query($sqlPostID);
$arrayPost=mysql_fetch_array($rsPost);if($arrayPost['postIds']==" "||$arrayPost['postIds']==""||
$arrayPost['postIds']==NULL){return ;}$postID=explode(',', $arrayPost['postIds']);$condition="";for($i=0;$i
-
7/28/2019 Pathak Report
72/92
$condition=$condition. $postID[$i]." or post_id= ";}$lastPost=count($postID)-2;if($postID[$lastPost]=="")
{echo "No post";return;}
$whereClause="(post_id= ".$condition.$postID[$lastPost]." ) andpt.status=1 order by(pt.DateTime) desc ";
$sqlShowPost="SELECT pt.PostingPersonId,pt.post, pt.DateTime,pt.image,
ut.userFName,ut.userLName,ut.userProfilePicFROM post_tbl ptleft join user_basic_info ut on
ut.user_id=pt.postingPersonIDwhere ".$whereClause;
$rsShowPost=mysql_query($sqlShowPost);echo "";while($arrayShowPost=mysql_fetch_array($rsShowPost))
{echo "";
echo"";
echo"".$arrayShowPost['userFName']." ".
$arrayShowPost['userLName']."";
echo"".
$arrayShowPost['DateTime']."";echo"";echo"";
echo"".$arrayShowPost['post']."";
echo "";echo "";
if($arrayShowPost['image']!=NULL){
echo "";echo"
";}
echo "";}
echo "";
-
7/28/2019 Pathak Report
73/92
//echo $postID[0];//echo $postID[1];
}//end get all time line post
function getFriendList($userid){$frndlist="";$sqlFrnd='SELECT frnd_user_id FROM frnd_tbl where user_id='.$userid;$rsFrnd=mysql_query($sqlFrnd);while($array=mysql_fetch_array($rsFrnd))
{$frndlist=$array['frnd_user_id'].','.$frndlist;}return $frndlist;
}//end frnd list
}//end post class?>
Friend.cls.php
-
7/28/2019 Pathak Report
74/92
".$arrayUserDetail['userFName']." ".
$arrayUserDetail['userLName']." ".
$this->getFriendButton($arrayUserDetail['user_id'])."";echo "";echo "";
}echo "";
}}//end frnd list
function freindList($userid){$sqlFrnd="SELECT memberList FROM friend_set_tbl
where friend_set_name='Friend' and createdByID=".$userid;$rsFrnd=mysql_query($sqlFrnd);while($array=mysql_fetch_array($rsFrnd))
{$sqlUserDetail="select user_id, userFName, userLName, userProfilePicfrom user_basic_infowhere user_id=".$array['friend'];$rsUserDetail=mysql_query($sqlUserDetail);echo "";while($arrayUserDetail=mysql_fetch_array($rsUserDetail))
{echo"
".$arrayUserDetail['userFName']." ".
$arrayUserDetail['userLName']." ".
$this->getFriendButton($arrayUserDetail['user_id'])."";echo "";echo "";
}
echo "";/*
$sqlfriendSet="SELECTmemberList as memberIds FROM friend_set_tbl
where friend_set_id=".$personId." and createdByID=".$_SESSION['userId']."";
$rsfriendSet=mysql_query($sqlfriendSet);$arrayfriendSet=mysql_fetch_array($rsfriendSet);$memberId= explode(',',$arrayfriendSet['memberIds']);$condition="";
-
7/28/2019 Pathak Report
75/92
for($i=0;$ilastPostID.",1;',postIDs)where ".$whereClause;mysql_query($queryPost);
*/}
}//end frnd list using horizontal scaling
function getFriendButton($friendID){
$sqlCheckRequest="select Receiver_Id , sender_idfrom request_tbl
where sender_id=".$_SESSION['userId']." and Receiver_Id=".$friendID."or Receiver_Id=".$_SESSION['userId']." and sender_id=".$friendID ;
$rsCheckRequest=mysql_query($sqlCheckRequest);if($arrayCheckRequest=mysql_fetch_array($rsCheckRequest))
{
if($arrayCheckRequest['sender_id']==$_SESSION['userId']){return "";
}else
{return "";}
}//end ifelse if(!($_SESSION['userId']==$friendID)){
-
7/28/2019 Pathak Report
76/92
$sqlFriend="SELECT friend_idFROM friend_tblwhere (friend_id=".$_SESSION['userId']." and user_id=".
$friendID.") or (user_id=".$_SESSION['userId']." and friend_id=".$friendID.")" ;$rsFriend=mysql_query($sqlFriend);if(mysql_fetch_row($rsFriend)>0)
{return "";}//end if
else{return "";}//end else
}//end if
} //end friend button
}//end classs
?>
CSS
body
{
background-color: #AAAAFF;
}
.val-error{color: red;
float: right;
font-size: 14px;}
.header_top{
height: 100px;
background-color: #3B5998;
margin-top: -8px;
margin-left: -7px;
-
7/28/2019 Pathak Report
77/92
margin-right: -7px;
}
.logo{
color:#FFF;
font-style: italic;
float:left;
font-size: 24px;
}
.logo h2{ margin-left: 45px;
margin-top: 27px;}
.login{
float:right;
padding-top: 32px;
padding-right: 50px;
color:#FFF;
}
.connect{
background-color: #AAAAFF;
height: 550px;
width: 775px;
float:left;
padding-left: 87px;
padding-top: 18px;
}
.connect dt{color: #fff;
font-size: 30px;
}
.signup{
padding-top: 18px;
color: #fff;
}
.signup a{font-size:45px;}
.signup table tr{ height: 42px;
color:gray;
font-size: 20px;
}
.signup table tr td{
padding-left: 30px;
}
-
7/28/2019 Pathak Report
78/92
.signupbtn{background-color: #3B5998;
border-radius: 7px 7px 7px 7px;
height: 40px;
color:#fff;
font-size: 20px;
width: 200px;
cursor:pointer;}
.signupbtn hover{background-color: red;
border-radius: 7px 7px 7px 7px;
height: 40px;
width: 200px;
cursor:pointer;}
.left{
background: none repeat scroll 0 0 #FFFFFF;
margin-top: 7px;
padding-left: 15px;
position: fixed;
width: 250px;
float:left;
}
.mid{
background-color: #FFFFFF;
border: 2px solid gray;
margin-left: 266px;
margin-top: 22px;
width:879px;
}
.right{
background: none repeat scroll 0 0 #FFFFFF;
float: right;
padding-left: 15px;
position: fixed;
right: -14px;
top: 29px !important;
width: 250px;
}
.post-border{background-color: grey !important;
height: 26px;
margin-top: -2px;
border-radius: 0 0 5px 5px;
margin-right: 4px;}
.comment{padding-top: 203px;}
-
7/28/2019 Pathak Report
79/92
.upic{ margin-left: 135px;}
.comm-txt{ background-color: gray;
max-height: 203px;
max-width: 503px;
margin-left: 189px;}
.upicct-first{padding-top: 203px;}
.upicct-first img{margin-left: 135px !important;}
.comm-txt-f{ background-color: gray;
max-height: 203px;
max-width: 503px;
margin-top: -35px;
margin-left: 189px;}
.upicct{padding-bottom: 13px !important;}
.upicct img{ height:50px;width:50px;float:left;margin-left: 136px !important;
}
/*---------------- menu----------------------*/
.menu { background-color: #3B5998;
font-size: 12px;
height: 30px;
margin-left: -10px;
position: fixed;
margin-top: -24px;
width: 101%;}
/* remove all the bullets, borders and padding from the default list styling */.menu ul { padding:0; margin:0;list-style-type:none; height:34px; border:#FFFFFF
solid 1 px; }
/* style the sub-level lists */
.menu ul ul {width:30px; }
/* float the top list items to make it horizontal and a relative positon so that you can
control the dropdown menu positon */
.menu ul li {float:left;height:34px;line-height:34px; border:#FFFFFF solid 1 px;
margin-left:30px;}
.last{float: right !important;
margin-right: 271px;
margin-top: 4px;}
.post{ background-color: #3B5998;
color: #FFFFFF;
float: right;
margin-right: 8px;
cursor:pointer;}
-
7/28/2019 Pathak Report
80/92
.post1{ background-color: #3B5998;
color: #FFFFFF;
cursor: pointer;
float: right;
margin-right: 30px;
margin-top: 17px;}
.poststatus{background-color: #fff;margin-left: 11px;margin-top: 16px;}
/* style the sub level list items */
.menu ul ul li {display:block;width: auto;height:auto;position:relative;line-
height:1em;}
/* style the links for the top level */
.menu a, .menu a:visited {display:block;float:left;height:100%;font-size:11px;text-
decoration:none;color:#fff;padding:0 21px 0 17px;}
.menu a.current{background:url(images/menu_bg.gif) no-repeat;}
/* style the sub level links */
.menu ul ul a, .menu ul ul a:visited {display:block;background:#57c0e8; border-
bottom:1px #81dafc solid; color:#fff;width:12em;height:100%;line-
height:1em;padding:1em 1em;}
.menu ul table ul a, .menu ul table ul a:visited {width:14em; w\idth:12em;}
/* style the table so that it takes no part in the layout - required for IE to work */
.menu table {position:absolute; left:0; top:0; font-size:1em; z-index:-1;}
.menu ul ul table {lef\t:-1px;}
.menu ul ul table ul.left {margin-lef\t:2px;}
.menu li:hover {position:relative;}
* html .menu a:hover {position:relative;}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {background:#57c0e8;}
/* style the fourth level background */
.menu ul ul ul ul a, .menu ul ul ul ul a:visited {background:#57c0e8;}
/* style the sub level 1 background */
/* style the level hovers */
/* first */
.menu a:hover {color:#fff;background:url(images/menu_bg.gif) repeat-x center;}
.menu :hover > a {color:#fff;background:url(images/menu_bg.gif) repeat-x center;}
/* second */.menu ul ul a:hover{color:#fff;background:url(images/menu_bg_a.gif) repeat-x
center;}
.menu ul ul :hover > a {color:#fff;background:url(images/menu_bg_a.gif) repeat-x
center;}
/* third */
.menu ul ul ul a:hover {background:url(images/menu_bg_a.gif) repeat-x center;}
.menu ul ul ul :hover > a {background:url(images/menu_bg_a.gif) repeat-x center;}
/* fourth */
.menu ul ul ul ul a:hover {background:url(images/menu_bg_a.gif) repeat-x center;}
-
7/28/2019 Pathak Report
81/92
/* hide the sub levels and give them a positon absolute so that they take up no room
*/
.menu ul ul
{visibility:hidden;position:absolute;height:0;top:34px;left:0;width:14em; z-
index:999;}
/* position the third level flyout menu */
.menu ul ul ul{left:14em;top:0;width:14em;}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {left:-14em;}
/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul, .menu ul a:hover ul {visibility:visible; height:auto; padding-
bottom:3em; background:transparent url(images/trans.gif);}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{visibility:hidden;}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{visibility:visible;}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul {visibility:visible;}
#page {
background-image:url(header_btm.png);
height:800px;width:68%;
border-style:outset;
}
#br{
background-image:url(v.jpg);
height:750px;
width:88%;
}#paa{
background-image:url(header_btm.png);
height:400px;
width:78%;
border:outset;
}
#header1{
margin:auto
-
7/28/2019 Pathak Report
82/92
width:700px;
height:100px;
border:solid 2px ;
}
#header {
width:100%;
height:50px;
position:relative;
}
#left1{
width:200px;
height:250px;
margin-left:0px;
border:solid 2px outset;
}
#left {
background-color:#004646;
width:150px;
height:500px;
border:solid 2px #990000;
float:left;}
#middle1{
vertical-align:middle;
width:217px;
height:430px;
float:left;
}
#right1{
width:590px;
height:430px;
float:right;
}
#right{
width:150px;
height:500px;
float:right;
}
#middle{
-
7/28/2019 Pathak Report
83/92
vertical-align:middle;
background:url(index_05.gif) no-repeat center;
width:537px;
height:500px;
border:solid 2px #990000;
float:left;
}
#footer1{
width:900px;
height:100px;
float:left;
}
#border{
width:836px;
height:1px;
}
#div{
background-image:url(login_btn.png);
width:119px;
height:37px;
}
#foo{
background-image:url(img04.jpg);
width:250px;
height:20px;
border:solid 1px;
}
#co{
width:700px;
height:300px;
}
#ht{
width:200px;
height:400px;
float:right;
}#ss{
width:20px;
height:10px;
}
#go{
width:20px;
height:20px;
-
7/28/2019 Pathak Report
84/92
}
#footer {
width:880px;
height:100px;
position:relative;
}
.txt{
color:#FFFFFF;
font-size:20px;
font-family:Geneva, Arial, Helvetica, sans-serif;
}
.txt1{
color:#999999;
font-size:20px;
font-family:Geneva, Arial, Helvetica, sans-serif;
}
6. LIMITATION AND SPECIAL FEATURE
LIMITATION:Password can be reset by user only in case any user forget his/her password and
mail regarding his/her password will be sent
User can only created by database. Interfaces is not available
SPECIAL FEATURE:
Whenever a user gets registered then he can post to any other users wall.
Its online, so that information is available anytime.
High integrity and security.
Ability to incorporate newly available data.
Speed and accuracy is increased
Fully automated.
-
7/28/2019 Pathak Report
85/92
Security is associated with user authentication
Duplication of information is curbed.
Doesnt require any extra hardware device.
7 . CONCLUSION
Whereas previous studie implicated social network site users' friend connections and
friending behavior in identity portraiture and performance, this study explored the
expressive potential of lists of cultural interests contained in social network profiles and
presented evidence to suggest that these lists of interests can function as taste
performances. Considering that on MySpace, interest tokens were found to be markers of
rich motifs like irony, alienation, utopia, and satire, the social network profile's lists ofinterests might actually be more useful as an indicator of one's aesthetics than as a factual
declaration of interests.
Many of the methods that were employed in this studysemiotics, natural language
processing, Principal Components Analysis, and statistical similarity measuresare still
novel within the context of the subject matter of taste and performance. Their use here
-
7/28/2019 Pathak Report
86/92
has helped to foreground some of their benefits and limitations. These methods scale well
to enormous data sets, they can illuminate latent dimensions of data (such as motifs and
paradigms in MySpace) that might not have been considered otherwise, and they could
potentially be deployed to track aesthetic and social trends in an online community in real
time. The limitations of these large-scale computational and statistical methods include
the loss of some transparencynot always being able to understand how a generalization
was reached or how it can be mapped back onto specific examples; and the loss of some
precisionnot being able to model all the technical factors and data interactions that
explain a conclusion.
Whereas this study analyzed the patterns of the MySpace community at roughly one
point in time, the next wave of taste insights might only be achieved by a recurrent,
comparative critique across multiple communities and cultures, including in languages
other than English. For example, do the popular tastes of Friendster lag those of
MySpace? The aesthetics of MySpace are ironic rather than straightforward, dystopian
rather than utopian, sexy and humorous, sincere and satirical. If and when the
demographics of social network sites equal the demographics of society in general,
insights such as these will take on new social importance.
8. GLOSSERY
SRS: Software Requirements Specification
DFD : Data Flow Diagram
DB: Data base
-
7/28/2019 Pathak Report
87/92
9. FUTURE SCOPE
More authentication, responsibilities can be added in the existing system.
More Features can be incorporated in the software so that mail can be sent to anyother websites..
Though some security is already implemented by giving candidate id andpassword to each candidate.
More courses can also be added to the site for online examination
Improved user support.
-
7/28/2019 Pathak Report
88/92
10. ORGANIZATION PROFILE
TypePublic (BSE: 517326)HeadquartersCMC Limited, CMC Centre, Old Mumbai Highway Road, Gachibowli, Hyderabad,IndiaParentTata Group
Employees -5,551
CMC Limited is one of the major IT solution company and a subsidiary of one ofthe leading IT consulting, services organization, Tata Consultancy ServicesLimited (TCS Ltd). CMC Ltd is a division of the Tata group, India's recognizedbusiness multinational.
Project Based Industrial Training:
-
7/28/2019 Pathak Report
89/92
11. COLLEGE PROFILE
Ajay Kumar Garg Engineering College
Ghaziabad (U.P.)
Ajay Kumar Garg Engineering College (AKGEC), Ghaziabad is affiliated to Mahamaya
Technical University and is approved by the All India Council for Technical Education.
The college was established in 1998 and offers B.Tech Courses in Seven disciplines of
Engineering. The college also offers postgraduate course in Computer Applications(MCA) and M.Tech in Automation and Robotics, Electronics & Communication
Engineering, Computer Science, Electrical Power & Energy Systems and VLSI Design.
The college is certified for ISO 9001-2008 by BSI, UK.
The college has been consistently maintaining excellent academic results and
placements. The college has the distinction of being the first and only college in UP to
-
7/28/2019 Pathak Report
90/92
receive the Academic Excellence Award for the Best Engineering College in UPTU
from H.E. the Governor of UP for two successive years.
The college has the distinction of being the only Engineering College in the state of U.P.
to have received approval from Department of Science and Technology (DST),
Government of India, for establishment of Centre of Relevance and Excellence (CORE)
in the field of Automation & Robotics. The program with an outlay of about Rs. 9.4 Crenvisages a unique partnership between AKGEC and seven international industries to
promote research, consultancy, project development and training in the emerging
technological field of Automation and Robotics. The college has also set up an
Industrial Robotic Training Centre in Collaboration with Kuka Robotics of Germany.
The centre provides internationally valid certification for its Basic, Advanced and
Expert level training programmes in this emerging technological area. The college is
also the first institution in UP to establish a virtual lab for remote experimentation in
collaboration with IIT, Delhi.
Spread over 40 acre campus, AKGEC has excellent infrastructure. Departmental
laboratories have the latest equipment and the college has state-of-the-art computing
facilities with over 850 computers networked through broadband for Internet access.
The college has a fully automated central library with over 47,000 books and
national/international journals including e-journals. The college also has an interactive
satellite (EDUSAT) terminal with two way video conferencing facility.
Wi-Fi enabled campus includes faculty residences, three boys and two girls hostels
accommodating over 1200 students. Hostels have a library, TV room, canteen, internet,
general store, well equipped gymnasium as well as in-door and out-door sports facilities.
Intellectual property, which is reflected by the caliber of faculty, is a strong point for
AKGEC. The present faculty strength is about 175, of which most senior faculty
members are former professors or alumni of IITs. The Director, Dr R.K. Agarwal is a
B.Tech from IIT, Kanpur, MS from C.I.T., Cranfield, U.K. and Ph.D from IISc,
Bangalore. With such a strong intellectual capital, the college fosters and encourages ateaching methodology that has both a theoretical and practical approach. The Chairman,
Shri Ashok Pal, an engineer and eminent educationist, says, The college milieu
encourages every student to develop respect for established norms and values and at the
same time understand the importance of technical knowledge in human development.
There is continuous college-industry interface. Special efforts are made to groom the
students to meet the standards of the industry, both in technical knowledge and soft
-
7/28/2019 Pathak Report
91/92
skills. Interactive seminars on emerging technologies and personality development
programmes are arranged to provide wide ranging exposure to students. The college is
part of the Campus Connect program with Infosys for training students in accordance
with the needs of the Industry. The college also conducts specialist courses for CAD
packages like Pro-E and CATIA V5.
During the academic year 2011-2012 over 500 students have been placed in reputedorganizations like Infosys, HCL Technologies, L & T, L & T Infotech, Hyundai, Wipro
Technologies, Jakson Engineers Ltd., NTPC, IBM, Indian Air Force and the Indian
Army.
HIGHLIGHTS
Recipient of Academic Excellence Award for the best Engineering college in
UPTU for two successive years.
95% MCA and 90% B.Tech students graduated with I st Division in and honours
during 2011-2012.
Maximum Number of students in University Merit List on a consistent basis.
Over 500 students placed in reputed companies during the session 2011-12.
First and only institution in U.P. to have recieved approval from DST, Govt. of
India, for establishment of CORE in the field of Industrial Automation &
Robotics.
-
7/28/2019 Pathak Report
92/92
First Institution in U.P. to Estabish Virtual Lab for remote experimentation in
Collaboration with IIT Delhi.
EDUSAT Interactive Satellite Terminal.
Sprawling campus spanning over 40 acres with Excellent Infrastructure.
1000 Networked computers and Wi-Fi for 24 x 7 internet with 26 Mbps fiber
optic connectivity.
Modern Hostels having accommodation for 1200 boys and girls.
12. BIBLOGRAPHY