Hola. He implementado el siguiente codigo
Código PHP:
<?php
require_once 'lib/config.php';
$str = $_REQUEST['id'].":".$_REQUEST['snuid'].":".$_REQUEST['currency'].":".$MINUMEROSECRETODEFACEBOOK;
if ($_REQUEST['verifier'] == md5($str))
{
if( !empty($_REQUEST['snuid']) )
{
$res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints` + ".$_REQUEST['currency'].") WHERE `userid` = ".$_REQUEST['snuid']."");
echo ($res) ? 1 : 0;
}
if( !empty($_REQUEST['new']) )
{
$res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints` + ".$_REQUEST['new'].") WHERE `userid` = ".$_REQUEST['uid']."");
echo ($res) ? 1 : 0;
}
//CPA integration
$subid = $_REQUEST['subid'];
$survey = $_REQUEST['survey'];
$earn = $_REQUEST['earn'];
$pdtshow = $_REQUEST['pdtshow'];
if( !empty($_REQUEST['subid']) )
{
$res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints`+".$pdtshow.") WHERE `userid`=".$subid."");
echo "ok";
if( $res )
echo "Success: ".$subid." earned ".$pdtshow." points\n";
else
echo 0;
}
else
{
echo "you have attempted to steal from me";
die;
}
?>
Al ejecutarlo me tira el siguiente error:
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in
/home/algarzon/public_html/facebook/update.php on line
5.
No tengo ni idea que puede ser. Alguna idea???
Gracias