From 6fd3b8d082899926567d4d4b9846d9a1c5eaf54d Mon Sep 17 00:00:00 2001 From: twotalesanimation <80506065+twotalesanimation@users.noreply.github.com> Date: Thu, 4 Dec 2025 15:28:17 +0200 Subject: [PATCH] Cleanup: Remove test and temporary page files --- src/pages/other/about2.php | 15 - src/pages/other/index2.php | 804 ------------------------------- src/pages/other/test_header.php | 48 -- src/pages/other/test_minimal.php | 21 - 4 files changed, 888 deletions(-) delete mode 100644 src/pages/other/about2.php delete mode 100644 src/pages/other/index2.php delete mode 100644 src/pages/other/test_header.php delete mode 100644 src/pages/other/test_minimal.php diff --git a/src/pages/other/about2.php b/src/pages/other/about2.php deleted file mode 100644 index ad8eac8b..00000000 --- a/src/pages/other/about2.php +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - diff --git a/src/pages/other/index2.php b/src/pages/other/index2.php deleted file mode 100644 index f92c630b..00000000 --- a/src/pages/other/index2.php +++ /dev/null @@ -1,804 +0,0 @@ -prepare("SELECT user_id FROM membership_application WHERE user_id = ? AND accept_indemnity = 0 LIMIT 1"); - $stmt->bind_param("i", $userId); - $stmt->execute(); - $stmt->store_result(); - - if ($stmt->num_rows > 0) { - $indemnityPending = true; - } - - $stmt->close(); -} - -?> - - -
-
-
-
- Logo -

- Welcome to
the Four Wheel Drive Club
of Southern Africa -

