21.03.2006, 19:47
Code:
mySQL error: 1146
Table 'd0028f1d.mybb_emods' doesn't exist
Query: SELECT * FROM mybb_emods WHERE module='pmadmin' LIMIT 1
das Problem habe ich mit dem Private Messeging report mod.
Hab das datenbankupdate gemacht
mySQL error: 1146
Table 'd0028f1d.mybb_emods' doesn't exist
Query: SELECT * FROM mybb_emods WHERE module='pmadmin' LIMIT 1
mySQL error: 1060
Duplicate column name 'canmanageemods'
Query: ALTER TABLE `mybb_adminoptions` ADD `canmanageemods` CHAR(3) DEFAULT 'no' NOT NULL
Zitat:MyBB Fehler
Zugang nicht gestattet!
Du hast nicht die Berechtigung diesen Teil des Administration Control-Panels zu betreten.
Find:
$db->update_query(TABLE_PREFIX."adminoptions", $sqlarray, "uid='$uid'");
After, add:
/* eMods Core Support: Start */
if(is_array($eMod_perms))
{
$eMod_newperms = array();
while(list($perm, $value) = each($eMod_perms))
{
$eMod_newperms[$perm] = addslashes($value);
}
$db->update_query(TABLE_PREFIX."adminoptions", $eMod_newperms, "uid='$uid'");
}
/* eMods Core Support: End */
Find:
makeyesnocode($lang->can_use_maint, "newperms[canrunmaint]", $permissions['canrunmaint']);
After add:
include $config['admindir'].'/eMods-perms.php';
if($adminoptions['uid'])
{
$db->update_query(TABLE_PREFIX."adminoptions", $sqlarray, "uid='".$user['uid']."'");
/* eMods Core Support: Start */
if(is_array($eMod_perms))
{
$eMod_newperms = array();
while(list($perm, $value) = each($eMod_perms))
{
$eMod_newperms[$perm] = addslashes($value);
}
$db->update_query(TABLE_PREFIX."adminoptions", $eMod_newperms, "uid='".$user['uid']."'");
}
/* eMods Core Support: End */