Файл: sys/system.config.php
Строк: 45
<?php
class Config {
function GetConfig($db) {
$sql = "SELECT * FROM configuration";
$arr = $db->QueryAndFetch($sql, null);
return $arr;
}
function SetMaxMsg($db, $maxmsg) {
$db->Filter($maxmsg);
$sql = "UPDATE configuration SET maxmsg=$maxmsg";
$arr = $db->Query($sql, null);
}
function SetCanBannedSendMessages($db, $bannedcansendmessages) {
$db->Filter($bannedcansendmessages);
$sql = "UPDATE configuration SET bannedcansendmessages=$bannedcansendmessages";
$arr = $db->Query($sql, null);
}
function SetStyle($db, $style) {
$db->Filter($style);
$sql = "UPDATE configuration SET style='$style'";
$arr = $db->Query($sql, null);
}
}
?>