0.7.13.2
This commit is contained in:
16
Yuba.php
16
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/"; }
|
||||
|
||||
Reference in New Issue
Block a user