Beispiel #1
0
 public static function changeRole($role)
 {
     MainWPUser::action('changeRole', $role);
     die(json_encode(array('result' => 'User role has been changed to ' . ucfirst($role))));
 }
Beispiel #2
0
 function new_menus()
 {
     if (MainWPUtility::isAdmin()) {
         //Adding the page to manage your added sites/groups
         //The first page which will display the post area etc..
         MainWPSecurityIssues::initMenu();
         MainWPManageSites::initMenu();
         MainWPPost::initMenu();
         MainWPPage::initMenu();
         MainWPThemes::initMenu();
         MainWPPlugins::initMenu();
         MainWPUser::initMenu();
         MainWPManageBackups::initMenu();
         MainWPOfflineChecks::initMenu();
         MainWPBulkUpdateAdminPasswords::initMenu();
         MainWPManageGroups::initMenu();
         MainWPSettings::initMenu();
         MainWPExtensions::initMenu();
         do_action('mainwp_admin_menu');
         MainWPDocumentation::initMenu();
         MainWPServerInformation::initMenu();
         MainWPChildScan::initMenu();
         MainWPAPISettings::initMenu();
     }
 }
 function mainwp_importuser()
 {
     $this->secure_request('mainwp_importuser');
     MainWPUser::doImport();
 }
    public static function QSGManageAdminPasswords()
    {
        MainWPUser::renderHeader('AdminPasswordsHelp');
        ?>
<div style="text-align: center"><a href="#" class="button button-primary" id="mainwp-quick-start-guide"><?php 
        _e('Show Quick Start Guide', 'mainwp');
        ?>
</a></div>
                      <div  class="mainwp_info-box-yellow" id="mainwp-qsg-tips">
                          <span><a href="#" class="mainwp-show-qsg" number="1"><?php 
        _e('Manage Admin Passwords', 'mainwp');
        ?>
</a></span><span><a href="#" id="mainwp-qsg-dismiss" style="float: right;"><i class="fa fa-times-circle"></i> <?php 
        _e('Dismiss', 'mainwp');
        ?>
</a></span>
                      <div class="clear"></div>
                      <div id="mainwp-qsgs">
                        <div class="mainwp-qsg" number="1">
                            <h3>Manage Admin Passwords</h3>
                            <p>
                                <ol>
                                    <li>
                                        Enter a new password twice
                                    </li>
                                    <li>
                                        Select the sites in the Select Site Box
                                    </li>
                                    <li>
                                        Click Update Now button
                                    </li>
                                </ol>
                            </p>
                        </div>
                      </div>
                    </div>
    <?php 
        MainWPUser::renderFooter('AdminPasswordsHelp');
    }