diff --git a/Tester.zip b/Tester.zip index e133715..9c03815 100644 Binary files a/Tester.zip and b/Tester.zip differ diff --git a/Yuba.app.zip b/Yuba.app.zip index 1b96f51..9292b5e 100644 Binary files a/Yuba.app.zip and b/Yuba.app.zip differ diff --git a/Yuba.php b/Yuba.php index 8bce29c..12e4a1b 100755 --- a/Yuba.php +++ b/Yuba.php @@ -7,11 +7,20 @@ $version = file_get_contents(__DIR__."/current_version.txt"); ini_set('memory_limit', '10240M'); date_default_timezone_set("America/Los_Angeles"); -if (!file_exists("/tmp/yuba/debug.log")) { touch("/tmp/yuba/debug.log"); } // Includes & Prefs ////////////////////////////////////////// +// Timestamp + +$mytime = time(); +$tmpdir = "/tmp/yuba/".$mytime; +if (!is_dir($tmpdir)) { mkdir($tmpdir,0777,true); } +$stamp = date("Y-m-d_H-i-s", $mytime); +if (!file_exists("/tmp/yuba/debug.log")) { touch("/tmp/yuba/debug.log"); } + +// Prefs + $prefs_file = "/Users/".get_current_user()."/Library/Preferences/org.profiteroles.Yuba.php"; if (!file_exists($prefs_file)) { if (!copy(__DIR__."/prefs.php",$prefs_file)) { @@ -86,11 +95,6 @@ if ($p['contents'] && !extension_loaded("zip")) { // Path & application variables ////////////////////////////////////////// -$mytime = time(); -$tmpdir = "/tmp/yuba/".$mytime; -if (!is_dir($tmpdir)) { mkdir($tmpdir,0777,true); } -$stamp = date("Y-m-d_H-i-s", $mytime); - if (!isset($argv[1]) || $argv[1] == "") { echo "No input"; die; } $zpath = realpath(@$argv[1]); if ($p['bdest']) { $bdest = realpath($p['bdest']); } else { $bdest = "/Users/".get_current_user()."/Documents/Yuba/"; }