Файл: panel/settings.php
Строк: 33
<?php
/**
* @package Prime Social
* @link http://primesocial.ru
* @copyright Copyright (C) 2016 Prime Social
* @author BoB | http://primesocial.ru/about
*/
require_once('../core/start.php');
check_auth();
if (privilegy('settings') == FALSE) {
header("Location: ".HOME."/panel");
exit();
}
head('Sayt sozlamalari');
if (!empty($_POST['send'])) {
$msg = html($_POST['regMsg']);
$present = abs(num($_POST['regPresent']));
$us = abs(num($_POST['regUser']));
DB::$dbs->query("UPDATE ".CONFIG." SET `reg_msg` = ?, `reg_present` = ?, `reg_user` = ?", array($msg, $present, $us));
header("Location: ?");
}
echo DIV_BLOCK;
echo '
<form action="#" method="POST">
<b>Ro`yhatdan o`tgandan so`ng habar:</b><br />
<textarea name="regMsg">'.$sett['reg_msg'].'</textarea><br /><br />
<b>Sovg`a ID raqami:</b><br />
<input type="text" name="regPresent" value="'.$sett['reg_present'].'"/><br />
<b>Jo`natuvchi ID raqami:</b><br />
<input type="text" name="regUser" value="'.$sett['reg_user'].'"/><br />
<input type="submit" name="send" value="Saqlash" />
</form>
';
echo CLOSE_DIV;
echo DIV_GO . '<a href="'.HOME.'/">Bosh sahifa</a> / <a href="'.HOME.'/panel">Boshqaruv xonasi</a> / <b>Sayt sozlamalari</b>' . CLOSE_DIV;
require_once('../core/stop.php');
?>