View file fotov4/foto/index.php

File size: 1.46Kb
<?php 

include_once $_SERVER['DOCUMENT_ROOT'].'/sys/inc/home.php';
include_once H.'sys/inc/start.php';
include_once H.'sys/inc/compress.php';
include_once H.'sys/inc/sess.php';
include_once H.'sys/inc/settings.php';
include_once H.'sys/inc/db_connect.php';
include_once H.'sys/inc/ipua.php';
include_once H.'sys/inc/fnc.php';
include_once H.'sys/inc/user.php';


// Просмотр фото
if (isset($_GET['acth']) && $_GET['acth']=='show_foto' && isset($_GET['id_gallery']) && isset($_GET['id_foto']))
{
	include_once 'inc/user_show_foto.php';
}


// Просмотр альбома юзера с фото
if (isset($_GET['acth']) && $_GET['acth'] == 'user_gallery' && isset($_GET['id_gallery']))
{
	include_once 'inc/user_gallery_show.php';
}
// Просмотр лайков на фотке
elseif(isset($_GET['acth']) && $_GET['acth'] == 'like')
{
	include_once 'inc/user_show_foto_like.php';
}
// Просмотр закладок на фотке
elseif(isset($_GET['acth']) && $_GET['acth'] == 'fave')
{
	include_once 'inc/user_show_foto_fav.php';
}
// Просмотр альбома юзера
elseif(isset($_GET['acth']) && $_GET['acth'] == 'user_gallery')
{
	include_once 'inc/user_gallery.php';
}
// Просмотр всех фоток
elseif(isset($_GET['acth']) && $_GET['acth'] == 'user_gallery_photo')
{
	include_once 'inc/user_gallery_photo.php';
}
// Просто общая галерея
else{
	include_once 'inc/all_gallery.php';
}


include_once H.'sys/inc/tfoot.php';

?>