From 0cdf857658c68cef2f021545f78f9d58fedd63da Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Thu, 17 Mar 2011 19:13:25 +0100 Subject: [PATCH] bacula-web: Removed useless lang.php file - Removed include in all php script for lang.php - Removed lang.php file from git repo --- gui/bacula-web/backupjob-report.php | 2 -- gui/bacula-web/index.php | 2 -- gui/bacula-web/jobs.php | 2 -- gui/bacula-web/lang.php | 40 ----------------------------- gui/bacula-web/pools.php | 2 -- gui/bacula-web/report.php | 2 -- gui/bacula-web/test.php | 2 -- 7 files changed, 52 deletions(-) delete mode 100644 gui/bacula-web/lang.php diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 51b7724042..154dfe1545 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -8,8 +8,6 @@ $smarty = new Smarty(); $dbSql = new Bweb(); - require("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 57f26244ee..976fb832a7 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -20,8 +20,6 @@ include_once( 'bweb.inc.php' ); $dbSql = new Bweb(); -//require("lang.php"); - $mode = ""; /* diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index a8b39ec766..5fb6fafbdb 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -8,8 +8,6 @@ $smarty = new Smarty(); $dbSql = new Bweb(); - require("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; diff --git a/gui/bacula-web/lang.php b/gui/bacula-web/lang.php deleted file mode 100644 index a3b2107a93..0000000000 --- a/gui/bacula-web/lang.php +++ /dev/null @@ -1,40 +0,0 @@ -register_block('t','smarty_translate'); - - //$vars = $smarty->get_config_vars(); - $language = $dbSql->get_config_param("lang"); - $domain = "messages"; - putenv("LANG=$language"); - setlocale(LC_ALL, $language); - bindtextdomain($domain,"./locale"); - textdomain($domain); -} -else { - function smarty_translate($params, $text, &$smarty) { - return $text; - } - $smarty->register_block('t','smarty_translate'); -} -?> diff --git a/gui/bacula-web/pools.php b/gui/bacula-web/pools.php index 2583902662..0a2c682c98 100644 --- a/gui/bacula-web/pools.php +++ b/gui/bacula-web/pools.php @@ -8,8 +8,6 @@ $smarty = new Smarty(); $dbSql = new Bweb(); - require("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; diff --git a/gui/bacula-web/report.php b/gui/bacula-web/report.php index 2e1986af54..7312d2cfdf 100644 --- a/gui/bacula-web/report.php +++ b/gui/bacula-web/report.php @@ -31,8 +31,6 @@ $smarty->config_load("bacula.conf"); $dbSql = new Bweb(); -require("lang.php"); - if ( $_GET['default'] == 1) { // Default params, 1 month $dbSql->StartDate = strftime("%Y-%m-%d %H:%M:%S",time()-2678400); $dbSql->EndDate = strftime("%Y-%m-%d %H:%M:%S",time()); diff --git a/gui/bacula-web/test.php b/gui/bacula-web/test.php index ed52f8ffb9..a8407a53ed 100644 --- a/gui/bacula-web/test.php +++ b/gui/bacula-web/test.php @@ -5,8 +5,6 @@ $smarty = new Smarty(); - //require_once ("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; -- 2.39.5