Пример #1
0
 <?php 
die('<p style="font-size:36px;color:black;font-weight:bold;">404!</p>');
global $_str;
// check for crack!
if (isset($_GET['page'])) {
    system::count_parametr(5);
    system::isset_numeric($_GET['page']);
} else {
    system::count_parametr(3);
    $_GET['page'] = 1;
}
if (isset($_GET['url'])) {
    // получаем группу галереи
    $_id_gallery_grupa = dbh::get_gallery_grupa_id($_GET['url']);
    // проверяеим есть ли дети
    $children = dbh::gallery_grupa_get_child($_id_gallery_grupa);
    if (count($children)) {
        // выводим группы
        $_str .= gallery::get_group_gallery('/frontend/gallery/list.php');
    } else {
        // check for count gallery at page
        gallery::count_gallery_at_page();
        // get limit
        $limit = pager::pager_limit(gallery::count_gallery(), GALLERY_AT_PAGE);
        // выводим фото
        $_str .= gallery::get_gallery($limit, '/frontend/gallery/show.php');
    }
} else {
    $_str .= gallery::get_group_gallery('/frontend/gallery/list.php');
}
Пример #2
0
								<?php 
        }
        ?>
							
							</a>
						<?php 
    }
    ?>
	
					</div>
				</ins>	
						
	<?php 
}
?>
	
		</div>	
		
	<script type="text/javascript">
	$(document).ready(function(){
		<!-- colorbox -->
	  $("a[rel='example1']").colorbox();
	});
	</script>				
		
	
	<?php 
// pager
echo gallery::count_gallery() > GALLERY_AT_PAGE ? pager::pager_J(isset($_GET['url']) ? "gallery/" . $_GET['url'] : "gallery", GALLERY_AT_PAGE, gallery::count_gallery(), intval($_GET['page'])) : '';
?>