mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Revert "Improved metaconsole sync (added centralized management)"
This reverts commit 3c99242508cc573674c8f31e53c2408596e58380.
This commit is contained in:
parent
e1a3eaf236
commit
e54e91cdf1
@ -2294,19 +2294,4 @@ function config_prepare_session() {
|
||||
ini_set("post_max_size", $config["max_file_size"]);
|
||||
ini_set("upload_max_filesize", $config["max_file_size"]);
|
||||
}
|
||||
|
||||
function config_update_value_in_db ($token, $value) {
|
||||
$inserted_value = db_get_value('value', 'tconfig', '`token`', $token);
|
||||
if ($inserted_value === false) {
|
||||
return db_process_sql_insert(
|
||||
'tconfig',
|
||||
array('value' => $value, 'token' => $token)
|
||||
) !== false;
|
||||
}
|
||||
else {
|
||||
return db_process_sql_update(
|
||||
'tconfig', array('value' => $value), array('token' => $token)
|
||||
) !== false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user