error_log users/settings.php

Тема закрыта
618
.
# dilp (30.04.2017 / 20:04)
// Устанавливаем скин
foreach (glob('../theme/*/*.css') as $val)
$array = explode('/', dirname($val));
$theme_list[] = array_pop($array);
$set_user[
Is not working,
.
# eco_oce (30.04.2017 / 20:06)
foreach (glob('../theme/*/*.css') as $val)
$itu = explode('/', dirname($val));
$theme_list[] = array_pop($itu);
$set_user['skin'] = isset($_POST['skin']) &&
Syntactically yes, correctly.
.
ДоХтор
Добавлено: 30.04.2017 / 20:09
# eco_oce (30.04.2017 / 20:07)
Is not working,
Maybe you need to put all the code in the body of the loop?
* (+/-)


Добавлено: 30.04.2017 / 20:12
I'm not sure, try it.
.
dilp
// Устанавливаем скин
foreach (glob('../theme/*/*.css') as $val) {
    $array = explode('/', dirname($val));
    $theme_list[] = array_pop($array);
}

$set_user['skin'] = isset($_POST['skin']) && in_array($_POST['skin'], $theme_list) ?
    functions::check($_POST['skin']) : $set['skindef'];
.
# ДоХтор (30.04.2017 / 20:12)
Maybe you need to put all the code in the body of the loop? foreach (glob('../theme/*/*.css') as $val) {
$itu = explode('/', dirname($val));
$theme_list[] = array_pop($itu);

$set_
Thanks, is working
.
# eco_oce (30.04.2017 / 20:22)
Thanks, is working
Topic close?
.
# ДоХтор (30.04.2017 / 20:24)
Topic close?
Sure,
Всего: 17