// tables that do not need authentication checks before serving.
var $public_image_tables = array();
+ var $is_email = false;
+
var $sizes = array(
'100',
'100x100',
// return $this->post();
//}
+ if(!empty($_REQUEST['is_email'])) {
+ $this->is_email = true;
+ }
+
$this->as_mimetype = empty($_REQUEST['as']) ? '' : $_REQUEST['as'];
$this->page = empty($_REQUEST['page']) ? false : (int) $_REQUEST['page'];
if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) {
+ if($this->is_email) {
+ return $this->serve($img);
+ }
+
if ($img->ontable != 'core_company') {
$this->imgErr("not-authenticated {$img->ontable}",$s);
}
$real_url = str_replace(' ', '%20', $this->mapurl($url));
$a = new HTTP_Request($real_url);
+ $a->addQueryString('is_email', 1);
$a->sendRequest();
$data = $a->getResponseBody();