Home > Backend Development > PHP Tutorial > Xinglin classmates (1)_PHP tutorial

Xinglin classmates (1)_PHP tutorial

WBOY
Release: 2016-07-21 16:03:30
Original
755 people have browsed it

Main features:
php+mysql, session page protection, private message function, photo upload, online modification of information, email query and automatic reply, guest mode,
Convenient class management
Program list:
Configuration Part:
Configuration file: class/config.php Database file: class/mysql.txt Counter file: class/counter.txt
Main program:
Login homepage: index.php Member homepage: main.php Guest homepage: 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 Private note: privatenote.php
Registration section:
Registration step 1: class/register_step1.php Registration step 2: class/register_step2.php
Photo section:
Class photo: class/ classphoto.php School photo: class/schoolphoto.php Personal photo: class/privatephoto.php
Guestbook section:
Class member guestbook: Display message: class/notebook/index.php Add message: class/notebook /addnote.php
Guest message book: Display message: class/notebookg/index.php Add message: class/notebookg/addnote.php
Class management part:
Home page: superadmin.php Add members: class /admin/addmember.php Display and delete members: class/admin/member.php
Modify member information: class/admin/editmember.php Modify member information step 2: class/admin/editmember_step2.php
Class members Guestbook management: class/notebook/delnote.php Guest guestbook management: class/notebookg/delnote.php
Others:
Help file: readme.txt Picture: class/image

Notes :
1. First modify the configuration file config.php and then upload it, and create a database according to the content of mysql.txt.
2. Change the attribute of counter.txt to 777 when uploading
3. The photo upload program cannot be implemented in some homepage spaces. Please try 51.net, and be sure to keep the class/upload/image directory.
4. When debugging on this machine, the mail() function may make an error. Just ignore it and upload it to the server.
5. Due to the rush of time and considering that it is not easy to upload photos on the personal homepage, please modify the class photos, personal photos and other pages yourself.
6. I am new to PHP and the program needs to be further improved. This program is for reference only.

Program example: http://medguider.host.wayall.com/
Contact information: webmaster@medguider.51.net
Due to too much program code, only some important codes are posted here .完整程序请到我的主页下载:http://www.medguider.com

配置部分:
数据库文件: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));
//成员资料表 id 记录号 user 用户名 psw 密码 name 姓名 sex 性别 birth 生日 work 工作单位 ad 通讯地址 post 邮编 ph 电话 bp 传呼 email 电子信箱 oicq oicq count 计数默认值为1
photo 个人照片 account 个人说明 signature 个人签名 face 头像(default=1)
create table notebook (user char(12),time char(30),ip varchar(16),title varchar(255),nnote text);
//班级成员留言簿 user 用户名 time 时间 ip title 标题 nnote 内容
create table notebookg (name char(8),email varchar(35),time char(30),face char(2),ip varchar(16),title varchar(255),nnote text);
//访客留言簿 name 姓名 email time 时间 face 头像 ip title 标题 nnote 内容
create table privatenote (id char(10),fromuser char(12),touser char(12),time char(30),message text,look char(1) default '0');
//悄悄话 id 记录号 fromuser 发消息人姓名 touser 接受人用户名  time 发出时间 message 信息 look 是否看过,默认值为0

配置文件:class/config.php
$sitename="杏林同学录"; //站点名
$url="http://medguider.host.wayall.com/"; //站点url
$db = mysql_connect("localhost", "root");//这里改为您的mysql用户名密码
mysql_select_db("test",$db);
$supervisor="demo"; //超级管理员名
$superpsw="demo"; //超级管理员密码
$superemail="demo@demo.com";//超级管理员email
$question1="demo"; //注册提示问题1
$answer1="demo"; //注册提示答案1
$question2="demo"; //注册提示问题2
$answer2="demo"; //注册提示答案2
?>

主程序:
  登陆首页:index.php


班级成员登录






    
    
  
  
    
  
    
    
  
      

    
 
  
      
          
          
        
          
          
          
        
          
          
          
  
            

          
  
            
班级成员登录

          
  
            
          
  
            

              
用户名  
                
                

                密码   
                
                

                

                
                
              

            

          
  
            
                                          

                                                                         






http://www.bkjia.com/PHPjc/316211.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/316211.html

TechArticle

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template