Source code of my forum (5 ). Does okey. php mainly process User login and publishing information? If ($ username) has user information $ useinfo $ username. |. $ userpass; setcookie (FlyFoxNet, $ useinfo, time () + 3600); if ($ dq okey. php mainly processes user login and publishing information
If ($ username) // whether user information exists
$ Useinfo = $ username. "|". $ userpass;
Setcookie ("FlyFoxNet", $ useinfo, time () + 3600 );
If ($ d = q) setcookie ("FlyFoxNet"); // Leave the COOKIE blank if it exits
?>
Post
Include "linkfox. inc. php ";
Include "info. inc. php ";
Function postf ($ useinfo, $ title, $ message) // Post information processing
{
$ Query = "select * from foxbbs order by id desc limit 1 ";
$ Row = @ mysql_query ($ query );
$ Info = @ mysql_fetch_array ($ row );
If ($ useinfo [2] = $ info [1] & $ title = $ info [3]) // check whether the last message is the same as the current one.
Echo"
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