403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.217.35
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/chatblueversion/register.php
<?php require __DIR__.'/includes/bootstrap.php';$error='';if($_SERVER['REQUEST_METHOD']==='POST'){try{$email=strtolower(trim($_POST['email']));if(!filter_var($email,FILTER_VALIDATE_EMAIL))throw new Exception('Enter a valid email address.');if(strlen($_POST['password'])<10)throw new Exception('Password must contain at least 10 characters.');$id=bin2hex(random_bytes(16));$pdo->beginTransaction();$pdo->prepare('INSERT INTO users(id,email,name,password_hash,role,status) VALUES(?,?,?,?,"user","active")')->execute([$id,$email,trim($_POST['name']),password_hash($_POST['password'],PASSWORD_DEFAULT)]);$token=$_COOKIE['bvx_guest']??'';if($token){$s=$pdo->prepare('SELECT id FROM guest_sessions WHERE token_hash=?');$s->execute([hash('sha256',$token)]);if($g=$s->fetch()){$pdo->prepare('UPDATE conversations SET user_id=?,guest_id=NULL WHERE guest_id=?')->execute([$id,$g['id']]);$pdo->prepare('UPDATE guest_sessions SET converted_user_id=? WHERE id=?')->execute([$id,$g['id']]);}}$pdo->commit();$_SESSION['user']=['id'=>$id,'email'=>$email,'name'=>trim($_POST['name']),'role'=>'user','plan'=>'free'];header('Location: index.php');exit;}catch(Throwable $e){if($pdo->inTransaction())$pdo->rollBack();$error=str_contains($e->getMessage(),'Duplicate')?'An account already exists with this email.':$e->getMessage();}}?><!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Create account ยท blueversionX</title><link rel="icon" href="favicon.svg"><link rel="stylesheet" href="assets/style.css"></head><body><div class="authShell"><main class="authCard"><img class="logo" src="assets/blueversionx-logo.svg" alt="blueversionX"><h1>Create your account</h1><p>Your guest conversations will be preserved.</p><?php if($error):?><p class="error"><?=htmlspecialchars($error)?></p><?php endif?><form method="post"><label>Name<input name="name" required></label><label>Email<input type="email" name="email" required></label><label>Password<input type="password" name="password" minlength="10" required></label><button>Create account</button><a class="google" href="auth/google.php">G&nbsp;&nbsp; Continue with Google</a></form><div class="authLinks"><a href="index.php">Back to chat</a><a href="login.php">Already registered?</a></div></main></div></body></html>

Youez - 2016 - github.com/yon3zu
LinuXploit