| | |
| | | <?php |
| | | |
| | | /* |
| | | Copyright (c) 2005, Till Brehm, projektfarm Gmbh |
| | | Copyright (c) 2007, Till Brehm, projektfarm Gmbh |
| | | All rights reserved. |
| | | |
| | | Redistribution and use in source and binary forms, with or without modification, |
| | |
| | | $page = $_REQUEST["s_pg"]; |
| | | |
| | | if(!preg_match("/^[a-z]{0,20}$/i", $module)) die('module name contains unallowed chars.'); |
| | | if(!preg_match("/^[a-z]{0,20}$/i", $page)) die('module name contains unallowed chars.'); |
| | | if(!preg_match("/^[a-z]{0,20}$/i", $page)) die('page name contains unallowed chars.'); |
| | | |
| | | if(is_file("$module/$page.php")) { |
| | | |
| | |
| | | $module = $target_parts[0]; |
| | | $page = $target_parts[1]; |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $module)) die('target module name contains unallowed chars.'); |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('target module name contains unallowed chars.'); |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('target page name contains unallowed chars.'); |
| | | |
| | | if(is_file("$module/$page.php")) { |
| | | include_once("$module/$page.php"); |