diff --git a/app/Helpers/functions.php b/app/Helpers/functions.php index 3c24914..5fa60e6 100644 --- a/app/Helpers/functions.php +++ b/app/Helpers/functions.php @@ -17,10 +17,25 @@ function view($view, $data = []) { } function redirect($path) { - header("Location: $path"); + header("Location: " . url($path)); exit; } +function url($path = '') { + $base = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST']; + + // Detect subdirectory + $scriptName = $_SERVER['SCRIPT_NAME']; + $basePath = str_replace('/index.php', '', $scriptName); + + $path = ltrim($path, '/'); + return $base . $basePath . '/' . $path; +} + +function asset($path) { + return url('assets/' . ltrim($path, '/')); +} + function __($key, $default = null) { return LanguageService::translate($key, $default); } @@ -47,4 +62,4 @@ function compress_image($source, $destination, $quality) { imagejpeg($image, $destination, $quality); return $destination; -} \ No newline at end of file +} diff --git a/assets/css/custom.css b/assets/css/custom.css index e0783c0..3f18b9e 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,9 +1,17 @@ body { font-family: 'Inter', sans-serif; - background-color: #F5F7F9; + background-color: #F8FAFC; color: #263238; } +.bg-pattern { + background-image: + radial-gradient(at 0% 0%, hsla(142, 69%, 58%, 0.05) 0, transparent 50%), + radial-gradient(at 50% 0%, hsla(142, 69%, 58%, 0.02) 0, transparent 50%), + radial-gradient(at 100% 0%, hsla(142, 69%, 58%, 0.05) 0, transparent 50%); + background-attachment: fixed; +} + .hover-lift { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; } @@ -33,11 +41,14 @@ body { .btn-success { background-color: #00C853; border-color: #00C853; + box-shadow: 0 4px 14px 0 rgba(0, 200, 83, 0.3); } .btn-success:hover { background-color: #00B248; border-color: #00B248; + transform: translateY(-1px); + box-shadow: 0 6px 20px rgba(0, 200, 83, 0.23); } .text-success { @@ -70,3 +81,8 @@ body { font-size: 1.5rem; vertical-align: middle; } + +.navbar { + backdrop-filter: blur(10px); + background-color: rgba(255, 255, 255, 0.8) !important; +} \ No newline at end of file diff --git a/assets/pasted-20260225-000118-a6991bf7.jpg b/assets/pasted-20260225-000118-a6991bf7.jpg new file mode 100644 index 0000000..873a77f Binary files /dev/null and b/assets/pasted-20260225-000118-a6991bf7.jpg differ diff --git a/assets/vm-shot-2026-02-25T00-00-50-686Z.jpg b/assets/vm-shot-2026-02-25T00-00-50-686Z.jpg new file mode 100644 index 0000000..017ff03 Binary files /dev/null and b/assets/vm-shot-2026-02-25T00-00-50-686Z.jpg differ diff --git a/views/apk_detail.php b/views/apk_detail.php index 65448a8..b7f9636 100644 --- a/views/apk_detail.php +++ b/views/apk_detail.php @@ -1,14 +1,14 @@ -
+
@@ -18,7 +18,7 @@
<?php echo $apk['title']; ?>
@@ -33,7 +33,7 @@
- +

@@ -85,13 +85,13 @@
query("SELECT referral_code FROM users WHERE id = ".$_SESSION['user_id'])->fetchColumn() : ''; - $shareLink = 'http://'.$_SERVER['HTTP_HOST'].'/apk/'.$apk['slug'].($ref ? '?ref='.$ref : ''); + $shareLink = url('apk/'.$apk['slug'].($ref ? '?ref='.$ref : '')); ?>
- +
@@ -99,7 +99,7 @@

- +
@@ -116,4 +116,4 @@ function copyShareLink() { } - \ No newline at end of file + diff --git a/views/footer.php b/views/footer.php index 17de14b..b24538b 100644 --- a/views/footer.php +++ b/views/footer.php @@ -1,63 +1,55 @@ - -