converted from phpgw_flags to phpgw_info[flags]

This commit is contained in:
seek3r 2000-09-05 18:36:13 +00:00
parent 9bf636591b
commit 081ad0be4b
49 changed files with 88 additions and 88 deletions

View File

@ -13,10 +13,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "addressbook"; $phpgw_info["flags"]["currentapp"] = "addressbook";
include("../header.inc.php"); include("../header.inc.php");
if ($add_email) { if ($add_email) {

View File

@ -13,10 +13,10 @@
/* $Id$ */ /* $Id$ */
if ($confirm) { if ($confirm) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "addressbook"; $phpgw_info["flags"]["currentapp"] = "addressbook";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) { if (! $con) {

View File

@ -13,10 +13,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "addressbook"; $phpgw_info["flags"]["currentapp"] = "addressbook";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) { if (! $con) {

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "addressbook"; $phpgw_info["flags"]["currentapp"] = "addressbook";
include("../header.inc.php"); include("../header.inc.php");

View File

@ -13,10 +13,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "addressbook"; $phpgw_info["flags"]["currentapp"] = "addressbook";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) if (! $con)
Header("Location: " . $phpgw_info["server"]["webserver_url"] . Header("Location: " . $phpgw_info["server"]["webserver_url"] .

View File

@ -11,7 +11,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]); $t = new Template($phpgw_info["server"]["template_dir"]);

View File

@ -11,7 +11,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]); $t = new Template($phpgw_info["server"]["template_dir"]);

View File

@ -11,7 +11,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if ($order) if ($order)

View File

@ -11,7 +11,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]); $t = new Template($phpgw_info["server"]["template_dir"]);

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($confirm) { if ($confirm) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
// Make sure they are not attempting to delete there own account. // Make sure they are not attempting to delete there own account.
// If they are, they should not reach this point anyway. // If they are, they should not reach this point anyway.

View File

@ -11,12 +11,12 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
if (! $app_name) if (! $app_name)
Header("Location: " . $phpgw->link("applications.php")); Header("Location: " . $phpgw->link("applications.php"));
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if ($confirm) { if ($confirm) {

View File

@ -11,12 +11,12 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
if (! $group_id) if (! $group_id)
Header("Location: " . $phpgw->link("groups.php")); Header("Location: " . $phpgw->link("groups.php"));
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if ((($group_id) && ($confirm)) || $removeusers) { if ((($group_id) && ($confirm)) || $removeusers) {

View File

@ -12,15 +12,15 @@
/* $Id$ */ /* $Id$ */
if ($confirm) { if ($confirm) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
function remove_account_data($query,$t) function remove_account_data($query,$t)
{ {
global $phpgw->db; global $phpgw;
$phpgw->db->query("delete from $t where $query"); $phpgw->db->query("delete from $t where $query");
} }

View File

@ -11,9 +11,9 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) if (! $con)
Header("Location: " . $phpgw->link("accounts.php")); Header("Location: " . $phpgw->link("accounts.php"));

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]); $t = new Template($phpgw_info["server"]["template_dir"]);

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $group_id) { if (! $group_id) {

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) if (! $con)
Header("Location: " . $phpgw->link("headlines.php")); Header("Location: " . $phpgw->link("headlines.php"));

View File

@ -11,7 +11,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $start) if (! $start)

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
echo "<p><center>" . lang_admin("Headline Sites") . "<br><table border=0 width=65%>" echo "<p><center>" . lang_admin("Headline Sites") . "<br><table border=0 width=65%>"
. "<tr bgcolor=" . $theme["th_bg"] . "><td>" . lang_admin("Site") . "</td>" . "<tr bgcolor=" . $theme["th_bg"] . "><td>" . lang_admin("Site") . "</td>"

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
check_code($cd); check_code($cd);

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($confirm) { if ($confirm) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if ($ksessionid == $phpgw_info["user"]["sessionid"]) { if ($ksessionid == $phpgw_info["user"]["sessionid"]) {
Header("Location: " . $phpgw->link("currentusers.php")); Header("Location: " . $phpgw->link("currentusers.php"));

View File

@ -11,9 +11,9 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if ($submit) { if ($submit) {
if (! $n_loginid) if (! $n_loginid)

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]); $t = new Template($phpgw_info["server"]["template_dir"]);

View File

@ -12,10 +12,10 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]); $t = new Template($phpgw_info["server"]["template_dir"]);

View File

@ -12,9 +12,9 @@
/* $Id$ */ /* $Id$ */
if ($submit) { if ($submit) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $submit) { if (! $submit) {
?> ?>

View File

@ -13,14 +13,14 @@
/* $Id$ */ /* $Id$ */
if ($submit && $nntplist) { if ($submit && $nntplist) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
$phpgw_flags["disable_network_class"] = True; $phpgw_info["flags"]["disable_network_class"] = True;
$phpgw_flags["disable_message_class"] = True; $phpgw_info["flags"]["disable_message_class"] = True;
$phpgw_flags["disable_send_class"] = True; $phpgw_info["flags"]["disable_send_class"] = True;
$phpgw_flags["disable_vfs_class"] = True; $phpgw_info["flags"]["disable_vfs_class"] = True;
include("../header.inc.php"); include("../header.inc.php");
$phpgw->include_lang("nntp"); $phpgw->include_lang("nntp");

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) if (! $con)

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "admin"; $phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php"); include("../header.inc.php");
if (! $con) if (! $con)

View File

@ -15,10 +15,10 @@
/* $Id$ */ /* $Id$ */
if ($friendly) { if ($friendly) {
$phpgw_flags["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;
} }
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
include("../header.inc.php"); include("../header.inc.php");
$view = "day"; $view = "day";

View File

@ -13,7 +13,7 @@
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True, "currentapp" => "calendar"); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "calendar");
include("../header.inc.php"); include("../header.inc.php");
if ($id > 0) { if ($id > 0) {

View File

@ -14,7 +14,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
include("../header.inc.php"); include("../header.inc.php");

View File

@ -14,8 +14,8 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["noheader"]="True"; $phpgw_info["flags"]["noheader"]="True";
$phpgw_flags["currentapp"]="calendar"; $phpgw_info["flags"]["currentapp"]="calendar";
include("../header.inc.php"); include("../header.inc.php");
// Input time format "2359" // Input time format "2359"
function add_duration($time, $duration) function add_duration($time, $duration)

View File

@ -191,10 +191,10 @@ function month_name ( $m ) {
// LC: links back to an entry view for $id using $pic // LC: links back to an entry view for $id using $pic
function link_to_entry($id, $pic, $description) function link_to_entry($id, $pic, $description)
{ {
global $phpgw, $phpgw_info, $phpgw_flags, $friendly, $appname; global $phpgw, $phpgw_info, $friendly, $appname;
if (! $friendly) if (! $friendly)
echo "<A HREF=\"".$phpgw->link($phpgw_info["server"]["webserver_url"] echo "<A HREF=\"".$phpgw->link($phpgw_info["server"]["webserver_url"]
."/".$phpgw_flags["currentapp"]."/view.php","id=$id")."\"><img src=\"" ."/".$phpgw_info["flags"]["currentapp"]."/view.php","id=$id")."\"><img src=\""
. $phpgw_info["server"]["app_images"]."/$pic\" " . $phpgw_info["server"]["app_images"]."/$pic\" "
. "border=\"0\" alt=\"".htmlentities($description)."\"></a>"; . "border=\"0\" alt=\"".htmlentities($description)."\"></a>";
} }

View File

@ -15,10 +15,10 @@
/* $Id$ */ /* $Id$ */
if ($friendly) { if ($friendly) {
$phpgw_flags["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;
} }
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
include("../header.inc.php"); include("../header.inc.php");
if (strlen($date) > 0) { if (strlen($date) > 0) {
$thisyear = substr($date, 0, 4); $thisyear = substr($date, 0, 4);

View File

@ -14,7 +14,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
if (! $keywords) { if (! $keywords) {
// If we reach this it becuase they didn't search for anything, // If we reach this it becuase they didn't search for anything,

View File

@ -14,7 +14,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
include("../header.inc.php"); include("../header.inc.php");
function grab_group($db,$id) function grab_group($db,$id)

View File

@ -14,10 +14,10 @@
/* $Id$ */ /* $Id$ */
if (!$friendly){ if (!$friendly){
$phpgw_flags["noheader"]="True"; $phpgw_info["flags"]["noheader"]="True";
} }
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
include("../header.inc.php"); include("../header.inc.php");
if (! $friendly) { if (! $friendly) {

View File

@ -13,10 +13,10 @@
/* $Id$ */ /* $Id$ */
if ($friendly) { if ($friendly) {
$phpgw_flags["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;
} }
$phpgw_flags["currentapp"] = "calendar"; $phpgw_info["flags"]["currentapp"] = "calendar";
include("../header.inc.php"); include("../header.inc.php");
if ($friendly) { if ($friendly) {

View File

@ -56,7 +56,7 @@
This is done by putting this at the top of each PHP page. This is done by putting this at the top of each PHP page.
<code> <code>
<?php <?php
$phpgw_flags["currentapp"] = "appname"; $phpgw_info["flags"]["currentapp"] = "appname";
include("../header.inc.php"); include("../header.inc.php");
?> ?>
</code> </code>

View File

@ -21,7 +21,7 @@
$phpgw_info["server"]["include_root"] = "/path/to/phpgroupware/inc"; $phpgw_info["server"]["include_root"] = "/path/to/phpgroupware/inc";
/* This is the basic include needed on each page for phpGroupWare application compliance */ /* This is the basic include needed on each page for phpGroupWare application compliance */
$phpgw_flags["htmlcompliant"] = True; $phpgw_info["flags"]["htmlcompliant"] = True;
/**************************************************************************\ /**************************************************************************\
* Do not edit this line * * Do not edit this line *

View File

@ -17,7 +17,7 @@
exit; exit;
} }
$phpgw_flags = array("noheader" => True, "nonavbar" => True, "currentapp" => "home"); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home");
include("header.inc.php"); include("header.inc.php");
// Note: I need to add checks to make sure these apps are installed. // Note: I need to add checks to make sure these apps are installed.

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("disable_message_class" => True, "disable_send_class" => True, $phpgw_info["flags"] = array("disable_message_class" => True, "disable_send_class" => True,
"disable_nextmatchs_class" => True, "disable_template_class" => True, "disable_nextmatchs_class" => True, "disable_template_class" => True,
"login" => True, "currentapp" => "login", "login" => True, "currentapp" => "login",
"noheader" => True "noheader" => True

View File

@ -12,12 +12,12 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags["disable_message_class"] = True; $phpgw_info["flags"]["disable_message_class"] = True;
$phpgw_flags["disable_send_class"] = True; $phpgw_info["flags"]["disable_send_class"] = True;
$phpgw_flags["disable_nextmatchs_class"] = True; $phpgw_info["flags"]["disable_nextmatchs_class"] = True;
$phpgw_flags["disable_template_class"] = True; $phpgw_info["flags"]["disable_template_class"] = True;
$phpgw_flags["currentapp"] = "logout"; $phpgw_info["flags"]["currentapp"] = "logout";
$phpgw_flags["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;
include("header.inc.php"); include("header.inc.php");

View File

@ -12,9 +12,9 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
$phpgw_flags["currentapp"] = "preferences"; $phpgw_info["flags"]["currentapp"] = "preferences";
include("../header.inc.php"); include("../header.inc.php");
if ($phpgw_info["user"]["permissions"]["anonymous"]) { if ($phpgw_info["user"]["permissions"]["anonymous"]) {
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/")); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));

View File

@ -16,7 +16,7 @@
Header("Pragma: no-cache"); Header("Pragma: no-cache");
//Header("Expires: Sat, Jan 01 2000 01:01:01 GMT"); //Header("Expires: Sat, Jan 01 2000 01:01:01 GMT");
$phpgw_flags["currentapp"] = "preferences"; $phpgw_info["flags"]["currentapp"] = "preferences";
include("../header.inc.php"); include("../header.inc.php");
if ($phpgw_info["user"]["permissions"]["anonymous"]) { if ($phpgw_info["user"]["permissions"]["anonymous"]) {
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/")); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));

View File

@ -12,9 +12,9 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
$phpgw_flags["currentapp"] = "preferences"; $phpgw_info["flags"]["currentapp"] = "preferences";
include("../header.inc.php"); include("../header.inc.php");
if ($phpgw_info["user"]["permissions"]["anonymous"]) { if ($phpgw_info["user"]["permissions"]["anonymous"]) {

View File

@ -12,9 +12,9 @@
/* $Id$ */ /* $Id$ */
//$phpgw_flags = array("noheader" => True, "nonavbar" => True); //$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
$phpgw_flags["currentapp"] = "preferences"; $phpgw_info["flags"]["currentapp"] = "preferences";
include("../header.inc.php"); include("../header.inc.php");
if ($phpgw_info["user"]["apps"]["anonymous"]) { if ($phpgw_info["user"]["apps"]["anonymous"]) {
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/")); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));

View File

@ -13,10 +13,10 @@
/* $Id$ */ /* $Id$ */
if ($submit && $nntplist) { if ($submit && $nntplist) {
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
} }
$phpgw_flags["currentapp"] = "preferences"; $phpgw_info["flags"]["currentapp"] = "preferences";
include("../header.inc.php"); include("../header.inc.php");
$phpgw->include_lang("nntp"); $phpgw->include_lang("nntp");
function get_tg() function get_tg()

View File

@ -12,9 +12,9 @@
/* $Id$ */ /* $Id$ */
$phpgw_flags = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
$phpgw_flags["currentapp"] = "preferences"; $phpgw_info["flags"]["currentapp"] = "preferences";
include("../header.inc.php"); include("../header.inc.php");
if ($phpgw_info["user"]["permissions"]["anonymous"]) { if ($phpgw_info["user"]["permissions"]["anonymous"]) {
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/")); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));