コード例 #1
0
ファイル: Update.php プロジェクト: joksnet/php-old
 public function __construct()
 {
     global $config;
     if (substr(Web::getIP(), 0, strlen($config['internal'])) == $config['internal']) {
         $this->viewOnly = false;
     }
     $this->userId = Cookies::get('uid');
     $this->logId = $this->log();
     switch ($_GET['w']) {
         case 'time':
             $this->return = $this->time;
             break;
         case 'resume':
             $this->return = $this->work();
             break;
         default:
             $this->return = $this->logId;
             break;
     }
 }