Esempio n. 1
0
$result = $connection->select("SELECT * FROM Users WHERE UserID = " . $userID);
$row = $result->fetch_assoc();
if (!file_exists("images/profiles/{$userID}.jpg")) {
    $profileImage = 'not-found.png';
} else {
    $profileImage = $userID . '.jpg' . '?' . time();
}
$profileViewType = 'bigProfile';
include 'profileViews.php';
$action = '';
if (isset($_GET['act'])) {
    $action = $_GET['act'];
}
if ($action == "create_wish") {
    echo "<h1>боженьки! ты желание добавил</h1>";
    $object = wishClass::save($_POST['description'], $_POST['time'], $_POST['moneyReward'], $_POST['pointsReward']);
}
?>


	</div>
		<div class="profileBottom">
		<div class="left-center" id="profileLeftCenter">
			<div id="profileListLeft" class="list">
			<div onclick="get_wishez('status=0&owner=<?php 
echo $userID;
?>
','profileListRight');" class="profileWishezButtons" id="profileActive"><h4>ACTIVE</h4></div>
			<div onclick="get_wishez('status=2&owner=<?php 
echo $userID;
?>