Esempio n. 1
0
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);
$rootPath = realpath($fileDir . '/..');
chdir($rootPath);
require $rootPath . '/library/XenForo/Autoloader.php';
XenForo_Autoloader::getInstance()->setupAutoloader($rootPath . '/library');
XenForo_Application::initialize($rootPath . '/library', $rootPath, false);
XenForo_Application::set('page_start_time', $startTime);
XenForo_Phrase::setPhrases(require $fileDir . '/language_en.php');
XenForo_Template_Install::setFilePath($fileDir . '/templates');
$fc = new XenForo_FrontController(new XenForo_Dependencies_Install());
$fc->run();
Esempio n. 2
0
 /**
  * Preloads a template with the template handler for use later.
  *
  * @param string Template name
  */
 public function preloadTemplate($templateName)
 {
     XenForo_Template_Install::preloadTemplate($templateName);
 }
Esempio n. 3
0
<?php

class_exists('XenForo_Application', false) || die('Invalid');
$_subView = (string) $_subView;
$_container = XenForo_Template_Install::getExtraContainerData();
?>


<div id="contentContainer">
	<div id="content">
		<div class="titleBar">
			<?php 
if (!empty($_container['title'])) {
    ?>

				<h1><?php 
    echo htmlspecialchars($_container['title']);
    ?>
</h1>
			<?php 
}
?>

		</div>

		<?php 
echo $_subView;
?>

	</div>
Esempio n. 4
0
 /**
  * Sets the path to the templates.
  *
  * @param string $filePath
  */
 public static function setFilePath($filePath)
 {
     self::$_filePath = $filePath;
 }