<?php
class core_settings {
static public $vars = array();
static public function LoadStettings() {
self::$vars = array();
$tableSettigns = new SQL('settings');
$config = $tableSettigns->select();
foreach ($config as $line)
self::$vars[$line->name] = $line->value;
}
static public function Get($name) {
if (isset(self::$vars[$name]))
{
return self::$vars[$name];
}
else
{
return false;
}
}
static public function Set($name, $value) {
$table = new SQL('settings');
}
}