function gravaSetlist() { if ($_REQUEST["id_show"] != "") { $nshow = new show(); $nshow->setId($_REQUEST["id_show"]); $nshow->atualizaSetlist($_REQUEST); $this->detalha($nshow->getId()); } else { $this->main(); } }
function pageAdminNotifications() { $page = new page(); $core = core::getInstance(); if (!$page->createHomepage()) { show::msg($core->lang("No homepage defined"), "error"); } }
function pluginsmanagerAdminNotifications() { $core = core::getInstance(); $pluginsManager = pluginsManager::getInstance(); $list = ''; foreach ($pluginsManager->getPlugins() as $plugin) { if (!$pluginsManager->isActivePlugin($plugin->getName())) { $list .= $plugin->getInfoVal('name') . ', '; } } if ($list != '') { show::msg($core->lang("Plugins are inactive") . ' (' . trim($list, ', ') . ')', "info"); } }
" href="<?php show::siteUrl(); ?> "><?php show::siteName(); ?> </a></p> </div> <div id="banner"></div> </div> <div id="body"> <div id="sidebar"> <?php eval($core->callHook('sidebar')); ?> <ul id="navigation"> <?php show::mainNavigation(); ?> </ul> <?php eval($core->callHook('endSidebar')); ?> </div> <div id="content" class="<?php show::pluginId(); ?> "> <?php show::mainTitle();
public static function connect() { mysql_connect(DB_HOST, DB_USER, DB_PASS); mysql_select_db(DB_NAME); show::Event("DB", "Connected to " . DB_NAME . " as " . DB_USER . "@" . DB_HOST, 1); }
<?php defined('ROOT') or exit('No direct script access allowed'); ?> <br /> <form method="post" action="index.php?p=pluginsmanager&action=save" id="pluginsmanagerForm"> <?php show::adminTokenField(); ?> <table style="width:100%"> <thead> <tr> <th style="width:30%"><?php echo $core->lang("Name"); ?> </th> <th style="width:50%"><?php echo $core->lang("Description"); ?> </th> <th style="width:3%"><?php echo $core->lang("Version"); ?> </th> <th style="width:3%"><?php echo $core->lang("Priority"); ?> </th> <th style="width:4%"><?php echo $core->lang("Enable");
<?php defined('ROOT') or exit('No direct script access allowed'); ?> <!DOCTYPE html> <html lang="<?php show::siteLang(); ?> "> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>404</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" /> <style type="text/css"> body{ font-family: 'Arial', sans-serif; font-size: 18px; color: #333; background: #fff; text-align: center; padding: 60px; } a{ color: #333; text-decoration: none; } </style> </head> <body> <p><?php echo $this->lang("The requested page does not exist.");
</div> <?php } ?> <!-- NOTICATIONS --> <div id="notifs" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog"> <h2 id="modalTitle"><?php echo $core->lang('Notifications center'); ?> </h2> <?php foreach ($core->check() as $k => $v) { ?> <?php echo show::msg($v['msg'], $v['type']); ?> <?php } ?> <?php eval($core->callHook('adminNotifications')); ?> <a class="close-reveal-modal" aria-label="Close">×</a> </div> <!-- /NOTICATIONS --> </div> <!-- /large-9 medium-8 columns --> </div> <!-- /row --> </section>
</div> <!-- /sidebar --> </div> <!-- /hide-for-small --> </div> <!-- /large-3 medium-4 columns --> <!-- CONTENU --> <div class="large-9 medium-8 columns"> <br><br> <h2><?php echo $core->lang($pageTitle); ?> </h2> <hr><br><br> <?php show::msg($msg, $msgType); // Affichage de toutes les Notifications ?> <?php if ($core->detectAdminMode() == 'plugin' && $runPlugin->useAdminTabs()) { ?> <dl class="radius tabs" data-tab> <?php foreach ($runPlugin->getAdminTabs() as $k => $v) { ?> <dd><a href="#tab-<?php echo $k; ?> "><?php echo $core->lang($v);
<?php defined('ROOT') or exit('No direct script access allowed'); ?> <br /> <?php show::msg($core->lang("Do not change advanced settings if you're not on what you're doing."), "info"); ?> <div class="row"> <div class="large-6 columns"> <input <?php if ($core->getConfigVal('debug')) { ?> checked<?php } ?> type="checkbox" name="debug" /> <label for="debug"><?php echo $core->lang("Debug Mod"); ?> </label> </div> <div class="large-6 columns"> <input id="urlRewriting" type="checkbox" onclick="updateHtaccess('<?php echo $rewriteBase; ?> ');" <?php if ($core->getConfigVal('urlRewriting')) { ?> checked<?php } ?>
<?php defined('ROOT') or exit('No direct script access allowed'); ?> </div> </div> <div id="footer"> <p> <?php echo $core->lang("<a target='_blank' href='http://99ko.org'>Just using 99ko</a>"); ?> - <?php echo $core->lang("Theme"); ?> <?php show::theme(); ?> - <a rel="nofollow" href="<?php echo ADMIN_PATH; ?> "><?php echo $core->lang('Administration'); ?> </a> </p> </div> </div> <?php eval($core->callHook('endFrontBody')); ?> </body>
#!/usr/bin/php <?php error_reporting(E_ALL); ini_set("memory_limit", "1024M"); require_once 'config.inc.php'; require_once 'heatmap.class.php'; $heat = new Heatmap(); $heat->init(); $mapinfo = Env::get('mapinfo'); //var_dump($mapinfo); foreach ($mapinfo as $game => $gameconf) { foreach ($gameconf as $map => $data) { $heat->generate($game, $map, "kill"); } } show::Event("CREATE", "Heatmap creation done.", 1);