f0a9b65e92435dc16b97669dfa8dd0e68ccc3db5
[fa-stable.git] / includes / page / footer.inc
1 <?php
2
3 include_once($path_to_root . "/includes/date_functions.inc");
4
5 function page_footer($no_menu=false, $is_index=false)
6 {
7         global $version, $allow_demo_mode;
8         global $app_title, $power_url, $power_by;
9
10   if(in_ajax()) return;// just for speed up
11
12   if (function_exists('hyperlink_back'))
13                 hyperlink_back();
14         if ($no_menu == false) 
15         {
16         if ($is_index)
17                 echo "<table class=bottomBar>\n";
18         else
19                 echo "<table class=bottomBar2>\n";
20         echo "<tr>";
21         if (isset($_SESSION['wa_current_user']))
22                 echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
23         echo "</tr></table>\n";
24         }
25         echo "</td></tr></table></td>\n";
26     echo "</table>\n";
27     if ($no_menu == false) 
28     {
29         echo "<table align='center' id='footer'>\n";
30         echo "<tr>\n";
31         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";
32         echo "</tr>\n";
33         echo "<tr>\n";
34         echo "<td align='center' class='footer'><a target='_blank' href='$power_url'><font color='#ffff00'>$power_by</font></a></td>\n";
35         echo "</tr>\n";
36         if ($allow_demo_mode==true)
37         {
38                 echo "<tr>\n";
39             //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";
40                 echo "</tr>\n";
41         }
42         echo "</table><br><br>\n";
43     }
44     echo "</body></html>\n";
45 }
46
47 ?>