1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 01:30:32 +02:00

Updating of deprecated method usage. Removal of old files. Log tests added.

This commit is contained in:
Cameron
2020-12-18 09:39:02 -08:00
parent 582c48fc21
commit f5153bf640
55 changed files with 509 additions and 3218 deletions

View File

@@ -142,10 +142,17 @@ if (isset($_POST['updatedownlaodoptions']))
if (isset($_POST['updateuploadoptions']))
{
unset($temp);
$temp['upload_enabled'] = intval($_POST['upload_enabled']);
/* $temp['upload_enabled'] = intval($_POST['upload_enabled']);
$temp['upload_maxfilesize'] = $_POST['upload_maxfilesize'];
$temp['upload_class'] = intval($_POST['upload_class']);
if ($admin_log->logArrayDiffs($temp, $pref, 'DOWNL_02'))
$temp['upload_class'] = intval($_POST['upload_class']);*/
$cfg = e107::getConfig();
$cfg->set('upload_enabled', (int) $_POST['upload_enabled']);
$cfg->set('upload_maxfilesize', $_POST['upload_maxfilesize']);
$cfg->set('upload_class', (int) $_POST['upload_class']);
$cfg->save(true, true, true);
/*if ($admin_log->logArrayDiffs($temp, $pref, 'DOWNL_02'))
{
save_prefs();
$message = DOWLAN_65;
@@ -153,7 +160,7 @@ if (isset($_POST['updateuploadoptions']))
else
{
$message = DOWLAN_8;
}
}*/
}
$targetFields = array('gen_datestamp', 'gen_user_id', 'gen_ip', 'gen_intdata', 'gen_chardata'); // Fields for download limits

View File

@@ -314,10 +314,6 @@ class download_main_admin_ui extends e_admin_ui
// default - true - TODO - move to displaySettings
protected $batchDelete = true;
/** @deprecated see writeParms() on download_id below. */
// protected $url = array('route'=>'download/view/item', 'vars' => array('id' => 'download_id', 'name' => 'download_sef'), 'name' => 'download_name', 'description' => ''); // 'link' only needed if profile not provided.
protected $fields = array(
'checkboxes' => array('title'=> '', 'type' => null, 'data' => null, 'width'=>'5%', 'thclass' =>'center', 'forced'=> TRUE, 'class'=>'center', 'toggle' => 'e-multiselect'),