public function onStartup() { require_once 'PT.php'; require_once 'PT_Menu.php'; self::$instance = $this; $this->onLoadLanguage(); // GWF_Website::setPageTitlePre('PoolTool'); GWF_Website::setMetaTags($this->lang('mt_about')); GWF_Website::setMetaDescr($this->lang('md_about')); }
public function validate_hour_b(Module_PoolTool $m, $arg) { $_POST['hour_b'] = $arg = (int) $arg; if ($arg < 0 || $arg > 23) { return $m->lang('err_hour_b'); } return false; }
private static function displayMenuRegister(Module_PoolTool $module) { $sel = Common::getGet('mo') === 'Register'; $sel = $sel ? ' class="menu_sel"' : ''; $href = GWF_WEB_ROOT . 'register'; return sprintf('<a %shref="%s">%s</a>', $sel, $href, $module->lang('menu_register')); }