コード例 #1
0
ファイル: System_hook.php プロジェクト: rip-projects/ark-php
 function post_controller()
 {
     $CI =& get_instance();
     if (method_exists($CI, '_post_controller')) {
         $CI->_post_controller();
     }
     trans_complete();
 }
コード例 #2
0
ファイル: common.php プロジェクト: rip-projects/ark-php
 function redirect($uri = '', $method = 'location', $http_response_code = 302)
 {
     if (!preg_match('#^[a-zA-Z-_]+://#i', $uri)) {
         $uri = site_url($uri);
     }
     trans_complete();
     switch ($method) {
         case 'refresh':
             header("Refresh:0;url=" . $uri);
             break;
         default:
             header("Location: " . $uri, TRUE, $http_response_code);
             break;
     }
     exit;
 }