foreach (postRequestElement('sel') as $id => $sel) {
// Load module data
// @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
- $result = SQL_QUERY_ESC("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
+ $result = sqlQueryEscaped("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
// Load data
- $content = SQL_FETCHARRAY($result);
+ $content = sqlFetchArray($result);
// Free result
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Prepare array for the template
$content['locked'] = addSelectionBox('yn', $content['locked'] , 'locked', $id);
$id = bigintval($id);
// Update module
- addSql(SQL_QUERY_ESC("UPDATE
+ addSql(sqlQueryEscaped("UPDATE
`{?_MYSQL_PREFIX?}_mod_reg`
SET
`title`='%s',
if (!ifPostContainsSelections()) {
// Load module data (We do not need to check if there's at least one...)
- $result = SQL_QUERY('SELECT
+ $result = sqlQuery('SELECT
`id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
FROM
`{?_MYSQL_PREFIX?}_mod_reg`
`module` ASC', __FILE__, __LINE__);
$OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Reset title to --- if it is NULL
if (($content['module'] == 'index') || ($content['module'] == 'login')) {
// Add link to detail statistics
} // END - while
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Load main template
loadTemplate('admin_list_mods', FALSE, $OUT);