From b0bd01544006942d5e989510cd84fc8f9d39c9e4 Mon Sep 17 00:00:00 2001 From: NorHei Date: Sat, 1 Aug 2015 11:49:20 +0200 Subject: [PATCH] Finally changed the Language files and activated new loading mechanism. Changes according to : http://forum.wbce.org/viewtopic.php?id=59 No entity conversion yet. --- wbce/framework/initialize.php | 12 ++++++------ wbce/languages/BG.php | 15 +++------------ wbce/languages/CA.php | 14 +++----------- wbce/languages/CS.php | 14 +++----------- wbce/languages/DA.php | 15 +++------------ wbce/languages/DE.php | 16 +++------------- wbce/languages/EN.php | 14 +++----------- wbce/languages/ES.php | 15 +++------------ wbce/languages/ET.php | 14 +++----------- wbce/languages/FI.php | 15 +++------------ wbce/languages/FR.php | 14 +++----------- wbce/languages/HR.php | 14 +++----------- wbce/languages/HU.php | 15 +++------------ wbce/languages/IT.php | 14 +++----------- wbce/languages/LV.php | 14 +++----------- wbce/languages/NL.php | 14 +++----------- wbce/languages/NO.php | 14 +++----------- wbce/languages/PL.php | 15 +++------------ wbce/languages/PT.php | 14 +++----------- wbce/languages/RU.php | 14 +++----------- wbce/languages/SE.php | 15 +++------------ wbce/languages/SK.php | 14 +++----------- wbce/languages/TR.php | 14 +++----------- wbce/languages/old.format.inc.php | 5 +++-- 24 files changed, 75 insertions(+), 259 deletions(-) diff --git a/wbce/framework/initialize.php b/wbce/framework/initialize.php index 1ba68c33c..6b86ebccb 100644 --- a/wbce/framework/initialize.php +++ b/wbce/framework/initialize.php @@ -173,7 +173,7 @@ function makePhExp($sList) } } - +/* // Load Language file if(!defined('LANGUAGE_LOADED')) { if(!file_exists(WB_PATH.'/languages/'.LANGUAGE.'.php')) { @@ -182,9 +182,9 @@ function makePhExp($sList) require_once(WB_PATH.'/languages/'.LANGUAGE.'.php'); } } +*/ - - /* // Load default language file so even incomplete languagefiles display at least the english text + // Load default language file so even incomplete languagefiles display at least the english text if(!file_exists(WB_PATH.'/languages/EN.php')) { exit('Error loading default language file (EN), please check configuration'); } else { @@ -199,10 +199,10 @@ function makePhExp($sList) define("LANGUAGE_LOADED", TRUE); } - include old languages format only for compatibility need to check code for old vars*/ - /*if(file_exists(WB_PATH.'/languages/old.format.inc.php')) { + //include old languages format only for compatibility need to check code for old vars + if(file_exists(WB_PATH.'/languages/old.format.inc.php')) { include(WB_PATH.'/languages/old.format.inc.php'); - }*/ + } diff --git a/wbce/languages/BG.php b/wbce/languages/BG.php index 710cbb136..0cda7922f 100644 --- a/wbce/languages/BG.php +++ b/wbce/languages/BG.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'BG'; @@ -677,8 +672,4 @@ $OVERVIEW['USERS'] = 'Управление на потребителите можещи да влязат в WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Виж своя сайт в нов прозорец...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/CA.php b/wbce/languages/CA.php index 3becd449b..56d7cbd0a 100644 --- a/wbce/languages/CA.php +++ b/wbce/languages/CA.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'CA'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Administreu els usuaris que poden identificar-se a WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Veure i navegar ràpidament la vostra pàgina web en una nova finestra...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/CS.php b/wbce/languages/CS.php index d94be3275..b42ab24ef 100644 --- a/wbce/languages/CS.php +++ b/wbce/languages/CS.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'CS'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Spravovat uživate WebsiteBakeru...'; $OVERVIEW['VIEW'] = 'Rychle prohlédhout stránky v novém okně...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/DA.php b/wbce/languages/DA.php index a1b11c57c..8678791c4 100644 --- a/wbce/languages/DA.php +++ b/wbce/languages/DA.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Du kan ikke få direkte adgang til denne fil"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'DA'; @@ -677,8 +672,4 @@ $OVERVIEW['USERS'] = 'Administrér brugere som kan logge ind på WebsiteBaker systemet...'; $OVERVIEW['VIEW'] = 'Hurtig visning og gennemsyn af dit Websted i et nyt vindue..'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/DE.php b/wbce/languages/DE.php index e1e6beb39..9e5a9e13c 100644 --- a/wbce/languages/DE.php +++ b/wbce/languages/DE.php @@ -16,14 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) -{ - define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'DE'; @@ -674,8 +668,4 @@ $OVERVIEW['USERS'] = 'Verwaltung von Benutzern, die sich in WebsiteBaker einloggen dürfen...'; $OVERVIEW['VIEW'] = 'Ansicht Ihrer Webseite in einem neuen Fenster...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/EN.php b/wbce/languages/EN.php index d7e2cfdcb..459a26ab6 100644 --- a/wbce/languages/EN.php +++ b/wbce/languages/EN.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'EN'; @@ -690,8 +686,4 @@ $MESSAGE['THEME_DESTINATION_READONLY'] = 'No rights to create new theme directory!'; $MESSAGE['THEME_IMPORT_HTT'] = 'Import additional templates into the current active theme.
Use these templates to overwrite the corresponding default template.'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/ES.php b/wbce/languages/ES.php index a7fbce78e..338eb61fe 100644 --- a/wbce/languages/ES.php +++ b/wbce/languages/ES.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'ES'; @@ -677,8 +672,4 @@ $OVERVIEW['USERS'] = 'Administrar acceso de usuarios a WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Ver y explorar tu sitio en una nueva ventana...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/ET.php b/wbce/languages/ET.php index 892b82197..625682e21 100644 --- a/wbce/languages/ET.php +++ b/wbce/languages/ET.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'ET'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Halda kasutajaid kes saavad logida WebsiteBakerisse...'; $OVERVIEW['VIEW'] = 'Kiirelt vaata ja lehitse oma veebisaiti uues aknas...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/FI.php b/wbce/languages/FI.php index 322d82e5a..9b2996e21 100644 --- a/wbce/languages/FI.php +++ b/wbce/languages/FI.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'FI'; @@ -677,8 +672,4 @@ $OVERVIEW['USERS'] = 'Käyttäjähallinta...'; $OVERVIEW['VIEW'] = 'Tarkastele sivuja...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/FR.php b/wbce/languages/FR.php index 99b6926e6..bf2b67f8e 100644 --- a/wbce/languages/FR.php +++ b/wbce/languages/FR.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'FR'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Gestion des accès au site'; $OVERVIEW['VIEW'] = 'Aperçu du site dans une nouvelle fenêtre'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/HR.php b/wbce/languages/HR.php index 133685f5c..307b16f01 100644 --- a/wbce/languages/HR.php +++ b/wbce/languages/HR.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'HR'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Upravljajte korisnicima koji se mogu logirati na WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Brzo pogledajte i listajte Vaš web u novom prozoru...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/HU.php b/wbce/languages/HU.php index e2258f877..8709d380f 100644 --- a/wbce/languages/HU.php +++ b/wbce/languages/HU.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'HU'; @@ -677,8 +672,4 @@ $OVERVIEW['USERS'] = 'Felhasználók bejelentkezési engedélyei...'; $OVERVIEW['VIEW'] = 'A kész Portál megtekintése új ablakban...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/IT.php b/wbce/languages/IT.php index 03db894a9..23e474561 100644 --- a/wbce/languages/IT.php +++ b/wbce/languages/IT.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'IT'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Gestisci gli utenti che possono collegarsi a WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Visualizza il sito in una nuova finestra...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/LV.php b/wbce/languages/LV.php index 805820041..458cf89dc 100644 --- a/wbce/languages/LV.php +++ b/wbce/languages/LV.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'LV'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Menedžet lietotajus, kas var ielogties WebsiteBaker sistema...'; $OVERVIEW['VIEW'] = 'Apskatit majas lapu jauna loga...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/NL.php b/wbce/languages/NL.php index 63eede7fb..12d225d16 100644 --- a/wbce/languages/NL.php +++ b/wbce/languages/NL.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'NL'; @@ -675,8 +671,4 @@ $OVERVIEW['USERS'] = 'Beheren van de gebruikers van uw website.'; $OVERVIEW['VIEW'] = 'Bekijk uw website zoals deze voor bezoekers te zien is (in een afzonderlijk venster).'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/NO.php b/wbce/languages/NO.php index 3f6b437fb..6387fedea 100644 --- a/wbce/languages/NO.php +++ b/wbce/languages/NO.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'NO'; @@ -673,8 +669,4 @@ $OVERVIEW['USERS'] = 'Velg hvilke brukere som kan logge inn i WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Forhåndsvis internett siden din i et nytt vindu...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/PL.php b/wbce/languages/PL.php index 703bec6e9..2d0447c21 100644 --- a/wbce/languages/PL.php +++ b/wbce/languages/PL.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'PL'; @@ -676,8 +671,4 @@ $OVERVIEW['USERS'] = 'Zarzadzaj uzytkownikami mogacymi logowac sie do WebsiteBakera...'; $OVERVIEW['VIEW'] = 'Podglad witryny w nowym oknie...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/PT.php b/wbce/languages/PT.php index 7deba6e8f..5f6836bda 100644 --- a/wbce/languages/PT.php +++ b/wbce/languages/PT.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'PT'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Gerencie os usuários que podem logar no WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Visualize e navegue em seu website através de uma nova janela...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/RU.php b/wbce/languages/RU.php index e7a5ac247..8fff938b7 100644 --- a/wbce/languages/RU.php +++ b/wbce/languages/RU.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'RU'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Управление пользователями'; $OVERVIEW['VIEW'] = 'Просмотреть изменения на сайте в новом окне'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/SE.php b/wbce/languages/SE.php index 331dfff37..93dce35d4 100644 --- a/wbce/languages/SE.php +++ b/wbce/languages/SE.php @@ -16,13 +16,8 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} // Set the language information $language_code = 'SE'; @@ -677,8 +672,4 @@ $OVERVIEW['USERS'] = 'Behandla användare som kan logga in till WebsiteBaker...'; $OVERVIEW['VIEW'] = 'Titta på dina sidor i ett nytt fönster...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/SK.php b/wbce/languages/SK.php index a9b9f36ef..8b828f116 100644 --- a/wbce/languages/SK.php +++ b/wbce/languages/SK.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'SK'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'Spravovať uživatelov...'; $OVERVIEW['VIEW'] = 'Rýchlo prezrieť stránky v novom okne...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/TR.php b/wbce/languages/TR.php index 2f78d3fe7..5682e702b 100644 --- a/wbce/languages/TR.php +++ b/wbce/languages/TR.php @@ -16,13 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} -// Define that this file is loaded -if(!defined('LANGUAGE_LOADED')) { -define('LANGUAGE_LOADED', true); -} // Set the language information $language_code = 'TR'; @@ -677,8 +673,4 @@ $OVERVIEW['USERS'] = 'WebsiteBaker kullanýcýlarýný düzenleme...'; $OVERVIEW['VIEW'] = 'Yeni bir pencerede sitenizin öngörünümü...'; -/* include old languages format */ -if(file_exists(WB_PATH.'/languages/old.format.inc.php')) -{ - include(WB_PATH.'/languages/old.format.inc.php'); -} + diff --git a/wbce/languages/old.format.inc.php b/wbce/languages/old.format.inc.php index e8ece2cfd..6491ba7df 100644 --- a/wbce/languages/old.format.inc.php +++ b/wbce/languages/old.format.inc.php @@ -16,8 +16,9 @@ * */ -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } +//no direct file access +if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);} + $MESSAGE['FRONTEND']['SORRY_NO_VIEWING_PERMISSIONS'] = $MESSAGE['FRONTEND_SORRY_NO_VIEWING_PERMISSIONS'] ; $MESSAGE['FRONTEND']['SORRY_NO_ACTIVE_SECTIONS'] = $MESSAGE['FRONTEND_SORRY_NO_ACTIVE_SECTIONS'] ;