parameter cleaup - round 4

This commit is contained in:
skodak
2006-03-06 19:27:25 +00:00
parent de533d2612
commit a2eaae6102
7 changed files with 28 additions and 36 deletions
+3 -7
View File
@@ -1,12 +1,11 @@
<?
{
<?PHP // $Id$
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once('../config.php');
require_once($CFG->dirroot.'/my/pagelib.php');
require_once($CFG->dirroot.'/lib/pagelib.php');
require_once($CFG->dirroot.'/lib/blocklib.php');
$pt = optional_param('pt',null,PARAM_CLEAN);
$pt = optional_param('pt', null, PARAM_SAFEDIR); //alhanumeric and -
$pagetypes = array(PAGE_MY_MOODLE => array('id' => PAGE_MY_MOODLE,
'lib' => '/my/pagelib.php',
@@ -84,7 +83,4 @@
print_footer();
}
?>