コード例 #1
0
ファイル: Next.php プロジェクト: exit-hell-korea/wanna-go-web
 public function index()
 {
     try {
         define('Static_is_one', 'http://static-a-1.hax0r.info/');
         //(?i)msie [5-6]/ 리다이렉트
         if (preg_match('/(?i)msie [5-6]/', $_SERVER['HTTP_USER_AGENT'])) {
             header('location: http://blog.hax0r.info');
             die;
         }
         $data = array();
         $data['ua'] = _getBrowser();
         $this->template->title = '칼퇴';
         $q = $this->input->get('num');
         if (!isset($q)) {
             throw new Exception('잘못된 요청입니다.');
         }
         if ($_SERVER['SERVER_PORT'] == '433' or $this->input->get('q') == 'dev') {
             $this->template->content->view('next/one', $data);
         } else {
             switch ($q) {
                 case '0':
                     $this->template->content->view('next/one', $data);
                     break;
                 case '1':
                     $this->template->content->view('next/two', $data);
                     break;
                 case '2':
                     $this->template->content->view('next/three', $data);
                     break;
             }
         }
         $this->template->publish();
     } catch (Exception $e) {
     }
 }
コード例 #2
0
ファイル: In.php プロジェクト: exit-hell-korea/wanna-go-web
 public function index()
 {
     try {
         define('Static_is_one', 'http://static-a-1.hax0r.info/');
         //(?i)msie [5-6]/ 리다이렉트
         if (preg_match('/(?i)msie [5-6]/', $_SERVER['HTTP_USER_AGENT'])) {
             header('location: http://blog.hax0r.info');
             die;
         }
         $data = array();
         $data['ua'] = _getBrowser();
         $this->template->title = '칼퇴';
         if ($_SERVER['SERVER_PORT'] == '433' or $this->input->get('q') == 'dev') {
             $this->template->content->view('default/content', $data);
         } else {
             $this->template->content->view('default/content', $data);
         }
         $this->template->publish();
     } catch (Exception $e) {
     }
 }
コード例 #3
0
ファイル: phpinfo.php プロジェクト: ruphus/ilterzospazio
<?php

include '_getBrowser.php';
?>

<?php 
$browser = _getBrowser();
echo $browser['name'] . ' ' . $browser['version'];
phpinfo();