$playerDir = WS_COMPILE_ASSETS . '/player/';
$branchesDir = $playerDir . 'branches/';
$localDir = $playerDir . 'local/';
- $git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
echo '<pre>';
+ $git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
+ echo $git->executeCmd('stash save --keep-index');
+ $git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
+ echo $git->executeCmd('stash drop');
+ $git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
echo $git->executeCmd('pull --all');
$git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
echo $git->executeCmd('fetch --all --prune');
foreach ($dirs as $dir) {
cubeFiles::scanRecursiveDir($dir, $files);
$limit = TIME - 7200;
- if(is_array($files)) {
+ if (is_array($files)) {
foreach ($files as $f) {
if (filemtime($f) < $limit) {
unlink($f);
public static function reencodeVideos($args)
{
-
cubePHP::neverStop();
$book_id = $args[0];