mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 02:42:40 +02:00
More $admin_log global removal.
This commit is contained in:
@@ -102,7 +102,7 @@ if (isset($_POST['update_catorder']))
|
||||
$sql -> db_Update("download_category", "download_category_order='".intval($order)."' WHERE download_category_id='".intval($key)."'");
|
||||
}
|
||||
}
|
||||
$admin_log->log_event('DOWNL_08',implode(',',array_keys($_POST['catorder'])),E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_08',implode(',',array_keys($_POST['catorder'])),E_LOG_INFORMATIVE,'');
|
||||
$ns->tablerender("", "<div style='text-align:center'><b>".LAN_UPDATED."</b></div>");
|
||||
}
|
||||
/*
|
||||
@@ -175,7 +175,7 @@ if (isset($_POST['addlimit']))
|
||||
if ($sql->db_Insert('generic',$vals))
|
||||
{
|
||||
$message = DOWLAN_117;
|
||||
$admin_log->log_event('DOWNL_09',$valString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_09',$valString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -208,7 +208,7 @@ if (isset($_POST['updatelimits']))
|
||||
if ($sql->db_Delete('generic',"gen_id = {$idLim}"))
|
||||
{
|
||||
$message .= $idLim." - ".DOWLAN_119."<br/>";
|
||||
$admin_log->log_event('DOWNL_11','ID: '.$idLim,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_11','ID: '.$idLim,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -224,7 +224,7 @@ if (isset($_POST['updatelimits']))
|
||||
}
|
||||
$valString = implode(',',$vals);
|
||||
$sql->db_UpdateArray('generic',$vals," WHERE gen_id = {$idLim}");
|
||||
$admin_log->log_event('DOWNL_10',$idLim.', '.$valString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_10',$idLim.', '.$valString,E_LOG_INFORMATIVE,'');
|
||||
$message .= $idLim." - ".DOWLAN_121."<br/>";
|
||||
unset($vals);
|
||||
}
|
||||
|
@@ -1187,7 +1187,7 @@ class adminDownload extends download
|
||||
$logString .= '[!br!]'.$k.'=>'.$v;
|
||||
}
|
||||
}
|
||||
$admin_log->log_event($aText,$logString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add($aText,$logString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
*/
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -1890,12 +1890,12 @@ class adminDownload extends download
|
||||
if ($id)
|
||||
{
|
||||
admin_update($sql->db_Update("download_category", "download_category_name='{$download_category_name}', download_category_description='{$download_category_description}', download_category_icon ='{$download_category_icon}', download_category_parent= '{$download_categoory_parent}', download_category_class='{$download_category_class}' WHERE download_category_id='{$id}'"), 'update', DOWLAN_48);
|
||||
$admin_log->log_event('DOWNL_03',$download_category_name.'[!br!]'.$download_category_description,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_03',$download_category_name.'[!br!]'.$download_category_description,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
else
|
||||
{
|
||||
admin_update($sql->db_Insert("download_category", "0, '{$download_category_name}', '{$download_category_description}', '{$download_category_icon}', '{$download_categoory_parent}', '{$download_category_class}', 0 "), 'insert', DOWLAN_47);
|
||||
$admin_log->log_event('DOWNL_02',$download_category_name.'[!br!]'.$download_category_description,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_02',$download_category_name.'[!br!]'.$download_category_description,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
if ($subAction == "sn")
|
||||
{
|
||||
@@ -1914,7 +1914,7 @@ class adminDownload extends download
|
||||
if ($delete == "mirror")
|
||||
{
|
||||
admin_update($sql -> db_Delete("download_mirror", "mirror_id=".$del_id), delete, DOWLAN_135);
|
||||
$admin_log->log_event('DOWNL_14','ID: '.$del_id,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_14','ID: '.$del_id,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
|
||||
|
||||
@@ -2059,12 +2059,12 @@ class adminDownload extends download
|
||||
if (isset($_POST['id']))
|
||||
{
|
||||
admin_update($sql -> db_Update("download_mirror", "mirror_name='{$name}', mirror_url='{$url}', mirror_image='".$tp->toDB($_POST['mirror_image'])."', mirror_location='{$location}', mirror_description='{$description}' WHERE mirror_id=".intval($_POST['id'])), 'update', DOWLAN_133);
|
||||
$admin_log->log_event('DOWNL_13','ID: '.intval($_POST['id']).'[!br!]'.$logString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_13','ID: '.intval($_POST['id']).'[!br!]'.$logString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
else
|
||||
{
|
||||
admin_update($sql -> db_Insert("download_mirror", "0, '{$name}', '{$url}', '".$tp->toDB($_POST['mirror_image'])."', '{$location}', '{$description}', 0"), 'insert', DOWLAN_134);
|
||||
$admin_log->log_event('DOWNL_12',$logString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_12',$logString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
@@ -1783,7 +1783,7 @@ $columnInfo = array(
|
||||
if ($delete == "mirror")
|
||||
{
|
||||
$mes->addAuto($sql -> db_Delete("download_mirror", "mirror_id=".$del_id), delete, DOWLAN_135);
|
||||
$admin_log->log_event('DOWNL_14','ID: '.$del_id,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_14','ID: '.$del_id,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
|
||||
|
||||
@@ -1934,12 +1934,12 @@ $columnInfo = array(
|
||||
if (isset($_POST['id']))
|
||||
{
|
||||
$mes->addAuto($sql -> db_Update("download_mirror", "mirror_name='{$name}', mirror_url='{$url}', mirror_image='".$tp->toDB($_POST['mirror_image'])."', mirror_location='{$location}', mirror_description='{$description}' WHERE mirror_id=".intval($_POST['id'])), 'update', DOWLAN_133);
|
||||
$admin_log->log_event('DOWNL_13','ID: '.intval($_POST['id']).'[!br!]'.$logString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_13','ID: '.intval($_POST['id']).'[!br!]'.$logString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
else
|
||||
{
|
||||
$mes->addAuto($sql -> db_Insert("download_mirror", "0, '{$name}', '{$url}', '".$tp->toDB($_POST['mirror_image'])."', '{$location}', '{$description}', 0"), 'insert', DOWLAN_134);
|
||||
$admin_log->log_event('DOWNL_12',$logString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add('DOWNL_12',$logString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2120,7 +2120,7 @@ $columnInfo = array(
|
||||
$logString .= '[!br!]'.$k.'=>'.$v;
|
||||
}
|
||||
}
|
||||
$admin_log->log_event($aText,$logString,E_LOG_INFORMATIVE,'');
|
||||
e107::getLog()->add($aText,$logString,E_LOG_INFORMATIVE,'');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user