// currently this is 0775 due to problems using shared hosing (FTP)
// it makes all the files unaccessable..
// you can normally solve this by giving the storedirectory better perms
- // if needed..
+ // if needed on a dedicated server..
$oldumask = umask(0);
mkdir($dest, 0775, true);
umask($oldumask);
// echo '<PRE>';print_r($req);exit;
$ret= $this->toArray();
-
+ static $ff = false;
+ if (!$ff) {
+ $ff = HTML_FlexyFramework::get();
+ }
+
+ $ret['public_baseURL'] = isset($ff->Pman_Images['public_baseURL']) ?
+ $ff->Pman_Images['public_baseURL'] : $ff->baseURL;
+
if (!empty($req['query']['imagesize'])) {
$baseURL = isset($req['query']['imageBaseURL']) ? $req['query']['imageBaseURL'] : false;
}
-
+
+ /**
+ * to Fileconvert object..
+ *
+ *
+ *
+ */
+ function toFileConvert()
+ {
+ require_once 'File/Convert.php';
+ $fc = new File_Convert($this->getStoreName(), $this->mimetype);
+ return $fc;
+
+ }
/**
*
*