PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/productjuly1video/clapupclapback.click/sources/confirm/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/productjuly1video/clapupclapback.click/sources/confirm/content.php

<?php
if (IS_LOGGED == true) {
	header("Location: " . PT_Link(''));
	exit();
}
if (empty($_GET['code']) || empty($_GET['email'])) {
	header("Location: " . PT_Link(''));
	exit();
}
$_GET['email'] = strip_tags($_GET['email']);
$_GET['code'] = strip_tags($_GET['code']);
$email = PT_Secure($_GET['email']);
$code = PT_Secure($_GET['code']);


$db->where('email', $email);
$db->where('email_code', $code);
$user = $db->getOne(T_USERS);
if (empty($user)) {
	exit($lang->invalid_request);
}
if ($user->active == 1) {
	exit($lang->invalid_request);
}

$email_code = sha1(time() + rand(111,999));

$db->where('id', $user->id);

$update_data = array('active' => 1, 'email_code' => $email_code);
$update = $db->update(T_USERS, $update_data);
if ($update) {

    if (!empty($pt->config->auto_subscribe)) {
        $get_users = explode(',', $pt->config->auto_subscribe);
        foreach ($get_users as $key => $username) {
            $users  = $db->where('username', $username)->getOne(T_USERS);
            if (!empty($users)) {
                $insert_data         = array(
                    'user_id' => $users->id,
                    'subscriber_id' => $user->id,
                    'time' => time(),
                    'active' => 1
                );
                $create_subscription = $db->insert(T_SUBSCRIPTIONS, $insert_data);
                if ($create_subscription) {
                    $data = array(
                        'status' => 200
                    );

                    $notif_data = array(
                        'notifier_id' => $user->id,
                        'recipient_id' => $users->id,
                        'type' => 'subscribed_u',
                        'url' => ('@' . $user->username),
                        'time' => time()
                    );

                    pt_notify($notif_data);
                }
            } 
        }
    }
	$session_id          = sha1(rand(11111, 99999)) . time() . md5(microtime());
    $insert_data         = array(
        'user_id' => $user->id,
        'session_id' => $session_id,
        'time' => time()
    );
    $insert              = $db->insert(T_SESSIONS, $insert_data);
    $_SESSION['user_id'] = $session_id;
    setcookie("user_id", $session_id, time() + (10 * 365 * 24 * 60 * 60), "/");
    $pt->loggedin = true;
    header("Location: $site_url");
    exit();
}
exit();