/
var
/
www
/
vhosts
/
m-auto.co
/
httpdocs
/
/var/www/vhosts/m-auto.co/httpdocs
mkdir
upload
Name
Size
Mode
Actions
admin/
-
0755
rm
ajax/
-
0755
rm
assets/
-
0755
rm
includes/
-
0755
rm
uploads/
-
0755
rm
.htaccess
2906
0644
edit
dl
rm
7-6-2026.zip
15953
0644
edit
dl
rm
404.php
1346
0644
edit
dl
rm
500.php
1326
0644
edit
dl
rm
about.php
2214
0644
edit
dl
rm
add_technical_specs.php
3659
0644
edit
dl
rm
ajax_filter_cars.php
7412
0644
edit
dl
rm
atom.xml
6281244
0644
edit
dl
rm
BACKGROUND_THEMES_INFO.md
4561
0644
edit
dl
rm
Backup.zip
4965
0644
edit
dl
rm
branches.php
10788
0644
edit
dl
rm
calculator.php
5897
0644
edit
dl
rm
cars.php
21991
0644
edit
dl
rm
car_condition_summary.php
9248
0644
edit
dl
rm
car_details.php
22584
0644
edit
dl
rm
CAR_GALLERY_README.md
7870
0644
edit
dl
rm
car_gallery_summary.php
10857
0644
edit
dl
rm
check_brand_matching.php
2000
0644
edit
dl
rm
cleanup_for_production.php
4878
0644
edit
dl
rm
compare.php
20255
0644
edit
dl
rm
COMPARISON_SYSTEM_README.md
6832
0644
edit
dl
rm
contact.php
3819
0644
edit
dl
rm
contact_process.php
2370
0644
edit
dl
rm
database_backup_2025-11-04_13-01-05.sql
48138
0644
edit
dl
rm
debug_brands.php
2267
0644
edit
dl
rm
deployment_checklist.php
6860
0644
edit
dl
rm
DEPLOYMENT_GUIDE.md
2712
0644
edit
dl
rm
export_database.php
3329
0644
edit
dl
rm
find_nearest_branch.php
2889
0644
edit
dl
rm
get-sitemap.php
2580
0644
edit
dl
rm
get_branches_by_city.php
4697
0644
edit
dl
rm
google7cbe8ec413192e2a.html
53
0644
edit
dl
rm
google69217c47da90dd66.html
53
0644
edit
dl
rm
index.php
633559
0644
edit
dl
rm
m11.zip
32222824
0644
edit
dl
rm
main.php
12595
0644
edit
dl
rm
main1.php
11911
0644
edit
dl
rm
maintenance.php
4169
0644
edit
dl
rm
maintenance_process.php
3408
0644
edit
dl
rm
manifest.json
828
0644
edit
dl
rm
news.php
2691
0644
edit
dl
rm
news_article.php
6536
0644
edit
dl
rm
ODOO_INTEGRATION_README.md
4435
0644
edit
dl
rm
offers.php
2218
0644
edit
dl
rm
PRODUCTION_SUMMARY.md
6426
0644
edit
dl
rm
quick_test_gallery.php
6078
0644
edit
dl
rm
README.md
6170
0644
edit
dl
rm
robots.txt
59
0644
edit
dl
rm
server_check.php
5293
0644
edit
dl
rm
sitemap.js
479620
0644
edit
dl
rm
sitemap.xml
6281829
0644
edit
dl
rm
sw.js
1954
0644
edit
dl
rm
test_odoo_connection.php
3474
0644
edit
dl
rm
visit.php
3781
0644
edit
dl
rm
visit_process.php
2771
0644
edit
dl
rm
x.txt
479657
0644
edit
dl
rm
Edit:
/var/www/vhosts/m-auto.co/httpdocs/main1.php
(11911B)
<?php include 'includes/db.php'; include 'includes/header.php'; // Fetchh slides from the database $slides_result = $conn->query("SELECT * FROM slider WHERE active = 1 ORDER BY id DESC"); // Fetch latest offers $offers_result = $conn->query("SELECT o.*, c.name as car_name FROM offers o LEFT JOIN cars c ON o.car_id = c.id ORDER BY o.created_at DESC LIMIT 4"); // Fetch videos from the database $videos_result = $conn->query("SELECT * FROM videos WHERE active = 1 ORDER BY created_at DESC LIMIT 6"); ?> <!-- Hero Section with Carousel --> <header id="hero-carousel" class="carousel slide hero-section" data-bs-ride="carousel" data-bs-interval="5000"> <div class="carousel-indicators"> <?php for ($i = 0; $i < $slides_result->num_rows; $i++): ?> <button type="button" data-bs-target="#hero-carousel" data-bs-slide-to="<?= $i ?>" class="<?= $i == 0 ? 'active' : '' ?>" aria-current="true" aria-label="Slide <?= $i + 1 ?>"></button> <?php endfor; ?> </div> <div class="carousel-inner"> <?php if ($slides_result->num_rows > 0): ?> <?php $i = 0; while($slide = $slides_result->fetch_assoc()): ?> <div class="carousel-item <?= $i == 0 ? 'active' : '' ?>"> <div class="container-fluid h-100"> <div class="row h-100 align-items-center"> <div class="col-lg-6 order-2 order-lg-1"> <div class="hero-content" data-aos="fade-right"> <h1 class="hero-title"><?= htmlspecialchars($slide['title']) ?></h1> <p class="hero-subtitle"><?= htmlspecialchars($slide['subtitle']) ?></p> <div class="hero-buttons mt-4"> <a href="cars.php" class="btn btn-danger btn-lg me-3">تصفح السيارات</a> <a href="contact.php" class="btn btn-outline-light btn-lg">اتصل بنا</a> </div> </div> </div> <div class="col-lg-6 order-1 order-lg-2"> <div class="hero-image" data-aos="fade-left"> <img src="uploads/slider/<?= htmlspecialchars($slide['image_path']) ?>" alt="<?= htmlspecialchars($slide['title']) ?>" class="img-fluid"> </div> </div> </div> </div> </div> <?php $i++; endwhile; ?> <?php else: ?> <!-- Fallback slide if DB is empty --> <div class="carousel-item active"> <div class="container-fluid h-100"> <div class="row h-100 align-items-center"> <div class="col-lg-6 order-2 order-lg-1"> <div class="hero-content" data-aos="fade-right"> <h1 class="hero-title">مرحباً بك في M-AUTO</h1> <p class="hero-subtitle">أضف شرائح جديدة من لوحة التحكم.</p> <div class="hero-buttons mt-4"> <a href="cars.php" class="btn btn-danger btn-lg me-3">تصفح السيارات</a> <a href="contact.php" class="btn btn-outline-light btn-lg">اتصل بنا</a> </div> </div> </div> <div class="col-lg-6 order-1 order-lg-2"> <div class="hero-image" data-aos="fade-left"> <img src="assets/images/default-hero-bg.jpg" alt="M-AUTO" class="img-fluid"> </div> </div> </div> </div> </div> <?php endif; ?> </div> <button class="carousel-control-prev" type="button" data-bs-target="#hero-carousel" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </button> <button class="carousel-control-next" type="button" data-bs-target="#hero-carousel" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </button> </header> <main id="main-content" class="container my-5"> <!-- Services Section --> <section class="text-center" id="services"> <h2 class="mb-5" data-aos="fade-in">خدماتنا</h2> <div class="row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-4"> <div class="col" data-aos="fade-up"> <div class="glass-card p-4 h-100 d-flex flex-column"> <i class="fas fa-car fa-3x text-danger mb-3"></i> <h4>شراء سيارة</h4> <p class="flex-grow-1">تصفح أحدث السيارات المتوفرة لدينا.</p> <a href="cars.php" class="btn btn-outline-danger mt-auto">عرض السيارات</a> </div> </div> <div class="col" data-aos="fade-up" data-aos-delay="100"> <div class="glass-card p-4 h-100 d-flex flex-column"> <i class="fas fa-tools fa-3x text-danger mb-3"></i> <h4>حجز صيانة</h4> <p class="flex-grow-1">احجز موعداً لصيانة سيارتك بسهولة.</p> <a href="maintenance.php" class="btn btn-danger mt-auto">احجز الآن</a> </div> </div> <div class="col" data-aos="fade-up" data-aos-delay="200"> <div class="glass-card p-4 h-100 d-flex flex-column"> <i class="fas fa-calendar-check fa-3x text-danger mb-3"></i> <h4>حجز زيارة</h4> <p class="flex-grow-1">تفضل بزيارة أحد فروعنا لمعاينة السيارات.</p> <a href="visit.php" class="btn btn-outline-danger mt-auto">حجز زيارة</a> </div> </div> <div class="col" data-aos="fade-up" data-aos-delay="300"> <div class="glass-card p-4 h-100 d-flex flex-column"> <i class="fas fa-calculator fa-3x text-danger mb-3"></i> <h4>حساب القسط</h4> <p class="flex-grow-1">احسب قسط سيارتك بنفسك بسهولة.</p> <a href="calculator.php" class="btn btn-danger mt-auto">ابدأ الحساب</a> </div> </div> </div> </section> <!-- Offers Section --> <?php if ($offers_result->num_rows > 0): ?> <section id="offers" class="mt-5 pt-5"> <h2 class="text-center mb-5" data-aos="fade-in">أحدث العروض</h2> <div class="row row-cols-1 row-cols-md-2 row-cols-lg-4 g-4"> <?php while($offer = $offers_result->fetch_assoc()): ?> <div class="col" data-aos="fade-up"> <div class="card h-100 text-white offer-card"> <img src="uploads/offers/<?= htmlspecialchars($offer['image']) ?>" class="card-img-top" alt="<?= htmlspecialchars($offer['title']) ?>"> <div class="card-body d-flex flex-column"> <h5 class="card-title"><?= htmlspecialchars($offer['title']) ?></h5> <p class="card-text text-muted flex-grow-1"><?= substr(htmlspecialchars($offer['description']), 0, 200) ?>...</p> <?php if($offer['discount_price']): ?> <h4 class="card-price"><?= number_format($offer['discount_price']) ?> جنيه</h4> <?php endif; ?> <a href="offers.php#offer-<?= $offer['id'] ?>" class="btn btn-danger mt-auto">التفاصيل</a> </div> </div> </div> <?php endwhile; ?> </div> </section> <?php endif; ?> <!-- Videos Section --> <?php if ($videos_result && $videos_result->num_rows > 0): ?> <section id="videos" class="mt-5 pt-5"> <h2 class="text-center mb-5" data-aos="fade-in">معرض الفيديوهات</h2> <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4"> <?php while($video = $videos_result->fetch_assoc()): ?> <div class="col" data-aos="fade-up"> <div class="card h-100 video-card"> <div class="video-container position-relative"> <?php if($video['video_type'] == 'url'): ?> <?php $video_url = $video['video_url']; $video_id = ''; $regex = '/(?:https?://)?(?:www.)?(?:youtube.com/(?:[^/ns]+/S+/|(?:v|e(?:mbed)?)/|S*?[?&]v=)|youtu.be/)([a-zA-Z0-9_-]{11})/'; if (preg_match($regex, $video_url, $matches)) { $video_id = $matches[1]; } ?> <?php if ($video_id): ?> <div class="ratio ratio-16x9"> <iframe src="https://www.youtube.com/embed/<?= htmlspecialchars($video_id) ?>" title="<?= htmlspecialchars($video['title']) ?>" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe> </div> <?php else: ?> <div class="ratio ratio-16x9" style="background-color: #000; display: flex; align-items: center; justify-content: center;"> <p class="text-white text-center mb-0">لا يمكن عرض الفيديو. قد يكون الرابط غير صحيح.</p> </div> <?php endif; ?> <?php else: ?> <div class="ratio ratio-16x9"> <video controls class="w-100 h-100"> <source src="uploads/videos/<?= htmlspecialchars($video['video_file']) ?>" type="video/mp4"> متصفحك لا يدعم تشغيل الفيديو. </video> </div> <?php endif; ?> </div> <div class="card-body"> <h5 class="card-title"><?= htmlspecialchars($video['title']) ?></h5> <?php if($video['description']): ?> <p class="card-text text-muted"><?= htmlspecialchars($video['description']) ?></p> <?php endif; ?> <small class="text-muted"><?= date('d/m/Y', strtotime($video['created_at'])) ?></small> </div> </div> </div> <?php endwhile; ?> </div> </section> <?php endif; ?> </main> <?php include 'includes/footer.php'; ?>
Save
cmd:
run