<?php define('SU_RUN', 0); include_once 'config.php'; include_once 'constant.php'; include_once 'dbconn.php'; include_once 'function.php'; if ($_POST['action'] == 'new') { if (!(getUserFlag() & SU_USER_ADDURL)) { ?> { "Code" : 403, "Info" : "No Permission" } <?php return; } $url = processURL($_POST['url']); if ($url === false) { ?> { "Code" : 403, "Info" : "Illegal URL Schema" } <?php return; } if (SU_ID_TYPE == 34) { $idSpace = SU_ID_34; } else { if (SU_ID_TYPE == 36) {
<?php define('SU_RUN', 0); include_once '../config.php'; include_once '../constant.php'; include_once '../dbconn.php'; include_once '../function.php'; define('UID', checkAuth()); if (!(getUserFlag() & SU_USER_OPS)) { header('HTTP/1.1 403 Forbidden'); header('location: ' . SU_BASE_URL); return; } $opLevel = getUserFlag() & SU_USER_OPS; ?> <!DOCTYPE html> <html> <head> <title>URL Shorterner</title> <link rel="stylesheet" href="includes/jquery-ui.css"> <script type="text/javascript" src="includes/jquery-2.0.3.js"></script> <script type="text/javascript" src="includes/jquery-ui.js"></script> </head> <body> <a href="<?php echo SU_BASE_URL; ?> ">Return to main user interface</a> <h1>Select Admin Function</h1> <ul> <?php
$tpl->H = $plt->get_var('mains'); $tpl->mark(); } else { chkLogin(); if (empty($method)) { $method = "index"; } $grouparr = $GLOBALS['MAC_CACHE']['usergroup'][$user['u_group']]; $plt = new Template(MAC_ROOT . "/template/user/html/"); $plt->set_file("main", "user_" . $method . ".html"); $plt->set_file("header", "user_head.html"); $plt->set_file("footer", "user_foot.html"); $plt->parse("head", "header"); $plt->parse("foot", "footer"); $plt->set_var("ug_name", $grouparr['ug_name']); $plt->set_var("u_flag", getUserFlag($user['u_flag'])); $plt->set_var("u_start", $user['u_start'] == 0 ? '' : $user['u_start']); $plt->set_var("u_end", $user['u_end'] == 0 ? '' : $user['u_end']); $col = array("u_id", "u_name", "u_qq", "u_email", "u_phone", "u_question", "u_answer", "u_regtime", "u_loginip", "u_logintime", "u_points", "u_loginnum", "u_extend"); foreach ($col as $a) { $plt->set_var($a, $user[$a]); } unset($col); if ($method == 'popedom') { $plt->set_block("main", "row", "rows"); $typearr = $GLOBALS['MAC_CACHE']['vodtype']; foreach ($typearr as $a) { $plt->set_var('t_name', $a['t_name']); $ck1 = getUserPopedom($a["t_id"], "list") == true ? "ok.png" : "cancel.png"; $ck2 = getUserPopedom($a["t_id"], "vod") == true ? "ok.png" : "cancel.png"; $ck3 = getUserPopedom($a["t_id"], "play") == true ? "ok.png" : "cancel.png";