Copyright notes at top op every source file
[fa-stable.git] / gl / bank_transfer.php
index 87e82c71daed0f1e7f6686fabe59091db54794e8..9536d4ab23ae1d9885b7be803c1b51c4bf9c6d07 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, as published by the Free Software Foundation, either version 
+       3 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 License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
 $path_to_root="..";
 $page_security = 5;
 
@@ -142,8 +151,6 @@ function check_valid_entries()
 
 function handle_add_deposit()
 {
-       global $path_to_root;
-
        $trans_no = add_bank_transfer($_POST['FromBankAccount'], $_POST['ToBankAccount'],
                $_POST['DatePaid'], input_num('amount'), $_POST['ref'], $_POST['memo_']);
 
@@ -154,7 +161,6 @@ function handle_add_deposit()
 
 function safeExit()
 {
-       global $path_to_root;
        echo "<br><br>";
        end_page();
        exit;