ChrisTERiS Posted December 3, 2020 Share Posted December 3, 2020 (edited) Hello, I want to use my own file (eg myfile.php) as index.php. What is the standard code that must exist in this file? eg I assume that the code below must exist // ####################### SET PHP ENVIRONMENT ########################## error_reporting(E_ALL & ~E_NOTICE); // ####################### SET WHMCS ENVIRONMENT ######################## use WHMCS\ClientArea; define('CLIENTAREA', true); require_once("init.php"); require_once("includes/functions.php"); require_once("includes/clientareafunctions.php"); // Here goes my own code $ca = new ClientArea(); $ca->setPageTitle($FORUM_LANG['system_message']); $ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname')); $ca->initPage(); // Here my own Template variables // Render Template $ca->setTemplate('forum_system'); $ca->output(); Anything else that need to be add? Also, if I replace index.php with my own file, should I mess the system? Thank you Chris Edited December 3, 2020 by ChrisTERiS Typo 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.