⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 管理功能非常强大
💻 PHP
字号:
<?php
/******************************************************************************
 *                        程序名称:未名精品留言本                             *
 *                        该文件名:index.php                                  *
 *                        文件作用:留言本主要对外操作                         *
 *                        程序开发:未名工作室http://www.qqwm.com              *
 *                        项目主编:柳甲(wmweb@sohu.com)                       *
 * 注意事项:                                                                  *
 *         1)该文件谢绝修改,如文件有错请与作者联系,使用者没有修改权         *
 * 帮助中心:                                                                  *
 *         1)电子信箱E-mail:qqwm@qqwm.com                                     *
 *         2)网络传呼OICQ NO.:194088                                          *
 *         3)办公电话telephone:商业用户请查看帮助联系                         *
 *                                                                            *
 *      (http://www.qqwm.com)(http://ygy520.126.com)(http://wmnews.yeah.net)  *
 ******************************************************************************/
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;
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -