<?php
//126. // Устанавливаем скин
foreach (glob('../theme/*/*.css') as $val)
$theme_list[] = array_pop(explode('/', dirname($val)));
$set_user['skin'] = isset($_POST['skin']) && in_array($_POST['skin'], $theme_list) ? functions::check($_POST['skin']) : $set['skindef'];
///////////////////////////////
//185 // Выбор темы оформления
echo '<p><h3>' . $lng['design_template'] . '</h3><select name="skin">';
foreach (glob('../theme/*/*.css') as $val) {
$dir = explode('/', dirname($val));
$theme = array_pop($dir);
echo '<option' . (core::$user_set['skin'] == $theme ? ' selected="selected">' : '>') . $theme . '</option>';
}
echo '</select></p>';
Изменил: Антон (02.03.2015 / 21:08)