function GetPage($transfer) { $data = ' <div id="dialog-form"> <fieldset> <legend>ინფორმაცია</legend> <table class="dialog-form-table" border="1"> <tr> <td style="width: 170px;"><label for="op_date">ოპერაციის თარიღი</label></td> <td> <span id="op_date" style="font-weight:bold; font-size:15px;">' . GetTransferDate($transfer) . '</span> </td> </tr> ' . GetInfo($transfer) . ' </table> <!-- ID --> <input type="hidden" id="identity_id" value="' . $transfer . '" /> </fieldset> </div> '; return $data; }
function Register($data) { $data['password'] = md5($data['password']); $data['create_at'] = now(); $data['update_at'] = now(); $data['create_ip'] = ip(); $userid = db_new("user", $data); if ($userid) { $userinfo = GetInfo($userid); $token = Crypt3Des::encrypt(json_encode($userinfo), $GLOBALS['keys']); return ErrorCode::CODE("1002", array("token" => urlencode($token))); } else { return ErrorCode::CODE("1003"); } }
$winnerteam = $_POST['winnerteam']; $oldwinnerteam = $_POST['oldwinnerteam']; $loserteam = $_POST['loserteam']; $oldloserteam = $_POST['oldloserteam']; $teamBonusOld = $_POST['teamBonus']; $winpoints = $_POST['winpoints']; if (strlen($msg) > 0) { $msg .= $back; } else { $gameId = $_POST['gameId']; if (strcmp(getGamesFieldForVersion($version), getGamesFieldForVersion($oldversion)) != 0) { $msg .= "<p>Changing game version is unsupported</p>"; } else { $adminname = GetInfo($idcontrol,'admin_username'); $comment = mysql_real_escape_string($comment); $sql = "UPDATE $gamestable set winnerresult = '$winnergoals', ". "loserresult = '$losergoals', ". "winnerteam = '$winnerteam', loserteam = '$loserteam', ". "fairness = '$fairness', ". "host = '$host', ". "comment = '$comment', ". "deleteReason = '$deleteReason', ". "deletedBy = '$adminname', ". "version = '$version' ". "WHERE game_id = '$gameId'"; $result = mysql_query($sql); $teamBonusNewArray = getTeamBonus($winnerteam, $loserteam, $draw, $winpoints-$teamBonusOld); $teamBonusNew = $teamBonusNewArray['bonusWinner'];
// this displays a form to edit a game. header("Cache-Control: no-cache"); header("Pragma: no-cache"); $page = "info"; $subpage = "cards"; require './variables.php'; require './variablesdb.php'; require './functions.php'; require './top.php'; $back = "<p><a href='javascript:history.back()'>go back</a></p>"; $index = "<p><a href='playerStatus.php'>go to index</a></p>"; $banthread = ""; $username = GetInfo($idcontrol, 'admin_username'); $password = GetInfo($idcontrol, 'admin_password'); $admin_full = GetInfo($idcontrol, 'admin_full'); $admin_player = GetInfo($idcontrol, 'admin_player'); $sql = "SELECT * FROM {$admintable} WHERE name = '{$username}' AND password = '******'"; $result = mysql_query($sql, $db); $number = mysql_num_rows($result); $msg = ""; $selectId = ""; if (!empty($_GET['id'])) { $selectId = mysql_real_escape_string($_GET['id']); } elseif (!empty($_POST['id'])) { $selectId = mysql_real_escape_string($_POST['id']); } ?> <?php echo getOuterBoxTop($subNavText . getRaquo() . getSubNavigation($subpage, null), ""); ?>
// the 1-6th place will get an award image defined in /variables.php // when you start a new season, add a new row in the weblm_seasons table for correct display of // season start/end dates. // you cannot properly remove games from old seasons, so check if all games are ok before starting a // new season! header("Cache-Control: no-cache"); header("Pragma: no-cache"); $page = "newSeason"; require './../variables.php'; require './../variablesdb.php'; require './../functions.php'; require './../top.php'; $username = GetInfo($idcontrol, 'admin_username'); $password = GetInfo($idcontrol, 'admin_password'); $admin_full = GetInfo($idcontrol, 'admin_full'); $admin_season = GetInfo($idcontrol, 'admin_season'); $sql = "SELECT * FROM {$admintable} WHERE name = '{$username}' AND password = '******'"; $result = mysql_query($sql, $db); $number = mysql_num_rows($result); $season = 13; ?> <?php echo getOuterBoxTop($leaguename . " <span class='grey-small'>»</span> Update", ""); ?> <? if (($number == "1") && (($admin_full == 'yes') || ($admin_season == 'yes'))) {
function BuildPostParamPage() { global $hasusermenu; $phpvars = GetInfo(true); post_params($phpvars); serverinfobox($phpvars); servercommandbox($phpvars); if ($hasusermenu) { usermenu($phpvars); } echo '<div style="display: none" id="updateinterval">0</div>'; echo '<div style="display: none" id="downloadlimit">' . $phpvars['status']['DownloadLimit'] / 1024 . '</div>'; if (isset($_COOKIE['upload_status'])) { echo '<div style="display: none" id="uploadstatushidden">' . $_COOKIE['upload_status'] . '</div>'; } if (isset($_COOKIE['newzbin_status'])) { echo '<div style="display: none" id="newzbinstatushidden">' . $_COOKIE['newzbin_status'] . '</div>'; } }
echo "NZBGetWeb: Could not find required extension or library. Consult README-file for installation instructions."; exit(-1); } if (count($_GET) > 0) { Redirect($LoginRedirectPage); } $wantstart = false; $connected = false; $phpvars = null; if (isset($_COOKIE['c_start']) && $ServerStartCommand != '') { SetCookie("c_start", "", time() - 10000); // delete cookie $wantstart = true; } if (!$wantstart) { $phpvars = GetInfo($groupmode); $connected = !IsConnectError($phpvars); } function add_category_combo($category, $id, $paused) { global $Categories, $MiniJavaScript; if ($category == '' && count($Categories) == 0) { return; } $catfound = false; if ($MiniJavaScript) { echo '<select class="' . ($paused ? 'pausedcategorycombo' : 'categorycombo') . '" onchange="location=\'?action=groupsetcategory&edittext=\' + this.options[this.selectedIndex].text + \'&offset=-1&id=' . $id . '\'">'; foreach ($Categories as $cat) { if ($cat == $category) { echo "<option selected='selected'>{$cat}</option>"; $catfound = true;
} $res = DelFriend($res, $req->data); if ($res === false) { SendDataAndDie(666, "db"); } SendDataAndDie(200, ""); } else { if ($cmd == "info") { if (!isset($req->phpsesid)) { SendDataAndDie(301, ""); } $res = GetUID($req->phpsesid); if ($res === false) { SendDataAndDie(666, "user id"); } $res = GetInfo($res); if ($res === false) { SendDataAndDie(666, "db"); } SendDataAndDie(200, $res); } else { SendDataAndDie(100, ""); } } } } } } } } }
<?php global $plg, $page; require_once '../session.php'; require_once '../db.php'; //------------------------------------------------ $funct = ""; switch (@$plg) { case 'rasp': require_once 'f_rasp_list.php'; $funct .= GetRasp(); break; case 'person': require_once 'f_person_list.php'; $funct .= GetPersonList(); break; case 'qa': require_once 'f_board_list.php'; $funct .= GetBoard(@$page); break; default: $plg = 'info'; require_once 'f_info.php'; $funct .= GetInfo(); break; } require_once 'header.php'; echo $funct; require_once 'footer.php';
} else { $view = 1; $av = $str1; $page = 1; } } } else { if (preg_match("/^[1-9][0-9]*\$/", $_GET['q'])) { $view = 2; } else { $view = 0; } } } if ($view == 1) { $info = GetInfo($av, $page); if (empty($info['title'])) { echo '<div class="title"><span class="indextitle1">搜索</span><span class="indextitle2"> 您输入的AV号不存在,也许您想进行搜索…</span></div><br/> <form name="input" action="/api/do.php" method="get"> <input name="act" value="search" type="hidden"> <input name="word" class="inputbar" style="width:700px" type="text" value="' . mb_convert_encoding($_GET['q'], 'UTF-8', 'auto') . '"><select name="o"><option value="default">综合排序</option><option value="stow">收藏数</option><option value="scores">评论数</option><option value="damku">弹幕数</option><option value="click">点击量</option><option value="pubdate">发布日期</option><option value="senddate">修改日期</option><option value="ranklevel">相关度</option><option value="id">投稿编号</option></select><select name="n"><option value="5">5个/页</option><option value="10" selected="selected">10个/页</option><option value="20">20个/页</option><option value="30">30个/页</option><option value="50">50个/页</option></select><input name="p" value="1" type="hidden"><button class="inputbutton" type="submit"><span class="inputbutton">搜索</span></button> </form>'; } else { echo '<div class="title"><span class="indextitle1">下载/播放</span><span class="indextitle2"> 成功检测到AV号,请问您需要做什么呢…</span></div><br/> <style type="text/css"> div.infocontent{color:#FFF;text-align:center;font-family:"微软雅黑";font-size:18px} div.url_go{margin:4px;padding:4px;color:#FFFFFF;font-family:"微软雅黑";font-size:20px;font-weight:bold;background-color:#006EDC;border-style:solid;border-width:2px;border-color:#999;display:inline-block} div.url_back{margin:4px;padding:4px;color:#FFFFFF;font-family:"微软雅黑";font-size:16px;font-weight:bold;background-color:#666666;display:inline-block} </style> <div class="infocontent"> <div style="font-size:20px;font-weight:bold">' . $info['title'] . '</div>UP主:' . $info['author'] . '<br/>' . $info['created_at'] . '<br/>' . $info['description'] . '<hr/><a href="/api/do.php?act=info&av=' . $av . '&page=' . $page . '" title="使用BiliPlus下载哔哩哔哩投稿视频"><div class="url_go">使用BiliPlus下载</div></a><a href="/api/do.php?act=play&av=' . $av . '&page=' . $page . '&player=custom" title="使用BiliPlus播放哔哩哔哩投稿视频"><div class="url_go">使用BiliPlus播放</div></a><br/><a href="javascript:document.location.reload()" title="返回"><div class="url_back">← 返回</div></a>
$formPasswd = ''; $showMessage = false; $inactive = false; $inactiveAndBanned = false; $loggedIn = false; $loggingOut = false; $statemsg = ''; $versionsImages = ''; $msg = ''; $nameClass = ''; $approved = ''; $row = ""; $donator = false; $timestamp_expire = time() + 14 * 24 * 60 * 60; $visitorIP = Get_ip(); $cookieSessionId = GetInfo($idcontrol, 'SessionId'); $cookie_name = ""; if (!empty($_GET['key'])) { $cookieSessionId = mysql_real_escape_string($_GET['key']); setcookie('SessionId', $cookieSessionId, $timestamp_expire); } if (!empty($_POST['form_name'])) { $formName = mysql_real_escape_string($_POST['form_name']); } if (!empty($_POST['form_passwd'])) { $formPasswd = mysql_real_escape_string($_POST['form_passwd']); } if (isset($_GET['action'])) { if ($_GET['action'] == 'login') { if (empty($formName)) { $statemsg = "Empty username";
$rpcuser = ""; // rpc user $rpcpass = ""; // rpc pass $rpcip = "localhost"; // rpc host $rpcport = 9333; // rpc daemon port $blackcoind = new jsonRPCClient("http://{$rpcuser}:{$rpcpass}@{$rpcip}:{$rpcport}"); $databaseUser = ""; $databasePass = ""; $databaseName = ""; $dbTableName = ""; Db::Connect("mysql:dbname={$databaseName};host=localhost", $databaseUser, $databasePass); if ($debug) { echo "<pre>" . print_r(GetInfo(), true) . "</pre>"; } echo "Faucet Address: " . GetAddress() . ".<br>"; echo "Faucet Balance: " . GetBalance() . ".<br><br>"; $continue = true; if (isset($_REQUEST["address"])) { if ($_SESSION["my_captcha"] == $_REQUEST["captcha"]) { $address = $_REQUEST["address"]; if (strlen($address) == 34) { $result = GetFromFaucet($address); echo "The faucet has succesfully dispensed {$result["amount"]} to {$address}. <br><br>For reference see transaction: {$result["txid"]}"; $continue = false; } else { echo "You have entered an incorrect address"; } } else {
<?php // this will show links in the admin panel menu bar depending on the admin permissions $isFullAdmin = is_null($admin_full) ? GetInfo($idcontrol, 'admin_full') == 'yes' : $admin_full == 'yes'; $isNewsAdmin = is_null($admin_news) ? GetInfo($idcontrol, 'admin_news') == 'yes' : $admin_news == 'yes'; $isApproveAdmin = is_null($admin_approve) ? GetInfo($idcontrol, 'admin_approve') == 'yes' : $admin_approve == 'yes'; $isSeasonAdmin = is_null($admin_season) ? GetInfo($idcontrol, 'admin_season') == 'yes' : $admin_season == 'yes'; $isPlayerAdmin = is_null($admin_player) ? GetInfo($idcontrol, 'admin_player') == 'yes' : $admin_player == 'yes'; ?> <a href="<?php echo "{$directory}"; ?> /Admin/index.php"><?php if ($page == "index") { echo "<font class='menu-active'>"; } ?> Admin Index<?php if ($page == "index") { echo "</font>"; } ?> </a> <? if ($isFullAdmin || $isApproveAdmin) { ?> <img src="<?php echo $directory; ?> /style/MorpheusX/images/darkblue/buttons_spacer.gif" /> <a href="<?php echo "{$directory}";