header("Content-Type:text/html;charset=UTF-8"); require_once "config.php"; date_default_timezone_set('Asia/Taipei'); session_start(); $new_date = date("Y-m-d H:i:s"); $id = $_GET['id']; $name = $_GET['name']; $email = $_GET['email']; $gender = $_GET['gender']; $sql = "select * from `" . $member . "` where `fb_id` = '" . $id . "'"; $res = mysql_query($sql); $row = mysql_fetch_array($res); $isdel = $row['isdel']; $num = mysql_num_rows($res); if ($isdel == 0) { $_SESSION['id'] = $id; if ($num < 1) { $sql = "INSERT INTO `" . $member . "`(`fb_id`,`user_name`,`user_account`,`user_sex`,`user_birthday`,`user_idcard`,`user_otherName`,`user_email`,`user_phone`,`isdel`,`wdate`,`udate`,`login`,`sort`)VALUES('" . htmlencode($id) . "','" . htmlencode($name) . "','" . htmlencode($email) . "','" . htmlencode($gender) . "','','','','" . htmlencode($email) . "','','0','" . htmlencode($new_date) . "','" . htmlencode($new_date) . "','" . htmlencode($new_date) . "','')"; $query = mysql_query($sql) or die("無法新增" . mysql_error()); } else { $sqlu = "UPDATE `" . $member . "` SET `login` = '" . htmlencode($new_date) . "' where `fb_id` = " . $id . " "; $query = mysql_query($sqlu) or die("無法更新" . mysql_error()); } echo '<script type="text/JavaScript"> alert("登入成功"); window.location="../index.php" </script>'; } else { msgurlbox("您的帳號已停權,請洽管理者", "../index.php"); exit; }
<?php require_once "../../module/config.php"; require_once "../../module/chk_power.php"; if ($_POST["type"] == "edit") { $sql = "UPDATE company SET `com_mail`='" . $_POST["com_mail"] . "' where num=1"; $query = mysql_query($sql) or die("無法修改" . mysql_error()); msgurlbox("更新成功", "email.php?m=" . $_GET['m']); exit; } ob_start(); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php //master.php相關設定 //$meta="<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" >"; //設定IE的相容模式 //$find_tab="Y"; //顯示搜尋頁籤列,製作查詢列表頁時使用 //$body_onload=""; //在body的onload要觸發的js //內文的東西==start $query = "select com_mail from company where num=1"; $result = mysql_query($query); $row = mysql_fetch_array($result); if ($row != "") { ?> <form action="email.php?m=<?php echo $_GET["m"]; ?> " id="form1" name="form1" method="post" onsubmit="return validate()"> <table align="center" border="1" cellpadding="2" cellspacing="0" width="70%" class="table1"> <tr>
} if ($inject_chk) { $i = 0; $Ary =& $_POST; foreach ($Ary as $AryKey[$i] => $a[$i]) { if (inject_check($a[$i])) { msgurlbox("", $web_error_url . "?category=input_error"); exit; } $i++; } $i = 0; $Ary =& $_GET; foreach ($Ary as $AryKey[$i] => $a[$i]) { if (inject_check($a[$i])) { msgurlbox("", $web_error_url . "?category=input_error"); exit; } $i++; } } //語系相關函式======================================================= function build_language_list($obj_id, $onchange, $empty, $select_value) { //建立語系下拉 $lg1 = explode(",", web_language_text()); $lg2 = explode(",", web_language_value()); if ($obj_id == "") { $obj_id = "language"; } if ($onchange != "") {
$todo = "edit"; $run_script = "N"; $onsubmit_script = "return validate2()"; //載入資料 $row_u_id = $row["u_id"]; $row_u_password = $row["u_password"]; $row_u_name = $row["u_name"]; $row_u_power = $row["u_power"]; $row_active = $row["active"]; $row_demo = $row["demo"]; } else { msgurlbox("您的權限不足", "user_list.php?m=" . $_GET["m"]); exit; } } else { msgurlbox("資料不存在", "user_list.php?m=" . $_GET["m"]); exit; } } else { $todo = "add"; $run_script = "Y"; $onsubmit_script = "return validate()"; } ?> <form action="edit.php?show=<?php echo $_GET["page"]; ?> &m=<?php echo $_GET["m"] . $att; ?>
} else { msgurlbox("帳號已停權,請洽管理者!", "index.php"); exit; } } else { msgurlbox("權限未開放,請洽管理者!", "index.php"); exit; } if ($w) { setcookie("root", $ckvalue, time() + $t_diff + 86400); msgurlbox("", "index/index.php"); echo exit; } } } else { msgurlbox("檢查碼輸入錯誤!", "index.php"); exit; } } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>後端管理系統</title> <link href="../css/adminroot.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/JavaScript"> function validate() { if ( document.getElementById('u_id').value == "") { alert("請輸入登入帳號!");
<?php header("Content-Type:text/html; charset=utf-8"); require_once "../../module/config.php"; $Submit = $_POST['Submit']; $id = $_POST['serial']; $delecheckbox = $_POST['delecheckbox']; if (!$delecheckbox) { msgurlbox("未選擇項目!", "index.php"); }
exit; } } else { msgurlbox("已超過登入時間,請重新登入!", "../index.php"); exit; } //檢查是否有權限權頁面 if ($no_check_page != "Y") { $admin_tmp = explode("/", $_SERVER['PHP_SELF']); $am = count($admin_tmp); $admin_sql = $admin_tmp[$am - 2] . "/" . $admin_tmp[$am - 1]; if ($web_root_u_id != "" && $web_root_u_power != "1") { //排除掉未登入後台和最大管理者 if ($web_root_power_list != "") { $sql = "select `num` from `item` where (`num`=" . str_replace(",", " or `num`=", $web_root_power_list) . ") and (`url` like '%" . $admin_sql . "%' or `other_url` like '%" . $admin_sql . "%')"; $result = mysql_query($sql); $row = mysql_fetch_array($result); if ($row == "") { msgurlbox("很抱歉...您無權檢示頁面", "../index.php"); exit; } } else { msgurlbox("很抱歉...您無權檢示頁面", "../index.php"); exit; } } elseif ($web_root_u_id == "") { //未登入 msgurlbox("您尚未登入或閒置時間太久,請重新登入", "../index.php"); exit; } }
頁,總計 <?php echo $total; ?> 個檔案 </div> <?php } ?> </td></tr> </table> <?php if ($maxpage > 0 && $nowpage > $maxpage) { msgurlbox("", "index.php?page=" . $maxpage . "&defpath=" . $_GET["defpath"] . "&rtnobj=" . $_GET["rtnobj"]); exit; } ?> <table width="600" align="center"> <tr><td style="background-image:url('../images/template/line20.gif'); background-repeat:repeat-x; height:20px"></td></tr> </table> <table align="center" bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" width="600"> <tr> <td class="td4a"> <div align="center"> 功能</div> </td> </tr>