• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How does an external page

Atakan KOC

Active member
#1
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();
?>