<?php
Class Core {
public static function config($var ='')
{
global $db;
$config = $db->fass("SELECT * FROM `settings`");
if($var == '')
{
return $config[$var];
}
else
{
return $config[$var];
}
}
public function lang()
{
if(User::aut())
{
return User::settings('language');
}
else
{
return self::config('language');
}
}
}
?>