Added in the new about code

This commit is contained in:
jengo 2000-12-23 00:45:58 +00:00
parent ea66a64a46
commit 27c0c9125a
5 changed files with 103 additions and 1 deletions

54
about.php Normal file
View File

@ -0,0 +1,54 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* 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. *
\**************************************************************************/
/* $Id$ */
$phpgw_info["flags"]["currentapp"] = "about";
include("header.inc.php");
if ($app) {
$sep = $phpgw->common->filesystem_separator();
$include = $phpgw_info["server"]["server_root"] . $sep . $app . $sep . "inc" . $sep . "about.inc.php";
if (is_file($include)) {
include($include);
$included = True;
/* if (is_file($phpgw_info["server"]["server_root"] . $sep . "inc" . $sep . "version.inc.php")) {
include($phpgw_info["server"]["server_root"] . "/inc/version.inc.php");
} */
} else {
$included = False;
}
} else {
$api_only = True;
}
$tpl = new Template($phpgw_info["server"]["include_root"] . "/phpgwapi/templates/"
. $phpgw_info["server"]["template_set"]);
$tpl->set_file(array("phpgw_about" => "about.tpl",
"phpgw_about_unknown" => "about_unknown.tpl"
));
$tpl->set_var("webserver_url",$phpgw_info["server"]["webserver_url"]);
$tpl->set_var("phpgw_version","phpGroupWare API version " . $phpgw_info["server"]["versions"]["phpgwapi"]);
if ($included) {
$tpl->set_var("phpgw_app_about",about_app("",""));
//about_app($tpl,"phpgw_app_about");
} else {
if ($api_only) {
$tpl->set_var("phpgw_app_about","");
} else {
$tpl->set_var("app_header",$app);
$tpl->parse("phpgw_app_about","phpgw_about_unknown");
}
}
$tpl->pparse("out","phpgw_about");
?>

View File

@ -390,7 +390,7 @@
* Verify that the users session is still active otherwise kick them out *
\**************************************************************************/
if ($phpgw_info["flags"]["currentapp"] != "home" && $phpgw_info["flags"]["currentapp"] != "logout"
&& $phpgw_info["flags"]["currentapp"] != "preferences") {
&& $phpgw_info["flags"]["currentapp"] != "preferences" && $phpgw_info["flags"]["currentapp"] != "about") {
if (! $phpgw_info["user"]["apps"][$phpgw_info["flags"]["currentapp"]]) {
$phpgw->common->phpgw_header();

View File

@ -42,6 +42,16 @@
'gdm' => True,
'named' => True);
// This function is used if the developer wants to stop a running app in the middle of execution
// We may need to do some clean up before hand
function phpgw_exit()
{
global $phpgw;
$phpgw->db->disconnect();
exit;
}
// I had to create this has a wrapper, becuase the phpgw.inc.php files needs it before the classes
// are finished loading (jengo)
function filesystem_separator()

View File

@ -0,0 +1,26 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.phpgroupware.org"><img src="{webserver_url}/phpGroupWare.jpg" border="0"></a>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">{phpgw_version}</td>
</tr>
<tr>
<td>Note: This will be some text on phpGroupWare it self</td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td align="center">
{phpgw_app_about}
</td>
</tr>
</table>

View File

@ -0,0 +1,12 @@
<tr>
<td align="center"><font size="5"><b>{app_header}<b></font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center"><b>Sorry, no futher information is avaiable on this application.</b></td>
</tr>