quote:
Originally posted by Absorbation
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$id){ $id = $HTTP_GET_VARS['id']; }
if($id=="" or $id=="home"){
include("home.php");
}elseif($id=="asmiles"){
include("animatedsmiles/index.php");
}elseif($id=="backgrounds"){
include("backgrounds/index.php");
}elseif($id=="downloads"){
include("downloads/pafiledb.php");
}elseif($id=="dp"){
include("dp/index.php");
}elseif($id=="names"){
include("names/index.php");
}elseif($id=="smiles"){
include("smiles/index.php");
}elseif($id=="web"){
include("web.php");
}
?>
why not do
if(!$id){ $id = $HTTP_GET_VARS['id']; }
to
if(isset($_GET['id'])){ $id = $_GET['id']; }else { $id=''}
insted of changing error_reporting and removing notices , just fix your code.
A NOTICE == BAD CODE.