Quote:
Originally Posted by eLO21
In my website i use " switch($_GET[])" and DIV's.
+ Code:
PHP Code:
<div id='info-txt'>
<?
switch($_GET[dk])
{
case "register":
include "register.php"; break;
case "download":
include "download.php"; break;
case "contact":
include "contact.php"; break;
case "2";
include "server-status.php"; break;
case "3";
include "user-panel.php"; break;
case "4";
include "server-time.php"; break;
case "votenow";
include "votenow.php"; break;
case "donations";
include "donations.php"; break;
case "7";
include "dead-front.php"; break;
case "update";
include "last-update.php"; break;
case "9";
include "advertisement.php"; break;
case "10";
include "footer.php"; break;
case "11";
include "follow-us.php"; break;
case "news";
include "news.php"; break;
default:
include "news.php"; break;
}
?>
</div>
<div id='advertisement'>
<? include ("advertisement.php");?>
</div>
...
...
So you don't need any files form my website to help me with User Panel.
|
I hope you protected each of those files by placing
PHP Code:
if (basename($_SERVER['PHP_SELF']) != 'panel.php') die("You must use the <a href='./panel.php'>panel</a> to see this page.");
in each file (If your main php is named panel.php, like mine.)
And yes, this means I'm working on a PHP administration panel, that actually works, unlike janvier's OSDS. I didn't get it to work xD
So anyway, protect each separate page (register.php, download.php...) with this and replace "panel" with the page name you use yourself for te main page.