Try the fallowing
CODE
<?PHP
$path = ".";
elseif($act == "page1"){ include("$path/somepagehere.php"); }
elseif($act == "random"){ echo"Some random text here";
/* include("$path/main.php"); */ }
else{ include("$path/main.php"); }
?>
use this if you have a search(add to the top of the script,INSIDE THE PHP LINES)
CODE
if($do == "search" or $dosearch == "yes"){ $subaction = "search"; $dosearch = "yes";
include("$path/search.php"); }
to change the location of the included "HOME" info/news change this line
CODE
else{ include("$path/main.php"); }
change main.php to like idn news.php whatever is needed
to have a user go to the page included into your main page use the fallowing html line(edit as needed)
CODE
<a href="act=page1">page</a>
and do add/edit pages
you can use 2 diff. things
the first
CODE
elseif($act == "page1"){ include("$path/somepagehere.php"); }
this will include an external page you can change the "act" and "page1" to something elts for the new page
the the second one
CODE
elseif($act == "random"){ echo"Some random text here";
as above you can change the "act" and "random" to something elts to identify the page and for the echo part change as needed as well,i find it to be a good copyright page,only because you cant use html in this echo.
just add more of both for new pages.
i also find it easy to separate everything by category or whatever you have but using the fallowing.
CODE
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
some text here
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
as my final note:
Don't tell me it needs some changes or something ok it works why should it matter?
please PM or something if this helped,I don't check the forum often.