}
-
+
/**
* create an email from file.
* these must have been set first.
function beforeDelete()
{
$fn = $this->getStoreName();
- print_r($fn);exit;
if (file_exists($fn)) {
unlink($fn);
}
/// ctrl not used??
function onUpload($roo)
{
-
+// echo $_FILES['imageUpload']['type'];exit;
if (empty($_FILES['imageUpload']['tmp_name']) ||
empty($_FILES['imageUpload']['name']) ||
empty($_FILES['imageUpload']['type'])
{
// not sure why we do this..
-
-
-
-
// if imgtype starts with '-' ? then we set the 'old' (probably to delete later)
if (!empty($ar['imgtype']) && !empty($ar['ontable']) && !empty($ar['onid']) && ($ar['imgtype'][0] == '-')) {
$this->setFrom($ar);