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/cron/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /polana/cron/polana-backup-v182.php
<?php
declare(strict_types=1);
if (PHP_SAPI !== 'cli') { http_response_code(403); exit('CLI only'); }
require_once dirname(__DIR__) . '/includes/polana_backup_v182.php';
date_default_timezone_set('Europe/Warsaw');
$mode = $argv[1] ?? 'auto';
if (!in_array($mode, ['auto', 'sql', 'weekly'], true)) { fwrite(STDERR, "Użycie: php polana-backup-v182.php [auto|sql|weekly]\n"); exit(2); }
try {
    foreach (pbk_run($mode) as $line) echo $line . PHP_EOL;
    echo "Zakończono.\n";
} catch (Throwable $e) {
    error_log('[POLANA BACKUP V18.2] ' . get_class($e) . ': ' . $e->getMessage());
    try {
        $cfg = pbk_cfg();
        $email = trim((string)($cfg['email'] ?? ''));
        if ($email !== '' && filter_var($email, FILTER_VALIDATE_EMAIL)) {
            smtp_send_mail($email, 'POLANA — problem z automatyczną kopią',
                '<p>Automatyczna kopia zapasowa nie zakończyła się poprawnie.</p><p>Sprawdź historię w panelu administracyjnym Polany.</p>');
        }
    } catch (Throwable $ignored) { /* Mail may be the failing service; error remains in log. */ }
    fwrite(STDERR, "Backup nieudany lub niepełny. Sprawdź historię w panelu.\n"); exit(1);
}

Youez - 2016 - github.com/yon3zu
LinuXploit