Copyright notes at top op every source file
[fa-stable.git] / includes / page / footer.inc
index bb2759c6d7fc6ab93933a9a689735a9ee1f366c5..a47038e834fe24373793dc280f44ea54a91329a0 100644 (file)
@@ -1,44 +1,26 @@
 <?php
-
-include_once($path_to_root . "/includes/date_functions.inc");
-
+/**********************************************************************
+    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>.
+***********************************************************************/
 function page_footer($no_menu=false, $is_index=false)
 {
-       global $local_path_to_root, $version, $allow_demo_mode;
-       global $app_title, $power_url, $power_by;
+       global $path_to_root;
+
+       if (in_ajax())
+               return;// just for speed up
 
-       if (function_exists('hyperlink_back'))
+       if (!$is_index && function_exists('hyperlink_back'))
                hyperlink_back();
-       if ($no_menu == false) 
-       {
-       if ($is_index)
-               echo "<table class=bottomBar>\n";
-       else
-               echo "<table class=bottomBar2>\n";
-       echo "<tr>";
-       if (isset($_SESSION['wa_current_user']))
-               echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
-       echo "</tr></table>\n";
-       }
-       echo "</td></tr></table></td>\n";
-    echo "</table>\n";
-    if ($no_menu == false) 
-    {
-       echo "<table align='center' id='footer'>\n";
-       echo "<tr>\n";
-       echo "<td align='center' class='footer'><a target='_blank' href='$power_url'><font color='#ffffff'>$app_title $version - " . _("Theme:") . " " . user_theme() . "</font></a></td>\n";
-       echo "</tr>\n";
-       echo "<tr>\n";
-       echo "<td align='center' class='footer'><a target='_blank' href='$power_url'><font color='#ffff00'>$power_by</font></a></td>\n";
-       echo "</tr>\n";
-       if ($allow_demo_mode==true)
-       {
-               echo "<tr>\n";
-            //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&amp;type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='middle' /></a></div></td>\n";
-               echo "</tr>\n";
-       }
-       echo "</table><br><br>\n";
-    }
+       include_once($path_to_root."/themes/".user_theme()."/renderer.php");
+       $rend = new renderer();
+       $rend->menu_footer($no_menu, $is_index);
     echo "</body></html>\n";
 }