43 lines
560 B
PHP
43 lines
560 B
PHP
|
|
<?php header('Content-type: application/json');
|
||
|
|
|
||
|
|
$result="Failed";
|
||
|
|
|
||
|
|
$em="";
|
||
|
|
|
||
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/mailservices/includes/');
|
||
|
|
|
||
|
|
include(PATHTOINCLUDES."base.php");
|
||
|
|
|
||
|
|
$uid=$_GET["uid"];
|
||
|
|
|
||
|
|
$evc=$_GET["evc"];
|
||
|
|
|
||
|
|
$dbcon=dbconnect2();
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
if($uid !="" && $evc !=""){
|
||
|
|
|
||
|
|
$sql="UPDATE se_users SET user_pdp_evc = ".$evc." WHERE user_id = ".$uid;
|
||
|
|
|
||
|
|
$query=mysql_query($sql) or $em=$em.mysql_error();
|
||
|
|
|
||
|
|
if($em==""){$result="Success";}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
$arr = array ('result'=>$result);
|
||
|
|
|
||
|
|
echo json_encode($arr);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
?>
|
||
|
|
|