mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
This commit is contained in:
parent
dfd5bd70b4
commit
9dd11099d4
2 changed files with 12 additions and 2 deletions
|
@ -1552,6 +1552,16 @@ class MainWPChild
|
|||
$excludes[] = str_replace(ABSPATH, '', WP_CONTENT_DIR) . '/object-cache.php';
|
||||
|
||||
$file_descriptors = (isset($_POST['file_descriptors']) ? $_POST['file_descriptors'] : 0);
|
||||
$file_descriptors_auto = (isset($_POST['file_descriptors_auto']) ? $_POST['file_descriptors_auto'] : 0);
|
||||
if ($file_descriptors_auto == 1)
|
||||
{
|
||||
if (function_exists('posix_getrlimit'))
|
||||
{
|
||||
$result = @posix_getrlimit();
|
||||
if (isset($result['soft openfiles'])) $file_descriptors = $result['soft openfiles'];
|
||||
}
|
||||
}
|
||||
|
||||
$loadFilesBeforeZip = (isset($_POST['loadFilesBeforeZip']) ? $_POST['loadFilesBeforeZip'] : true);
|
||||
|
||||
$newExcludes = array();
|
||||
|
@ -1956,7 +1966,7 @@ class MainWPChild
|
|||
{
|
||||
global $wp_version;
|
||||
|
||||
$this->updateExternalSettings();
|
||||
if ($exit) $this->updateExternalSettings();
|
||||
|
||||
$information['version'] = $this->version;
|
||||
$information['wpversion'] = $wp_version;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Description: Child Plugin for MainWP. The plugin is used so the installed blog can be securely managed remotely by your network. Plugin documentation and options can be found here http://docs.mainwp.com
|
||||
Author: MainWP
|
||||
Author URI: http://mainwp.com
|
||||
Version: 1.2
|
||||
Version: 1.2.1-beta
|
||||
*/
|
||||
header('X-Frame-Options: ALLOWALL');
|
||||
//header('X-Frame-Options: GOFORIT');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue