Hi,
This is very noobish of me, from what I can see this is perfectly safe. I just wanted something simple to help keep the php file numbers to a minimum and nice & neat. Just want my script to be as secure as possible
I can't see any security exploits in this, & I really don't think the strip_tags is necessary, is it?
The code:
This is very noobish of me, from what I can see this is perfectly safe. I just wanted something simple to help keep the php file numbers to a minimum and nice & neat. Just want my script to be as secure as possible
I can't see any security exploits in this, & I really don't think the strip_tags is necessary, is it?
The code:
Code:
<?
$mode = $_GET['page'];
if(empty($mode))
{
echo 'This is the page that\'s shown if there\'s no mode specified';
}
else if($mode == "edit")
{
echo 'This is the page that\'s shown if "editprofile" is in mode';
}
else if($mode == "view")
{
echo 'This page will show someones profile with &uid=id';
}
else
{
// If none of the above or something invalid is entered then redir to this file which will show the default page.
header("Location: ddd.php");
}
?>
Last edited: