1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 09:32:17 +02:00

Header and minor code cleanup (#125)

This commit is contained in:
Tijn Kuyper 2013-03-04 00:32:03 +01:00
parent 4cfb2a5c67
commit 4073d4988d
3 changed files with 16 additions and 34 deletions

View File

@ -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");

View File

@ -1,21 +1,14 @@
<?php
/*
+----------------------------------------------------------------------------+
| e107 website system
|
| Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)
| Copyright (C) 2008-2010 e107 Inc (e107.org)
|
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $URL$
| $Revision$
| $Id$
| $Author$
+----------------------------------------------------------------------------+
*/
* e107 website system
*
* 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)
*
* Administration - File inspector
*
*/
ini_set('zlib.output_compression', 0);
header('Content-Encoding: none'); // turn off gzip.
ob_implicit_flush(true);
@ -33,7 +26,7 @@ if (!getperms('Y'))
exit;
}
$error_handler->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 @@ foreach ($maindirs as $maindirs_key => $maindirs_value) {
require_once('core_image.php');
$rs = new form;
//$rs = new form;
set_time_limit(18000);
$e_sub_cat = 'fileinspector';
@ -921,7 +914,8 @@ class file_inspector {
function snapshot_interface()
{
global $ns, $rs;
$ns = e107::getRender();
$frm = e107::getRender();
$text = "";
if (isset($_POST['create_snapshot']))
@ -940,7 +934,7 @@ class file_inspector {
</td>
</tr>
<tr>
<td style='text-align:center' class='forumheader'>".$rs -> form_button('submit', 'main_page', 'Return To Main Page')."</td>
<td style='text-align:center' class='forumheader'>".$frm->admin_button('main_page', 'Return To Main Page', 'submit')."</td>
</tr>
</table>
</form>
@ -973,7 +967,7 @@ class file_inspector {
</tr>
<tr>
<td class='forumheader' style='text-align:center' colspan='2'>".$rs -> form_button('submit', 'create_snapshot', 'Create Snapshot')."</td>
<td class='forumheader' style='text-align:center' colspan='2'>".$frm->admin_button('create_snapshot', 'Create Snapshot', 'create')."</td>
</tr>
</table>
</form>

View File

@ -8,9 +8,6 @@
*
* Search Administration
*
* $URL$
* $Id$
*
*/
require_once('../class2.php');
@ -194,9 +191,6 @@ if (isset($_POST['update_prefs']))
}
}
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')