Topic: help me
I it is necessary to on main to page of my site menu for not autorithation or for not registered of the users here is this item, which already ready:
if ($pun_user['is_guest'])
exit('<center>You are not registered!<br><a href="forum/login.php">LOGIN</a> | <a href="forum/register.php">REGISTRATION</a></center>');
for registered users "WELCOME [USER NICK WITH LINK TO USER PROFILE]" - I do not know. here is code:
if ($pun_user['username'])
exit('<center>WELCOME...</center>');
script:
<?php
define('PUN_ROOT', './forum/');
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
if ($pun_user['username'])
exit('<center>WELCOME</center>');
if ($pun_user['is_guest'])
exit('<center>You are not registered!<br><a href="forum/login.php">LOGIN</a> | <a href="forum/register.php">REGISTRATION</a></center>');
?>
Please, help me!
P.S.
I'm very bad speak english