Enlightenment CVS committal
Author : mekius
Project : web
Module : www
Dir : web/www/site
Modified Files:
site.php
Log Message:
Check for GET values before just setting them. Was causing errors with forums.
===================================================================
RCS file: /cvs/e/web/www/site/site.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- site.php 31 Mar 2007 03:26:27 -0000 1.5
+++ site.php 9 Apr 2007 04:09:09 -0000 1.6
@@ -1,8 +1,15 @@
<?php
set_magic_quotes_runtime(0);
- $page = $_GET["p"];
- $lang = $_GET["l"];
+ if(isset($_GET['p']))
+ $page = $_GET['p'];
+ else
+ $page = '';
+
+ if(isset($_GET['l']))
+ $lang = $_GET['l'];
+ else
+ $lang = '';
$page = str_replace(".", "", $page);
if ($page == "") $page = "index";
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs