12 lines
466 B
PHP
12 lines
466 B
PHP
<?php
|
|
if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' );
|
|
$db->free_sql2("ALTER TABLE `settings` ADD `json` text NULL;");
|
|
@mkdir (MYDIR . '/img/logo', 0700);
|
|
@mkdir (MYDIR . '/img/favicon', 0700);
|
|
if ($_POST['ok']){
|
|
unset($_POST['ok']);
|
|
$json= json_encode($_POST, JSON_UNESCAPED_UNICODE);
|
|
$db->free_sql2("UPDATE settings SET json = '$json' WHERE mod = 'global';");
|
|
header( 'Location: /settings/' );
|
|
}
|
|
?>
|