Location: PHPKode > projects > Dominant Creature RPG > msg.php
<?php

session_start();

if($_SESSION['logged'] == 'true'){



$q = mysql_query("SELECT * FROM player_creatures WHERE user_id = '".$_SESSION["id"]."'");



if (mysql_num_rows($q) == 0) {

	

		echo '<script>alert("Welcome, first create a character!");</script>';

		echo '<script>document.location.href="?p=create"</script>';

	

} else {



	require_once("class/msg_class.php");

	$m = new Msg;

	

	if (isset($_GET["p"]) && isset($_GET["write"])) {

		

		$m->Write();

		

	}

	

	else {

	

	    $m->Inbox();

	

	}

	

}

	

	} else {

	header("Location: index.php");

}

	

?>
Return current item: Dominant Creature RPG