Coder Social home page Coder Social logo

webbbs's Introduction

1.安装WampServer

下载地址:http://www.wampserver.com/

它已经包含了 PHP、Apache、Mysql 等服务,免去了开发人员将时间花费在繁琐的配置环境过程。

2.重新设置工作目录

在windows工具栏找到wampserver,打开apache→httpd.conf,搜索DocumentRoot,修改DocumentRoot和Directory到指定目录(“…/webBBS/”),保存,httpd-vhosts.conf进行同样的操作,然后重启所有服务。

打开浏览器,输入网址“localhost/test.php”,如正常打开则设置成功。

3.熟悉开发系统

访问localhost/debug_login.php进入开发者登录界面,数据库账号root,无密码,登录后页面跳转至debug_database.php,此处提供了最基本的数据库操作接口,可在此页面熟悉与数据库的交互以及学习代码写法等。

4.各代码文件功能概述

database_util.php

数据库操作的常用函数。

query_one 在指定数据表中查询满足条件的唯一条目。

find 在指定数据表中查找是否存在符合条件的条目,返回True或False.

execute_sql 执行一条sql语句。

build_web_database 网站数据库定义与初始化。

sign_up.php

用户注册页面,包含一个注册表和一个注册函数。

TODO: 输入字符的正确性检测与长度溢出检测

sign_in.php

用户登录页面,包含一个登录表单和一个登录函数。

header.php

网页头部文件,左侧为返回主页(或上一页)超链接,右侧为用户信息。

TODO: 头部左侧超链接给出浏览层次信息

index.php

主页(bid=1)与版面浏览页(bid>1),列举所有帖子信息及链接。对于主页,附加列举所有版面及链接;对于非主页,登录用户显示文本编辑框用于发帖。

TODO: 文本编辑改为独立页面,减少代码重复

TODO: 帖子分页显示

TODO: 版面管理员可直接在此页面管理帖子

post_reader.php

阅读指定帖子及其回复贴,登录用户可发表回复。

TODO: 版面管理员可直接在此页面管理帖子与回复

board_manage.php

论坛超级管理员页面,可管理所有版面及其帖子,包括增删版面、帖子,任命版面管理员,发布论坛公告。

post_manage.php

论坛某版面管理员页面,可管理该版面所有帖子,发布版面公告。

user_space.php

用户的个人空间,用于查看用户信息,收发私信。

TODO: 用户间私信

TODO: 用户头像

TODO: 用户头像的大小调整与显示

工作日志

10.7

封装一键部署按钮“一刀999”。排除了oninvalid字段表单提交失败的错误。

11.3

注册表单填写时进行了正确性检测,头部左侧显示了当前的浏览层次。

私信功能逻辑部分完成。丰富一刀999初始化内容。

11.7

用户可上传与更改头像。

11.9

用户头像均显示为200x200.

11.17

现在发帖与回帖使用单独的、统一的编辑页面,减少了代码重复。

发帖与回帖现在可以任意添加附件了,上传的文件放在files文件夹中。

11.25

优化了UI,修复了若干bug.

12.4

全面改进了UI,完成了帖子浏览页分页功能,修复了附加文件的bug.

12.5

除私信界面外UI已全部完工,实现了管理员锁定、删除与发帖人删除自己发布内容的功能.

webbbs's People

Contributors

lingxii avatar momogasuki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.