15 lines
366 B
PHP
Executable File
15 lines
366 B
PHP
Executable File
<?php
|
|
switch(@$_POST['act']) {
|
|
// Сохранение настроек модуля
|
|
case 'save_settings_mod':
|
|
$res['mod']=$_POST['mod'];
|
|
unset ($_POST['mod']);
|
|
unset($_POST['act']);
|
|
$res['json']=serialize($_POST);
|
|
|
|
$db->free_sql2 ( 'UPDATE `settings` SET `json`="' . $res['json'] . '" WHERE `mod`="' . $res['mod'] . '"' );
|
|
break;
|
|
|
|
default:
|
|
}
|
|
?>
|