updateUserField( $session->uid, "gpack", $_POST["custom_url"], 1 ); } // ========================= // PREVIEW GPACK (GET) // ========================= if (isset($_GET["custom_url"])) { // NU schimbăm logica, doar securizăm output $gpackUrl = $_GET["custom_url"]; $gpackUrlEsc = htmlspecialchars($gpackUrl, ENT_QUOTES, 'UTF-8'); ?>






file:///C:/Travian/gpack/ or http://www.travian.org/user/gpack/

'Travian Default'); $gpActive = rtrim((string) $session->gpack, '/') . '/'; foreach ($gpPacks as $gpPath => $gpLabel) { $gpIsActive = (rtrim($gpPath, '/') . '/') === $gpActive; $gpZip = 'gpack/download/' . basename(rtrim($gpPath, '/')) . '.zip'; ?>
4
uid); exit; } ?>