Файл: users/profile/settings/index.php
Строк: 24
<?php
/*
------------------
Настройки аккаунта
------------------
*/
ACCESS('users');
$path = CLEARSPECIALCHARS(GET('path'));
$section = CLEARSPECIALCHARS(GET('section'));
IF (GET('section') && FILE_EXISTS(ROOT.'/users/profile/'.$path.'/content/'.$section.'.php')){
REQUIRE (ROOT.'/users/profile/'.$path.'/content/'.$section.'.php');
}ELSE{
ECHO "<div class='navigation'>";
ECHO "<a href='/'>".ICONS('home', 25, 'fa-fw')."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "<a href='/id".$user['ID']."'>".TEXT_ABSOLUTE($user['LOGIN'])."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "".LG('Настройки аккаунта')."";
ECHO "</div>";
$result = SCANDIR(ROOT.'/users/profile/settings/components/', SCANDIR_SORT_ASCENDING);
ECHO "<div class='list-body'>";
FOR ($i = 0; $i < COUNT($result); $i++){
IF (PREG_MATCH('#.php$#i',$result[$i]))
{
REQUIRE (ROOT.'/users/profile/settings/components/'.$result[$i]);
}
}
ECHO "</div>";
ECHO "<div class='navigation'>";
ECHO "<a href='/'>".ICONS('home', 25, 'fa-fw')."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "<a href='/id".$user['ID']."'>".TEXT_ABSOLUTE($user['LOGIN'])."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "".LG('Настройки аккаунта')."";
ECHO "</div>";
}
?>