Moderator: Integra Moderator
"HelterSkelter";p="23836" wrote:go to
acp/security/special
and set the amount of allowed mods and admins
"HelterSkelter";p="23844" wrote:chmod includes/phpbb_security to 666
Open includes/phpbb_security.php.
FINDPHP: à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Select à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ºÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Contract à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º
function phpBBSecurity_AdminConfigName()
{
return 'phpBBSecurity_max_admins';
}
function phpBBSecurity_ModConfigName()
{
return 'phpBBSecurity_max_mods';
}
function phpBBSecurity_UseSpecial()
{
return 'phpBBSecurity_use_max';
}
phpBBSecurity_max_admins = sec_admin value
phpBBSecurity_max_mods = sec_mod value
phpBBSecurity_use_max = sec_name value
So if the value of your sec_admin is abcdefg, then replace phpBBSecurity_max_admins with abcdefg in the phpbb_security.php file. When you updated your phpbb_security.php file probably wasn't CHMOD'd to allow the update to write to it.
Open includes/phpbb_security.php.
FINDPHP: à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Select à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ºÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Contract à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º
function phpBBSecurity_AdminConfigName()
{
return 'phpBBSecurity_max_admins';
}
function phpBBSecurity_ModConfigName()
{
return 'phpBBSecurity_max_mods';
}
function phpBBSecurity_UseSpecial()
{
return 'phpBBSecurity_use_max';
}
phpBBSecurity_max_admins = sec_admin value
phpBBSecurity_max_mods = sec_mod value
phpBBSecurity_use_max = sec_name value
So if the value of your sec_admin is abcdefg, then replace phpBBSecurity_max_admins with abcdefg in the phpbb_security.php file. When you updated your phpbb_security.php file probably wasn't CHMOD'd to allow the update to write to it.
Open includes/phpbb_security.php.
FINDPHP: à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Select à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ºÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Contract à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º
function phpBBSecurity_AdminConfigName()
{
return '3';
}
function phpBBSecurity_ModConfigName()
{
return '7';
}
function phpBBSecurity_UseSpecial()
{
return 'phpBBSecurity_use_max';
}
phpBBSecurity_max_admins = sec_admin value
phpBBSecurity_max_mods = sec_mod value
phpBBSecurity_use_max = sec_name value
So if the value of your sec_admin is abcdefg, then replace phpBBSecurity_max_admins with abcdefg in the phpbb_security.php file. When you updated your phpbb_security.php file probably wasn't CHMOD'd to allow the update to write to it.
//*** The return valuse in the next 3 functions MUST be changed to the default values prior to installing.See Michales_notes.txt in install directory before running an install ***// function phpBBSecurity_AdminConfigName() { return 'phpBBSecurity_max_admins'; } function phpBBSecurity_ModConfigName() { return 'phpBBSecurity_max_mods'; } function phpBBSecurity_UseSpecial() { return 'phpBBSecurity_use_max'; }
//*** The return valuse in the next 3 functions MUST be changed to the default values prior to installing.See Michales_notes.txt in install directory before running an install ***// function phpBBSecurity_AdminConfigName() { return 'admins_allowed'; } function phpBBSecurity_ModConfigName() { return 'mods_allowed'; } function phpBBSecurity_UseSpecial() { return 'block_unwanted'; }
INSERT INTO `phpbb_config` VALUES ('admins_allowed', '10');INSERT INTO `phpbb_config` VALUES ('mods_allowed', '10');INSERT INTO `phpbb_config` VALUES ('block_unwanted', '1');INSERT INTO `phpbb_config` VALUES ('sec_admin', 'admins_allowed');INSERT INTO `phpbb_config` VALUES ('sec_mods', 'mods_allowed');INSERT INTO `phpbb_config` VALUES ('sec_name', 'block_unwanted');
REPLACE INTO `phpbb_config` VALUES ('admins_allowed', '10');REPLACE INTO `phpbb_config` VALUES ('mods_allowed', '10');REPLACE INTO `phpbb_config` VALUES ('block_unwanted', '1');REPLACE INTO `phpbb_config` VALUES ('sec_admin', 'admins_allowed');REPLACE INTO `phpbb_config` VALUES ('sec_mods', 'mods_allowed');REPLACE INTO `phpbb_config` VALUES ('sec_name', 'block_unwanted');
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Script-Filename: /forum/admin/admin_phpbbmyadmin.php
----------------
Request-Method: POST
Matching rule: insert
In variable: this_query
Matching rule: into
In variable: this_query
Matching rule: '
In variable: this_query
Possible solution:
------------------
#
#-----[ OPEN ]------------------------------------------
#
/forum/admin/admin_phpbbmyadmin.php
#
#-----[ FIND ]------------------------------------------
#
define('IN_PHPBB', 1);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('CT_SECLEVEL', 'MEDIUM');
$ct_ignorepvar = array('this_query');
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/k1jon/public_html/forum/db/mysql4.php on line 254
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/k1jon/public_html/forum/db/mysql4.php on line 254
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/k1jon/public_html/forum/db/mysql4.php on line 254
General Error
Error in SQL query INSERT INTO `phpbb_config` VALUES ('sec_admin', 'admins_allowed');
Click here to return to phpBBMyAdmin board.
Click here to return to Admin Control Panel board.
DEBUG MODE
SQL Error : 1062 Duplicate entry 'sec_admin' for key 1
INSERT INTO phpbb_config VALUES ('admins_allowed', '9');INSERT INTO phpbb_config VALUES ('mods_allowed', '9');INSERT INTO phpbb_config VALUES ('block_unwanted', '1');INSERT INTO phpbb_config VALUES ('sec_admin', 'admins_allowed');INSERT INTO phpbb_config VALUES ('sec_mods', 'mods_allowed');INSERT INTO phpbb_config VALUES ('sec_name', 'block_unwanted');
Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]