class helpController extends Controllers {
var $models = Array ('types'); // display other models if you want
function index(){
}
function animated_gif($id="", $size="", $wait=""){
$id = mysql_real_escape_string($id);
$size = (int)$size;
$wait = (int)$wait;
if (!$id)die;
if (!$size)die;
if (!$wait)$wait=40;
$gall = array();
$gall = $GLOBALS['db']->GetAll("SELECT id, logo FROM gallery WHERE gallery_id = '{$id}' ORDER BY sortorder ASC");
if(is_array($gall) && count($gall)>0)
{
header ('Content-type:image/gif');
include(LOCALPATH_ENGINE.'/engine/lib/GIFEncoder.class.php');
foreach ($gall AS $k=>$v){
$arr[] = WEBPATH."f/gallery/".(int)($v['id']/1000)."/".$size."_".$v['logo'].".jpg";
}
foreach ($arr AS $k=>$v){
$image = imagecreatefromjpeg($v);
ob_start();
imagegif($image);
$frames[]=ob_get_contents();
$framed[]=$wait; // Delay in the animation.
ob_end_clean();
}
// Generate the animated gif and output to screen.
$gif = new GIFEncoder($frames,$framed,0,2,0,0,0,'bin');
echo $gif->GetAnimation();
}
else echo 'no_images_for_gif_creating';
die;
}
}
?>
Fatal error: Class 'helpController' not found in /var/www/sauto.bg/engine/Core.class.php on line 173