daima

wutao752 2009-07-16 06:37:50
<?php
require_once('./global.php');
session_start();
error_reporting(7);
if(phpversion()>="4.1.0"){
extract($_REQUEST);
}
$myfile="index.php";
$myfilemenu="index";
$page=$HTTP_GET_VARS['page'];
if(!is_int($page)){$page=intval($page);}
if($page==""){$page=1;}
$nowtime=time();
$ip=ip();
BadnessIp();

$HTTP_POST_VARS['menu'] = trim($HTTP_POST_VARS['menu']);
if($HTTP_POST_VARS['menu']=="savedata"){
$username=$HTTP_POST_VARS[username];
$useremail=$HTTP_POST_VARS[useremail];
$useroicq=$HTTP_POST_VARS[useroicq];
$userhomepage=$HTTP_POST_VARS[userhomepage];
$usersex=$HTTP_POST_VARS[usersex];
$headportrait=$HTTP_POST_VARS[headportrait];
$posticon=$HTTP_POST_VARS[posticon];
$content=$HTTP_POST_VARS[content];
AddGuestContent($username,$useremail,$useroicq,$userhomepage,$usersex,$headportrait,$posticon,$content);
Foot();
exit;
}


Head();
Top();
switch($action){
case "add";
ShowFormAdd();
break;
case "search";
$line = openfile($con[data_path].$con[data_name]);
$HTTP_POST_VARS['keyword']=="" ? $keyword=$HTTP_GET_VARS['keyword'] : $keyword=$HTTP_POST_VARS['keyword'];

for($W=1;$W<=count($line)-1;$W++){
if($line[$W]=="") break;
if (substr_count(@strip_tags($line[$W]),$keyword)!=0) {
$searcharray[]=$line[$W];
}
}
$j=0;$l=0;$nextint=0;
$j = count($searcharray);
$l = $j / $con[perpage];
$nextint=ceil($l);
if($con[post_position]=="1"){
$con["post_terseness"] = "1";
ShowFormAdd();
}
ShowSearchList($page);
PageLib($page);
if($con[post_position]=="2"){
$con["post_terseness"] = "1";
ShowFormAdd();
}
break;
default:
$line = openfile($con[data_path].$con[data_name]);
$j=0;$l=0;$nextint=0;
$j = count($line)-1;
$l = $j / $con[perpage];
$nextint=ceil($l);
if($con[post_position]=="1"){
$con["post_terseness"] = "1";
ShowFormAdd();
}
ShowContentList($page);
PageLib($page);
if($con[post_position]=="2"){
$con["post_terseness"] = "1";
ShowFormAdd();
}
}
Foot();
exit;
?>
...全文
59 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wutao752 2009-07-16
  • 打赏
  • 举报
回复
首页代码
哪位大大能帮忙稍微提点下
小弟
绝对小菜鸟。。
小菜鸟出来混真的不容易。。
但是想飞的更高。。。
wutao752 2009-07-16
  • 打赏
  • 举报
回复
留言本的留言页 php代码
看不明白。
感觉东一笔
西一笔的

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