));
// Check for new started but not notified rallyes
- $result = SQL_QUERY("SELECT SQL_SMALL_RESULT
+ $result = sqlQuery("SELECT SQL_SMALL_RESULT
`d`.`id`,
`d`.`title`,
`d`.`start_time`,
`d`.`start_time` <= UNIX_TIMESTAMP() AND
`d`.`end_time` > UNIX_TIMESTAMP()
LIMIT 1", __FILE__, __LINE__);
- if (SQL_NUMROWS($result) == 1) {
+ if (sqlNumRows($result) == 1) {
// Start rallye
autostartReferralRallyes($result);
} // END - if
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Check for expired rallyes
- $result = SQL_QUERY("SELECT SQL_SMALL_RESULT
+ $result = sqlQuery("SELECT SQL_SMALL_RESULT
`d`.`id`,
`d`.`title`,
`d`.`start_time`,
`d`.`expired`='N' AND
(`d`.`end_time` <= UNIX_TIMESTAMP()" . $sqlAddons['or'] . ")
LIMIT 1", __FILE__, __LINE__);
- if ((SQL_NUMROWS($result) == 1) && (isExtensionActive('autopurge'))) {
+ if ((sqlNumRows($result) == 1) && (isExtensionActive('autopurge'))) {
// End rallye here...
stopRallyeByResult($result);
} // END - if
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
} // END - if
// Return data