require_once 'Pman.php';
class Pman_Core_Images extends Pman
{
+
+ // tables that do not need authentication checks before serving.
+ var $public_image_tables = array();
+
+
function getAuth()
{
parent::getAuth(); // load company!
$this->imgErr("image has been removed or deleted.",$s);
}
- if (!$this->authUser) {
+ if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) {
if ($img->ontable != 'core_company') {
- $this->imgErr("not-authenticated",$s);
+ $this->imgErr("not-authenticated {$img->ontable}",$s);
}
if ($img->imgtype != 'LOGO') {
$this->imgErr("not-logo",$s);