Location: PHPKode > projects > WH Community > wh_community/framework/handler.php
<?php

    if(!isset($_SESSION['signed_in'])) {

    echo '<a href="signin.php" class="footertext_small">' . $lang['signin'] . '</a> &#8226; <a href="signup.php" class="footertext_small">' . $lang['signup'] . '</a>';

    }else{
    
    include_once('framework/rank.php');

    $sql = "SELECT
				user_id,
				user_level
			FROM
				users
			WHERE
			    user_id = " . (int)$_SESSION['user_id'];

	$result = mysql_query($sql) OR die(mysql_error());

	if(!$result) {

	echo '<a href="signin.php" class="footertext_small">' . $lang['signin'] . '</a> &#8226; <a href="signup.php" class="footertext_small">' . $lang['signup'] . '</a>';

		}else{

    	while($man_row = mysql_fetch_assoc($result)) {

    		if($man_row['user_level'] == 0) {

    			echo '<span class="footertext_small">' . $lang['rank'] . ': <em>' . $rank . '</em> &#8226; ' . $lang['posts'] . ': <em>' . $total . '</em></span>';

            }elseif($man_row['user_level'] == 2) {

    			echo '<a href="moderator/signin.php" class="footertext_small" target="_blank">' . $lang_moderator['mod_area'] . '</a>';

            }elseif($man_row['user_level'] == 1) {

                echo '<a href="admin/signin.php" class="footertext_small" target="_blank">' . $lang_admin['admin_area'] . '</a>';
                }
            }
        }
    }

?>
Return current item: WH Community