Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben- committed Aug 29, 2014
1 parent 79d60d8 commit 2a01dab
Show file tree
Hide file tree
Showing 32 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions class/MainWPBackup.class.php
Expand Up @@ -571,6 +571,8 @@ public function addFileFromStringToPCLZip($file, $string, $filepath)
return false;
}

protected $gcCnt = 0;

function addFileToZip($path, $zipEntryName)
{
if (time() - $this->lastRun > 20)
Expand All @@ -590,6 +592,7 @@ function addFileToZip($path, $zipEntryName)
// return $zip->addFile( $path, $zipEntryName );

$this->zipArchiveSizeCount += filesize($path);
$this->gcCnt++;

//5 mb limit!
if (filesize($path) > 5 * 1024 * 1024)
Expand All @@ -609,6 +612,12 @@ function addFileToZip($path, $zipEntryName)
unset($contents);
}

if ($this->gcCnt > 20)
{
@gc_collect_cycles();
$this->gcCnt = 0;
}

//Over limits?
if ((($this->file_descriptors > 0) && ($this->zipArchiveFileCount > $this->file_descriptors))) // || $this->zipArchiveSizeCount >= (31457280 * 2))
{
Expand Down
13 changes: 12 additions & 1 deletion class/MainWPClone.class.php
Expand Up @@ -32,7 +32,18 @@ public static function print_scripts()
wp_enqueue_script('jquery-ui-autocomplete');
wp_enqueue_script('jquery-ui-progressbar');
wp_enqueue_script('jquery-ui-dialog');
wp_enqueue_style('jquery-ui-style', plugins_url('/css/jquery-ui-1.10.4.min.css'));

global $wp_scripts;
$ui = $wp_scripts->query('jquery-ui-core');
$version = $ui->ver;
if (MainWPHelper::startsWith($version, '1.10'))
{
wp_enqueue_style('jquery-ui-style', plugins_url('/css/1.10.4/jquery-ui.min.css', dirname(__FILE__)));
}
else
{
wp_enqueue_style('jquery-ui-style', plugins_url('/css/1.11.1/jquery-ui.min.css', dirname(__FILE__)));
}
}

public static function renderHeader()
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-bg_flat_10_000000_40x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-bg_glass_100_f6f6f6_1x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-bg_glass_100_fdf5ce_1x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-bg_glass_65_ffffff_1x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-icons_222222_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-icons_228ef1_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/1.11.1/images/ui-icons_ef8c08_256x240.png
Binary file added css/1.11.1/images/ui-icons_ffd27a_256x240.png
Binary file added css/1.11.1/images/ui-icons_ffffff_256x240.png
7 changes: 7 additions & 0 deletions css/1.11.1/jquery-ui.min.css

Large diffs are not rendered by default.

0 comments on commit 2a01dab

Please sign in to comment.