コード例 #1
0
ファイル: functions.php プロジェクト: GaryHuang-CL/y1910061
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false)
{
    global $link, $game_config, $debug, $user, $planetrow;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($title, $metatags);
    } else {
        $DisplayPage = AdminUserHeader($title, $metatags);
    }
    if ($topnav) {
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    $DisplayPage .= "<center>\n" . $page . "\n</center>\n";
    // Affichage du Debug si necessaire
    if ($user && ($user['authlevel'] == 1 || $user['authlevel'] == 3)) {
        if ($game_config['debug'] == 1) {
            $debug->echo_log();
        }
    }
    $DisplayPage .= StdFooter();
    if (isset($link) && $link) {
        mysql_close($link);
    }
    echo $DisplayPage;
    die;
}
コード例 #2
0
ファイル: GeneralFunctions.php プロジェクト: sonicmaster/RPG
function display($page, $topnav = true, $metatags = '', $AdminPage = false, $menu = true)
{
    global $link, $game_config, $debug, $user, $planetrow, $xgp_root, $phpEx;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($metatags);
    } else {
        $DisplayPage = AdminUserHeader($metatags);
    }
    if ($topnav) {
        include_once $xgp_root . 'includes/functions/ShowTopNavigationBar.' . $phpEx;
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    if ($menu && !$AdminPage) {
        include_once $xgp_root . 'includes/functions/ShowLeftMenu.' . $phpEx;
        $DisplayPage .= ShowLeftMenu($user['authlevel']);
    }
    $DisplayPage .= "\n<center>\n" . $page . "\n</center>\n";
    if (!defined('LOGIN') && $_GET['page'] != 'galaxy') {
        $DisplayPage .= parsetemplate(gettemplate('footer'), $parse);
    } else {
        $DisplayPage .= "</body>\n</html>";
    }
    if ($link) {
        mysql_close($link);
    }
    echo $DisplayPage;
    if ($user['authlevel'] == 3 && $game_config['debug'] == 1) {
        $debug->echo_log();
    }
    die;
}
コード例 #3
0
ファイル: functions.php プロジェクト: sonicmaster/RPG
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false)
{
    global $link, $game_config, $debug, $user, $planetrow;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($title, $metatags);
    } else {
        $DisplayPage = AdminUserHeader($title, $metatags);
    }
    if ($topnav) {
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    $DisplayPage .= "<center>\n" . $page . "\n</center>\n";
    $DisplayPage .= StdFooter();
    if (isset($link)) {
        mysql_close($link);
    }
    echo $DisplayPage;
    // Añadir debug si es admin y tiene el modo debug activado
    if ($user['authlevel'] == 1 || $user['authlevel'] == 3) {
        if ($game_config['debug'] == 1) {
            $debug->echo_log();
        }
    }
    die;
}
コード例 #4
0
ファイル: functions.php プロジェクト: sonicmaster/RPG
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false)
{
    global $link, $game_config, $debug, $user, $planetrow, $Adminerlaubt;
    $Berechtigung = 0;
    if (!empty($user['authlevel'])) {
        $Berechtigung = 1;
    }
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($title, $metatags);
    } else {
        $DisplayPage = AdminUserHeader($title, $metatags);
    }
    if ($topnav) {
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
        if ($user['db_deaktjava'] == 1) {
            $urlaub_del_time = $user['deltime'];
            $del_datum = date("d.m.Y", $urlaub_del_time);
            $del_uhrzeit = date("h:i:s", $urlaub_del_time);
            $DisplayPage .= "<center><table><tr><td align=\"center\" class=\"c\">Account L&ouml;schung aktiviert!<br>Ihr Account wird am {$del_datum} {$del_uhrzeit} gel&ouml;scht!.</td></tr></table></center>.";
        }
    }
    $DisplayPage .= "<center>\n" . $page . "\n</center>\n";
    $DisplayPage .= StdFooter();
    if ($link) {
        mysql_close($link);
    }
    echo $DisplayPage;
    if ($Berechtigung == 1 || $Berechtigung == 3 and in_array($user['id'], $Adminerlaubt)) {
        if ($game_config['debug'] == 1) {
            $debug->echo_log();
        }
    }
    die;
}
コード例 #5
0
ファイル: GeneralFunctions.php プロジェクト: sonicmaster/RPG
function display($page, $topnav = true, $metatags = '', $AdminPage = false, $menu = true)
{
    global $link, $game_config, $debug, $user, $planetrow, $xgp_root, $phpEx;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($metatags);
    } else {
        $DisplayPage = AdminUserHeader($metatags);
    }
    if ($topnav) {
        include_once $xgp_root . 'includes/functions/ShowTopNavigationBar.' . $phpEx;
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    if ($menu && !$AdminPage) {
        include_once $xgp_root . 'includes/functions/ShowLeftMenu.' . $phpEx;
        $DisplayPage .= ShowLeftMenu($user);
    }
    $DisplayPage .= "\n<center>\n" . $page . "\n</center>\n";
    if (!defined('LOGIN') && $_GET['page'] != 'galaxy') {
        $DisplayPage .= parsetemplate(gettemplate('footer'), $parse);
    }
    if ($link) {
        mysql_close($link);
    }
    if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && !$AdminPage) {
        // Convertir a objeto dom
        $DisplayPage = str_get_html($DisplayPage);
        // Modificar div#content
        $content = $DisplayPage->find("div#content", 0);
        // Contenido debug
        $content->innertext .= $debug->echo_log();
    }
    echo $DisplayPage;
    if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && $AdminPage) {
        echo "<center>";
        echo $debug->echo_log();
        echo "</center>";
    }
    die;
}
コード例 #6
0
ファイル: functions.php プロジェクト: sonicmaster/RPG
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false)
{
    global $link, $game_config, $debug, $user, $planetrow;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($title, $metatags);
    } else {
        $DisplayPage = AdminUserHeader($title, $metatags);
    }
    if ($topnav) {
        if ($user['aktywnosc'] == 1) {
            $urlaub_act_time = $user['time_aktyw'];
            $act_datum = date("d.m.Y", $urlaub_act_time);
            $act_uhrzeit = date("H:i:s", $urlaub_act_time);
            $DisplayPage .= "Le mode del dure jusque {$act_datum} {$act_uhrzeit}<br>        Ce n'est qu'apr s cette p riode que vous pouvez changer vos options.";
        }
        if ($user['db_deaktjava'] == 1) {
            $urlaub_del_time = $user['deltime'];
            $del_datum = date("d.m.Y", $urlaub_del_time);
            $del_uhrzeit = date("h:i:s", $urlaub_del_time);
            $DisplayPage .= "Account L&ouml;schung aktiviert!<br>Ihr Account wird am {$del_datum} {$del_uhrzeit} gel&ouml;scht!.";
        }
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    $DisplayPage .= "<center>\n" . $page . "\n</center>\n";
    // Affichage du Debug si necessaire
    if ($user['authlevel'] == 1 || $user['authlevel'] == 3) {
        if ($game_config['debug'] == 1) {
            $debug->echo_log();
        }
    }
    $DisplayPage .= StdFooter();
    if (isset($link)) {
        mysql_close();
    }
    echo $DisplayPage;
    die;
}
コード例 #7
0
ファイル: functions.php プロジェクト: sonicmaster/RPG
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false)
{
    global $link, $game_config, $debug, $user, $planetrow, $lang;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($title, $metatags);
    } else {
        $DisplayPage = AdminUserHeader($title, $metatags);
    }
    if ($topnav) {
        if ($user['aktywnosc'] == 1) {
            $urlaub_act_time = $user['time_aktyw'];
            $act_datum = date("d.m.Y", $urlaub_act_time);
            $act_uhrzeit = date("H:i:s", $urlaub_act_time);
            $DisplayPage .= str_replace('##date##', $act_datum . ' ' . $act_uhrzeit, $lang['VACATION_UNTIL']);
        }
        if ($user['db_deaktjava'] == 1) {
            $urlaub_del_time = $user['deltime'];
            $del_datum = date("d.m.Y", $urlaub_del_time);
            $del_uhrzeit = date("h:i:s", $urlaub_del_time);
            $DisplayPage .= str_replace('##date##', $del_datum . ' ' . $del_uhrzeit, $lang['ACCOUNT_DELETION']);
        }
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    $DisplayPage .= "<center>\n" . $page . "\n</center>\n";
    // Affichage du Debug si necessaire
    if ($user['authlevel'] == 1 || $user['authlevel'] == 3) {
        if ($game_config['debug'] == 1) {
            $debug->echo_log();
        }
    }
    $DisplayPage .= StdFooter();
    if ($link) {
        mysql_close($link);
    }
    echo $DisplayPage;
    die;
}
コード例 #8
0
ファイル: functions.php プロジェクト: sonicmaster/RPG
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false, $Installer = false)
{
    global $link, $game_config, $debug, $user, $planetrow;
    $title = $game_config['game_name'] . " " . $title;
    if ($Installer) {
        $DisplayPage = InstallerHeader($title, $metatags);
    } elseif (!$AdminPage) {
        $DisplayPage = StdUserHeader($title, $metatags);
    } else {
        $DisplayPage = AdminUserHeader($title, $metatags);
    }
    include XNOVA_ROOT_PATH . 'pages/leftmenu.php';
    include XNOVA_ROOT_PATH . 'pages/admin/leftmenu.php';
    if (!defined('LEFTMENU_NICHT_ANZEIGEN')) {
        $DisplayPage .= ShowLeftMenu($user['authlevel']);
    }
    if (defined('ADMINMENU_ANZEIGEN')) {
        $DisplayPage .= ShowAdminMenu($user['authlevel']);
    }
    if (!defined('KEIN_SCROLLDIV')) {
        $DisplayPage .= "<div class=\"scrolldiv\">";
    }
    if ($topnav) {
        if ($user['aktywnosc'] == 1) {
            $urlaub_act_time = $user['time_aktyw'];
            $act_datum = date("d.m.Y", $urlaub_act_time);
            $act_uhrzeit = date("H:i:s", $urlaub_act_time);
            $DisplayPage .= "Le mode del dure jusque {$act_datum} {$act_uhrzeit}<br>\tCe n'est qu'après cette période que vous pouvez changer vos options.";
        }
        if ($user['db_deaktjava'] == 1) {
            $urlaub_del_time = $user['deltime'];
            $del_datum = date("d.m.Y", $urlaub_del_time);
            $del_uhrzeit = date("h:i:s", $urlaub_del_time);
            $DisplayPage .= "Account L&ouml;schung aktiviert!<br>Ihr Account wird am {$del_datum} {$del_uhrzeit} Ge&ouml;scht!.";
        }
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    // Affichage du Debug si necessaire
    if ($user['authlevel'] == 1 || $user['authlevel'] == 3) {
        if ($game_config['debug'] == 1) {
            $debug->echo_log();
        }
    }
    if (isset($link)) {
        mysql_close();
    }
    //$DisplayPage .= "<center>\n". $page ."\n</center>\n";
    $DisplayPage .= "{$page}</div>";
    //<center> muss manuell in jeder tpl gesetzt werden
    $DisplayPage .= StdFooter();
    echo $DisplayPage;
    die;
}
コード例 #9
0
ファイル: GeneralFunctions.php プロジェクト: sonicmaster/RPG
function display($page, $topnav = true, $metatags = '', $AdminPage = false, $menu = true)
{
    global $link, $game_config, $debug, $user, $planetrow, $xgp_root, $phpEx, $ToolTips;
    if (!$AdminPage) {
        $DisplayPage = StdUserHeader($metatags);
    } else {
        $DisplayPage = AdminUserHeader($metatags);
    }
    if ($topnav) {
        include_once $xgp_root . 'includes/functions/ShowTopNavigationBar.' . $phpEx;
        $DisplayPage .= ShowTopNavigationBar($user, $planetrow);
    }
    if ($menu && !$AdminPage) {
        include_once $xgp_root . 'includes/functions/ShowLeftMenu.' . $phpEx;
        $DisplayPage .= ShowLeftMenu($user['authlevel']);
    }
    $DisplayPage .= "\n<center>\n" . $page . "\n</center>\n";
    if (!defined('LOGIN')) {
        $parse['tooltips'] = $ToolTips;
    }
    $DisplayPage .= parsetemplate(gettemplate('footer'), $parse);
    if ($link) {
        mysql_close($link);
    }
    // Convertir a objeto dom
    $DisplayPage = str_get_html($DisplayPage);
    // Modificar div#content
    $content = $DisplayPage->find("div#content", 0);
    if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && !$AdminPage) {
        $content->innertext .= $debug->echo_log();
    }
    if (PHPIDS_IMPACT >= 10) {
        $content->innertext = "Se han detectado datos posiblemente malignos. Han sido filtrados por tu seguridad.<br/>" . $content->innertext;
    }
    if ((!defined("LOGIN") or LOGIN == false) and !$AdminPage) {
        // Contenido debug
        $content->innertext = ADVERTISEMENT . $content->innertext;
        $content->innertext .= '<div style="margin-top:15px;width:100%;text-align:center;">&copy; 2008-' . date("Y") . ' XG Proyect <br>Under GNU General Public License</div>';
    }
    echo $DisplayPage;
    if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && $AdminPage) {
        echo "<center>";
        echo $debug->echo_log();
        echo "</center>";
    }
    die;
}