Xing Lin Alumni (i)

Source: Internet
Author: User
Tags config count modify mysql php database
Main Features:
Php+mysql,session page protection, whisper function, photo upload, online modification information, email inquiry and automatic reply, Guest mode,
A convenient class management
List of programs:
Configuration section:
Configuration file: class/config.php Database file: Class/mysql.txt counter file: Class/counter.txt
Main program:
Login Home: index.php member Home: main.php Guest Home: class/guest.php
Personal Management:
Class Address Book: class/address.php Personal Data modification: class/modify.php upload photos: class/uploadphoto.php
Password query: class/querypsw.php whisper: privatenote.php
Registration section:
Registration Step 1:class/register_step1.php Registration Step 2:class/register_step2.php
Photo section:
Class Photos: class/classphoto.php School photos: class/schoolphoto.php personal photos: class/privatephoto.php
Guest Book section:
Class Members Guest book: Show message: class/notebook/index.php Add message: class/notebook/addnote.php
Guest Book: Display message: class/notebookg/index.php Add message: class/notebookg/addnote.php
Class Management Section:
Home: superadmin.php Add Members: class/admin/addmember.php display, delete members: class/admin/member.php
Modify member Data: class/admin/editmember.php Modify member Data step 2:class/admin/editmember_step2.php
Class member guest Book Management: class/notebook/delnote.php guest Book Management: class/notebookg/delnote.php
Other:
Help file: Readme.txt Pictures: Class/image

Precautions:
1. First the configuration file config.php to upload, according to mysql.txt content to establish a database.
2. Change the Counter.txt property to 777 when uploading
3. Photo Upload program in some home space can not be achieved, we try 51.net Bar, pay attention to keep the Class/upload/image directory.
4. The mail () function may be wrong when debugging on the computer, and it can be uploaded to the server.
5. Due to the time, also take into account the photo upload is not easy to achieve in the personal homepage, class photos, personal photos and other pages please change it yourself.
6. I am a beginner of PHP, the procedure needs to be further improved, this procedure is only for rookie reference.

program Example: http://medguider.host.wayall.com/
Contact Way: webmaster@medguider.51.net
Because there are too many program code, only some of the important code is posted here. Complete program please go to my homepage to download: http://www.medguider.com

Configuration section:
Database files: class/mysql.txt
CREATE TABLE User (id char (2), user char (), PSW char (8), name char (8), sex char (2), birth char (x), work varchar (m), ad Varch AR, Post char (6), ph varchar (m), BP varchar, email varchar (), Oicq char (), photo varchar (255), Account varchar ( 255), Count Int (4) Default ' 1 ', signature varchar (255), face Int (2));
Member table ID record number user username PSW password name sex sex birth birthday work work unit AD mailing address post postal code ph phone bp paging email email Oicq OICQ count Count The default value is 1
Photo Personal photo Account Personal Description Signature personal signature face portrait (default=1)
CREATE table notebook (user char (), Time char (), IP varchar (), title varchar (255), nnote text);
Class Members guest book user name time IP title nnote content
CREATE TABLE notebookg (name char (8), email varchar (), time char (m), face char (2), IP varchar (), title varchar (255), Nnote text);
Visitor Guest Book name name email time face Avatar IP title nnote content
CREATE TABLE Privatenote (ID char (), Fromuser char (), Touser char (a), Time char (a), Message Text,look char (1) Default ' 0 ');
Private Message ID record number Fromuser sender name Touser recipient username Time send a date message information look, the default value is 0

Configuration file: class/config.php
<?php
$sitename = "Xing Lin alumni"; Station Roll Call
$url = "http://medguider.host.wayall.com/"; Site URL
$db = mysql_connect ("localhost", "root");//Here is your MySQL username password
mysql_select_db ("Test", $db);
$supervisor = "Demo"; Super Administrator name
$SUPERPSW = "Demo"; Super Admin password
$superemail = "demo@demo.com";//Super Admin Email
$question 1= "Demo"; Registration Tips 1
$answer 1= "Demo"; Registration Prompt Answer 1
$question 2= "Demo"; Registration Tips 2
$answer 2= "Demo"; Registration Prompt Answer 2
?>

Main program:
Login Home: index.php
<title> class Member Login </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type= "Text/css" >
<!--
. deepblue10 {font-family: "Song body"; Font-size:10pt color: #3333FF; Text-decoration:none}
a.purple:hover {font-size:9pt; color: #3366FF; Background-color: #99FFFF; Text-decoration:none}
A.purple:link {font-size:10pt; Text-decoration:none}
a:hover {Text-decoration:none}
a:visited {Text-decoration:none}
-->
</style>

<body bgcolor= "#FFFFFF" >
<table width= "75%" border= "0" cellspacing= "0" cellpadding= "0" align= "center" >
<tr>
<td>
<div align= "center" ></div>
</td>
</tr>
<tr>
&LT;TD height= "> </td>"
</tr>
<tr>
<td>
<table width= "75%" border= "1" cellspacing= "0" cellpadding= "0" align= "center" bordercolorlight= "#FF9900" bordercolordark= "#FFFFFF" class= "Deepblue10" >
<tr>
&LT;TD colspan= "2" >
<div align= "center" ></div>
</td>
</tr>
<tr>
&LT;TD width= "33%" height= ">"
<div align= "Center" > class Member Login </div>
</td>
&LT;TD width= "67%" height= ">"
<div align= "center" ><a href= "class/register_step1.php" class= "Purple" > class member Registration </a></div>
</td>
</tr>
<tr>
&LT;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= "Login" >
<input type= "reset" name= "Cancel" value= "rewrite" >
</div>
</form>
</td>
&LT;TD width= "67%" height= ">"
<div align= "center" ><a href= "class/guest.php" > Guest visit </a></div>
</td>
</tr>
<tr>
&LT;TD width= "67%" >
<div align= "center" >
<p> forgot Password: <a href= "class/querypsw.php" class= "Deepblue10" > Ask admin for Password </a><br>
</p>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>

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.