Привет, Гость!
Главная
Вход

Последняя активность

Форум / JohnCMS / Другое...
Поиск
  what is order list for?
Mezo Mezo [Off] [#] (10.10.2016 / 19:16)
show only for logeed user
show only for unlogeed user
show only for admin
Mezo Mezo [Off] [#] (11.10.2016 / 09:55)
Koenig Koenig (Adm) [Off] [#] (11.10.2016 / 10:15)
(\/)____o_O____(\/)
Mezo, http://johncms.com/users/index ... nline ?
Mezo Mezo [Off] [#] (11.10.2016 / 13:49)
i mean if i wont show
"hello"
only for logeed user

and only for
unlogeed user
and only for
admin
what i need to do this
in php
Koenig Koenig (Adm) [Off] [#] (11.10.2016 / 15:46)
(\/)____o_O____(\/)
Mezo, if (!$user_id){
// guest
} elseif ($user_id) {
// login user
} elseif ($rights > 0) {
// mod smd
} elseif ($rights > 6) {
// adm sv
}
Mezo Mezo [Off] [#] (11.10.2016 / 17:22)
Mezo Mezo [Off] [#] (12.10.2016 / 21:45)
  1. echo '<div class="gmenu"><form action="login.php" method="post"><p>' . $lng['login_name'] . ':<br/>' .
  2. '<input type="text" name="n" value="' . htmlentities($user_login, ENT_QUOTES, 'UTF-8') . '" maxlength="20"/>' .
  3. '<br/>' . $lng['password'] . ':<br/>' .
  4. '<input type="password" name="p" maxlength="20"/></p>' .
  5. '<p><input type="checkbox" name="mem" value="1" checked="checked"/>' . $lng['remember'] . '</p>' .
  6. '<p><input type="submit" value="' . $lng['login'] . '"/></p>' .
  7. '</form></div>' .
  8. '<div class="menu"><p>' . functions::image('user.png') . '<a href="registration.php">' . $lng['registration'] . '</a></p></div>' .
  9. '<div class="bmenu"><p>' . functions::image('lock.png') . '<a href="users/skl.php?continue">' . $lng['forgotten_password'] . '?</a></p></div>';

sorry but i"m new in php i ned help
i wont show login code in mainmenu only for guest
edit this and thank you
Изм. Mezo (12.10.2016 / 21:46) [1]
Koenig Koenig (Adm) [Off] [#] (12.10.2016 / 21:58)
(\/)____o_O____(\/)
if (!$user_id) {
// this code
}
Mezo Mezo [Off] [#] (16.10.2016 / 13:01)
ooook
  Всего: 9

Фильтр по автору
Скачать тему

Форум

Новые вверху
Главная
2 / 74

JohnCMS 7.1.0

Яндекс.Метрика
© JohnCMS