📄 auth_delauth.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\" > <img src=\"images/bar.gif\"> ";
echo $strAuthDel;
echo "</td>\r\n <td > </td> <td width=\"100\" > </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\"> </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 + -