HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/root/tmp/hb_explore.php
<?php
// Narrow read-only lookup for the user-requested HostBill integration of kiwerkzeuge.de:
// schema + order pages + product names/IDs (needed for cart links) + brand list.
require '/home/support.panomity.com/public_html/includes/config.php';
$pdo = new PDO("mysql:host=$db_host;dbname=$db_name;charset=utf8mb4", $db_user, $db_pass, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);

foreach (['hb_categories', 'hb_products', 'hb_brands'] as $tbl) {
    echo "=== DESCRIBE $tbl ===\n";
    try {
        foreach ($pdo->query("DESCRIBE $tbl") as $r) echo $r['Field'] . ' ' . $r['Type'] . "\n";
    } catch (Exception $e) { echo "ERR: " . $e->getMessage() . "\n"; }
    echo "\n";
}

echo "=== ORDER PAGES (hb_categories) ===\n";
foreach ($pdo->query("SELECT id, name, visible FROM hb_categories ORDER BY id LIMIT 40") as $r) {
    echo $r['id'] . ' | ' . $r['name'] . ' | visible=' . $r['visible'] . "\n";
}

echo "\n=== PRODUCTS (hb_products) ===\n";
foreach ($pdo->query("SELECT id, category_id, name, visible FROM hb_products ORDER BY id LIMIT 80") as $r) {
    echo $r['id'] . ' | cat=' . $r['category_id'] . ' | ' . $r['name'] . ' | visible=' . $r['visible'] . "\n";
}

echo "\n=== BRANDS (hb_brands) ===\n";
foreach ($pdo->query("SELECT * FROM hb_brands LIMIT 10") as $r) {
    $r = array_filter($r, fn($k) => !is_int($k), ARRAY_FILTER_USE_KEY);
    echo json_encode($r, JSON_UNESCAPED_UNICODE) . "\n";
}
echo "(Ende)\n";