$action = check($_GET['action']); } else { $action = ""; } if (is_admin(array(101, 102, 103, 105))) { echo '<img src="../images/img/menu.gif" alt="image" /> <b>Панель управления</b> (' . MOTOR_VERSION . ')<br /><br />'; ############################################################################################ ## Главная страница ## ############################################################################################ if ($action == "") { if (stats_version() > MOTOR_VERSION) { echo '<img src="../images/img/custom.gif" alt="image" /> <b><a href="http://visavi.net/wap-motor/member.php"><span style="color:#ff0000">Доступна новая версия ' . stats_version() . '</span></a></b><br /><br />'; } echo '<img src="../images/img/act.gif" alt="image" /> <a href="adminchat.php?' . SID . '">Админ-чат</a> (' . stats(4) . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="book.php?' . SID . '">Управление гостевой</a> (' . stats(0) . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="chat.php?' . SID . '">Управление мини-чатом</a> (' . stats(8) . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="forum.php?' . SID . '">Управление форумом</a> (' . stats_forum() . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="gallery.php?' . SID . '">Управление галереей</a> (' . stats_gallery() . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="board.php?' . SID . '">Управление объявлениями</a> (' . stats_board() . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="reklama.php?' . SID . '">Управление рекламой</a><br />'; if (is_admin(array(101, 102, 103))) { echo '--------------------------<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="zaban.php?' . SID . '">Бан / Разбан</a><br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="banlist.php?' . SID . '">Список забаненых</a> (' . stats_banned() . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="adminlist.php?' . SID . '">Список старших</a> (' . stats_admins() . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="reglist.php?' . SID . '">Список ожидающих</a> (' . stats_reglist() . ')<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="antimat.php?' . SID . '">Управление антиматом</a> (' . stats_antimat() . ')<br />'; } if (is_admin(array(101, 102))) { echo '--------------------------<br />'; echo '<img src="../images/img/act.gif" alt="image" /> <a href="headlines.php?' . SID . '">Управление заголовками</a> (' . stats_headlines() . ')<br />';
<input type="hidden" name="DIR" value="<?php echo htmlspecialchars($_SESSION['DIR']); ?> "> <p><b>other: </b> <br><select name="act"> <optgroup label="usual operations"> <option value="upload">upload files</option> <option value="mkfile">create file</option> <option value="mkdir">create directory</option> <option value="terminal">open terminal</option> </optgroup> <optgroup label="update"> <? if(IS_DEVELOPER) echo '<option value="release">release new version</option>'; else echo ' <option value="download-new">install new version</option>'; ?> </optgroup> </select> <input type="submit" name="other" value="go"> </form> </p> </td> </tr> </table> </tr> </table> <? } ?> <?stats()?> </body> </html>
function plug_hadopi() { /*if(!$_SESSION['xmlarray'])$_SESSION['xmlarray']=xml2array(); $rss=$_SESSION['xmlarray'];*/ $keys = array('date_courrier', 'type_courrier', 'fai', 'date_collecteIP', 'musique', 'film', 'jeuxvideo', 'codepostal'); $r = xml2array($keys); //p($rss); $ret .= stats($keys, $r); //array_unshift($r,$keys);//add_table_index $ret=make_table_b($r); return $ret; }
$error = $std / sqrt(count($array)); echo "mean time: {$mean} error: +-{$error}"; } echo '<b>Benchmarking vfs::ls</b><br>'; $times = array(); $phpgw->vfs->cd(); for ($i = 0; $i < 20; $i++) { $phpgw->vfs->dav_client->cached_props = array(); $time1 = getmicrotime(); $result = $phpgw->vfs->ls(array('string' => '')); $time = getmicrotime() - $time1; $times[] = $time; echo "run {$i}: {$time}<br>"; //sleep(1); flush(); } stats($times); echo '<br><b>Benchmarking dav_client::get_properties</b><br>'; $times = array(); $phpgw->vfs->cd(); for ($i = 0; $i < 20; $i++) { $phpgw->vfs->dav_client->cached_props = array(); $time1 = getmicrotime(); $result = $phpgw->vfs->dav_client->get_properties('/home/sim'); $time = getmicrotime() - $time1; $times[] = $time; echo "run {$i}: {$time}<br>"; flush(); } stats($times);
dork(); } if (trim($line) == 'cmd') { cmd(); } if (trim($line) == 'massurl') { massurl(); } if (trim($line) == 'brutefpds') { brutefpds(); } if (trim($line) == 'clear') { clear(); } if (trim($line) == 'stat') { stats(); } if (trim($line) == 'show') { show(); } if (trim($line) == 'top') { top(); } if (trim($line) == 'search') { search(); } if (trim($line) == 'multibruter') { multibruter(); } if (trim($line) == 'geturl') { geturl();
return $res; }); $app->get('/search', function ($req, $res) { $q = $_GET['query']; $es = es(); $props = []; $params = ['index' => INDEX, 'type' => 'analysis', 'body' => ['size' => 9999, '_source' => ['scientificNameWithoutAuthorship', 'scientificName', 'scientificNameAuthorship', 'synonyms', 'family'], 'query' => ['query_string' => ['analyze_wildcard' => false, 'query' => $q]]]]; $result = $es->search($params); $found = []; foreach ($result['hits']['hits'] as $hit) { $found[] = $hit['_source']; } usort($found, function ($a, $b) { return strcmp($a['scientificName'], $b['scientificName']); }); $props['stats'] = stats($q); $props['found'] = $found; $props['query'] = $q; $res->getBody()->write(view('search', $props)); return $res; }); $app->get('/lang/{lang}', function ($req, $res) { $_SESSION['lang'] = $req->getAttribute('lang'); header('Location: ' . $_SERVER['HTTP_REFERER']); exit; }); $app->add(function ($req, $res, $next) { // CORS if (isset($_SERVER['HTTP_ORIGIN'])) { header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Headers: X-Requested-With');
<?php function stats(array $values) { $results = ["min" => min($values), "max" => max($values), "average" => array_sum($values) / count($values)]; return $results; } $values = [5, 7, 8]; $results = stats($values); var_dump($results);
function footer() { print "\n</div>" . "\n<div class = \"footer\">" . "\n<div id=\"sinistra\" >" . "\nNumero Topic Totali: " . stats(1) . "\n<br /> " . "\nNumero Messaggi: " . stats(3) . "\n</div>" . "\n<div id=\"destra\">" . "\nNumero Iscritti: " . stats(2) . "\n</div>" . "\n<div id=\"powered\">" . "\nPowered by <b><a href = \"http://0xproject.netsons.org/#0xBB\">0xBB</a> v " . VERSION . "</b>" . "\n</div>" . "\n"; }
function admin_groupings() { if (s('enable_extras') == 'YES') { if (stats('extras', '') > 0) { $add = ' - <a href="admin_groupings/" title="' . l('add_new') . '">' . l('add_new') . '</a>'; } else { $add = ''; } echo '<div class="adminpanel"><fieldset><legend>' . l('groupings') . $add . '</legend>'; $result = mysql_query('SELECT id,name,description FROM ' . _PRE . 'extras' . ' ORDER BY id ASC'); if (!$result || !mysql_num_rows($result)) { echo '<p>' . l('group_not_exist') . '</p>'; } else { while ($r = mysql_fetch_array($result)) { echo '<p><strong>' . $r['name'] . '</strong> ' . l('divider') . '<a href="' . _SITE . '?action=admin_groupings&id=' . $r['id'] . '" title="' . $r['description'] . '">' . l('edit') . '</a></p>'; } } echo '</fieldset></div>'; } }
$f=$fz[0]; } switch(@$_REQUEST['act']) { case 'filelist': $res = read_directory(); $first_files = explode("/", substr($res['res'], 0, 20000)); if (count($first_files)) array_pop($first_files); $_RESULT = array( 'res' => $res ? $res['res'] : false, 'count' => $res ? $res['cnt'] : false, 'fileinfo' => get_files_info($first_files), 'DIR' => $_SESSION['DIR'], 'stats' => stats(false), 'info' => get_info($_SESSION['DIR']), 'type' => (!empty($req['type']) && empty($drives) ? $req['type'] : (empty($drives) ? tDIR : tMYCOMP)), 'up' => $res ? $res['up'] : false, 'reason' => reason(), 'error' => !$res, ); break; case 'files-info': $_RESULT = array( 'info' => get_files_info($_REQUEST['files']), ); break; case 'info': $_RESULT = get_info($f,$_REQUEST); break;
include 'topSecretShizzle.php'; $opts = array('http' => array('method' => "GET", 'header' => array("Accept: application/json", "Authorization: Bearer " . $api_key))); $url = $url . '/' . rawurlencode($tag); $contents = file_get_contents($url, null, stream_context_create($opts)); $jsonArray = json_decode($contents, true); if (!$contents) { echo "Shit is kapot G"; ?> </br><img src="image/shitiskapotG.jpg" alt="Shit is kapot G"><?php } else { echo " "; ?> <div id = "log"> <?php donationCount($jsonArray); donationRatio($jsonArray); requestCount($jsonArray); DonMemberCount($jsonArray); FakeEmptyTable(); //Empty table to fix the 'created by' not in correct place bug stats($jsonArray); } ?> </div> <P> Created by Rizzle & Justin © 2015 - <?php echo date("Y"); ?> </p> </body> </html>
<?php echo s('logged_in') ? _href('/users', 'Users') . ' | ' . _href('/actions', 'Actions') . ' | ' . _href('/logout', 'Logout') . '<hr/>' : ''; ?> <? if (error()) echo '<div class="error">' . error() . '</div>'; if (success()) echo '<div class="success">' . success() . '</div>'; s('error', false); s('success', false); } function bottom() { spacer(); ?> <hr /> <?php echo _blue(stats('authorized')) . ' unlocks, ' . _blue(stats('authorized', 'today')) . ' of which were today.'; ?> <hr /> Created by <a href="mailto:windowasher@gmail.com">Rishi Ishairzay</a> <hr /> </div> </div> </body> </html> <? } if ($page && file_exists('src/pages/' . $page . '.php')) { include 'src/pages/' . $page . '.php';
$times = 90000; print "{$f}\n"; ksort($a); foreach ($a as $k => $v) { print "{$k}: {$v}: " . sprintf('%0.3f', $v / $times) . "\n"; } } $a = array(); $times = 90000; for ($i = 0; $i < $times; $i++) { $p = range(1, 4); shuffle($p); $s = join('', $p); if (empty($a[$s])) { $a[$s] = 0; } $a[$s]++; } stats('shuffle', $a); $a = array(); $times = 90000; for ($i = 0; $i < $times; $i++) { $p = '1234'; $s = str_shuffle($p); if (empty($a[$s])) { $a[$s] = 0; } $a[$s]++; } stats('str_shuffle', $a);
<?php require "core/init.php"; if (isLoggedIn()) { if ($result = stats()) { ?> <div class="topics-pane" style="margin-left:0px;"> <div class="title"> <div class="content"> <div class="info" style="@media (max-width:766px){margin-left:20px;}"><br><br> <img class="hidden-xs" style="float:left;margin-left:20px" src="<?php echo avatar . $result->avatar; ?> "> <a style="padding-left:20px;" class="user" href="topics.php?user=<?php echo urlFormat($result->id); ?> "><?php echo $result->name . '<br>'; ?> </a> <a style="padding-left:20px;" class="user" href="topics.php?user=<?php echo urlFormat($result->id); ?> "><?php echo $result->result . ' Upvotes'; ?> </a> </div> </div>
unset($level); $output .= ' </tr> </table> <br /> <hr/> </td> </tr> <tr> <td>'; // LEVEL END makebutton(lang("stat", "reset"), 'stat.php', 720); $output .= ' </td> </tr> </table> </div> <br />'; } //############################################################################# // MAIN //############################################################################# //$err = (isset($_GET["error"])) ? $_GET["error"] : NULL; //unset($err); $output .= ' <div class="bubble">'; $action = isset($_GET["action"]) ? $_GET["action"] : NULL; stats($action); unset($action); unset($action_permission); require_once "footer.php";
echo $ip; ?> ?port=<?php echo $port; ?> ">>> Connect!</a></h3> </td></tr></table> <?php if (!isset($error[0])) { echo useron($info, $sinfo, $new); } ?> <?php if (!isset($error[0])) { echo ts_server($sinfo, $info, $new); } ?> <?php echo tree('0', '', $clist, $error, $sinfo, $plist, $info, $new); if (!isset($error[0])) { echo legend($info, $new); echo stats($info, $sinfo, $new); echo tm_client($info, $plist, $new); echo showlink($info, $new); } echo "</td></tr></table>"; closetable(); require_once THEMES . "templates/footer.php";
</tr> <tr> <td>'; // LEVEL END makebutton($lang_stat['reset'], 'stat.php', 720); $output .= ' </td> </tr> </table> </center> </div> <br /> </center>'; } else { error($lang_global['err_no_result']); } } //############################################################################# // MAIN //############################################################################# //$err = (isset($_GET['error'])) ? $_GET['error'] : NULL; //unset($err); $lang_index = lang_index(); $lang_stat = lang_stat(); $action = isset($_GET['action']) ? $_GET['action'] : NULL; stats($action, $sqlr, $sqlc); unset($action); unset($action_permission); unset($lang_index); unset($lang_stat); require_once 'footer.php';
<?php if (!$_SESSION) { session_start(); } if (empty($_SESSION['loggedin'])) { header("Location: login.php"); exit(0); } require_once "config.inc.php"; $smarty->assign("twmap_gen_version", $twmap_gen_version); list($total_maps, $total_size, $all_users, $active_users, $created) = stats(); $smarty->assign("size", humanreadable($total_size)); $smarty->assign("all_users", $all_users); $smarty->assign("created", $created); $smarty->assign("total_maps", $total_maps); $smarty->assign("active_users", $active_users); $smarty->assign("avg_maps", floor($total_maps / $active_users)); $smarty->display("about.html");