// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y', `locked`='N' WHERE `what`='engine' LIMIT 1");
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `what`='engine' LIMIT 1");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module` LIKE 'engine%'");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module` LIKE 'engine%'");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y',`locked`='N' WHERE `what`='beg' LIMIT 1");
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what` IN ('beg','beg2')");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='beg' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='beg' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what`='bonus' LIMIT 1");
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y',`locked`='N' WHERE `action`='bonus' LIMIT 1");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='show_bonus' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='show_bonus' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what`='doubler' LIMIT 1");
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y',`locked`='N' WHERE `what`='doubler' LIMIT 1");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='doubler' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='doubler' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='mailid' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='mailid' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
break;
case 'activate': // Do stuff when admin activates this extension
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-delurl' LIMIT 1");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-vcheck' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='network-delurl' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='network-vcheck' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y',`hidden`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-delurl' LIMIT 1");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y',`hidden`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-vcheck' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-delurl' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-vcheck' LIMIT 1");
break;
case 'update': // Update an extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `action`='order'");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `hidden`='N',`locked`='N',`admin_only`='N',`mem_only`='Y' WHERE `module`='order' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='Y' WHERE `module`='order' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N',`locked`='Y' WHERE `action`='order'");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `hidden`='Y',`locked`='Y' WHERE `module`='order' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='order' LIMIT 1");
break;
case 'update': // Update an extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what`='sponsor' LIMIT 1");
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_sponsor_menu` SET `active`='Y' WHERE active='N'");
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_sponsor_registry` SET `is_active`='Y' WHERE `is_active`='N'");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module` IN ('sponsor','sponsor_confirm','sponsor_ref') LIMIT 3");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module` IN ('sponsor','sponsor_confirm','sponsor_ref') LIMIT 3");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `action`='surfbar' LIMIT 5");
- addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='Y' WHERE `module`='surfbar' LIMIT 1");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='Y' WHERE `module`='surfbar' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
case 'activate': // Do stuff when admin activates this extension
// SQL commands to run
- //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
+ //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='foo' LIMIT 1");
break;
case 'deactivate': // Do stuff when admin deactivates this extension
// Check total amount of users
if (getTotalConfirmedUser() >= getActivateXchange()) {
// Activate System
- addSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`mem_only`='Y' WHERE `module`='order' LIMIT 1");
+ addSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`mem_only`='Y' WHERE `module`='order' LIMIT 1");
addSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what`='order' OR `what`='unconfirmed' LIMIT 2");
// Run SQLs
'ADMIN_MODS_NAME' => "Modulname",
'ADMIN_MODS_TITLE' => "Modultitel",
'ADMIN_MODS_IS_LOCKED' => "Gesperrt",
- 'ADMIN_MODS_IS_HIDDEN' => "Verdeckt",
'ADMIN_MODS_IS_ADMIN' => "Nur Admin",
'ADMIN_MODS_IS_MEMBER' => "Nur Mitglied",
'ADMIN_MODS_CLICKS' => "Modulklicks",
// Rewrite some parts
foreach ($modArray['module'] as $key => $mod) {
// Default without sql_patches
- $entries = array('id','title','locked','hidden','admin_only','mem_only');
+ $entries = array('id', 'title', 'locked', 'admin_only', 'mem_only');
// Is ext-sql_patches newer or equal 0.3.6?
if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
`module`,
`title`,
`locked`,
- `hidden`,
`admin_only`,
`title`,
`mem_only`,
`module`,
`title`,
`locked`,
- `hidden`,
`admin_only`,
`title`,
`mem_only`
} elseif (!isExtensionActive('cache')) {
// Check for module in database
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Using database.');
- $result = sqlQueryEscaped("SELECT `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='%s' LIMIT 1",
+ $result = sqlQueryEscaped("SELECT
+ `locked`,
+ `admin_only`,
+ `mem_only`
+FROM
+ `{?_MYSQL_PREFIX?}_mod_reg`
+WHERE
+ `module`='%s'
+LIMIT 1",
array($module), __FUNCTION__, __LINE__);
if (sqlNumRows($result) == 1) {
// Read data
return $return;
}
-// Checks whether the given module is hidden by just checking the cache
-function isModuleHidden ($module) {
- // Determine if there a cache entry and is it set
- $return = ((isset($GLOBALS['cache_array']['modules']['hidden'][$module])) && ($GLOBALS['cache_array']['modules']['hidden'][$module] == 'Y'));
-
- // Return determined value
- return $return;
-}
-
// Checks whether the given module is mem_only by just checking the cache
function isModuleMemberOnly ($module) {
// Determine if there a cache entry and is it set
setModuleStatus($module_chk, 'admin_only');
} else {
// @TODO Nothing helped???
- logDebugMessage(__FUNCTION__, __LINE__, sprintf('ret=%s,locked=%d,hidden=%d,mem=%d,admin=%d',
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf('ret=%s,locked=%d,mem=%d,admin=%d',
getModuleStatus($module_chk),
intval(isModuleLocked($module_chk)),
- intval(isModuleHidden($module_chk)),
intval(isModuleMemberOnly($module_chk)),
intval(isModuleAdminOnly($module_chk))
));
* hour to find a loop here... *sigh*
*/
sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg`
-(`module`, `locked`, `hidden`, `mem_only`, `admin_only`, `has_menu`)
+(`module`, `locked`, `mem_only`, `admin_only`, `has_menu`)
VALUES
-('%s','Y','N','N','N','N')", array($module_chk), __FUNCTION__, __LINE__);
+('%s','Y'','N','N','N')", array($module_chk), __FUNCTION__, __LINE__);
} else {
// Wrong/missing sql_patches!
sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg`
-(`module`, `locked`, `hidden`, `mem_only`, `admin_only`)
+(`module`, `locked`, `mem_only`, `admin_only`)
VALUES
-('%s','Y','N','N','N')", array($module_chk), __FUNCTION__, __LINE__);
+('%s','Y','N','N')", array($module_chk), __FUNCTION__, __LINE__);
}
// Everthing is fine?
rebuildCache('modules', 'modules');
} elseif ($found === FALSE) {
// Problem with module detected
- logDebugMessage(__FUNCTION__, __LINE__, sprintf('Problem in module %s detected. getModuleStatus()=%s,locked=%d,hidden=%d,mem=%d,admin=%d,output_mode=%s',
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf('Problem in module %s detected. getModuleStatus()=%s,isModuleLocked()=%d,mem=%d,admin=%d,output_mode=%s',
$module_chk,
getModuleStatus($module_chk),
intval(isModuleLocked($module_chk)),
- intval(isModuleHidden($module_chk)),
intval(isModuleMemberOnly($module_chk)),
intval(isModuleAdminOnly($module_chk)),
getScriptOutputMode()
// Is the module already registered?
if (!isModuleRegistered($module)) {
// Add it
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only`) VALUES ('" . $module . "', '" . $title . "', '" . $locked . "', '" . $hidden . "', '" . $adminOnly . "', '" . $memOnly . "')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `title`, `locked`, `admin_only`, `mem_only`) VALUES ('" . $module . "', '" . $title . "', '" . $locked . "', '" . $adminOnly . "', '" . $memOnly . "')");
} else {
// Already registered
- logDebugMessage(__FUNCTION__, __LINE__, sprintf('Already registered: module=%s,locked=%s,hidden=%s,admin=%s,mem=%s',
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf('Already registered: module=%s,locked=%s,admin=%s,mem=%s',
$module,
$locked,
- $hidden,
$adminOnly,
$memOnly
));
foreach (postRequestElement('sel') as $id => $sel) {
// Load module data
// @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
- $result = sqlQueryEscaped("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`,
+ `admin_only`,
+ `mem_only`
+FROM
+ `{?_MYSQL_PREFIX?}_mod_reg`
+WHERE
+ `id`=%s
+LIMIT 1',
array(bigintval($id)), __FILE__, __LINE__);
// Load data
// Prepare array for the template
$content['locked'] = addSelectionBox('yn', $content['locked'] , 'locked', $id);
- $content['hidden'] = addSelectionBox('yn', $content['hidden'] , 'hidden', $id);
$content['admin_only'] = addSelectionBox('yn', $content['admin_only'], 'admin' , $id);
$content['mem_only'] = addSelectionBox('yn', $content['mem_only'] , 'member', $id);
SET
`title`='%s',
`locked`='%s',
- `hidden`='%s',
`admin_only`='%s',
`mem_only`='%s'
WHERE
array(
postRequestElement('title', $id),
postRequestElement('locked', $id),
- postRequestElement('hidden', $id),
postRequestElement('admin', $id),
postRequestElement('member', $id),
$id
if (!ifPostContainsSelections()) {
// Load module data (We do not need to check if there's at least one...)
$result = sqlQuery('SELECT
- `id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
+ `id`,
+ `module`,
+ `locked`,
+ `admin_only`,
+ `title`,
+ `mem_only`
FROM
`{?_MYSQL_PREFIX?}_mod_reg`
ORDER BY
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`module` VARCHAR(50) NOT NULL DEFAULT '',
`locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',
- `hidden` ENUM('Y','N') NOT NULL DEFAULT 'N',
`admin_only` ENUM('Y','N') NOT NULL DEFAULT 'N',
`title` VARCHAR(255) NOT NULL DEFAULT '',
`mem_only` ENUM('Y','N') NOT NULL DEFAULT 'N',
INSERT INTO `{?_MYSQL_PREFIX?}_config` (`config`) VALUES (0);
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('admin','N','N','Y','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('chk_login','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('confirm','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('css','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('frametester','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('index','N','N','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('js','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('loader','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('login','N','N','N','','Y');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('ref','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('admin','N','Y','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('chk_login','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('confirm','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('css','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('frametester','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('index','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('js','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('loader','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('login','N','N','','Y');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `admin_only`, `title`, `mem_only`) VALUES ('ref','N','N','','N');
INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (0,100);
INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (1,30);
{%form,formMethodPost=modules.php?module=admin&what=list_mods%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
- <td align="center" colspan="6" class="table_header bottom">
+ <td align="center" colspan="5" class="table_header bottom">
{--ADMIN_MODS_EDIT_TITLE--}
</td>
</tr>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_NAME--}</td>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_TITLE--}</td>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_IS_LOCKED--}</td>
- <td align="center" class="header_column bottom right">{--ADMIN_MODS_IS_HIDDEN--}</td>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_IS_ADMIN--}</td>
<td align="center" class="header_column bottom">{--ADMIN_MODS_IS_MEMBER--}</td>
</tr>
$content
<tr>
- <td colspan="6" class="table_footer">
+ <td colspan="5" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
<input type="submit" class="form_submit" name="do_edit" value="{--SAVE_CHANGES--}" />
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
$content[locked]
</td>
- <td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[hidden]
- </td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
$content[admin_only]
</td>
{%form,formMethodPost=modules.php?module=admin&what=list_mods%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
- <td colspan="7" class="table_header bottom" align="center">
+ <td colspan="6" class="table_header bottom" align="center">
{--ADMIN_LIST_MODS_TITLE--}
</td>
</tr>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_NAME--}</td>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_TITLE--}</td>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_IS_LOCKED--}</td>
- <td align="center" class="header_column bottom right">{--ADMIN_MODS_IS_HIDDEN--}</td>
<td align="center" class="header_column bottom right">{--ADMIN_MODS_IS_ADMIN--}</td>
<td align="center" class="header_column bottom">{--ADMIN_MODS_IS_MEMBER--}</td>
</tr>
$content
<tr>
- <td colspan="7" class="table_footer">
+ <td colspan="6" class="table_footer">
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
<input type="submit" class="form_submit" name="edit" value="{--ADMIN_MODS_EDIT--}" />
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
{%pipe,translateYesNo=$content[locked]%}
</td>
- <td class="{%template,ColorSwitch%} bottom right" align="center">
- {%pipe,translateYesNo=$content[hidden]%}
- </td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
{%pipe,translateYesNo=$content[admin_only]%}
</td>