1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +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