Hello, $passengerName!
-
Thank you for choosing INTALEQ. Your trip has been successfully confirmed. Here is your digital receipt:
+
Thank you for choosing SIRO. Your trip has been successfully confirmed. Here is your digital receipt:
@@ -89,7 +89,7 @@ $bodyEmail = "
If you have any questions, feel free to contact our support team at any time.
@@ -102,14 +102,14 @@ try {
$mail->Host = 'smtp.hostinger.com';
$mail->SMTPAuth = true;
$mail->Username = $EMAIL_ADDRESS;
- $mail->Password = $INTALEQ_SMTP_PASSWORD;
+ $mail->Password = $SIRO_SMTP_PASSWORD;
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;
- $mail->setFrom($EMAIL_ADDRESS, 'INTALEQ');
+ $mail->setFrom($EMAIL_ADDRESS, 'SIRO');
$mail->addAddress($passengerEmail, $passengerName);
$mail->isHTML(true);
- $mail->Subject = 'Your INTALEQ Trip Details';
+ $mail->Subject = 'Your SIRO Trip Details';
$mail->Body = $bodyEmail;
$mail->send();
diff --git a/backend/encrypt_decrypt.php b/backend/encrypt_decrypt.php
index 80187fd..ca09388 100755
--- a/backend/encrypt_decrypt.php
+++ b/backend/encrypt_decrypt.php
@@ -3,11 +3,11 @@
require_once realpath(__DIR__ . '/../vendor/autoload.php');
require_once 'load_env.php';
-$env_file = '/home/intaleq-api/env/.env';
+$env_file = '/home/siro-api/env/.env';
loadEnvironment($env_file);
-$key = trim(file_get_contents('/home/intaleq-api/.enckey'));
+$key = trim(file_get_contents('/home/siro-api/.enckey'));
$iv = getenv('initializationVector'); // 16 bytes
diff --git a/backend/functions.php b/backend/functions.php
index 7ea50f1..e1a6280 100755
--- a/backend/functions.php
+++ b/backend/functions.php
@@ -8,7 +8,7 @@ use Firebase\JWT\SignatureInvalidException;
use Firebase\JWT\BeforeValidException;
-$INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+$INTERNAL_KEY = trim((string)@file_get_contents('/home/siro-api/.internal_socket_key'));
/**
@@ -23,7 +23,7 @@ $INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_soc
function sendToLocationServer($action, $data) {
// رابط سيرفر اللوكيشن الداخلي أو العام
$url = "http://188.68.36.205:2021";
- $INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim((string)@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => $action,
@@ -44,7 +44,7 @@ function sendToLocationServer($action, $data) {
function findBestDrivers($con, $lat, $lng, $carType) {
// 1. الاتصال بـ Redis لجلب الأقرب
$locationServerUrl = "https://location.intaleq.xyz/api_get_nearby.php";
- $INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim((string)@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = ['lat' => $lat, 'lng' => $lng, 'radius' => 5, 'limit' => 100];
@@ -159,7 +159,7 @@ function findBestDrivers($con, $lat, $lng, $carType) {
function notifyDriversRideTaken($rideId, $winnerDriverId) {
// رابط سيرفر السائقين الداخلي (نفس البورت المستخدم في driver_socket.php)
$url = "http://188.68.36.205:2021";
- $INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim((string)@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => 'ride_taken_event', // هذا الأكشن الجديد في السوكيت
@@ -181,7 +181,7 @@ function notifyDriversRideTaken($rideId, $winnerDriverId) {
function notifyDriversOnLocationServer($drivers_ids_array, $payload, $rideId = null) {
// رابط سيرفر اللوكيشن الخارجي
$url = "http://188.68.36.205:2021";
- $INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim((string)@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => 'dispatch_order', // اسم الحدث المتفق عليه في socket_server.php هناك
@@ -217,10 +217,10 @@ function notifyDriversOnLocationServer($drivers_ids_array, $payload, $rideId = n
function notifyPassengerOnRideServer($passenger_id, $payload) {
// الرابط لسيرفر سوكيت الركاب — IP مباشر لتجاوز مشاكل الجدار الناري والدومين
$url = "http://188.68.36.205:3031";
- $INTERNAL_KEY = trim((string)@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim((string)@file_get_contents('/home/siro-api/.internal_socket_key'));
if (empty($INTERNAL_KEY)) {
- error_log("[SOCKET_CRITICAL] Internal key missing at /home/intaleq-api/.internal_socket_key");
+ error_log("[SOCKET_CRITICAL] Internal key missing at /home/siro-api/.internal_socket_key");
}
$postData = [
@@ -263,7 +263,7 @@ function dispatchRideToDrivers($driversData, $rideId, $payloadTemplate, $startNa
error_log("🚀 [DISPATCH_START] RideID: $rideId | Drivers Count: $countDrivers");
$socketUrl = 'http://188.68.36.205:2021';
- $internalKeyPath = '/home/intaleq-api/.internal_socket_key';
+ $internalKeyPath = '/home/siro-api/.internal_socket_key';
$internalKey = file_exists($internalKeyPath) ? trim((string)@file_get_contents($internalKeyPath)) : '';
foreach ($driversData as $driver) {
diff --git a/backend/intaleq_v1.code-workspace b/backend/intaleq_v1.code-workspace
index 7909573..56bd15c 100644
--- a/backend/intaleq_v1.code-workspace
+++ b/backend/intaleq_v1.code-workspace
@@ -4,16 +4,16 @@
"path": "."
},
{
- "path": "../../../development/App/Intaleq"
+ "path": "../../../development/App/Siro"
},
{
- "path": "../../../development/App/intaleq_driver"
+ "path": "../../../development/App/siro_driver"
},
{
- "path": "../../../development/App/intaleq_admin"
+ "path": "../../../development/App/siro_admin"
},
{
- "path": "../../../development/App/service_intaleq"
+ "path": "../../../development/App/service_siro"
}
],
"settings": {}
diff --git a/backend/intaleq_v1_secure_latest.md b/backend/intaleq_v1_secure_latest.md
index 908030c..f2d4246 100644
--- a/backend/intaleq_v1_secure_latest.md
+++ b/backend/intaleq_v1_secure_latest.md
@@ -1,4 +1,4 @@
-# Intaleq V1 - Secure Latest Version
+# Siro V1 - Secure Latest Version
## File: functions.php
```
@@ -12,7 +12,7 @@ use Firebase\JWT\SignatureInvalidException;
use Firebase\JWT\BeforeValidException;
-$INTERNAL_KEY = trim(file_get_contents('/home/intaleq-api/.internal_socket_key'));
+$INTERNAL_KEY = trim(file_get_contents('/home/siro-api/.internal_socket_key'));
/**
@@ -27,7 +27,7 @@ $INTERNAL_KEY = trim(file_get_contents('/home/intaleq-api/.internal_socket_key')
function sendToLocationServer($action, $data) {
// رابط سيرفر اللوكيشن الداخلي أو العام
$url = "http://location.intaleq.xyz:2021";
- $INTERNAL_KEY = trim(@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim(@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => $action,
@@ -48,7 +48,7 @@ function sendToLocationServer($action, $data) {
function findBestDrivers($con, $lat, $lng, $carType) {
// 1. الاتصال بـ Redis لجلب الأقرب
$locationServerUrl = "https://location.intaleq.xyz/api_get_nearby.php";
- $INTERNAL_KEY = trim(@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim(@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = ['lat' => $lat, 'lng' => $lng, 'radius' => 5, 'limit' => 100];
@@ -162,7 +162,7 @@ function notifyDriversRideTaken($rideId, $winnerDriverId) {
// رابط سيرفر السائقين الداخلي (نفس البورت المستخدم في driver_socket.php)
$url = getenv('LOCATION_SOCKET_URL');
if (!$url) throw new RuntimeException('LOCATION_SOCKET_URL not configured');
- $INTERNAL_KEY = trim(@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim(@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => 'ride_taken_event', // هذا الأكشن الجديد في السوكيت
@@ -185,7 +185,7 @@ function notifyDriversOnLocationServer($drivers_ids_array, $payload, $rideId = n
// رابط سيرفر اللوكيشن الخارجي
$url = getenv('LOCATION_SOCKET_URL');
if (!$url) throw new RuntimeException('LOCATION_SOCKET_URL not configured');
- $INTERNAL_KEY = trim(@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim(@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => 'dispatch_order', // اسم الحدث المتفق عليه في socket_server.php هناك
@@ -225,7 +225,7 @@ function notifyPassengerOnRideServer($passenger_id, $payload) {
error_log("[FATAL] PASSENGER_SOCKET_URL not configured");
throw new RuntimeException('PASSENGER_SOCKET_URL not configured');
}
- $INTERNAL_KEY = trim(@file_get_contents('/home/intaleq-api/.internal_socket_key'));
+ $INTERNAL_KEY = trim(@file_get_contents('/home/siro-api/.internal_socket_key'));
$postData = [
'action' => 'update_ride_status',
@@ -266,7 +266,7 @@ function dispatchRideToDrivers($driversData, $rideId, $payloadTemplate, $startNa
$socketUrl = getenv('LOCATION_SOCKET_URL');
if (!$socketUrl) throw new RuntimeException('LOCATION_SOCKET_URL not configured');
- $internalKeyPath = '/home/intaleq-api/.internal_socket_key';
+ $internalKeyPath = '/home/siro-api/.internal_socket_key';
$internalKey = file_exists($internalKeyPath) ? trim(file_get_contents($internalKeyPath)) : '';
foreach ($driversData as $driver) {
@@ -377,15 +377,15 @@ function sendFcmNotification($token, $title, $body, $data, $category, $tone) {
// authenticateJWT() — النسخة النهائية الكاملة
// ───────────────────────────────────────────────────────────────
// قائمة allowedFiles مبنية على هيكل الملفات الفعلي:
-// intaleq_v1/ ← الجذر
-// intaleq_v1/auth/ ← مشترك راكب/سائق
-// intaleq_v1/auth/syria/ ← تسجيل سوريا
-// intaleq_v1/auth/captin/ ← تسجيل السائق
+// siro_v1/ ← الجذر
+// siro_v1/auth/ ← مشترك راكب/سائق
+// siro_v1/auth/syria/ ← تسجيل سوريا
+// siro_v1/auth/captin/ ← تسجيل السائق
// ═══════════════════════════════════════════════════════════════
function authenticateJWT(): object
{
- $secretKey = trim(file_get_contents('/home/intaleq-api/.secret_key'));
+ $secretKey = trim(file_get_contents('/home/siro-api/.secret_key'));
$hmacSecret = getenv('SECRET_KEY_HMAC');
$fpPepper = getenv('FP_PEPPER');
@@ -1250,7 +1250,7 @@ CREATE TABLE `car_locations` (
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO' */ ;
DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`intaleqUserDB1`@`%`*/ /*!50003 TRIGGER `trg_before_insert_car_locations` BEFORE INSERT ON `car_locations` FOR EACH ROW BEGIN
+/*!50003 CREATE*/ /*!50017 DEFINER=`siroUserDB1`@`%`*/ /*!50003 TRIGGER `trg_before_insert_car_locations` BEFORE INSERT ON `car_locations` FOR EACH ROW BEGIN
SET NEW.location_point = ST_PointFromText(CONCAT('POINT(', NEW.longitude, ' ', NEW.latitude, ')'), 4326);
END */;;
DELIMITER ;
@@ -1267,7 +1267,7 @@ DELIMITER ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO' */ ;
DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`intaleqUserDB1`@`%`*/ /*!50003 TRIGGER `trg_before_update_car_locations` BEFORE UPDATE ON `car_locations` FOR EACH ROW BEGIN
+/*!50003 CREATE*/ /*!50017 DEFINER=`siroUserDB1`@`%`*/ /*!50003 TRIGGER `trg_before_update_car_locations` BEFORE UPDATE ON `car_locations` FOR EACH ROW BEGIN
IF NEW.latitude <> OLD.latitude OR NEW.longitude <> OLD.longitude THEN
SET NEW.location_point = ST_PointFromText(CONCAT('POINT(', NEW.longitude, ' ', NEW.latitude, ')'), 4326);
END IF;
@@ -2934,7 +2934,7 @@ try {
-
سياسة الخصوصية وشروط الخدمة – Intaleq Driver
+
سياسة الخصوصية وشروط الخدمة – Siro Driver