1. 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

Discussion in 'XenForo Development Discussions' started by Atakan KOC, Oct 30, 2010.

  1. Atakan KOC

    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();
    ?>
     
    yilmaz likes this.

Share This Page