Example #1
0
function exec_sql($sql = '')
{
    if (ON_SAE && preg_match('/USE|CREATE\\sDATABASE/', $sql)) {
        return;
    }
    Pdb::exec($sql);
}
Example #2
0
function exec_sql($sql = '')
{
    if (ON_SAE && preg_match('/USE|CREATE\\sDATABASE/', $sql)) {
        return;
    }
    Pdb::exec($sql);
    $GLOBALS['histories'][] = $sql;
}