211 lines
4.3 KiB
PHP
Executable File
211 lines
4.3 KiB
PHP
Executable File
<?php
|
||
/*
|
||
|
||
01.05.2021
|
||
Личный кабинет
|
||
|
||
*/
|
||
//if (!$_SESSION['user_id'] && !ID)header( 'Location: /403/' );
|
||
$mod = new main( $smarty, $settings );
|
||
$mod -> db = $db;
|
||
//$mod -> install();
|
||
|
||
//Получаем данные об альбоме
|
||
unset($a);
|
||
$a['id']=ID;
|
||
$album=$db->get_massiv('foto_albums', $a, '', 1);
|
||
if ($album[0]['private']==1){
|
||
$_SESSION['private']=1;
|
||
// header('HTTP/1.1 301 Moved Permanently');
|
||
// header('Location: /foto_album/' . ID);
|
||
|
||
}else{
|
||
$_SESSION['private']=0;
|
||
|
||
}
|
||
|
||
$smarty -> assign( 'album', $album );
|
||
|
||
|
||
|
||
$_SESSION['album_id']=ID;
|
||
unset($a);
|
||
$a['album_id']=ID;
|
||
$foto=$db->get_massiv('foto_img', $a);
|
||
$smarty -> assign( 'foto', $foto );
|
||
|
||
|
||
if ($_SESSION['user_id']){
|
||
$hashtags=$db->get_massiv('hashtags');
|
||
$c=count($hashtags);
|
||
$smarty -> assign( 'hashtags', $hashtags );
|
||
}
|
||
?><?php
|
||
/*
|
||
|
||
01.05.2021
|
||
Личный кабинет
|
||
|
||
*/
|
||
//if (!$_SESSION['user_id'] && !ID)header( 'Location: /403/' );
|
||
$mod = new main( $smarty, $settings );
|
||
$mod -> db = $db;
|
||
//$mod -> install();
|
||
|
||
//Получаем данные об альбоме
|
||
unset($a);
|
||
$a['id']=ID;
|
||
$album=$db->get_massiv('foto_albums', $a, '', 1);
|
||
if ($album[0]['private']==1){
|
||
$_SESSION['private']=1;
|
||
// header('HTTP/1.1 301 Moved Permanently');
|
||
// header('Location: /foto_album/' . ID);
|
||
|
||
}else{
|
||
$_SESSION['private']=0;
|
||
|
||
}
|
||
|
||
$smarty -> assign( 'album', $album );
|
||
|
||
|
||
|
||
$_SESSION['album_id']=ID;
|
||
unset($a);
|
||
$a['album_id']=ID;
|
||
$foto=$db->get_massiv('foto_img', $a);
|
||
$smarty -> assign( 'foto', $foto );
|
||
|
||
|
||
if ($_SESSION['user_id']){
|
||
$hashtags=$db->get_massiv('hashtags');
|
||
$c=count($hashtags);
|
||
$smarty -> assign( 'hashtags', $hashtags );
|
||
}
|
||
?><?php
|
||
/*
|
||
|
||
01.05.2021
|
||
Личный кабинет
|
||
|
||
*/
|
||
//if (!$_SESSION['user_id'] && !ID)header( 'Location: /403/' );
|
||
$mod = new main( $smarty, $settings );
|
||
$mod -> db = $db;
|
||
//$mod -> install();
|
||
|
||
//Получаем данные об альбоме
|
||
unset($a);
|
||
$a['id']=ID;
|
||
$album=$db->get_massiv('foto_albums', $a, '', 1);
|
||
if ($album[0]['private']==1){
|
||
$_SESSION['private']=1;
|
||
// header('HTTP/1.1 301 Moved Permanently');
|
||
// header('Location: /foto_album/' . ID);
|
||
|
||
}else{
|
||
$_SESSION['private']=0;
|
||
|
||
}
|
||
|
||
$smarty -> assign( 'album', $album );
|
||
|
||
|
||
|
||
$_SESSION['album_id']=ID;
|
||
unset($a);
|
||
$a['album_id']=ID;
|
||
$foto=$db->get_massiv('foto_img', $a);
|
||
$smarty -> assign( 'foto', $foto );
|
||
|
||
|
||
if ($_SESSION['user_id']){
|
||
$hashtags=$db->get_massiv('hashtags');
|
||
$c=count($hashtags);
|
||
$smarty -> assign( 'hashtags', $hashtags );
|
||
}
|
||
?><?php
|
||
/*
|
||
|
||
01.05.2021
|
||
Личный кабинет
|
||
|
||
*/
|
||
//if (!$_SESSION['user_id'] && !ID)header( 'Location: /403/' );
|
||
$mod = new main( $smarty, $settings );
|
||
$mod -> db = $db;
|
||
//$mod -> install();
|
||
|
||
//Получаем данные об альбоме
|
||
unset($a);
|
||
$a['id']=ID;
|
||
$album=$db->get_massiv('foto_albums', $a, '', 1);
|
||
if ($album[0]['private']==1){
|
||
$_SESSION['private']=1;
|
||
// header('HTTP/1.1 301 Moved Permanently');
|
||
// header('Location: /foto_album/' . ID);
|
||
|
||
}else{
|
||
$_SESSION['private']=0;
|
||
|
||
}
|
||
|
||
$smarty -> assign( 'album', $album );
|
||
|
||
|
||
|
||
$_SESSION['album_id']=ID;
|
||
unset($a);
|
||
$a['album_id']=ID;
|
||
$foto=$db->get_massiv('foto_img', $a);
|
||
$smarty -> assign( 'foto', $foto );
|
||
|
||
|
||
if ($_SESSION['user_id']){
|
||
$hashtags=$db->get_massiv('hashtags');
|
||
$c=count($hashtags);
|
||
$smarty -> assign( 'hashtags', $hashtags );
|
||
}
|
||
?><?php
|
||
/*
|
||
|
||
01.05.2021
|
||
Личный кабинет
|
||
|
||
*/
|
||
//if (!$_SESSION['user_id'] && !ID)header( 'Location: /403/' );
|
||
$mod = new main( $smarty, $settings );
|
||
$mod -> db = $db;
|
||
//$mod -> install();
|
||
|
||
//Получаем данные об альбоме
|
||
unset($a);
|
||
$a['id']=ID;
|
||
$album=$db->get_massiv('foto_albums', $a, '', 1);
|
||
if ($album[0]['private']==1){
|
||
$_SESSION['private']=1;
|
||
// header('HTTP/1.1 301 Moved Permanently');
|
||
// header('Location: /foto_album/' . ID);
|
||
|
||
}else{
|
||
$_SESSION['private']=0;
|
||
|
||
}
|
||
|
||
$smarty -> assign( 'album', $album );
|
||
|
||
|
||
|
||
$_SESSION['album_id']=ID;
|
||
unset($a);
|
||
$a['album_id']=ID;
|
||
$foto=$db->get_massiv('foto_img', $a);
|
||
$smarty -> assign( 'foto', $foto );
|
||
|
||
|
||
if ($_SESSION['user_id']){
|
||
$hashtags=$db->get_massiv('hashtags');
|
||
$c=count($hashtags);
|
||
$smarty -> assign( 'hashtags', $hashtags );
|
||
}
|
||
?>
|