]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: php code cleanup in includes/bweb.inc.php
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 31 Mar 2011 16:39:31 +0000 (18:39 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:11 +0000 (14:49 +0200)
 - Remove useless php code
 - Fixed some typo in GetDbSize() function
 - Removed useless require_once instruction
 - Removed copyright

gui/bacula-web/includes/bweb.inc.php

index 272ee6a437de994aa7800d2efd321e8a28c6872b..cca09039c21dac56b3b75438e1de3cfa0859c754 100644 (file)
@@ -1,20 +1,4 @@
 <?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.                            |
-+-------------------------------------------------------------------------+ 
-*/
-require_once "config.inc.php";
 
 class Bweb extends DB {
 
@@ -73,9 +57,6 @@ class Bweb extends DB {
                                $this->tpl->assign( 'catalog_current', $_POST['catalog_id'] );
                        
                        $this->tpl->assign( 'catalogs', $this->bwcfg->Get_Catalogs() );                 
-               }else
-               {
-               
                }
        }
                 
@@ -182,7 +163,7 @@ class Bweb extends DB {
                if(! PEAR::isError( $result ) )
                {
                        $db = $result->fetchRow( DB_FETCHMODE_ASSOC );
-                       $database_size =+ $db['dbsize'];
+                       $database_size = $db['dbsize'];
                }else
                        die( "Unable to get database size<br />" . $result->getMessage() );