Instruction in update.html should include switch to standard theme before upgrade
[fa-stable.git] / admin / company_preferences.php
index 2a9e9b5fe0bc6075e359f3fd76b5ef1e146fe13e..d020398a8bd94937751d10ec5b36a8fe23c9d8f6 100644 (file)
@@ -1,13 +1,13 @@
 <?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 
-       of the License, or (at your option) any later version.
+       Released under the terms of the GNU General Public License, GPL, 
+       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>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
 $page_security =10;
 $path_to_root="..";
@@ -46,17 +46,17 @@ if (isset($_POST['update']) && $_POST['update'] != "")
                 //But check for the worst
                if (strtoupper(substr(trim($_FILES['pic']['name']), strlen($_FILES['pic']['name']) - 3)) != 'JPG')
                {
-                       display_notification(_('Only jpg files are supported - a file extension of .jpg is expected'));
+                       display_error(_('Only jpg files are supported - a file extension of .jpg is expected'));
                        $input_error = 1;
                }
                elseif ( $_FILES['pic']['size'] > ($max_image_size * 1024))
                { //File Size Check
-                       display_notification(_('The file size is over the maximum allowed. The maximum size allowed in KB is') . ' ' . $max_image_size);
+                       display_error(_('The file size is over the maximum allowed. The maximum size allowed in KB is') . ' ' . $max_image_size);
                        $input_error = 1;
                }
                elseif ( $_FILES['pic']['type'] == "text/plain" )
                {  //File type Check
-                       display_notification( _('Only graphics files can be uploaded'));
+                       display_error( _('Only graphics files can be uploaded'));
                        $input_error = 1;
                }
                elseif (file_exists($filename))