echo $_GET["id"]; ?> " target="_self">删除服务队</a> <?php if (!HaveAuthority("./page/admin/action/*")) { ?> <span class="d">尚无权限</span> <?php } ?> </li> <li> <a href="./admin.php" target="_self">进入后台管理</a> <?php if (!HaveAuthority("./admin.php")) { ?> <span class="d">尚无权限</span> <?php } ?> </li> <li> <a href="./detail.php?id=<?php echo $_GET["id"]; ?> " target="_self">返回服务队首页</a> </li> </div> </div>
<?php include "../include/basic_functions.php"; include "../include/database_info.php"; $con = mysql_connect($DB_Where, $DB_UName, $DB_PWord); mysql_select_db("iVolunteer_Excalibur", $con); mysql_set_charset("utf8", $con); include "../include/check_authority.php"; if (HaveAuthority("./action/action_apply.php")) { if (!isset($_SESSION)) { session_start(); } $G_belong1 = $_POST["belong1"]; $G_belong2 = $_POST["belong2"]; $G_name = $_SESSION["UName"]; if ($G_belong1 == $G_belong2) { header("Location: ../message.php?msg=第一志愿和第二志愿不能相同,请修改后再申请!"); } else { mysql_query("UPDATE users SET belong1 = {$G_belong1}, belong2 = {$G_belong2} WHERE name = '{$G_name}'"); header("Location: ../index.php"); } } else { CheckAuthority("./action/action_apply.php"); } mysql_close($con);
<?php include "../include/basic_functions.php"; include "../include/database_info.php"; $con = mysql_connect($DB_Where, $DB_UName, $DB_PWord); mysql_select_db("iVolunteer_Excalibur", $con); mysql_set_charset("utf8", $con); include "../include/check_authority.php"; if (HaveAuthority("./action/action_alterkey.php")) { if (!isset($_SESSION)) { session_start(); } $G_name = $_SESSION["UName"]; $G_key = $_POST["key"]; if (!$G_key) { header("Location: ../message.php?msg=您设置新密码不能为空!"); } else { mysql_query("UPDATE users SET `key` = '{$G_key}' WHERE `name` = '{$G_name}'"); header("Location: ./action_logout.php"); } } else { CheckAuthority("./action/action_alterkey.php"); } mysql_close($con);
<?php include "../../../include/basic_functions.php"; include "../../../include/database_info.php"; $con = mysql_connect($DB_Where, $DB_UName, $DB_PWord); mysql_select_db("iVolunteer_Excalibur", $con); mysql_set_charset("utf8", $con); include "../../../include/check_authority.php"; if (HaveAuthority("./page/admin/action/*")) { $G_id = $_GET["id"]; mysql_query("DELETE FROM groups WHERE id = {$G_id}"); header("Location: ../../../index.php"); } else { CheckAuthority("./page/admin/action/*"); } mysql_close($con);
<?php include "../include/basic_functions.php"; include "../include/database_info.php"; $con = mysql_connect($DB_Where, $DB_UName, $DB_PWord); mysql_select_db("iVolunteer_Excalibur", $con); include "../include/check_authority.php"; if (HaveAuthority("./action/action_logout.php")) { if (!isset($_SESSION)) { session_start(); } $_SESSION["UName"] = ""; header("Location: ../index.php"); } else { CheckAuthority("./action/action_logout.php"); } mysql_close($con);
<?php include "../../../include/basic_functions.php"; include "../../../include/database_info.php"; $con = mysql_connect($DB_Where, $DB_UName, $DB_PWord); mysql_select_db("dilutedream_ivolunteer_ultimate", $con); include "../../../include/check_authority.php"; if (HaveAuthority("./page/group/action/*")) { $G_id = $_GET["id"]; $G_name = $_POST["name"]; mysql_query("UPDATE groups SET name = '{$G_name}' WHERE id = {$G_id}"); header("Location: ../../../group.php?id={$G_id}"); } else { CheckAuthority("./page/group/action/*"); } mysql_close($con);