PHP Classes
elePHPant
Icontem

File: comment_api.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Viktor  >  Universal comment module  >  comment_api.php  >  Download  
File: comment_api.php
Role: Example script
Content type: text/plain
Description: Ajax API
Class: Universal comment module
Generic site comments system
Author: By
Last change:
Date: 7 years ago
Size: 367 bytes
 

Contents

Class file image Download
<?php
   
    error_reporting
(0);
   
//error_reporting(E_ALL);
   
   
require_once("Comment.class.php");
// sleep(4);
   
// $id = "456RDFTHJBF";
   
   
if(isset($_REQUEST['msg']) && isset($_REQUEST['id']) && isset($_REQUEST['uid']) )
    {
       
$comment1 = new Comment($_REQUEST['id']);
       
$comment1->addComment($_REQUEST['msg'],$_REQUEST['id'],$_REQUEST['uid']);
    }
   
?>