Сайт временно не работает q("select str_id from company where reg_code='".$Reg_code."' limit 1;"); if($biz_data = $res->fetch()) { $url = $RootPath."biz_fotos/".$biz_data["str_id"]; if($Img_id) { $url .= "/".$Img_id; } header("HTTP/1.1 301 Moved Permanently"); header("Location: $url"); exit; } else { require_once("404_inside.php"); exit; } } require($DocRoot."model/gallery.php"); require_once($DocRoot."model/pagination.php"); $gallery = new gallery("biz", $user_id, $str_id, $Img_id, $PageStart, "d", $tab); if($gallery->is_404) { require_once("404_inside.php"); exit; } if($gallery->redirect_url) { header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$RootPath.$gallery->redirect_url); exit; } $alternate = $mRootPath.$mobile_page; require("gallery_view.php"); ?>