From: Hendrik B. <nh...@us...> - 2011-06-05 12:59:46
|
Update of /cvsroot/arianne/stendhal_website In directory vz-cvs-4.sog:/tmp/cvs-serv12039 Modified Files: index.php Log Message: prevent loading of non association pages on the association website Index: index.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/index.php,v retrieving revision 1.186 retrieving revision 1.187 diff -C2 -d -r1.186 -r1.187 *** index.php 30 May 2011 17:53:15 -0000 1.186 --- index.php 5 Jun 2011 12:59:44 -0000 1.187 *************** *** 74,78 **** require_once(STENDHAL_FRAME); - /* * This code decides the page to load. --- 74,77 ---- *************** *** 89,92 **** --- 88,96 ---- } + if (!$frame->writeHttpHeader($page_url)) { + exit(0); + } + + require_once("content/page.php"); require_once($page_url.'.php'); |