www
/
wwwroot
/
magazinmiorita.be
➕ New
📤 Upload
✎ Editing:
check.php
← Back
<?php ob_start(); session_start(); include('includes/inc.config.php'); if(isset($_GET['akey'])){ if(!isset($_COOKIE['user_id'])){ $akey = $_GET['akey']; $chk_user = $database->execute("select * from customers where activation_key = '$akey' and status = '0'"); if($database->num($chk_user) == 1){ while($row = $database->fetch($chk_user)){ $user_id = $row['id']; } $update_status = $database->execute("update customers set `activation_key` = '', `status` = '1' where id = '$user_id'"); $err_mes = '<span style="color:green">Contul tau a fost activat cu success! Acum poti sa te autentifici folosind numele tau de utilizator sau adresa de email impreuna cu parola care ai ales-o la inregistrare.</span>'; $_SESSION['message'] = $err_mes; header('Location: ./clientarea'); exit; } else { $err_mes = 'Ne pare rau dar cheia de activare nu este valabila, te rugam sa folosesti o cheie noua. <a href="resend_activation.php">Genereaza o cheie noua</a>'; $_SESSION['message'] = $err_mes; header('Location: ./clientarea/resend_activation.php'); exit; } }else{ $err_mes = '<span style="color:red">Esti deja autentificat in contul tau!</span>'; $_SESSION['message'] = $err_mes; header('Location: ./clientarea'); exit; } } ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel