<?
if (!function_exists('get_config'))
{
    function 
get_config()
    {
        
$query=mysql_query("select variable, value from config");
        while (list(
$variable$value)=mysql_fetch_row($query)){
            if (
define ($variable$value))
                
$ok=1;
        }
        return 
$ok;

    }
}
?>