From cd5250557609e2f3b591d44b5cc4aeeae4c78962 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 12 Oct 2012 16:14:03 +0800 Subject: [PATCH] DataObjects/Events.php --- DataObjects/Events.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DataObjects/Events.php b/DataObjects/Events.php index 154b834c..74e377dd 100644 --- a/DataObjects/Events.php +++ b/DataObjects/Events.php @@ -432,11 +432,12 @@ class Pman_Core_DataObjects_Events extends DB_DataObject $files[$k] = $f; $files[$k]['tmp_name'] = $this->id . '.file_'. $i.'.jpg'; $nf = $ff->Pman['event_log_dir']. '/'. $user. date('/Y/m/d/'). $this->id . ".file_$i.jpg"; + print_r(copy($f['tmp_name'], $nf)); if (!copy($f['tmp_name'], $nf)) { print_r("failed to copy {$f['tmp_name']}...\n"); } } - print_r($files); + file_put_contents($file, json_encode(array( 'REQUEST_URI' => empty($_SERVER['REQUEST_URI']) ? 'cli' : $_SERVER['REQUEST_URI'], 'GET' => empty($_GET) ? array() : $_GET, -- 2.39.2