Example #1
0
function mpi_delete_backup()
{
    $delete_flag = $_GET['dl'];
    if (isset($delete_flag) && trim($delete_flag) && $delete_flag == 1) {
        $mpiObj = new mpinstaller();
        $mpiObj->mpi_delete();
    }
}
<?php

$mpiObj = new mpinstaller();
$han_plugins_list = array("WP Lipsum", "Easy Featured Images", "P3 (Plugin Performance Profiler)", "Theme Check", "Duplicate Post", "WP Example Content", "Disable Comments", "Regenerate Thumbnails", "WP Limit Login Attempts", "WordPress File Monitor Plus", "Maintenance", "WP Lipsum", "Post Thumbnail Editor", "Convert Post Types");
$plListText = implode("&#13;&#10;", $han_plugins_list);
?>
<div class="wrap pc-wrap">
	<div class="mpiicon icon32"></div>
	<h2><?php 
_e('Hanuman Dev Plugins Installer', 'mpi');
?>
</h2>
	<?php 
if (!current_user_can('edit_plugins')) {
    _e('You do not have sufficient permissions to manage plugins on this blog.<br>', 'mpi');
    return;
}
?>
	<div id="mpiblock">

			

		<div><?php 
if ($mpiObj->mpi_app_DirTesting()) {
} else {
    _e('<div class="mpi_error">oops!!! Seems like the directory permission are not set right so some functionalities of plugin will not work.<br/>Please set the directory permission for the folder "uploads" inside "wp-content" directory to 777.</div>', 'mpi');
}
?>
</div>
		
		<div id="poststuff" class="mpi-meta-box">
Example #3
0
<?php

$mpiObj = new mpinstaller();
?>
<div class="wrap pc-wrap">
	<div class="mpiicon icon32"></div>
	<h2><?php 
_e('Multi Plugin Installer ' . mpi_get_version() . '', 'mpi');
?>
</h2>
	<?php 
if (!current_user_can('edit_plugins')) {
    _e('You do not have sufficient permissions to manage plugins on this blog.<br>', 'mpi');
    return;
}
?>
	<div id="mpiblock">

			
		<div style="text-align:right;"><a href="javascript:void(0);" id="mpi-expand"><?php 
_e('Expand All', 'mpi');
?>
</a>&nbsp;<a href="javascript:void(0);" id="mpi-collapse"><?php 
_e('Collapse All', 'mpi');
?>
</a></div>
		
		<div><?php 
if ($mpiObj->mpi_app_DirTesting()) {
} else {
    _e('<div class="mpi_error">oops!!! Seems like the directory permission are not set right so some functionalities of plugin will not work.<br/>Please set the directory permission for the folder "uploads" inside "wp-content" directory to 777.</div>', 'mpi');