]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Added / updated GPL copyright header in php scripts
authorDavide Franco <bacula-dev@dflc.ch>
Sun, 5 Jun 2011 10:14:56 +0000 (12:14 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:12 +0000 (14:49 +0200)
14 files changed:
gui/bacula-web/backupjob-report.php
gui/bacula-web/config.inc.php
gui/bacula-web/includes/bweb.inc.php
gui/bacula-web/includes/cfg/config.class.php
gui/bacula-web/includes/db/db.class.php
gui/bacula-web/includes/db/db.mysql.class.php
gui/bacula-web/includes/db/db.pgsql.class.php
gui/bacula-web/includes/db/db.sqlite.class.php
gui/bacula-web/includes/graph/bgraph.class.php
gui/bacula-web/index.php
gui/bacula-web/jobs.php
gui/bacula-web/pools.php
gui/bacula-web/report.php
gui/bacula-web/test.php

index d62c534cb5890992f43f3b3205447b615841953a..fd9f4391f07b6741095b07d58c2cfa5bf7ed0ed6 100644 (file)
@@ -1,4 +1,19 @@
 <?php\r
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
   session_start();\r
   include_once( 'config.inc.php' );
 \r
index 2d9b1460076e5ad6792ecf3efb0a3f9a0384e9eb..e5c8d08665a5ba631b148a438b1cd1bfb03af645 100644 (file)
@@ -1,4 +1,19 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
  define( 'BW_ROOT', getcwd() );        
  define( 'BW_OBJ', BW_ROOT . '/includes/' ); 
  define( 'BW_EXTERNAL', BW_OBJ . 'external' );
index d34dd7c6ade90bc07ae3f6f2a5fc7106adbf2f14..1200d1250c24e86f50df25b6f1ad604c65317c1d 100644 (file)
@@ -1,5 +1,20 @@
 <?php
-
+/* 
++-------------------------------------------------------------------------+
+| Copyright (C) 2004 Juan Luis Francés Jiménez                                                   |
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 class Bweb extends DB {
 
     var $StartDate;
index a9273846ebb7666030be597ab09d3933898d7f71..9cdd204f79fb339aa3b188af27fb369067a89224 100644 (file)
@@ -1,5 +1,19 @@
 <?php
-
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
  class BW_Config {
  
        private $config_params;
index 62a2de0c86e67cd85333eb6effb08b9f6eea76f6..6519f3ec0e30467133a4e39dfd1c8580db1f087b 100644 (file)
@@ -1,3 +1,18 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 
 ?>
index 62a2de0c86e67cd85333eb6effb08b9f6eea76f6..6519f3ec0e30467133a4e39dfd1c8580db1f087b 100644 (file)
@@ -1,3 +1,18 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 
 ?>
index 62a2de0c86e67cd85333eb6effb08b9f6eea76f6..89727b8b6396e89f734171b6a8d804d97ba33466 100644 (file)
@@ -1,3 +1,18 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 
-?>
+?>
\ No newline at end of file
index 62a2de0c86e67cd85333eb6effb08b9f6eea76f6..89727b8b6396e89f734171b6a8d804d97ba33466 100644 (file)
@@ -1,3 +1,18 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 
-?>
+?>
\ No newline at end of file
index c88945b18c756d2f61ae42aae1a182a6395afc88..349eff705867f10bd3c846a6eacf6361c7c79b3e 100644 (file)
@@ -1,4 +1,19 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 
 class BGraph{
        private $title;
index 6e190bf4094b4e44211a7ab449ee210ea8d32897..a6e2b069401c2125edfd3f14f78875dd5eaf562a 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 /* 
 +-------------------------------------------------------------------------+
-| Copyright (C) 2004 Juan Luis Francés Jiménez                            |
+| Copyright (C) 2004 Juan Luis Francés Jiménez                                                   |
+| Copyright 2010-2011, Davide Franco                                             |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
index 196cc30049498fd9cb7f0ce62f97a9d9917e834f..27e829d23e60bfe2d45a2b39648bc3e64bb4c285 100644 (file)
@@ -1,4 +1,19 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
   session_start();
   include_once( 'config.inc.php' );
 
index eea94bc22a22275ba9d14c121d527e1aca2c107f..4fe3cd8b66173648410ea0e7d660a0ed92bbb7d5 100644 (file)
@@ -1,11 +1,26 @@
 <?php
-  session_start();
-  include_once( 'config.inc.php' );
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
+ session_start();
+ include_once( 'config.inc.php' );
 
 $dbSql = new Bweb();
+ $dbSql = new Bweb();
 
 // Get volumes list (pools.tpl)
 $dbSql->tpl->assign('pools',$dbSql->GetVolumeList() );
+ // Get volumes list (pools.tpl)
+ $dbSql->tpl->assign('pools',$dbSql->GetVolumeList() );
 
 $dbSql->tpl->display('pools.tpl');
+ $dbSql->tpl->display('pools.tpl');
 ?>
index c6dda68afc9bdb640b32ad0ad29d9123d3537405..089cbd8e6ffc7fcf03be3f906ffa9e4d80049700 100644 (file)
@@ -1,4 +1,20 @@
 <?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright (C) 2004 Juan Luis Francés Jiménez                                                   |
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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.                            |
++-------------------------------------------------------------------------+ 
+*/
 session_start();
 include_once( 'config.inc.php' );
 
index 1f323fc17c131955283403a2e88ac37ced737f40..16e2bace2010b514873e073e9000a4d65a71e5e2 100644 (file)
@@ -1,69 +1,84 @@
 <?php
-       require_once ("config.inc.php");
-       $bw = new Bweb();
-       
-       // Check result icon
-    $check_result = array( true => 'ok.png', false => 'error.png' );
-       
-       // Checks list
-       $check_list = array( array( 'check_cmd'                 => 'php-gettext', 
-                                                               'check_label'           => 'PHP - Gettext support', 
-                                                               'check_descr'           => 'If you want Bacula-web in your language, please compile PHP with Gettext support' ),
-                                                array( 'check_cmd'             => 'pear-db', 
-                                                               'check_label'           => 'PEAR DB module', 
-                                                               'check_descr'           => 'PEAR DB support not found, please read the Bacula-web installation document'),
-                                                array( 'check_cmd'             => 'php-gd',
-                                                               'check_label'           => 'PHP - GD support',
-                                                               'check_descr'           => 'This is required by phplot, please compile php with GD support'),
-                                                array( 'check_cmd'             => 'php-mysql',
-                                                               'check_label'           => 'PHP - MySQL support',
-                                                               'check_descr'           => 'PHP MySQL support must be installed in order to run bacula-web with MySQL bacula catalog'),
-                                                array( 'check_cmd'             => 'php-postgres',
-                                                               'check_label'           => 'PHP - PostgreSQL support',
-                                                               'check_descr'           => 'PHP PostgreSQL support must be installed in order to run bacula-web with PostgreSQL bacula catalog'),                                                               
-                                                array( 'check_cmd'             => 'smarty-cache',
-                                                               'check_label'           => 'Smarty cache folder write permission',
-                                                               'check_descr'           => 'Smarty template engine need write permissions to templates_c folder')
-                                 );
-       
-       // Doing all checks
-       foreach( $check_list as &$check ) {
-               switch( $check['check_cmd'] )
-               {
-                       case 'php-gettext':
-                               $check['check_result'] = $check_result[ function_exists( 'gettext' ) ];                                 
-                       break;
-                       case 'php-gd':
-                               $check['check_result'] = $check_result[ function_exists( 'gd_info') ];
-                       break;
-                       case 'pear-db':
-                               $check['check_result'] = $check_result[ class_exists('DB') ];
-                       break;
-                       case 'php-mysql':
-                               $check['check_result'] = $check_result[ function_exists('mysql_connect') ];
-                       break;
-                       case 'php-postgres':
-                               $check['check_result'] = $check_result[ function_exists('pg_connect') ];
-                       break;
-                       case 'smarty-cache':
-                               $check['check_result'] = $check_result[ is_writable( "./templates_c" ) ];
-                       break;
-               }
-               
-       }
+/* 
++-------------------------------------------------------------------------+
+| Copyright (C) 2004 Juan Luis Francés Jiménez                                                   |
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| 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");
+ $bw = new Bweb();
 
-       // Generate test graph
-       $data = array( array('test', 100, 100, 200, 100), array('test1', 150, 100, 150, 100 ) );        
-       $graph = new BGraph( "graph3.png" );
-       $graph->SetColors( array('green', 'red' ) );
+ // Check result icon
+ $check_result = array( true => 'ok.png', false => 'error.png' );
 
-       $graph->SetData( $data, 'pie', 'text-data-single' );
-       $graph->SetGraphSize( 400, 230 );
-       
-       $graph->Render();
+ // Checks list
+ $check_list = array( array( 'check_cmd'               => 'php-gettext', 
+                                                        'check_label'          => 'PHP - Gettext support', 
+                                                        'check_descr'          => 'If you want Bacula-web in your language, please compile PHP with Gettext support' ),
+                                         array( 'check_cmd'            => 'pear-db', 
+                                                        'check_label'          => 'PEAR DB module', 
+                                                        'check_descr'          => 'PEAR DB support not found, please read the Bacula-web installation document'),
+                                         array( 'check_cmd'            => 'php-gd',
+                                                        'check_label'          => 'PHP - GD support',
+                                                        'check_descr'          => 'This is required by phplot, please compile php with GD support'),
+                                         array( 'check_cmd'            => 'php-mysql',
+                                                        'check_label'          => 'PHP - MySQL support',
+                                                        'check_descr'          => 'PHP MySQL support must be installed in order to run bacula-web with MySQL bacula catalog'),
+                                         array( 'check_cmd'            => 'php-postgres',
+                                                        'check_label'          => 'PHP - PostgreSQL support',
+                                                        'check_descr'          => 'PHP PostgreSQL support must be installed in order to run bacula-web with PostgreSQL bacula catalog'),                                                               
+                                         array( 'check_cmd'            => 'smarty-cache',
+                                                        'check_label'          => 'Smarty cache folder write permission',
+                                                        'check_descr'          => 'Smarty template engine need write permissions to templates_c folder')
+                                       );
 
-       // Parse to template
-       $bw->tpl->assign( 'checks', $check_list );
-       $bw->tpl->assign('graph_test', $graph->Get_Image_file() );
-       $bw->tpl->display('test.tpl');
+ // Doing all checks
+ foreach( $check_list as &$check ) {
+        switch( $check['check_cmd'] )
+        {
+                case 'php-gettext':
+                        $check['check_result'] = $check_result[ function_exists( 'gettext' ) ];                                        
+                break;
+                case 'php-gd':
+                        $check['check_result'] = $check_result[ function_exists( 'gd_info') ];
+                break;
+                case 'pear-db':
+                        $check['check_result'] = $check_result[ class_exists('DB') ];
+                break;
+                case 'php-mysql':
+                        $check['check_result'] = $check_result[ function_exists('mysql_connect') ];
+                break;
+                case 'php-postgres':
+                        $check['check_result'] = $check_result[ function_exists('pg_connect') ];
+                break;
+                case 'smarty-cache':
+                        $check['check_result'] = $check_result[ is_writable( "./templates_c" ) ];
+                break;
+        }
+ }
+ // Generate test graph
+ $data = array( array('test', 100, 100, 200, 100), array('test1', 150, 100, 150, 100 ) );      
+ $graph = new BGraph( "graph3.png" );
+ $graph->SetColors( array('green', 'red' ) );
+
+ $graph->SetData( $data, 'pie', 'text-data-single' );
+ $graph->SetGraphSize( 400, 230 );
+
+ $graph->Render();
+
+ // Parse to template
+ $bw->tpl->assign( 'checks', $check_list );
+ $bw->tpl->assign('graph_test', $graph->Get_Image_file() );
+ $bw->tpl->display('test.tpl');
 ?>