1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

Code clean-up (globals, $e107->, $mes, headers)

This commit is contained in:
Moc
2013-03-24 13:07:15 +01:00
parent fd4fff52d4
commit 8d6d54a38f
12 changed files with 157 additions and 182 deletions

View File

@@ -2,16 +2,11 @@
/*
* 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)
*
* Manage/View failed login attempts
*
* $Source: /cvs_backup/e107_0.8/e107_admin/fla.php,v $
* $Revision$
* $Date$
* $Author$
* Manage failed login attempts
*
*/
require_once('../class2.php');
@@ -137,7 +132,6 @@ $gen = new convert;
$fla_total = $sql->db_Count('generic', '(*)', "WHERE gen_type='failed_login'");
if(!$sql->db_Select('generic', '*', "gen_type='failed_login' ORDER BY gen_datestamp DESC LIMIT {$from},{$amount}"))
{
//$text = $mes->render()."<div class='center'>".FLALAN_2."</div>";
$mes->addInfo(FLALAN_2);
}
else
@@ -179,7 +173,7 @@ else
{
extract($fa);//FIXME kill extract()
$gen_chardata = str_replace(":::", "<br />", $e107->tp->toHTML($gen_chardata));
$gen_chardata = str_replace(":::", "<br />", $tp->toHTML($gen_chardata));
$host = e107::getIPHandler()->get_host_name(getenv($gen_ip));
$text .= "
<tr>
@@ -212,8 +206,6 @@ else
$text .= "<div class='nextprev-bar'>".$nextprev."</div>";
}
$ns->tablerender(ADLAN_146, $mes->render().$text);