Update to latest version
This commit is contained in:
parent
8a89842ec6
commit
fe9ecfad73
77 changed files with 1701 additions and 5404 deletions
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php global $session;
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* File: /admin/editusers.apnl.php
|
||||
|
@ -22,7 +22,7 @@
|
|||
* @author Bernhard Jaud <bernhard at becast dot at>
|
||||
* @package astat core
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id$
|
||||
* @version $Id: 25cfe5d1f82f94b9aaf583a537432b5fbbf49cfd $
|
||||
*/
|
||||
If (!defined("IN_BCWE_ADMIN")) {
|
||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
|
@ -40,7 +40,7 @@ class banips_panel extends admin_module{
|
|||
$db->query("INSERT INTO `" . $config["prefix"] . "banned_ips` (`ip`,`date`,`reason`) VALUES ('".$db->escape($_POST['ip'])."','".time()."','".$db->escape($_POST["reason"])."')");
|
||||
$panel->admin_message($lang->_('SUCCESS'),$lang->_('DATASAVED'),True,"banips",3);
|
||||
}
|
||||
}elseif($_GET["action"]=='delete' && $_GET['id']){
|
||||
}elseif(isset($_GET['action']) && $_GET["action"]=='delete' && $_GET['id']){
|
||||
$db->query("DELETE FROM `" . $config["prefix"] . "banned_ips` WHERE `id`='".intval($_GET['id'])."'");
|
||||
$panel->admin_message("Ban lifted","The ban was lifted.",True,"banips",3);
|
||||
}else{
|
||||
|
@ -54,27 +54,27 @@ class banips_panel extends admin_module{
|
|||
$ips[]=$row;
|
||||
}
|
||||
$panel->title=$lang->_('BANNEDIPS');
|
||||
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\">
|
||||
$panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
|
||||
<tr>
|
||||
<th align=\"center\">".$lang->_('ID')."</th>
|
||||
<th class=\"sortable-text\" align=\"center\">".$lang->_('IP')."</th>
|
||||
<th align=\"center\">".$lang->_('DATE')."</th>
|
||||
<th align=\"center\">".$lang->_('REASON')."</th>
|
||||
<th class=\"nosort\" align=\"center\">".$lang->_('ACTION')."</th>
|
||||
<th style=\"text-align: center;\">".$lang->_('ID')."</th>
|
||||
<th class=\"sortable-text\" style=\"text-align: center;\">".$lang->_('IP')."</th>
|
||||
<th style=\"text-align: center;\">".$lang->_('DATE')."</th>
|
||||
<th style=\"text-align: center;\">".$lang->_('REASON')."</th>
|
||||
<th class=\"nosort\" style=\"text-align: center;\">".$lang->_('ACTION')."</th>
|
||||
</tr>";
|
||||
if(!empty($ips)){
|
||||
foreach($ips as $i){
|
||||
$panel->content.="<tr>
|
||||
<td align=\"center\">".$i['id']."</td>
|
||||
<td align=\"center\">".$i['ip']."</td>
|
||||
<td align=\"center\">".date('d.m.Y, H:i',$i['date'])."</td>
|
||||
<td align=\"center\">".$i['reason']."</td>";
|
||||
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Delete this ban?')\" href=\"".$config["path"]."/admin/index.php?panel=banips&action=delete&id=".$i["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a></td>
|
||||
<td style=\"text-align: center;\">".$i['id']."</td>
|
||||
<td style=\"text-align: center;\">".$i['ip']."</td>
|
||||
<td style=\"text-align: center;\">".date('d.m.Y, H:i',$i['date'])."</td>
|
||||
<td style=\"text-align: center;\">".$i['reason']."</td>";
|
||||
$panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Delete this ban?')\" href=\"".$config["path"]."/admin/index.php?panel=banips&action=delete&id=".$i["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a></td>
|
||||
</tr>";
|
||||
}
|
||||
}else{
|
||||
$panel->content.="<tr>
|
||||
<td align=\"center\" colspan=\"5\">".$lang->_('NOBANNEDIPS')."</td>
|
||||
<td style=\"text-align: center;\" colspan=\"5\">".$lang->_('NOBANNEDIPS')."</td>
|
||||
</tr>";
|
||||
}
|
||||
$panel->content.="</table><br />";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue