This commit is contained in:
ruben- 2014-09-13 20:46:39 +02:00
parent dfd5bd70b4
commit 9dd11099d4
2 changed files with 12 additions and 2 deletions

View file

@ -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;

View file

@ -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');