mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Added in the new about code
This commit is contained in:
parent
ea66a64a46
commit
27c0c9125a
54
about.php
Normal file
54
about.php
Normal 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");
|
||||||
|
?>
|
@ -390,7 +390,7 @@
|
|||||||
* Verify that the users session is still active otherwise kick them out *
|
* Verify that the users session is still active otherwise kick them out *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
if ($phpgw_info["flags"]["currentapp"] != "home" && $phpgw_info["flags"]["currentapp"] != "logout"
|
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"]]) {
|
if (! $phpgw_info["user"]["apps"][$phpgw_info["flags"]["currentapp"]]) {
|
||||||
$phpgw->common->phpgw_header();
|
$phpgw->common->phpgw_header();
|
||||||
|
@ -42,6 +42,16 @@
|
|||||||
'gdm' => True,
|
'gdm' => True,
|
||||||
'named' => 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
|
// I had to create this has a wrapper, becuase the phpgw.inc.php files needs it before the classes
|
||||||
// are finished loading (jengo)
|
// are finished loading (jengo)
|
||||||
function filesystem_separator()
|
function filesystem_separator()
|
||||||
|
26
phpgwapi/templates/default/about.tpl
Normal file
26
phpgwapi/templates/default/about.tpl
Normal 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> </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>
|
12
phpgwapi/templates/default/about_unknown.tpl
Normal file
12
phpgwapi/templates/default/about_unknown.tpl
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<tr>
|
||||||
|
<td align="center"><font size="5"><b>{app_header}<b></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center"><b>Sorry, no futher information is avaiable on this application.</b></td>
|
||||||
|
</tr>
|
Loading…
Reference in New Issue
Block a user