From 4073d4988d36accae13785561e972ae6b970aabf Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Mon, 4 Mar 2013 00:32:03 +0100 Subject: [PATCH] Header and minor code cleanup (#125) --- banner.php | 8 +------- e107_admin/fileinspector.php | 36 +++++++++++++++--------------------- e107_admin/search.php | 6 ------ 3 files changed, 16 insertions(+), 34 deletions(-) diff --git a/banner.php b/banner.php index f4c67b1ddb..3e36577e22 100644 --- a/banner.php +++ b/banner.php @@ -2,16 +2,10 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2013 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * - * - * $Source: /cvs_backup/e107_0.8/banner.php,v $ - * $Revision$ - * $Date$ - * $Author$ */ require_once("class2.php"); diff --git a/e107_admin/fileinspector.php b/e107_admin/fileinspector.php index a7182f8458..092ac40faa 100644 --- a/e107_admin/fileinspector.php +++ b/e107_admin/fileinspector.php @@ -1,21 +1,14 @@ debug = FALSE; -require_once(e_HANDLER.'form_handler.php'); +//require_once(e_HANDLER.'form_handler.php'); $DOCS_DIRECTORY = $HELP_DIRECTORY; // Give a sensible, albeit probably invalid, value if (substr($HELP_DIRECTORY,-5,5) == 'help/') { @@ -46,7 +39,7 @@ require_once('core_image.php'); -$rs = new form; +//$rs = new form; set_time_limit(18000); $e_sub_cat = 'fileinspector'; @@ -921,7 +914,8 @@ function create_image($dir) { function snapshot_interface() { - global $ns, $rs; + $ns = e107::getRender(); + $frm = e107::getRender(); $text = ""; if (isset($_POST['create_snapshot'])) @@ -940,7 +934,7 @@ function snapshot_interface() - ".$rs -> form_button('submit', 'main_page', 'Return To Main Page')." + ".$frm->admin_button('main_page', 'Return To Main Page', 'submit')." @@ -973,7 +967,7 @@ function snapshot_interface() - ".$rs -> form_button('submit', 'create_snapshot', 'Create Snapshot')." + ".$frm->admin_button('create_snapshot', 'Create Snapshot', 'create')." diff --git a/e107_admin/search.php b/e107_admin/search.php index e33771b5cb..06e9c627e1 100644 --- a/e107_admin/search.php +++ b/e107_admin/search.php @@ -8,9 +8,6 @@ * * Search Administration * - * $URL$ - * $Id$ - * */ require_once('../class2.php'); @@ -194,9 +191,6 @@ } } -require_once(e_HANDLER."form_handler.php"); -$rs = new form; //FIXME - $handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']); if ($query[0] == 'settings')