0 Пользователей и 1 Гость просматривают эту тему.
// Work out where we currently are. ........... if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'forum', 'pm', 'gallery')))
// Show the [forum] button. echo' <td align="center" class="menubg' , $current_action == 'forum' ? '2' : '' , '"> <a href="', $scripturl, '?action=forum">Форум</a> </td>';
// Show the [gallery] button. echo' <td align="center" class="menubg' , $current_action == 'gallery' ? '2' : '' , '"> <a href="http://192.168.11.248/foto/">Галерея</a> </td>';
$current_action == 'home'
$current_action == 'forum'
// Show the [site] button. echo ($current_action=='gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , ' <td valign="top" class="maintab_' , $current_action=='site' ? 'active_back' : 'back' , '"> <a href="http://...../foto/">Галерея</a> </td>' , $current_action=='site' ? '<td class="maintab_active_last"> </td>' : '';
// Show the [gallery] button. echo ($current_action=='gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , ' <td valign="top" class="maintab_' , $current_action=='gallery' ? 'active_back' : 'back' , '"> <a href="http://...../foto/">Галерея</a> </td>' , $current_action=='gallery' ? '<td class="maintab_active_last"> </td>' : '';
// Work out where we currently are. $current_action = 'home'; if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))) $current_action = 'admin'; if (in_array($context['current_action'], array( 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum'))) $current_action = $context['current_action']; if ($context['current_action'] == 'search2') $current_action = 'search'; if (isset($_GET['dl'])) $current_action = 'dlmanager'; if (isset($_GET['dl'])) $current_action = 'dlmanager'; if (isset($_GET['board']) || isset($_GET['topic'])) $current_action = 'forum'; if (isset($_GET['action']) && $_GET['action']=='forum') $current_action = 'forum'; if ($context['current_action'] == 'theme') $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
if (isset($_GET['board']) || isset($_GET['topic'])) $current_action = 'forum';
// Show the [site] button. echo '<td valign="top" class="maintab_' , $current_action == 'site' ? 'active_back' : 'back' , '"><a href="/">Перейти на сайт</a></td>';