예제 #1
0
    znote_visitor_insert_detailed_data(4);
}
if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
    $name = $_GET['name'];
    $user_id = user_character_exist($name);
    if ($user_id !== false) {
        if ($config['TFSVersion'] == 'TFS_10') {
            $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'sex');
            $profile_data['online'] = user_is_online_10($user_id);
            if ($config['Ach'] == true) {
                $achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='{$user_id}'");
            }
        } else {
            $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'online', 'sex');
        }
        $profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment');
        $guild_exist = false;
        if (get_character_guild_rank($user_id) > 0) {
            $guild_exist = true;
            $guild = get_player_guild_data($user_id);
            $guild_name = get_guild_name($guild['guild_id']);
        }
        ?>
		
		<!-- PROFILE MARKUP HERE-->
			<h1><font class="profile_font" name="profile_font_header">Profile: <?php 
        echo $profile_data['name'];
        ?>
</font></h1>
			<ul class="unstyled">
				
예제 #2
0
파일: myaccount.php 프로젝트: l04d/ZnoteAAC
                            echo 'You don\'t have any character gender tickets, buy them in the <a href="shop.php">SHOP</a>!';
                        }
                    } else {
                        echo 'Your character must be offline.';
                    }
                }
                break;
                // end
                // Change character comment PAGE1:
            // end
            // Change character comment PAGE1:
            case 'change_comment':
                $render_page = false;
                // Regular "myaccount" page should not render
                if (user_character_account_id($char_name) === $session_user_id) {
                    $comment_data = user_znote_character_data(user_character_id($char_name), 'comment');
                    ?>
					<!-- Changing comment MARKUP -->
					<h1>Change comment on:</h1>
					<form action="" method="post">
						<ul>
							<li>
								<input name="action" type="hidden" value="update_comment">
								<input name ="selected_character" type="text" value="<?php 
                    echo $char_name;
                    ?>
" readonly="readonly">
							</li>
							<li>
								<font class="profile_font" name="profile_font_comment">Comment:</font> <br>
								<textarea name="comment" cols="70" rows="10"><?php