<?php 
//Srinivas Tamada http://9lessons.info
//Load latest update
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/functions.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
$Wall = new Wall_Updates();
if (isset($_POST['msg_id'])) {
    $msg_id = $_POST['msg_id'];
    $data = $Wall->Delete_Update($uid, $msg_id);
    echo $data;
}
예제 #2
0
  <?php 
@session_start();
if ($_SESSION['flag'] == 1) {
    echo '<script>
window.location="login.php";</script>';
}
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/func.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
@session_start();
$uid = $_SESSION['id'];
$Wall = new Wall_Updates();
$updatesarray = $Wall->Updates($uid);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head profile="http://gmpg.org/xfn/11">
    <title>POST STATUS</title>

    <meta name="keywords" content="fusion, digitalnature" />
    <meta name="description" content="Fusion CSS template" />

    <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://yoursite.com/rss" />
    <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="http://yoursite.com/atom" />
    <link rel="pingback" href="http://yoursite.com" />
    <link rel="shortcut icon" href="favicon.ico" />
                        <script language="javascript" type="text/javascript" src="XMLHttpRequest_responseXML.js"></script>
    <style type="text/css" media="all">
예제 #3
0
if ($_SESSION['flag'] == 1) {
    echo '<script>
window.location="login.php";</script>';
}
?>
 <?php 
//Srinivas Tamada http://9lessons.info
//Load latest update
@session_start();
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/functions.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
$Wall = new Wall_Updates();
if (isset($_POST['update'])) {
    $update = $_POST['update'];
    $data = $Wall->Insert_Update($uid, $update);
    if ($data) {
        $msg_id = $data['msg_id'];
        $message = tolink(htmlentities($data['message']));
        $time = $data['created'];
        $uid = $data['uid_fk'];
        $username = $data['username'];
        $x = $_SESSION['id'];
        // $cface=$Wall->Gravatar($uid);
        $face = "uploads/" . "{$x}" . ".jpg";
        //$commentsarray=$Wall->Comments($msg_id);
        ?>
<div class="stbody" id="stbody<?php 
예제 #4
0
 <?php 
//Srinivas Tamada http://9lessons.info
//Load latest comment
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/functions.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
$Wall = new Wall_Updates();
if (isset($_POST['comment'])) {
    $comment = $_POST['comment'];
    $msg_id = $_POST['msg_id'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $cdata = $Wall->Insert_Comment($uid, $msg_id, $comment, $ip);
    if ($cdata) {
        $com_id = $cdata['com_id'];
        $comment = tolink(htmlentities($cdata['comment']));
        $time = $cdata['created'];
        $username = $cdata['username'];
        $uid = $cdata['uid_fk'];
        $cface = $Wall->Gravatar($uid);
        ?>
<div class="stcommentbody" id="stcommentbody<?php 
        echo $com_id;
        ?>
">
<div class="stcommentimg">
<img src="<?php 
        echo $cface;
예제 #5
0
 <?php 
//Srinivas Tamada http://9lessons.info
//Load latest comment   @session_start();
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/functions.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
$Wall = new Wall_Updates();
if (isset($_POST['comment'])) {
    $comment = $_POST['comment'];
    $msg_id = $_POST['msg_id'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $cdata = $Wall->Insert_Comment($uid, $msg_id, $comment, $ip);
    if ($cdata) {
        $com_id = $cdata['com_id'];
        $comment = tolink(htmlentities($cdata['comment']));
        $time = $cdata['created'];
        $username = $cdata['username'];
        $uid = $cdata['uid_fk'];
        $x = $_SESSION['id'];
        // $cface=$Wall->Gravatar($uid);
        $cface = "uploads/" . "{$x}" . ".jpg";
        // $cface="uploads/"."$uid".".jpg";
        ?>
<div class="stcommentbody" id="stcommentbody<?php 
        echo $com_id;
        ?>
">
 <?php 
//Srinivas Tamada http://9lessons.info
//Load latest update
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/functions.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
$Wall = new Wall_Updates();
if (isset($_POST['com_id'])) {
    $com_id = $_POST['com_id'];
    $data = $Wall->Delete_Comment($uid, $com_id);
    echo $data;
}
예제 #7
0
 <?php 
//Srinivas Tamada http://9lessons.info
//Load latest update
error_reporting(0);
include_once 'includes/db.php';
include_once 'includes/functions.php';
include_once 'includes/tolink.php';
include_once 'includes/time_stamp.php';
include_once 'session.php';
$Wall = new Wall_Updates();
if (isset($_POST['update'])) {
    $update = $_POST['update'];
    $data = $Wall->Insert_Update($uid, $update);
    if ($data) {
        $msg_id = $data['msg_id'];
        $message = tolink(htmlentities($data['message']));
        $time = $data['created'];
        $uid = $data['uid_fk'];
        $username = $data['username'];
        $face = $Wall->Gravatar($uid);
        //$commentsarray=$Wall->Comments($msg_id);
        ?>
<div class="stbody" id="stbody<?php 
        echo $msg_id;
        ?>
">
<div class="stimg">
<img src="<?php 
        echo $face;
        ?>
" class='big_face'/>