Example #1
0
 public function __construct()
 {
     //$this->Db = new Db;
     $this->Validation = new \Debugteam\Baselib\Validation();
     parent::__construct();
     $this->generate_content();
 }
Example #2
0
            break;
        }
    }
    if ($g_parm < 1 || !$isOwnGameAcc) {
        $g_parm = -1;
    }
}
$page = null;
PageRegistry::registerAllPages();
if ($g_parm === null || $g_parm !== -1) {
    if (isset($_GET['p'])) {
        // "p" parameter is passed, try to find said page
        $page = PageRegistry::getPageByCodename($_GET['p']);
    } else {
        // Default case: "p" unspecified, show overview
        $page = PageRegistry::getPageByCodename('overview');
    }
}
if ($page !== null) {
    $page->init();
}
HTTemplate::putDocHeader($itzr->f('mff.ppanel.titleFmt', $page === null ? "[invalid page]" : $page->getLocalizedName()), 'panelPage');
?>
<nav>
<div class="bg"></div>
<div>
<div class="right text-right small-info">
PPanel v<?php 
echo PPanel::getVersionString();
echo '<br><em>' . $sess->getAccountRandId() . '</em><br>';
?>