- - Become a Member - - -
-
-
-
- - - - - 0) { ?> -
-
-
-
-
-

Discover Africa's Treasures with 4WDCSA

-

Join us on the following trips:

-
-
-
-
- query($sql); - - if ($result->num_rows > 0) { - // Loop through each row - while ($row = $result->fetch_assoc()) { - $trip_id = $row['trip_id']; - $trip_name = $row['trip_name']; - $location = $row['location']; - $short_description = $row['short_description']; - $start_date = $row['start_date']; - $end_date = $row['end_date']; - $capacity = $row['vehicle_capacity']; - $cost_members = $row['cost_members']; - $places_booked = $row['places_booked']; - $remaining_places = $capacity - $places_booked; - - // Determine the badge text based on the status - $badge_text = ($remaining_places > 0) ? $remaining_places . ' PLACES LEFT!!' : 'FULLY BOOKED'; - echo ' -
-
-
- ' . $trip_name . ' -
-
- ' . $location . ' -
' . $trip_name . '
- ' . convertDate($start_date) . ' - ' . convertDate($end_date) . '
- ' . calculateDaysAndNights($start_date, $end_date) . ' -
- -
-
'; - } - } else { - echo "No trips available."; - } - ?> - -
-
-
- - - - - - -
-
-
-
-
-
-

Become a member of 4WDCSA

-

Sign up for an annual membership and receive:

-
    -
  • Year round access to BASE4
  • -
  • FREE Camping at BASE4
  • -
  • Up to 95% Discount on Training Courses
  • -
  • Exclusive Member discounts for all trips and events
  • -
  • ... and many more!
  • -
-
-

We go above and beyond to make your travel dreams reality hidden gems and must-see - attractions

- - - Become A Member - - -
-
-
-
- - About -
-
-
-
-
- - -
-
-

Loading countdown...

- - Find out more! - - -
-
- - - - - - -
-
-
-
-
-
-

BASE 4: The home of 4WDCSA.

-

Situated near the Hennops river, in Doornrandjie, Centurion.

-
- Hotel -
- -
- - - - - - -
-
-
-
-
-
-
-
-
Club House
-

We are currently in the process of building a new club house since the previous club house tragically burnt down in November of 2024. -

-
-
-
-
-
-
4x4 Training Track
-

Test your offroad driving skills on our training track with many obstacles - from rocky climbs, daring axle twisters, log bridge, side slopes and more! -

-
-
-
-
-
-
-
-
24/7 Camping
-

Pristene Camping grounds situated next to a stream, with ablutions, lapa and - communal fire pits.

- -
-
-
-
-
-
Swimming pool & Braai areas
-

Unwind with a refreshing dip in our crystal-clear swimming pool or gather around the braai area for good food and great company

-
-
-
-
-
- -
-
-
- - - - -
-
-
-
-
-

Driver Training Courses

-

Discover the in's and out's of your Four Wheel Drive with one of our dedicated training - courses:

-
-
-
-
-
-
-
- - - Hotel -
-
- BASE4, Hennops -
Basic 4X4 Driver Training
-
    -
  • Master Off-Road Confidence
  • -
  • Hands-On Training
  • -
  • Safety First
  • - -
- -
-
-
-
-
-
- - - Hotel -
-
- BASE4, Hennops -
Bush Mechanics Course
-
    -
  • Fix Your Vehicle in the Wild
  • -
  • Survival Skills for Off-Roaders
  • -
  • Hands-On Experience
  • - -
- -
-
-
-
-
-
- BASE4, Hennops -
Rescue & Recovery Course
-
    -
  • Master Advanced Recovery Techniques
  • -
  • Gain Confidence in High-Stress Situations
  • -
  • Teamwork and Communication
  • - -
- -
-
- - - Hotel -
-
-
- -
-
- - -
- - - - - - - - -
-
-
-
-
-

Read about our past trips and events

-
-
-
-
- query($sql); - - if ($result->num_rows > 0) { - // Loop through each row - while ($row = $result->fetch_assoc()) { - $blog_id = $row['blog_id']; - $blog_title = $row['title']; - $blog_date = $row['date']; - $blog_category = $row['category']; - $blog_image = $row['image']; - $blog_description = $row['description']; - $blog_author = $row['author']; - $members_only = $row['members_only']; - if ($members_only) { - if (!isset($_SESSION['user_id'])) { - $blog_link = "login.php"; - $button_hover = "Members Only"; - $icon = "fa-lock"; - } else { - if (getUserMemberStatus($_SESSION['user_id'])) { - $blog_link = $row['link']; - $button_hover = "Read More"; - $icon = "fa-arrow-right"; - } else { - $blog_link = "membership.php"; - $button_hover = "Members Only"; - $icon = "fa-lock"; - } - } - } else { - $blog_link = $row['link']; - $button_hover = "Read More"; - $icon = "fa-arrow-right"; - } - - - - echo ' -
-
-
- ' . $blog_category . ' -
' . $blog_title . '
- -
-
- Blog List -
- - Read More - - -
-
'; - } - // Close connection - $conn->close(); - } ?> -
-
-
- - -
- - - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/pages/other/test_header.php b/src/pages/other/test_header.php deleted file mode 100644 index 39aa53f9..00000000 --- a/src/pages/other/test_header.php +++ /dev/null @@ -1,48 +0,0 @@ -Path Diagnostic"; -echo "

Path Resolution Diagnostic

"; -echo "
"; - -echo "

Current Directory Information

"; -echo "__FILE__: " . __FILE__ . "
"; -echo "__DIR__: " . __DIR__ . "
"; -echo "
"; - -echo "

Directory Navigation Tests

"; -echo "dirname(__DIR__): " . dirname(__DIR__) . "
"; -echo "dirname(dirname(__DIR__)): " . dirname(dirname(__DIR__)) . "
"; -echo "dirname(dirname(dirname(__DIR__))): " . dirname(dirname(dirname(__DIR__))) . "
"; -echo "
"; - -echo "

\$_SERVER Variables

"; -echo "DOCUMENT_ROOT: " . ($_SERVER['DOCUMENT_ROOT'] ?? 'NOT SET') . "
"; -echo "SCRIPT_FILENAME: " . ($_SERVER['SCRIPT_FILENAME'] ?? 'NOT SET') . "
"; -echo "REQUEST_URI: " . ($_SERVER['REQUEST_URI'] ?? 'NOT SET') . "
"; -echo "SCRIPT_NAME: " . ($_SERVER['SCRIPT_NAME'] ?? 'NOT SET') . "
"; -echo "
"; - -echo "

Path Construction Tests

"; -$rootPath = dirname(dirname(dirname(__DIR__))); -echo "\$rootPath (dirname × 3): " . $rootPath . "
"; -echo "\$rootPath . '/header.php': " . $rootPath . '/header.php' . "
"; -echo "File exists? " . (file_exists($rootPath . '/header.php') ? 'YES ✓' : 'NO ✗') . "
"; -echo "
"; - -echo "

Alternative Path Tests

"; -if (isset($_SERVER['DOCUMENT_ROOT']) && is_string($_SERVER['DOCUMENT_ROOT'])) { - $altPath = $_SERVER['DOCUMENT_ROOT']; - echo "\$_SERVER['DOCUMENT_ROOT']: " . $altPath . "
"; - echo "\$altPath . '/header.php': " . $altPath . '/header.php' . "
"; - echo "File exists? " . (file_exists($altPath . '/header.php') ? 'YES ✓' : 'NO ✗') . "
"; -} else { - echo "DOCUMENT_ROOT not available or not a string
"; -} -echo "
"; - -echo "

Component Path Tests

"; -echo "\$rootPath . '/components/insta_footer.php': " . $rootPath . '/components/insta_footer.php' . "
"; -echo "File exists? " . (file_exists($rootPath . '/components/insta_footer.php') ? 'YES ✓' : 'NO ✗') . "
"; - -echo ""; -?> \ No newline at end of file diff --git a/src/pages/other/test_minimal.php b/src/pages/other/test_minimal.php deleted file mode 100644 index 28f4a8ac..00000000 --- a/src/pages/other/test_minimal.php +++ /dev/null @@ -1,21 +0,0 @@ -"; -$rootPath = dirname(dirname(dirname(__DIR__))); -echo "Step 2: Root path = " . $rootPath . "
"; -echo "Step 3: Header path = " . $rootPath . '/header.php' . "
"; -echo "Step 4: File exists? " . (file_exists($rootPath . '/header.php') ? 'YES' : 'NO') . "
"; - -$headerStyle = 'light'; -echo "Step 5: About to include header
"; -include_once($rootPath . '/header.php'); -echo "Step 6: Header included successfully
"; -?> -

Test Page Content

-"; -include_once($rootPath . '/components/insta_footer.php'); -echo "Step 8: Footer included successfully
"; -?> \ No newline at end of file