virt2/api/code/set_rekv.php_1595860416.old

18 lines
795 B
Plaintext
Executable File

<?php
if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' );
unset($a);
$a['mod'] = 'set_rekv';
$xml = $db -> get_val( 'settings', $a, 'xml' );
if (!$xml['xml']){$db->free_sql("INSERT INTO `settings` (`mod`, `xml`, `site`)
VALUES ('set_rekv', '<org>Заполните правильное название</org>', '');");
$xml = $db -> get_val( 'settings', $a, 'xml' );
}
require_once MYDIR . '/api/php/parsexml.php';
$parce -> make_massiv ( $xml );
$arr = $parce -> res;
foreach ( $arr as $key => $value ) $settings[$key] = $value;
//Получаем список шаблонов....
include_once(MYDIR . '/api/php/list_dir.php');
$templates_list=list_dir(MYDIR . '/api/templates/other');
$smarty->assign('templates_list', $templates_list);
?>