-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
99 lines (93 loc) · 3.51 KB
/
index.php
File metadata and controls
99 lines (93 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* بوت النشر التلقائي لتيليجرام - Telegram Automatic Posting Bot
* الصفحة الرئيسية - Main Page
*/
// التحقق من أن الملف تم استدعاؤه مباشرة - Check if file was accessed directly
if (php_sapi_name() === 'cli') {
// تشغيل من سطر الأوامر - Running from command line
require_once 'cron.php';
echo "تم تنفيذ مهمة كرون.\n";
exit;
}
// التحقق مما إذا كان الطلب من تيليجرام - Check if request is from Telegram
$input = file_get_contents('php://input');
if (!empty($input)) {
// استدعاء معالج ويب هوك - Call webhook handler
require_once 'webhook.php';
exit;
}
// التحقق من وجود معلمة setup - Check for setup parameter
if (isset($_GET['setup'])) {
// استدعاء صفحة الإعداد - Call setup page
require_once 'setup.php';
exit;
}
// عرض صفحة المعلومات - Show info page
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html dir="rtl" lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>بوت النشر التلقائي للمحتوى العربي</title>
<style>
body {
font-family: Arial, Tahoma, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
color: #333;
text-align: center;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
color: #4267B2;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: #4267B2;
color: white;
text-decoration: none;
border-radius: 5px;
margin-top: 20px;
}
.btn:hover {
background-color: #365899;
}
.features {
text-align: right;
margin: 20px 0;
padding: 0 20px;
}
.feature-item {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>بوت النشر التلقائي للمحتوى العربي</h1>
<p>مرحبًا بك في نظام إدارة المحتوى التلقائي للقنوات العربية على تيليجرام.</p>
<div class="features">
<h3>المميزات:</h3>
<div class="feature-item">✓ إنشاء محتوى عربي تلقائي باستخدام Gemini AI</div>
<div class="feature-item">✓ جدولة المنشورات على فترات منتظمة</div>
<div class="feature-item">✓ لوحة تحكم سهلة الاستخدام باللغة العربية</div>
<div class="feature-item">✓ إحصائيات وتقارير لمراقبة أداء البوت</div>
<div class="feature-item">✓ نظام تنويع المحتوى لضمان جودة المنشورات</div>
</div>
<p>لإعداد البوت أو تعديل الإعدادات، انقر على الزر أدناه:</p>
<a href="?setup" class="btn">إعداد البوت</a>
</div>
</body>
</html>