コード例 #1
0
ファイル: profile.php プロジェクト: OldVig/gatherling
function content()
{
    $playername = "";
    if (isset($_SESSION['username'])) {
        $playername = $_SESSION['username'];
    }
    if (isset($_GET['player'])) {
        $playername = $_GET['player'];
    }
    if (isset($_POST['player'])) {
        $playername = $_POST['player'];
    }
    if (chop($playername) != "") {
        $player = Player::findByName($playername);
        if (!is_null($player)) {
            profileTable($player);
        } else {
            echo "<center>\n";
            echo "{$playername} could not be found in the database. Please check";
            echo " your spelling and try again.\n";
            echo "</center>\n";
        }
    } else {
        echo "<center>\n";
        echo "Please <a href=\"login.php\">log in</a> to see";
        echo " your profile. You may also use the search below without";
        echo " logging in.\n";
        echo "</center>\n";
    }
    echo "<br><br>\n";
    searchForm($playername);
}
コード例 #2
0
ファイル: profile.php プロジェクト: jamuraa/gatherling
function content()
{
    global $playername;
    if (chop($playername) != "") {
        $player = Player::findByName($playername);
        if (!is_null($player)) {
            profileTable($player);
        } else {
            echo "<center>\n";
            echo "{$playername} could not be found in the database. Please check";
            echo " your spelling and try again.\n";
            echo "</center>\n";
        }
    } else {
        echo "<center>\n";
        echo "Please <a href=\"login.php\">log in</a> to see";
        echo " your profile. You may also use the search without";
        echo " logging in.\n";
        echo "</center>\n";
    }
    echo "<br /><br />\n";
}
コード例 #3
0
ファイル: profile.php プロジェクト: jagumiel/bigou-Album
			
			
			}
			
		</script>
	</head>  
	<body>
		<div class="Canvas">
			<?php 
echo menuHeader(isset($_SESSION['nick']), $_SESSION['nick'], $_SESSION['role']);
?>
			
			<div class="GeneralDisplay">	
				<h1><?php 
echo $targetNick;
?>
</h1>
				<?php 
echo profileTable($nick, $targetNick);
?>
				
				<h1>Álbumes de <?php 
echo $targetNick;
?>
</h1>
				<div id="display" class="Display"></div>  							
				<br/><br/>
			</div>
    	</div>
	</body>
</html>