Skip to content

Commit

Permalink
Header and minor code cleanup (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moc committed Mar 3, 2013
1 parent 4cfb2a5 commit 4073d49
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 34 deletions.
8 changes: 1 addition & 7 deletions banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
36 changes: 15 additions & 21 deletions e107_admin/fileinspector.php
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -33,7 +26,7 @@
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/')
{
Expand All @@ -46,7 +39,7 @@

require_once('core_image.php');

$rs = new form;
//$rs = new form;
set_time_limit(18000);
$e_sub_cat = 'fileinspector';

Expand Down Expand Up @@ -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']))
Expand All @@ -940,7 +934,7 @@ function snapshot_interface()
</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>
Expand Down Expand Up @@ -973,7 +967,7 @@ function snapshot_interface()
</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>
Expand Down
6 changes: 0 additions & 6 deletions e107_admin/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
*
* Search Administration
*
* $URL$
* $Id$
*
*/

require_once('../class2.php');
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 4073d49

Please sign in to comment.