/
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/news_article.php
(6536B)
<?php include 'includes/db.php'; include 'includes/header.php'; if (!isset($_GET['id'])) { header("Location: news.php"); exit(); } $id = $_GET['id']; $stmt = $conn->prepare("SELECT * FROM news WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); $article = $result->fetch_assoc(); if (!$article) { header("Location: news.php"); exit(); } ?> <div id="main-content" class="container mt-5"> <!-- Back button --> <div class="row mb-4"> <div class="col-12"> <a href="news.php" class="btn btn-outline-warning"> <i class="fas fa-arrow-right me-2"></i>العودة للأخبار </a> </div> </div> <div class="row justify-content-center"> <div class="col-lg-8 col-md-10 col-12"> <!-- Post content--> <article class="glass-card"> <!-- Post header--> <header class="mb-4 text-center"> <!-- Post title--> <h1 class="fw-bolder mb-3 text-warning"><?php echo htmlspecialchars($article['title']); ?></h1> <!-- Post meta content--> <div class="text-muted mb-3"> <i class="fas fa-calendar-alt me-2"></i> <?php echo date('d F Y', strtotime($article['created_at'])); ?> </div> </header> <!-- Preview image figure--> <figure class="mb-4 text-center"> <img class="img-fluid rounded shadow-lg" src="uploads/news/<?php echo htmlspecialchars($article['image']); ?>" alt="<?php echo htmlspecialchars($article['title']); ?>" style="max-height: 400px; width: 100%; object-fit: cover;"> </figure> <!-- Post video (if available) --> <?php if (!empty($article['video_type']) && $article['video_type'] !== 'none'): ?> <div class="mb-4 text-center"> <div class="ratio ratio-16x9 shadow-lg rounded" style="overflow: hidden;"> <?php if ($article['video_type'] === 'url' && !empty($article['video_url'])): ?> <?php $video_url = $article['video_url']; if (strpos($video_url, 'youtube.com/watch?v=') !== false) { $video_id = parse_url($video_url, PHP_URL_QUERY); parse_str($video_id, $params); $video_url = 'https://www.youtube.com/embed/' . ($params['v'] ?? ''); } elseif (strpos($video_url, 'youtu.be/') !== false) { $video_id = basename(parse_url($video_url, PHP_URL_PATH)); $video_url = 'https://www.youtube.com/embed/' . $video_id; } ?> <iframe src="<?php echo htmlspecialchars($video_url); ?>" title="فيديو الخبر" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen class="rounded"> </iframe> <?php elseif ($article['video_type'] === 'file' && !empty($article['video_file'])): ?> <video src="uploads/news/<?php echo htmlspecialchars($article['video_file']); ?>" controls class="rounded" style="width: 100%; height: 100%; object-fit: cover;"> </video> <?php endif; ?> </div> </div> <?php endif; ?> <!-- Post content--> <section class="mb-4"> <div class="fs-5 mb-4 text-light" style="line-height: 1.8;"> <?php echo nl2br(htmlspecialchars($article['content'])); ?> </div> </section> <!-- Share buttons --> <div class="border-top pt-4 mt-4"> <h6 class="text-warning mb-3">شارك هذا الخبر:</h6> <div class="d-flex flex-wrap gap-2"> <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>" target="_blank" class="btn btn-primary btn-sm"> <i class="fab fa-facebook-f me-1"></i>فيسبوك </a> <a href="https://twitter.com/intent/tweet?url=<?php echo urlencode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>&text=<?php echo urlencode($article['title']); ?>" target="_blank" class="btn btn-info btn-sm"> <i class="fab fa-twitter me-1"></i>تويتر </a> <a href="https://wa.me/?text=<?php echo urlencode($article['title'] . ' - ' . 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>" target="_blank" class="btn btn-success btn-sm"> <i class="fab fa-whatsapp me-1"></i>واتساب </a> <button onclick="copyToClipboard()" class="btn btn-secondary btn-sm"> <i class="fas fa-copy me-1"></i>نسخ الرابط </button> </div> </div> </article> </div> </div> </div> <script> function copyToClipboard() { const url = window.location.href; navigator.clipboard.writeText(url).then(function() { alert('تم نسخ الرابط بنجاح!'); }, function(err) { console.error('خطأ في نسخ الرابط: ', err); }); } </script> <?php include 'includes/footer.php'; ?>
Save
cmd:
run