26 lines
564 B
PHP
26 lines
564 B
PHP
|
|
<?php header('Content-type: application/json');
|
||
|
|
|
||
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
|
||
|
|
|
||
|
|
include(PATHTOINCLUDES."base.php");
|
||
|
|
|
||
|
|
$em="";
|
||
|
|
|
||
|
|
$wid=$_GET["wid"];
|
||
|
|
|
||
|
|
$thepost=$_GET["thecontent"];
|
||
|
|
|
||
|
|
|
||
|
|
if($thepost != ""){
|
||
|
|
|
||
|
|
$sql="UPDATE `community_wall` SET `community_wall`.`msg` = ".GetSQLValueString($thepost, "text")." WHERE `community_wall`.`wid` = ".$wid;
|
||
|
|
|
||
|
|
$result=$database->database_query($sql) or $em=$em.$database->database_error();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
$arr = array ('error' => $em);
|
||
|
|
|
||
|
|
echo json_encode($arr);
|
||
|
|
|
||
|
|
?>
|