How does an external page

Atakan KOC

Active member
How does an external page? How do I make a directory to another?

Samle;

portal : /home/tenshi/public_html/
forum : /home/tenshi/public_html/forum/

I did the experiment but did not.

PHP:
<?php
chdir('/home/tenshi/public_html/forum/');
//die(file_get_contents('./maintenance.html'));

$startTime = microtime(true);
$fileDir = dirname(__FILE__).'/forum/';
$_REQUEST['tenshi-portal/'] = true;
require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

$fc = new XenForo_FrontController(new XenForo_Dependencies_Public());
$fc->run();
?>
 
Back
Top Bottom