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

📄 confirm.php

📁 php写的论坛,代码精简到极点 请相看说明文件。是从英文翻译过来的:)
💻 PHP
字号:
<?
//////////////////////////////////ready
include "connect.php";
include "lib.php";

//////////////////////////////////check
chk_bd($bd);

//////////////////////////////////Action appointment
if($mode=="article"){$article=selects($board_table.$bd,"and no=$no");$action="del_ing.php";}
if($mode=="comment"){$article=selects($com_table.$bd,"and comno=$comno");$action="del_ing.php";}
if($mode=="secret"){$article=selects($board_table.$bd,"and no=$no");$action="memo.php";}

//////////////////////////////////If have competence, immediately pass
if($mode!="secret"){
$chk_admin=chk_admin_return($bd);
$chk_root=chk_level_return(1);
if($article[id] && $HTTP_COOKIE_VARS[$member_cookie] && $article[id]==$HTTP_COOKIE_VARS[$member_cookie]){$chk_my=1;}else{$chk_my=0;}
$chk_all=$chk_admin+$chk_root+$chk_my;
if($chk_all){go("del_ing.php?bd=$bd&no=$no&comno=$comno&mode=$mode");}
}

//////////////////////////////////ready 2
include "set_top.php";
include "header.inc";
?>

<script language=javascript>
function on(){del.pass.focus();}
function chk(){
if(!del.pass.value){alert('<?=$error?>请输入密码');del.pass.focus();return false;}
}
</script>


<body onload=on()>
<table width=100% height=100%>
<form name=del method=post action=<?=$action?> onsubmit="return chk()">
<input type=hidden name=bd value='<?=$bd?>'>
<input type=hidden name=no value='<?=$no?>'>
<input type=hidden name=comno value='<?=$comno?>'>
<input type=hidden name=mode value='<?=$mode?>'>
<tr><td valign=middle>
<?include"$skin/confirm.php";?>
</td></tr>
</form>
</table>

<?
//////////////////////////////////end
include "set_bottom.php";
mysql_close($connect);
?>

⌨️ 快捷键说明

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