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

XF 1.5 Message via index.php

CabCon

Active member
#1
Hello,
I have a simple question. How it is possible to set a message via editing the index.php just over the generell site:


At the red line via editing the index.php.


Simple my site have a login problem so I want to set a message for my users. But to test and work on the fix my site should be also up. So I just want to put a message upper my site for the users.

I tried this but It just displays the text without the website.
Code:
<?php
echo "MESSAGE ERROR";
$startTime = microtime(true);
$fileDir = dirname(__FILE__);

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();