]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Removed useless lang.php file
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 17 Mar 2011 18:13:25 +0000 (19:13 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:08 +0000 (14:49 +0200)
 - Removed include in all php script for lang.php
 - Removed lang.php file from git repo

gui/bacula-web/backupjob-report.php
gui/bacula-web/index.php
gui/bacula-web/jobs.php
gui/bacula-web/lang.php [deleted file]
gui/bacula-web/pools.php
gui/bacula-web/report.php
gui/bacula-web/test.php

index 51b7724042de9cf5fcca14664ec1a6dc2b152e2e..154dfe1545a8527bbe9ef80782113be6ff5989b4 100644 (file)
@@ -8,8 +8,6 @@
   $smarty = new Smarty();     \r
   $dbSql = new Bweb();\r
 \r
-  require("lang.php");\r
-\r
   // Smarty configuration\r
   $smarty->compile_check = true;\r
   $smarty->debugging = false;\r
index 57f26244ee1fc8682508392097460ec53cb302e7..976fb832a7adcf8bd2a63f5966d978a670589301 100644 (file)
@@ -20,8 +20,6 @@ include_once( 'bweb.inc.php' );
 
 $dbSql = new Bweb();
 
-//require("lang.php");
-
 $mode = "";                            
 
 /*
index a8b39ec766c86b996179ba3a550a2d18e67b5ca6..5fb6fafbdbb79d44e282f18a7d3b17ee6699d5c9 100644 (file)
@@ -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 (file)
index a3b2107..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/* 
-+-------------------------------------------------------------------------+
-| Copyright (C) 2004-2005 Juan Luis Frances Jiminez                       |
-|                                                                         |
-| This program is free software; you can redistribute it and/or           |
-| modify it under the terms of the GNU General Public License             |
-| as published by the Free Software Foundation; either version 2          |
-| of the License, or (at your option) any later version.                  |
-|                                                                         |
-| This program is distributed in the hope that it will be useful,         |
-| but WITHOUT ANY WARRANTY; without even the implied warranty of          |
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
-| GNU General Public License for more details.                            |
-+-------------------------------------------------------------------------+ 
-*/
-// begin Gettext initialization
-// and we check if it is present at the system
-
-if ( function_exists("gettext") ) {
-        global $dbSql;
-               
-               require($smarty_gettext_path."smarty_gettext.php");     
-        $smarty->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');
-}
-?>
index 25839026620a5c154428411d563fe11a13bda9f0..0a2c682c98ae9a62c362897c397308a2769abd18 100644 (file)
@@ -8,8 +8,6 @@
   $smarty = new Smarty();
   $dbSql = new Bweb();
 
-  require("lang.php");
-
   // Smarty configuration
   $smarty->compile_check = true;
   $smarty->debugging = false;
index 2e1986af548d7830dbe44071da992d4d85173dbf..7312d2cfdffb55f796d51b65ef0ff3401935b92a 100644 (file)
@@ -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());
index ed52f8ffb9191c9a0cc8a9dd4eefc0d4bff56bb5..a8407a53ed72d67365bd64d6bbf6814fd866c1f1 100644 (file)
@@ -5,8 +5,6 @@
 
        $smarty = new Smarty(); 
 
-       //require_once ("lang.php");
-
        // Smarty configuration
        $smarty->compile_check  = true;
        $smarty->debugging              = false;