Beispiel #1
0
echo $_SESSION["username"];
?>
</h2>
	<div>
	<h3>About:</h3>
	<p>
		Name:<br/>
		Username: <?php 
echo $_SESSION["username"];
?>
<br/>
		Email:<br/>
		City:<br/>
		Bio:
	</p>
	</div>
	<div>
		<h3>Posts:</h3>
		<a href="./new_post.php">new post</a>
	</div>
	<?php 
if (is_creator()) {
    echo "<a href=\"manage_admins.php\">Manage Admins</a>";
}
if (is_admin()) {
}
?>
	
</div><!-- close container-->
<?php 
include "./includes/layouts/footer.php";
<b><?=$MSG_LANG["accesslevel2"]?>:<b>&nbsp;&nbsp;<br><select name="ag"><option value="0">Normal Team</option><option value="1">SubTeam This feature is not working yet.</option></select><br><br>

<input type="submit">

</form>

</td></tr></table>

<?PHP

break; // case new

case 'create':

if (is_creator($me['id']))
{
    echo "$MSG_LANG[noteam2]";
    exit;
}

if (empty($_POST['title']))
{
    echo "$MSG_LANG[nonameofteam]";
    exit;
}

if (empty($_POST['text']))
{
    echo "$MSG_LANG[nodescription]";
    exit;
Beispiel #3
0
	<div>
	<h3>About:</h3>
	<p>
		Name:<br/>
		Username: <?php 
echo $_GET["username"];
?>
<br/>
		Email:<br/>
		City:<br/>
		Bio:
	</p>
	</div>
	<div>
		<h3>Posts:</h3>
		<a href="./.php"></a>
	</div>
	<?php 
if (is_creator()) {
}
if (is_admin()) {
}
?>
	<?php 
if ($_GET["username"] == $_SESSION["username"] || is_creator()) {
    echo "<a href=\"manage_profile.php\">Edit</a>";
}
?>
</div><!-- close container-->
<?php 
include "./includes/layouts/footer.php";
Beispiel #4
0
function confirm_creator()
{
    if (!logged_in()) {
        redirect_to("login.php");
    }
    if (!is_creator()) {
        $_SESSION["message"] = "Sorry, you do not have access to that page.";
        redirect_to("home.php");
    }
}