}
-
+
/**
* create an email from file.
* these must have been set first.
/// 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'])
$sy = $sz[1];
}
// create it?
-
- return '<img src="' . $this->URL($size, $provider) . '" width="'. $sx . '" height="'. $sy . '">';
+ $extra = '';
+ if (strlen($this->title)) {
+ $extra = ' title="'. htmlspecialchars($this->title) . '"';
+ }
+
+ return '<img src="' . $this->URL($size, $provider) . '"' .
+ $extra .
+ ' width="'. $sx . '"' .
+ ' height="'. $sy . '">';
}
{
// 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);