mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Header and minor code cleanup (#125)
This commit is contained in:
@@ -2,16 +2,10 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* 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
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* 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");
|
require_once("class2.php");
|
||||||
|
@@ -1,20 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
+----------------------------------------------------------------------------+
|
* e107 website system
|
||||||
| e107 website system
|
*
|
||||||
|
|
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
||||||
| Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)
|
* Released under the terms and conditions of the
|
||||||
| Copyright (C) 2008-2010 e107 Inc (e107.org)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
|
|
*
|
||||||
|
|
* Administration - File inspector
|
||||||
| Released under the terms and conditions of the
|
*
|
||||||
| GNU General Public License (http://gnu.org).
|
|
||||||
|
|
|
||||||
| $URL$
|
|
||||||
| $Revision$
|
|
||||||
| $Id$
|
|
||||||
| $Author$
|
|
||||||
+----------------------------------------------------------------------------+
|
|
||||||
*/
|
*/
|
||||||
ini_set('zlib.output_compression', 0);
|
ini_set('zlib.output_compression', 0);
|
||||||
header('Content-Encoding: none'); // turn off gzip.
|
header('Content-Encoding: none'); // turn off gzip.
|
||||||
@@ -33,7 +26,7 @@ if (!getperms('Y'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$error_handler->debug = FALSE;
|
$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
|
$DOCS_DIRECTORY = $HELP_DIRECTORY; // Give a sensible, albeit probably invalid, value
|
||||||
if (substr($HELP_DIRECTORY,-5,5) == 'help/')
|
if (substr($HELP_DIRECTORY,-5,5) == 'help/')
|
||||||
{
|
{
|
||||||
@@ -46,7 +39,7 @@ foreach ($maindirs as $maindirs_key => $maindirs_value) {
|
|||||||
|
|
||||||
require_once('core_image.php');
|
require_once('core_image.php');
|
||||||
|
|
||||||
$rs = new form;
|
//$rs = new form;
|
||||||
set_time_limit(18000);
|
set_time_limit(18000);
|
||||||
$e_sub_cat = 'fileinspector';
|
$e_sub_cat = 'fileinspector';
|
||||||
|
|
||||||
@@ -921,7 +914,8 @@ class file_inspector {
|
|||||||
|
|
||||||
function snapshot_interface()
|
function snapshot_interface()
|
||||||
{
|
{
|
||||||
global $ns, $rs;
|
$ns = e107::getRender();
|
||||||
|
$frm = e107::getRender();
|
||||||
$text = "";
|
$text = "";
|
||||||
|
|
||||||
if (isset($_POST['create_snapshot']))
|
if (isset($_POST['create_snapshot']))
|
||||||
@@ -940,7 +934,7 @@ class file_inspector {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
@@ -973,7 +967,7 @@ class file_inspector {
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
@@ -8,9 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Search Administration
|
* Search Administration
|
||||||
*
|
*
|
||||||
* $URL$
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('../class2.php');
|
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']);
|
$handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']);
|
||||||
|
|
||||||
if ($query[0] == 'settings')
|
if ($query[0] == 'settings')
|
||||||
|
Reference in New Issue
Block a user