Parcourir la source

added omission of missing parameters - a list of certificates and an address file.

root il y a 8 mois
Parent
commit
2d73b8d279
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      index.php

+ 2 - 2
index.php

@@ -151,7 +151,7 @@ function getAccountList($server) {
     $accounts = [];
     
     // Получаем список из index.txt (неотозванные сертификаты)
-    if (file_exists($server['cert_index'])) {
+    if (!empty($server['cert_index']) && file_exists($server['cert_index'])) {
         $index_content = file_get_contents($server['cert_index']);
         $lines = explode("\n", $index_content);
         
@@ -173,7 +173,7 @@ function getAccountList($server) {
 
     // Получаем список выданных IP из ipp.txt
     $assigned_ips = [];
-    if (file_exists($server['ipp_file'])) {
+    if (!empty($server['ipp_file']) && file_exists($server['ipp_file'])) {
         $ipp_content = file_get_contents($server['ipp_file']);
         $lines = explode("\n", $ipp_content);