Esempio n. 1
0
 function new_menus()
 {
     if (MainWP_Utility::isAdmin()) {
         //Adding the page to manage your added sites/groups
         //The first page which will display the post area etc..
         MainWP_Security_Issues::initMenu();
         MainWP_Manage_Sites::initMenu();
         MainWP_Post::initMenu();
         MainWP_Page::initMenu();
         MainWP_Themes::initMenu();
         MainWP_Plugins::initMenu();
         MainWP_User::initMenu();
         MainWP_Manage_Backups::initMenu();
         MainWP_Bulk_Update_Admin_Passwords::initMenu();
         MainWP_Manage_Groups::initMenu();
         MainWP_Settings::initMenu();
         MainWP_Extensions::initMenu();
         do_action('mainwp_admin_menu');
         MainWP_Documentation::initMenu();
         MainWP_Server_Information::initMenu();
         MainWP_Child_Scan::initMenu();
         MainWP_API_Settings::initMenu();
     }
 }
Esempio n. 2
0
 public static function changeRole($role)
 {
     MainWP_User::action('changeRole', $role);
     die(json_encode(array('result' => 'User role has been changed to ' . ucfirst($role))));
 }
 function mainwp_importuser()
 {
     $this->secure_request('mainwp_importuser');
     MainWP_User::doImport();
 }
    public static function QSGManageAdminPasswords()
    {
        MainWP_User::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 
        MainWP_User::renderFooter('AdminPasswordsHelp');
    }