2014-09-29, 05:59 AM
So my forum went through a very strange attack deleting the Administrator account... How would I go about fixing this because I'm having to make forum changes through phpmyadmin -_- It's getting painful. Please Help!
SELECT * FROM mybb_usergroups WHERE cancp=1
<?php
define("IN_MYBB", 1);
define("NO_ONLINE", 1);
require_once "global.php";
$cache->update_usergroups();
$cache->update_forumpermissions();
echo "Cache's updated.";
?>
(2014-09-30, 01:19 PM)dragonexpert Wrote: [ -> ]If you have made it so at least one usergroup can access the Admin CP place yourself in that group. You can check which groups can by running this query:
SELECT * FROM mybb_usergroups WHERE cancp=1
Make sure also in your /inc/config.php file that your uid is in the $config['super_admins'] variable.
Then create a file in the directory of your forum with this:
<?php define("IN_MYBB", 1); define("NO_ONLINE", 1); require_once "global.php"; $cache->update_usergroups(); $cache->update_forumpermissions(); echo "Cache's updated."; ?>
Check if you are able to view the Admin CP after that. If you can, go ahead and delete the file you just created so no one can use it.