1 2 3 4 5 6 7 8 9 10
<?php function set_sql($name, $query) { if (empty($GLOBALS['SQL'][$name])) { $GLOBALS['SQL'][$name] = $query; } } ?>