Login   Register  
PHP Classes
elePHPant
Icontem

File: rpc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sudhir Chauhan  >  AJAX Star Rating  >  rpc.php  >  Download  
File: rpc.php
Role: Auxiliary script
Content type: text/plain
Description: RPC file called by ajax code
Class: AJAX Star Rating
Rate content and update star ratings using AJAX
Author: By
Last change: report file that save ratings
Date: 4 years ago
Size: 287 bytes
 

Contents

Class file image Download
<?php
ob_start
();
header("Cache-Control: no-cache");
header("Pragma: nocache");    

// TODO : need to save comments
//print_r($_POST);
include('RatingManager.inc.php'); 
$ratingManager RatingManager::getInstance();
echo 
$ratingManager->updateVote($_GET['num'], $_GET['id']);
?>