parameter cleaup - round 1

This commit is contained in:
skodak
2006-03-06 10:02:59 +00:00
parent 1452f9e11b
commit 1c47adc540
14 changed files with 43 additions and 48 deletions
+9 -7
View File
@@ -1,10 +1,12 @@
<?php // $Id$
/// configuration routines for HTMLArea editor
require_once("../config.php");
require_login();
require_once('../config.php');
$currentpage = optional_param('tab', 1, PARAM_INT);
require_login();
if (!isadmin()) {
error("Only admins can access this page");
}
@@ -27,16 +29,16 @@
} else {
// Generate edit form
$inactive = NULL;
$inactive = array();
switch ( $currentpage ) {
case 1:
$currenttab = 'htmlarea';
$inactive = array();
break;
break;
case 2:
$currenttab = 'tinymce';
$inactive = array();
break;
break;
default:
error("Unknown currentpage: $currentpage");
}
$url = 'editor.php?tab=';