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

📄 auth_delauth.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 3 );
$step = $_REQUEST['step'];
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n";
echo "<s";
echo "cript>\r\nfunction cm(nn){\r\nqus=confirm(\"";
echo $strDeleteConfirm;
echo "\")\r\nif(qus!=0){\r\nwindow.location='auth_delauth.php?step=del&user='+nn;\r\n}\r\n}\r\n</script>\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td width=\"150\" >&nbsp;&nbsp;<img src=\"images/bar.gif\">&nbsp;&nbsp;";
echo $strAuthDel;
echo "</td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\">\r\n  <tr valign=\"top\"> \r\n    <td height=\"378\"> \r\n      <p>";
if ( $step == "del" )
{
	$user = $_REQUEST['user'];
	$msql->query( "select moveable from {$tbl_admin} where user='{$user}'" );
	if ( $msql->next_record( ) )
	{
		$moveable = $msql->f( "moveable" );
	}
	if ( $moveable != "1" )
	{
		err( $strAuthDelNTC1, "", "" );
	}
	$msql->query( "delete from {$tbl_admin_rights} where user='{$user}'" );
	$msql->query( "delete from {$tbl_admin} where user='{$user}'" );
}
echo "</p>\r\n      <br>\r\n      <table width=\"480\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n        <tr> \r\n          <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n          <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strAuthDel;
echo "</td>\r\n          <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n        </tr>\r\n      </table>\r\n      <table width=\"480\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\">\r\n        <tr> \r\n          <td height=\"25\" width=\"35%\"  class=title> \r\n            <div align=\"center\">";
echo $strAuthUser;
echo "</div>\r\n          </td>\r\n          <td height=\"25\" width=\"38%\" class=title> \r\n            <div align=\"center\" >";
echo $strAuthUserName;
echo "</div>\r\n          </td>\r\n          <td height=\"25\" width=\"27%\" class=title> \r\n            <div align=\"center\"  >";
echo $strDelete;
echo "</div>\r\n          </td>\r\n        </tr>\r\n        ";
$msql->query( "select * from {$tbl_admin}" );
while ( $msql->next_record( ) )
{
	$user = $msql->f( "user" );
	$name = $msql->f( "name" );
	$id = $msql->f( "id" );
	echo " \r\n        <tr> \r\n          <td height=\"26\" width=\"35%\"  class=con> \r\n            <div align=\"center\">";
	echo $user;
	echo "</div>\r\n          </td>\r\n          <td height=\"26\" width=\"38%\"  class=con> \r\n            <div align=\"center\">";
	echo $name;
	echo "</div>\r\n          </td>\r\n          <form method=\"post\" action=\"\">\r\n            <td height=\"26\" width=\"27%\"  class=con>  \r\n              <div align=\"center\"><img src=\"images/toolbar_delete_up.gif\"  style=\"cursor:hand\" width=\"22\" height=\"20\"  onClick=\"cm('";
	echo "{$user}";
	echo "'); return false;\"> \r\n              </div>\r\n            </td>\r\n          </form>\r\n        </tr>\r\n        ";
}
echo " \r\n      </table>\r\n<p align=\"center\">&nbsp; </p>\r\n      <p align=\"center\"> <br>\r\n        <br>\r\n      </p>\r\n        \r\n      </td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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