26 lines
1011 B
PHP
26 lines
1011 B
PHP
<?php header('Content-type: application/json');
|
|
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/bebop/');
|
|
include(PATHTOINCLUDES."regular.php");
|
|
date_default_timezone_set("America/Phoenix");
|
|
$em="";
|
|
|
|
$dbhost = "localhost";
|
|
$dbuser = "db.bateworldcom";
|
|
$dbname = "bateworldcom";
|
|
$dbpass = "sDIE8U8!5n*4%Ue_x.Pq";
|
|
$dbc=dbconnect($dbhost,$dbuser,$dbname,$dbpass);
|
|
$theaction=$_GET["takeaction"];
|
|
$theuserid=$_GET["userid"];
|
|
|
|
if($theaction=="kill"){
|
|
$thesql="DELETE FROM `arrowchat` WHERE `from` = ".$theuserid." ";
|
|
$thequery=mysql_query($thesql) or $em=$em.mysql_error();
|
|
$thesql1="UPDATE `se_users` SET `user_enabled` = 0, `user_pdp_evc` = 6 WHERE `user_id` = ".$theuserid." LIMIT 1";
|
|
$thequery1=mysql_query($thesql1) or $em=$em.mysql_error();
|
|
$thesql2="DELETE FROM `se_profilecomments` WHERE `profilecomment_authoruser_id` = ".$theuserid." ";
|
|
$thequery2=mysql_query($thesql2) or $em=$em.mysql_error();
|
|
}
|
|
$arr = array ('theerror' => $em);
|
|
echo json_encode($arr);
|
|
?>
|