virt2/api/code/set_rekv.php_1595860858.old

15 lines
610 B
Plaintext
Raw Normal View History

<?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 ) $rekv[$key] = $value;
$smarty->assign('rekv', $rekv);
?>