// Run SQL command?
if (!empty($sql)) {
// Run it
- $result = SQL_QUERY_ESC($sql, array(bigintval($id)), __FILE__, __LINE__);
+ $result = sqlQueryEscaped($sql, array(bigintval($id)), __FILE__, __LINE__);
// Rebuild cache
rebuildCache('themes', 'them');
}
// Init rows
-$OUT = '';
+$OUT = '';
// Switch to testing mode
$GLOBALS['theme_mode'] = 'test';
-$result = SQL_QUERY("SELECT
+$result = sqlQuery("SELECT
`id`,
`theme_path`,
`theme_active`,
ORDER BY
`theme_path` ASC", __FILE__, __LINE__);
-if (!SQL_HASZERONUMS($result)) {
- while ($content = SQL_FETCHARRAY($result)) {
+if (!ifSqlHasZeroNums($result)) {
+ while ($content = sqlFetchArray($result)) {
// Construct IFN
$inc = sprintf("theme/%s/theme.php", $content['theme_path']);
} // END - while
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
} else {
// No themes found???
$OUT .= '<tr>