浏览代码

Mitigate PHP 8.1 warnings, include missing language values, show blank result page initially.

fusionate 2 年之前
父节点
当前提交
c5be0e95c0
共有 4 个文件被更改,包括 59 次插入3 次删除
  1. 49 0
      app_languages.php
  2. 1 1
      header.php
  3. 2 2
      sql_query.php
  4. 7 0
      sql_query_result.php

+ 49 - 0
app_languages.php

@@ -829,4 +829,53 @@ $text['message-delete-clip']['ru-ru'] = "Вы действительно хот
 $text['message-delete-clip']['sv-se'] = "Är du säker på att du vill radera det valda klippet?";
 $text['message-delete-clip']['uk-ua'] = "Ви впевнені, що ви хочете видалити вибраний кліп?";
 
+
+$text['message-give-up']['en-us'] = "Giving up :( Cannot create an XMLHTTP instance";
+$text['message-give-up']['en-gb'] = "Giving up :( Cannot create an XMLHTTP instance";
+$text['message-give-up']['ar-eg'] = ": لا يُمكن أن يُخلق مثال على ذلك";
+$text['message-give-up']['de-at'] = "Vorgang abgebrochen :( Konnte XMLHTTP Instanz nich erzeugen";
+$text['message-give-up']['de-ch'] = "Vorgang abgebrochen :( Konnte XMLHTTP Instanz nich erzeugen";
+$text['message-give-up']['de-de'] = "Vorgang abgebrochen :( Konnte XMLHTTP Instanz nich erzeugen";
+$text['message-give-up']['es-cl'] = "Cancelando, no se puede crear una instancia XMLHTTP";
+$text['message-give-up']['es-mx'] = "Cancelando, no se puede crear una instancia XMLHTTP";
+$text['message-give-up']['fr-ca'] = "Abandonner :( Ne peut pas créer un instance XMLHTTP";
+$text['message-give-up']['fr-fr'] = "Abandonner :( Ne peut pas créer un instance XMLHTTP";
+$text['message-give-up']['he-il'] = "לוותר:( לא יכול ליצור מקרה XMLHTTP";
+$text['message-give-up']['it-it'] = "Abbandono :( Non riesco a creare un'instanza XMLHTTP";
+$text['message-give-up']['nl-nl'] = "Opgegeven :( kan geen XMLHTTP verbinding maken";
+$text['message-give-up']['pl-pl'] = "Śmiertelnia: (pol.). Cannot stworzył instancję XMLHTTP.";
+$text['message-give-up']['pt-br'] = "Desistindo :( Não é possível criar uma instância XMLHTTP";
+$text['message-give-up']['pt-pt'] = "Desistindo :( Não é possível criar uma instância XMLHTTP";
+$text['message-give-up']['ro-ro'] = "Renunțare :( Nu se poate crea o instanță XMLHTTP";
+$text['message-give-up']['ru-ru'] = "Операция отменена :( Невозможно создать XMLHTTP экземпляр";
+$text['message-give-up']['sv-se'] = "Ger upp :( Kan inte skapa en XMLHTTP instans";
+$text['message-give-up']['uk-ua'] = "Досягнення :( Не створювати екземпляр XMLHTTP";
+$text['message-give-up']['zh-cn'] = "放弃 :( 无法创建 XMLHTTP 实例";
+$text['message-give-up']['ja-jp'] = "諦めます:( XMLHTTP インスタンスを作成できません";
+$text['message-give-up']['ko-kr'] = "포기합니다 :( XMLHTTP 인스턴스를 생성할 수 없습니다";
+
+$text['message-problem']['en-us'] = "There was a problem with the request.";
+$text['message-problem']['en-gb'] = "There was a problem with the request.";
+$text['message-problem']['ar-eg'] = "كانت هناك مشكلة مع الطلب";
+$text['message-problem']['de-at'] = "Es gab ein Problem mit der Anfrage.";
+$text['message-problem']['de-ch'] = "Es gab ein Problem mit der Anfrage.";
+$text['message-problem']['de-de'] = "Es gab ein Problem mit der Anfrage.";
+$text['message-problem']['es-cl'] = "Hubo un problema con la petición.";
+$text['message-problem']['es-mx'] = "Hubo un problema con la petición.";
+$text['message-problem']['fr-ca'] = "Il y avait un problème avec la demande.";
+$text['message-problem']['fr-fr'] = "Il y avait un problème avec la demande.";
+$text['message-problem']['he-il'] = "הייתה בעיה עם הבקשה.";
+$text['message-problem']['it-it'] = "C'è stato un problema con la richiesta.";
+$text['message-problem']['nl-nl'] = "Er was een prbleem emt de aanvraag";
+$text['message-problem']['pl-pl'] = "Na prośbę doszło do problemu.";
+$text['message-problem']['pt-br'] = "Ocorreu um problema com o pedido.";
+$text['message-problem']['pt-pt'] = "Ocorreu um problema com o pedido.";
+$text['message-problem']['ro-ro'] = "A apărut o problemă cu cererea.";
+$text['message-problem']['ru-ru'] = "Возникла проблема с запросом.";
+$text['message-problem']['sv-se'] = "Det uppstod ett problem med begäran.";
+$text['message-problem']['uk-ua'] = "Проблема з запитом.";
+$text['message-problem']['zh-cn'] = "这个要求有个问题。";
+$text['message-problem']['ja-jp'] = "リクエストに問題がありました。";
+$text['message-problem']['ko-kr'] = "요청에 문제가 발생했습니다.";
+
 ?>

+ 1 - 1
header.php

@@ -75,7 +75,7 @@ echo "<SCRIPT language=\"JavaScript\">\n";
 echo "<!--\n";
 echo "function confirmdelete(url)\n";
 echo "{\n";
-echo " var confirmed = confirm('".$text['button-delete-this']."');\n";
+echo " var confirmed = confirm('".$text['confirm-delete']."');\n";
 echo " if (confirmed == true) {\n";
 echo "      window.location=url;\n";
 echo " }\n";

+ 2 - 2
sql_query.php

@@ -121,7 +121,7 @@
 
 		function reset_editor() {
 			editor.getSession().setValue('');
-			$('#iframe').prop('src','');
+			$('#iframe').prop('src','sql_query_result.php');
 			focus_editor();
 		}
 	</script>
@@ -369,7 +369,7 @@
 	echo "<span id='sql_response'>";
 	//echo "<b>".$text['label-results']."</b>\n";
 	//echo "<br /><br />\n";
-	echo "<iframe name='iframe' id='iframe' style='width: calc(100% - 3px); height: 500px; background-color: #fff; border: 0px solid #c0c0c0;'></iframe>\n";
+	echo "<iframe name='iframe' id='iframe' style='width: calc(100% - 3px); height: 500px; background-color: #fff; border: 0px solid #c0c0c0;' src='sql_query_result.php'></iframe>\n";
 	echo "</span>";
 
 //show the footer

+ 7 - 0
sql_query_result.php

@@ -37,6 +37,13 @@
 		exit;
 	}
 
+//show blank iframe initially
+	if (empty($_REQUEST)) {
+		echo '&nbsp;';
+		exit;
+	}
+
+
 //add multi-lingual support
 	$language = new text;
 	$text = $language->get();