예제 #1
0
파일: MatchIP.php 프로젝트: sinfocol/gwf3
 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;
 }
예제 #2
0
파일: PT_Menu.php 프로젝트: sinfocol/gwf3
 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'));
 }