/** * Display the page with layout * If ajax is enabled it returns only the module content * @param string|NULL $content replace page content * @return string */ public function onDisplayPage($content = NULL) { if (true === self::getConfig('log_request') && class_exists('GWF_Log')) { GWF_Log::logRequest(); } # Display the page if (true === isset($_GET['ajax'])) { GWF_Website::plaintext(); return self::$page; } else { $page = $content === NULL ? self::$page : $content; return GWF_Website::displayPage($page); } }
<?php require_once 'live_lfi.config.php'; require_once '/opt/php/gwf3/GWF3.php'; $gwf = new GWF3(getcwd()); GWF_Debug::enableErrorHandler(); $iso = Common::getGetString('lang', 'en'); $lang = (require_once $iso); $page = sprintf('%s<br/>%s', $lang['welcome'], $lang['construction']); echo GWF_Website::displayPage($page);