diff --git a/app/Helpers/functions.php b/app/Helpers/functions.php index 5fa60e6..3c24914 100644 --- a/app/Helpers/functions.php +++ b/app/Helpers/functions.php @@ -17,25 +17,10 @@ function view($view, $data = []) { } function redirect($path) { - header("Location: " . url($path)); + header("Location: $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); } @@ -62,4 +47,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 3f18b9e..e0783c0 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,17 +1,9 @@ body { font-family: 'Inter', sans-serif; - background-color: #F8FAFC; + background-color: #F5F7F9; 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; } @@ -41,14 +33,11 @@ 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 { @@ -81,8 +70,3 @@ 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 deleted file mode 100644 index 873a77f..0000000 Binary files a/assets/pasted-20260225-000118-a6991bf7.jpg and /dev/null 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 deleted file mode 100644 index 017ff03..0000000 Binary files a/assets/vm-shot-2026-02-25T00-00-50-686Z.jpg and /dev/null differ diff --git a/views/apk_detail.php b/views/apk_detail.php index b7f9636..65448a8 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 = url('apk/'.$apk['slug'].($ref ? '?ref='.$ref : '')); + $shareLink = 'http://'.$_SERVER['HTTP_HOST'].'/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 b24538b..17de14b 100644 --- a/views/footer.php +++ b/views/footer.php @@ -1,55 +1,63 @@ - - -