Find in ./index.php
- Code: Select all
case "tos": include("./pages/tos.php"); break;
case "faq": include("./pages/faq.php"); break;
case "img": include("./pages/image.php"); break;
Add after
- Code: Select all
case "YOURPAGE": include("./pages/YOURPAGE.php"); break
Afterwards, create a file called YOURPAGE.php and include the following information:
- Code: Select all
<?php
///////////////////////////////////////////////////////////////////////////
// Product: Daddy's File Host
// Version: 1.2
//
// by DaddyScripts.com
//
// original source code by Jim (j-fx.ws) and Steven (galaxyscripts.com)
//////////////////////////////////////////////////////////////////////////
require_once("./config.php");
if(in_array($language, $LANGUAGE_LIST)) {
include('./lang/'.$language.'.php');
} else {
include('./lang/'.$LANGUAGE_LIST[0].'.php');
}
include ('./styles/'.$style.'/YOURPAGE.php');
?>
Finally, create another file in ./styles/[STYLE_NAME]/YOURPAGE.php and place your contents inside.
Don't forget to replace YOURPAGE.php with whatever filename you want.
Now it can be accessed by index.php?page=YOURPAGE
Glad you are enjoying our scripts
.