code ] = $language; } if ( isset( $languages[ \Template::get_lang() ] ) ) \Localization::assign( $languages[ \Template::get_lang() ]->locale ); if ( \Input::get( 'r' ) ) { \Cookie::set( 'referrer', \Input::get( 'r' ), 365 * 86400, '/', '.' . \Config::domain() ); } if ( isset($_GET['mt'] ) ) { \Cookie::set( 'source', 'mytarget', 365 * 86400, '/', '.' . \Config::domain() ); } //if ( !\Auth::is_online() ) { //// \Output::error403(); // \Output::redirect( '/login/' ); // exit; //} next(); return; } if ( \HFU::lookup() != 'system' && (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']) && $_SERVER['HTTP_HOST'] != 'vinstant.lc' && $_SERVER['HTTP_HOST'] != 'new.vinstant.lc' && $_SERVER['HTTP_HOST'] != 'new.vinstant.pro' && !\Config::local() ) { //print 'Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header( 'Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],true,301); exit(); } //\Output::title( \Config::get()->subdomains->www->title ); $body = \HFU::lookup( array( 'index', '404', '403', '500', '502', '504', 'auth', '' ) ) ? this()->next( 'index' ) : this()->next(); ?>