Xinglin record (1)

Source: Internet
Author: User
Tags php database

Main features:
Php + mysql, session page protection, whispering, photo upload, online data modification, email query and automatic reply, guest mode,
Convenient Class Management
Program list:
Configuration section:
Configuration File: class/config. php database file: class/mysql.txt counter file: class/counter.txt
Main Program:
Log onto the home page: index. php member home page: main. php guest home page: class/guest. php
Personal Management:
Class address book: class/address. php personal data modification: class/modify. php Upload photo: class/uploadphoto. php
Password query: class/querypsw. php WHISPER: privatenote. php
Registration part:
Registration Step 1: class/register_step1.php registration Step 2: class/register_step2.php
Photo part:
Class photo: class/classphoto. php school photo: class/schoolphoto. php personal photo: class/privatephoto. php
Message book part:
Class member message book: Show message: class/notebook/index. php add message: class/notebook/addnote. php
Guest message book: Show message: class/notebookg/index. php add message: class/notebookg/addnote. php
Class Management:
Home page: superadmin. php add members: class/admin/addmember. php show and delete members: class/admin/member. php
Modify member information: class/admin/editmember. php Step 2: class/admin/editmember_step2.php
Class member message book management: class/notebook/delnote. php guest message book management: class/notebookg/delnote. php
Others:
Help File: readme.txt image: class/image

Note:
1. Change the configuration file config.php before uploading the configuration file, and create a database according to the content of mysql.txt.
2.change the counter.txt attribute to 777 during uploading
3. The photo upload program cannot be implemented in some homepage spaces. Please try 51.net and keep the class/upload/image directory.
4. When debugging on the local machine, the mail () function may fail. You just need to upload it to the server.
5. Due to the rush of time, it is difficult to upload photos on the personal homepage. Please modify the class photos, personal photos, and other pages by yourself.
6. I am new to php, and the program still needs to be further improved. This program is only for reference by cainiao.

Program example: http://medguider.host.wayall.com/
Contact: webmaster@medguider.51.net
Because there are too many program code, only some important code is pasted here. Complete procedures please go to my home page download: http://www.medguider.com

Configuration section:
Database File: class/mysql.txt
Create table user (id char (2), user char (12), psw char (8), name char (8), sex char (2), birth char (10 ), work varchar (50), ad varchar (50), post char (6), ph varchar (30), bp varchar (20), email varchar (35 ), oicq char (12), photo varchar (255), account varchar (255), count int (4) default '1', signature varchar (255 ), face int (2 ));
// Member data table id record No. user Username psw password name sex gender birth birthday work unit ad mailing address post zip code ph phone bp call e-mail address oicq count default value 1
Photo personal photo account personal description signature personal signature face Avatar (default = 1)
Create table notebook (user char (12), time char (30), ip varchar (16), title varchar (255), nnote text );
// Class member message book user username time ip title nnote content
Create table notebookg (name char (8), email varchar (35), time char (30), face char (2), ip varchar (16), title varchar (255 ), nnote text );
// Guest guestbook name email time face Avatar ip title nnote content
Create table privatenote (id char (10), fromuser char (12), touser char (12), time char (30), message text, look char (1) default '0 ');
// Whisper id record No. fromuser sender name touser receiver username time sending time message information look have seen, default value is 0

Configuration File: class/config. php
<? Php
$ Sitename = "xinglin record"; // site name
$ Url = "http://medguider.host.wayall.com/"; // site url
$ Db = mysql_connect ("localhost", "root"); // change it to your mysql username and password.
Mysql_select_db ("test", $ db );
$ Supervisor = "demo"; // super Administrator name
$ Superpsw = "demo"; // super administrator password
$ Superemail = "demo@demo.com"; // super administrator email
$ Question1 = "demo"; // registration error 1
$ Answer1 = "demo"; // registration prompt answer 1
$ Question2 = "demo"; // registration error 2
$ Answer2 = "demo"; // The registration prompts answer 2.
?>

Main Program:
Log on to the homepage: index. php
<Html>
<Head>
<Title> logon to a class member </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Style type = "text/css">
<! --
. Deepblue10 {font-family: ""; font-size: 10pt; color: # 3333FF; text-decoration: none}
A. purple: hover {font-size: 9pt; color: # 3366FF; background-color: #99 FFFF; text-decoration: none}
A. purple: link {font-size: 10pt; text-decoration: none}
A: hover {text-decoration: none}
A: visited {text-decoration: none}
-->
</Style>
</Head>

<Body bgcolor = "# FFFFFF">
<Table width = "75%" border = "0" cellspacing = "0" cellpadding = "0" align = "center">
<Tr>
<Td>
<Div align = "center"> </div>
</Td>
</Tr>
<Tr>
<Td height = "48"> </td>
</Tr>
<Tr>
<Td>
<Table width = "75%" border = "1" cellspacing = "0" cellpadding = "0" align = "center" bordercolorlight = "# FF9900" bordercolordark = "# FFFFFF" class = "deepblue10">
<Tr>
<Td colspan = "2">
<Div align = "center"> </div>
</Td>
</Tr>
<Tr>
<Td width = "33%" height = "17">
<Div align = "center"> class member logon </div>
</Td>
<Td width = "67%" height = "17">
<Div align = "center"> <a href = "class/register_step1.php" class = "purple"> class member registration </a> </div>
</Td>
</Tr>
<Tr>
<Td width = "33%" rowspan = "2">
<Form method = "post" action = "main. php">
<Div align = "center"> User Name
<Input type = "text" name = "username" size = "8" maxlength = "8">
<Br>
Password
<Input type = "password" name = "userpsw" size = "8" maxlength = "8">
<Br>
<Br>
<Input type = "submit" name = "Submit" value = "Logon">
<Input type = "reset" name = "cancel" value = "Rewrite">
</Div>
</Form>
</Td>
& Lt; td width = "67%" height = "21" & gt;
<Div align = "center"> <a href = "class/guest. php"> guest access </a> </div>
</Td>
</Tr>
<Tr>
& Lt; td width = "67%" & gt;
<Div align = "center">
<P> forgot the password: <a href = "class/querypsw. php" class = "deepblue10"> ask the Administrator for the password </a> <br>
</P>
</Div>
</Td>
</Tr>
</Table>
</Td>
</Tr>
</Table>
</Body>
</Html>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.