コード例 #1
0
ファイル: hubbub2.php プロジェクト: hcopr/Hubbub
function h2_init_hubbub_environment()
{
    if (substr($_SERVER['REQUEST_URI'], 0, 1) == '/') {
        interpretQueryString($_SERVER['REQUEST_URI']);
    }
    profile_point('  - query strings');
    $GLOBALS['obj']['user'] = new HubbubUser();
    profile_point('  - user');
    l10n_load('mvc/l10n');
    profile_point('  - l10n');
    if (isset($_REQUEST['hubbub_msg'])) {
        // we're receiving a message from another server
        $GLOBALS['msg']['touser'] = $_REQUEST['controller'];
        // invoke the endpoint controller to handle message
        $_REQUEST['controller'] = 'endpoint';
        $_REQUEST['action'] = 'index';
    }
}
コード例 #2
0
ファイル: entry_point.php プロジェクト: hcopr/Hubbub
<?

  if (substr($_SERVER['REQUEST_URI'], 0, 1) == '/')
	   interpretQueryString($_SERVER['REQUEST_URI']);    
  
  ob_start();
  
  $GLOBALS['config']['page']['title'] = 'Install';
  $GLOBALS['page.h1'] = 'Hubbub 0.2 Installer';
  l10n_load('ext/installer/l10n');
  
  $GLOBALS['errorhandler_ignore'] = true;
  
  $installerFN = 'ext/installer/'.getDefault(getDefault($_REQUEST['p'], $_REQUEST['controller']), 'index').'.php';
  if (file_exists($installerFN))
    include($installerFN);
  else
    redirect('./');
  
  $GLOBALS['content']['main'] = '<div class="installer">'.ob_get_clean().'</div>';
  
  header('content-type: text/html;charset=UTF-8');
  include('themes/default/default.php');
  
  die();

?>