core/api/modules/foto_edit_album/index.php

19 lines
544 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*************************
06.05.2021
Изменяет данные об альбоме
*************************/
$db -> check_access('foto_albums', ID, 1); // Проверяем доступ к таблице, по ИД альбома и редирект если доступа нет
unset( $a );
$a['id'] = ID;
$album = $db -> get_massiv( 'foto_albums', $a, '', 1 );
$mod = new main( $smarty, $settings );
$mod -> db = $db;
$mod -> install();
$_SESSION['album_id'] = ID;
$smarty -> assign( 'album', $album );
?>