mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Log plugin - minor LAN, code and UI fixes
This commit is contained in:
@@ -8,8 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Stats logging plugin - admin functions
|
* Stats logging plugin - admin functions
|
||||||
*
|
*
|
||||||
* $URL$
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('../../class2.php');
|
require_once('../../class2.php');
|
||||||
@@ -491,7 +489,9 @@ switch ($action)
|
|||||||
//===========================================================
|
//===========================================================
|
||||||
// DELETE HISTORY
|
// DELETE HISTORY
|
||||||
//===========================================================
|
//===========================================================
|
||||||
$text = "<div style='text-align:center'>
|
$mes->addWarning(ADSTAT_L76);
|
||||||
|
$text = "
|
||||||
|
|
||||||
<form method='post' action='".e_SELF."?history'>
|
<form method='post' action='".e_SELF."?history'>
|
||||||
<table class='table adminlist'>
|
<table class='table adminlist'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@@ -506,7 +506,7 @@ switch ($action)
|
|||||||
<tr><td colspan='2' style='text-align:center' class='forumheader'>
|
<tr><td colspan='2' style='text-align:center' class='forumheader'>
|
||||||
<input type='hidden' name='delete_month' value='{$keep_month}' />
|
<input type='hidden' name='delete_month' value='{$keep_month}' />
|
||||||
<input type='hidden' name='delete_year' value='{$keep_year}' />
|
<input type='hidden' name='delete_year' value='{$keep_year}' />
|
||||||
<input class='button' type='submit' name='actually_delete' value='".ADSTAT_L73."' /><br />".ADSTAT_L74."
|
".$frm->admin_button('actually_delete', LAN_CONFDELETE, 'delete')."<br />".ADSTAT_L74."
|
||||||
</td></tr>";
|
</td></tr>";
|
||||||
$text .= "<tr><td>".ADSTAT_L75."</td><td>".implode("<br />",get_for_delete($keep_year,$keep_month))."</td></tr>";
|
$text .= "<tr><td>".ADSTAT_L75."</td><td>".implode("<br />",get_for_delete($keep_year,$keep_month))."</td></tr>";
|
||||||
}
|
}
|
||||||
@@ -551,11 +551,10 @@ switch ($action)
|
|||||||
|
|
||||||
<div class='buttons-bar center'>
|
<div class='buttons-bar center'>
|
||||||
".$frm->admin_button('delete_history',LAN_DELETE,'delete')."
|
".$frm->admin_button('delete_history',LAN_DELETE,'delete')."
|
||||||
<span class='field-help'>".ADSTAT_L76."</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form></div>";
|
</form>";
|
||||||
$ns->tablerender(ADSTAT_L69, $text);
|
$ns->tablerender(ADSTAT_L69, $mes->render().$text);
|
||||||
break; // case 'history'
|
break; // case 'history'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -6,8 +6,6 @@
|
|||||||
* 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)
|
||||||
*
|
*
|
||||||
* $URL$
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//define("ADSTAT_ON", "On");
|
//define("ADSTAT_ON", "On");
|
||||||
@@ -84,7 +82,7 @@ define ('ADSTAT_L69', 'Delete historical data');
|
|||||||
define ('ADSTAT_L70', 'Delete data older than:');
|
define ('ADSTAT_L70', 'Delete data older than:');
|
||||||
define ('ADSTAT_L71', 'Delete Data');
|
define ('ADSTAT_L71', 'Delete Data');
|
||||||
define ('ADSTAT_L72', 'Confirm deletion of data older than first day of:');
|
define ('ADSTAT_L72', 'Confirm deletion of data older than first day of:');
|
||||||
define ('ADSTAT_L73', 'Confirm');
|
//define ('ADSTAT_L73', 'Confirm');
|
||||||
define ('ADSTAT_L74', '(List of data entries which will be deleted below)');
|
define ('ADSTAT_L74', '(List of data entries which will be deleted below)');
|
||||||
define ('ADSTAT_L75', 'Records for deletion');
|
define ('ADSTAT_L75', 'Records for deletion');
|
||||||
define ('ADSTAT_L76', 'Caution! Once deleted, the data cannot be recovered. Backup or export your database first');
|
define ('ADSTAT_L76', 'Caution! Once deleted, the data cannot be recovered. Backup or export your database first');
|
||||||
|
Reference in New Issue
Block a user