예제 #1
0
<?php

include_once 'includes/header.php';
?>
<form action="" method="post">
<textarea name="status_body" id="status_body" placeholder="What's going on?"></textarea>
<input name="submit" type="submit" value="Post"/>
</form>
<?php 
if (@isset($_POST['submit'])) {
    post_status($_SESSION['user_id'], $_POST['status_body']);
}
news_feed($_SESSION['user_id'], 'yes');
include_once 'includes/footer.php';
예제 #2
0
<?php

include_once 'includes/header.php';
$profile_id = isset($_GET['id']) ? $_GET['id'] : $_SESSION['user_id'];
echo '<center>' . id_to_name($profile_id) . '</center>';
news_feed($profile_id);
include_once 'includes/footer.php';