Cleaned up all of the link calls in the admin section

This commit is contained in:
jengo 2001-03-08 23:32:22 +00:00
parent c052b0fbaf
commit 25fe742367
19 changed files with 153 additions and 132 deletions

View File

@ -74,12 +74,12 @@
$p->set_var('row_loginid',$loginid);
$p->set_var('row_firstname',$firstname);
$p->set_var('row_lastname',$lastname);
$p->set_var('row_edit','<a href="'.$phpgw->link('editaccount.php','account_id='
$p->set_var('row_edit','<a href="'.$phpgw->link('/admin/editaccount.php','account_id='
. $account_id) . '"> ' . lang('Edit') . ' </a>');
if ($phpgw_info['user']['userid'] != $account['account_lid'])
{
$p->set_var('row_delete','<a href="' . $phpgw->link('deleteaccount.php','account_id='
$p->set_var('row_delete','<a href="' . $phpgw->link('/admin/deleteaccount.php','account_id='
. $account_id) . '"> '.lang('Delete').' </a>');
}
else
@ -87,15 +87,15 @@
$p->set_var('row_delete','&nbsp;');
}
$p->set_var('row_view','<a href="' . $phpgw->link("viewaccount.php", "account_id="
$p->set_var('row_view','<a href="' . $phpgw->link("/admin/viewaccount.php", "account_id="
. $account_id) . '"> ' . lang("View") . ' </a>');
$p->parse('rows','row',True);
}
} // End else
$p->set_var('actionurl',$phpgw->link("newaccount.php"));
$p->set_var('accounts_url',$phpgw->link("accounts.php"));
$p->set_var('actionurl',$phpgw->link("/admin/newaccount.php"));
$p->set_var('accounts_url',$phpgw->link("/admin/accounts.php"));
$p->set_var('lang_add',lang("add"));
$p->set_var('lang_search',lang("search"));

View File

@ -48,8 +48,8 @@
$p->set_var("tr_color",$tr_color);
$p->set_var("name",$name);
$p->set_var("edit",'<a href="' . $phpgw->link("editapplication.php","app_name=" . urlencode($phpgw->db->f("app_name"))) . '"> ' . lang("Edit") . ' </a>');
$p->set_var("delete",'<a href="' . $phpgw->link("deleteapplication.php","app_name=" . urlencode($phpgw->db->f("app_name"))) . '"> ' . lang("Delete") . ' </a>');
$p->set_var("edit",'<a href="' . $phpgw->link("/admin/editapplication.php","app_name=" . urlencode($phpgw->db->f("app_name"))) . '"> ' . lang("Edit") . ' </a>');
$p->set_var("delete",'<a href="' . $phpgw->link("/admin/deleteapplication.php","app_name=" . urlencode($phpgw->db->f("app_name"))) . '"> ' . lang("Delete") . ' </a>');
if ($phpgw->db->f("app_enabled") != 0) {
$status = lang("Yes");
@ -61,7 +61,7 @@
$p->parse("rows","row",True);
}
$p->set_var("new_action",$phpgw->link("newapplication.php"));
$p->set_var("new_action",$phpgw->link("/admin/newapplication.php"));
$p->set_var("lang_add",lang("add"));
$p->pparse("out","list");

View File

@ -86,7 +86,7 @@
if ($phpgw->db->f('session_id') != $phpgw_info['user']['sessionid'])
{
$phpgw->template->set_var('row_kill','<a href="' . $phpgw->link('killsession.php','ksession='
$phpgw->template->set_var('row_kill','<a href="' . $phpgw->link('/admin/killsession.php','ksession='
. $phpgw->db->f('session_id') . '&kill=true') . '">' . lang('Kill').'</a>');
}
else

View File

@ -52,7 +52,7 @@
// Make sure they are not attempting to delete there own account.
// If they are, they should not reach this point anyway.
if ($phpgw_info["user"]["account_id"] == $account_id) {
Header("Location: " . $phpgw->link("accounts.php"));
Header('Location: ' . $phpgw->link('/admin/accounts.php'));
$phpgw->common->phpgw_exit();
}
@ -61,9 +61,9 @@
$account_id = rawurlencode($account_id);
$phpgw->template->set_var("message",lang("Are you sure you want to delete this account ?") . "<br>"
. "<font color=\"red\"><blink>" . lang("All records and account information will be lost!") . "</blink></font>");
$phpgw->template->set_var("yes",'<a href="' . $phpgw->link("deleteaccount.php","account_id=$account_id&confirm=true")
$phpgw->template->set_var("yes",'<a href="' . $phpgw->link("/admin/deleteaccount.php","account_id=$account_id&confirm=true")
. '">' . lang("Yes") . '</a>');
$phpgw->template->set_var("no",'<a href="' . $phpgw->link("accounts.php")
$phpgw->template->set_var("no",'<a href="' . $phpgw->link("/admin/accounts.php")
. '">' . lang("No") . '</a>');
$phpgw->template->pparse("out","body");
@ -73,7 +73,7 @@
if ($confirm) {
$cd = account_delete($account_id);
Header("Location: " . $phpgw->link("accounts.php","cd=$cd"));
Header("Location: " . $phpgw->link("/admin/accounts.php","cd=$cd"));
}
account_close();
?>

View File

@ -14,7 +14,7 @@
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "admin");
if (! $app_name) {
Header("Location: " . $phpgw->link("applications.php"));
Header("Location: " . $phpgw->link("/admin/applications.php"));
}
include("../header.inc.php");
$phpgw->template->set_file(array("body" => "delete_common.tpl"));
@ -22,7 +22,7 @@
if ($confirm) {
$phpgw->db->query("delete from phpgw_applications where app_name='$app_name'",__LINE__,__FILE__);
Header("Location: " . $phpgw->link("applications.php"));
Header("Location: " . $phpgw->link("/admin/applications.php"));
$phpgw->common->phpgw_exit();
}
@ -30,9 +30,9 @@
echo parse_navbar();
$phpgw->template->set_var("message",lang("Are you sure you want to delete this application ?"));
$phpgw->template->set_var("no",'<a href="' . $phpgw->link("applications.php")
$phpgw->template->set_var("no",'<a href="' . $phpgw->link("/admin/applications.php")
. '">' . lang("No") . '</a>');
$phpgw->template->set_var("yes",'<a href="' . $phpgw->link("deleteapplication.php","app_name=" . urlencode($app_name) . "&confirm=True") . '">' . lang("Yes") . '</a>');
$phpgw->template->set_var("yes",'<a href="' . $phpgw->link("/admin/deleteapplication.php","app_name=" . urlencode($app_name) . "&confirm=True") . '">' . lang("Yes") . '</a>');
$phpgw->template->pparse("out","body");
$phpgw->common->phpgw_footer();

View File

@ -15,7 +15,7 @@
$phpgw_info['flags'] = array('noheader' => True, 'nonavbar' => True, 'currentapp' => 'admin');
if (! $group_id) {
Header('Location: ' . $phpgw->link('groups.php'));
Header('Location: ' . $phpgw->link('/admin/groups.php'));
}
include('../header.inc.php');
$p = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('admin'));
@ -47,11 +47,11 @@
$p->parse('messages','message_row',True);
while (list(,$id) = each($old_group_list)) {
$p->set_var('message_display','<tr><td><a href="' . $phpgw->link('editaccount.php','account_=' . $id) . '">' . $phpgw->common->grab_owner_name($id) . '</a></tr></td>');
$p->set_var('message_display','<tr><td><a href="' . $phpgw->link('/admin/editaccount.php','account_=' . $id) . '">' . $phpgw->common->grab_owner_name($id) . '</a></tr></td>');
$p->parse('messages','message_row',True);
}
$p->set_var('message_display','</table></center></td></tr><tr><td>'
. '<a href="' . $phpgw->link('deletegroup.php','group_id=' . $group_id . '&removeusers=True')
. '<a href="' . $phpgw->link('/admin/deletegroup.php','group_id=' . $group_id . '&removeusers=True')
. '">' . lang('Remove all users from this group') . '</a></td></tr>');
$p->parse('messages','message_row',True);
$p->set_var('yes','');
@ -75,7 +75,7 @@
$phpgw->db->unlock();
Header('Location: ' . $phpgw->link('groups.php','cd='.$cd));
Header('Location: ' . $phpgw->link('/admin/groups.php','cd='.$cd));
$phpgw->common->phpgw_exit();
}
} else {
@ -85,8 +85,8 @@
$p->set_var('message_display',lang('Are you sure you want to delete this group ?'));
$p->parse('messages','message_row');
$p->set_var('yes','<a href="' . $phpgw->link('deletegroup.php',"group_id=$group_id&confirm=true") . '">' . lang('Yes') . '</a>');
$p->set_var('no','<a href="' . $phpgw->link('groups.php') . '">' . lang('No') . '</a>');
$p->set_var('yes','<a href="' . $phpgw->link('/admin/deletegroup.php',"group_id=$group_id&confirm=true") . '">' . lang('Yes') . '</a>');
$p->set_var('no','<a href="' . $phpgw->link('/admin/groups.php') . '">' . lang('No') . '</a>');
$p->pparse('out','body');

View File

@ -52,7 +52,7 @@
$allGroups = $account->get_list('groups');
}
$t->set_var('form_action',$phpgw->link('editaccount.php',
$t->set_var('form_action',$phpgw->link('/admin/editaccount.php',
"account_id=$_account_id&old_loginid=".rawurlencode($userData['account_lid'])));
if ($_errors)
@ -299,7 +299,7 @@
// not needed if i use the same file for new users too
if (! $account_id)
{
Header('Location: ' . $phpgw->link('accounts.php'));
Header('Location: ' . $phpgw->link('/admin/accounts.php'));
}
if ($submit)
@ -320,7 +320,7 @@
if (!$errors = userDataInvalid($userData))
{
saveUserData($userData);
Header('Location: ' . $phpgw->link('accounts.php', 'cd='.$cd));
Header('Location: ' . $phpgw->link('/admin/accounts.php', 'cd='.$cd));
$phpgw->common->phpgw_exit();
}
else

View File

@ -72,7 +72,7 @@
$phpgw->acl->delete($n_app_name,'everywhere',0,'g');
}
Header("Location: " . $phpgw->link("applications.php"));
Header("Location: " . $phpgw->link("/admin/applications.php"));
$phpgw->common->phpgw_exit();
}
}
@ -98,7 +98,7 @@
$p->set_var("lang_header",lang("Edit application"));
$p->set_var("hidden_vars",'<input type="hidden" name="old_app_name" value="' . $old_app_name . '">');
$p->set_var("th_bg",$phpgw_info["theme"]["th_bg"]);
$p->set_var("form_action",$phpgw->link("editapplication.php"));
$p->set_var("form_action",$phpgw->link("/admin/editapplication.php"));
display_row(lang("application name"),'<input name="n_app_name" value="' . $n_app_name . '">');
display_row(lang("application title"),'<input name="n_app_title" value="' . $n_app_title . '">');

View File

@ -29,7 +29,7 @@
}
if (! $group_id) {
Header("Location: " . $phpgw->link("groups.php"));
Header("Location: " . $phpgw->link("/admin/groups.php"));
}
if ($submit) {
@ -119,7 +119,7 @@
$phpgw->db->unlock();
Header('Location: ' . $phpgw->link('groups.php','cd='.$cd));
Header('Location: ' . $phpgw->link('/admin/groups.php','cd='.$cd));
$phpgw->common->phpgw_exit();
}
}
@ -153,7 +153,7 @@
$db_perms = $apps->read_account_specific();
}
$p->set_var('form_action',$phpgw->link('editgroup.php'));
$p->set_var('form_action',$phpgw->link('/admin/editgroup.php'));
$p->set_var('hidden_vars','<input type="hidden" name="group_id" value="' . $group_id . '">');
$p->set_var('lang_group_name',lang('group name'));

View File

@ -60,16 +60,16 @@
if (! $group_name) $group_name = '&nbsp;';
$p->set_var("group_name",$group_name);
$p->set_var("edit_link",'<a href="' . $phpgw->link("editgroup.php","group_id=" . $phpgw->db->f("account_id")) . '"> ' . lang("Edit") . ' </a>');
$p->set_var("delete_link",'<a href="' . $phpgw->link("deletegroup.php","group_id=" . $phpgw->db->f("account_id")) . '"> ' . lang("Delete") . ' </a>');
$p->set_var("edit_link",'<a href="' . $phpgw->link("/admin/editgroup.php","group_id=" . $phpgw->db->f("account_id")) . '"> ' . lang("Edit") . ' </a>');
$p->set_var("delete_link",'<a href="' . $phpgw->link("/admin/deletegroup.php","group_id=" . $phpgw->db->f("account_id")) . '"> ' . lang("Delete") . ' </a>');
$p->parse("rows","row",True);
}
$p->set_var("new_action",$phpgw->link("newgroup.php"));
$p->set_var("new_action",$phpgw->link("/admin/newgroup.php"));
$p->set_var("lang_add",lang("add"));
$p->set_var("search_action",$phpgw->link("groups.php"));
$p->set_var("search_action",$phpgw->link("/admin/groups.php"));
$p->set_var("lang_search",lang("search"));
$p->pparse("out","list");

View File

@ -1,5 +1,7 @@
<?php
{
/*
// This block of code is included by the main Administration page
// it points to the user, application and other global config
// pages.
@ -22,33 +24,43 @@
// Show the header for the section
section_start("Administration",$imgpath);
*/
echo "<p>\n";
$imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif';
if (file_exists($imgfile))
{
$imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif';
}
else
{
$imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif';
if (file_exists($imgfile))
{
$imgpath = $phpgw->common->get_image_path($appname) . '/navbar.gif';
}
else
{
$imgpath = '';
}
}
// actual items in this section
echo "<a href='" . $phpgw->link("accounts.php") . "'>";
echo lang("User accounts")."</a><br>\n";
section_start(ucfirst($appname),$imgpath);
echo "<a href='" . $phpgw->link("groups.php") . "'>";
echo lang("User groups")."</a><br>\n";
// actual items in this section
echo '<a href="' . $phpgw->link('/admin/accounts.php') . '">' . lang('User accounts')."</a><br>\n";
echo '<a href="' . $phpgw->link('/admin/groups.php') . '">' . lang('User groups')."</a><br>\n";
echo "<p>\n";
echo "<p>\n";
echo '<a href="' . $phpgw->link('/admin/applications.php') . '">' . lang('Applications')."</a><br>\n";
echo "<p>\n";
echo "<a href='" . $phpgw->link("applications.php") . "'>";
echo lang("Applications")."</a><br>\n";
echo '<a href="' . $phpgw->link('/admin/mainscreen_message.php') . '">' . lang('Change main screen message') . "</a><br>\n";
echo "<p>\n";
echo "<p>\n";
echo '<a href="' . $phpgw->link('/admin/currentusers.php') . '">' . lang('View sessions') . "</a><br>\n";
echo '<a href="' . $phpgw->link('/admin/accesslog.php') . '">' . lang('View Access Log') . "</a><br>\n";
echo "<a href='" . $phpgw->link("mainscreen_message.php") . "'>";
echo lang("Change main screen message")."</a><br>\n";
echo "<p>\n";
echo "<a href='" . $phpgw->link("currentusers.php") . "'>";
echo lang("View sessions")."</a><br>\n";
echo "<a href='" . $phpgw->link("accesslog.php") . "'>";
echo lang("View Access Log")."</a><br>\n";
section_end();
section_end();
}
?>
?>

View File

@ -1,70 +1,80 @@
<?php
/**************************************************************************\
* phpGroupWare - administration *
* http://www.phpgroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* Modified by Stephen Brown <steve@dataclarity.net> *
* to distribute admin across the application directories *
* -------------------------------------------- *
* 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. *
\**************************************************************************/
/**************************************************************************\
* phpGroupWare - administration *
* http://www.phpgroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* Modified by Stephen Brown <steve@dataclarity.net> *
* to distribute admin across the application directories *
* -------------------------------------------- *
* 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$ */
/* $Id$ */
$phpgw_info = array();
$phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php");
$phpgw_info['flags']['currentapp'] = 'admin';
include('../header.inc.php');
check_code($cd);
check_code($cd);
// This func called by the includes to dump a row header
function section_start($name="",$icon="") {
global $phpgw,$phpgw_info;
echo "<TABLE WIDTH=\"75%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
echo "<TR>";
if ($icon != "") {
echo "<TD WIDTH='5%'><img src='".$icon."' ALT='[Icon]' align='middle'></TD>";
echo "<TD><fontsize='+2'>".lang($name)."</font></TD>";
} else {
echo "<TD colspan='2'><font size='+2'>$name</font></TD>";
}
echo "</TR>\n";
echo "<TR><TD colspan='2'>\n";
}
function section_end() {
echo "</TD></TR></TABLE>\n\n";
}
// This func called by the includes to dump a row header
function section_start($name='',$icon='')
{
global $phpgw,$phpgw_info;
echo '<table width="75%" border="0" cellspacing="0" cellpadding="0"><tr>';
if ($icon)
{
echo '<td width="5%"><img src="' . $icon . '" alt="[Icon]" align="middle"></td>';
echo '<td><fontsize="+2">' . lang($name) . '</font></td>';
}
else
{
echo '<td colspan="2"><font size="+2">' . $name . '</font></td>';
}
echo '</tr>';
echo '<tr><td colspan="2">';
}
// We only want to list applications that are enabled, plus the common stuff
// (if they can get to the admin page, the admin app is enabled, hence it is shown)
function section_end()
{
echo '</td></tr></table>';
}
$phpgw->db->query("select app_name from phpgw_applications where app_enabled = 1 order by app_title",__LINE__,__FILE__);
// We only want to list applications that are enabled, plus the common stuff
// (if they can get to the admin page, the admin app is enabled, hence it is shown)
$phpgw->db->query("select app_name from phpgw_applications where app_enabled = 1 order by app_title",__LINE__,__FILE__);
// Stuff it in an array in the off chance the admin includes need the db
while ($phpgw->db->next_record() ) {
$apps[] = $phpgw->db->f("app_name");
}
// Stuff it in an array in the off chance the admin includes need the db
while ($phpgw->db->next_record())
{
$apps[] = $phpgw->db->f('app_name');
}
for( $i =0; $i < sizeof($apps); $i++) {
$appname = $apps[$i];
$f = PHPGW_SERVER_ROOT . "/" . $appname . "/inc/hook_admin.inc.php";
if (file_exists($f)) {
include($f);
echo "<p>\n";
}
}
for ($i =0; $i < sizeof($apps); $i++)
{
$appname = $apps[$i];
$f = PHPGW_SERVER_ROOT . '/' . $appname . '/inc/hook_admin.inc.php';
if ( $SHOW_INFO > 0 ) {
echo "<p><a href=\"".$phpgw->link("", "SHOW_INFO=0")."\">Hide PHP Information</a>";
echo "<hr>\n";
phpinfo();
echo "<hr>\n";
}
else {
echo "<p><a href=\"".$phpgw->link("", "SHOW_INFO=1")."\">PHP Information</a>";
}
$phpgw->common->phpgw_footer();
?>
if (file_exists($f))
{
include($f);
echo "<p>\n";
}
}
if ($SHOW_INFO > 0)
{
echo '<p><a href="' . $phpgw->link('/admin/index.php', 'SHOW_INFO=0'). '">' . lang('Hide PHP Information') . '</a>';
echo "<hr>\n";
phpinfo();
echo "<hr>\n";
}
else
{
echo '<p><a href="' . $phpgw->link('/admin/index.php', 'SHOW_INFO=1'). '">' . lang('PHP Information') . '</a>';
}
$phpgw->common->phpgw_footer();
?>

View File

@ -18,14 +18,13 @@
$phpgw_info["flags"]["currentapp"] = "admin";
include("../header.inc.php");
if ($ksessionid == $phpgw_info["user"]["sessionid"]) {
Header("Location: " . $phpgw->link("currentusers.php"));
Header("Location: " . $phpgw->link("/admin/currentusers.php"));
$phpgw->common->phpgw_exit();
}
if ($confirm) {
$phpgw->db->query("delete from phpgw_sessions where session_id='$ksession'");
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/admin/currentusers.php",
"cd=19"));
Header("Location: " . $phpgw->link("/admin/currentusers.php","cd=19"));
} else {
?>
<center>
@ -37,10 +36,10 @@
</tr>
<tr>
<td>
<a href="<?php echo $phpgw->link("currentusers.php") . "\">" . lang("No"); ?></a>
<a href="<?php echo $phpgw->link("/admin/currentusers.php") . "\">" . lang("No"); ?></a>
</td>
<td>
<a href="<?php echo $phpgw->link("killsession.php","ksession=$ksession&confirm=true")
<a href="<?php echo $phpgw->link("/admin/killsession.php","ksession=$ksession&confirm=true")
. "\">" . lang("Yes"); ?></a>
</td>
</tr>

View File

@ -30,7 +30,7 @@
if (! isset($select_lang)) {
$phpgw->template->set_var("header_lang",lang("Main screen message"));
$phpgw->template->set_var("form_action",$phpgw->link("mainscreen_message.php"));
$phpgw->template->set_var("form_action",$phpgw->link("/admin/mainscreen_message.php"));
$phpgw->template->set_var("tr_color",$phpgw_info["theme"]["th_bg"]);
$phpgw->template->set_var("value","&nbsp;");
$phpgw->template->parse("rows","row_2",True);
@ -76,7 +76,7 @@
} else {
$phpgw->template->set_var("header_lang",lang("Edit login screen message"));
}
$phpgw->template->set_var("form_action",$phpgw->link("mainscreen_message.php","select_lang=$select_lang&section=$section"));
$phpgw->template->set_var("form_action",$phpgw->link("/admin/mainscreen_message.php","select_lang=$select_lang&section=$section"));
$phpgw->template->set_var("tr_color",$phpgw_info["theme"]["th_bg"]);
$phpgw->template->set_var("value","&nbsp;");
$phpgw->template->parse("rows","row_2",True);

View File

@ -24,7 +24,7 @@ The instructions are as follows:
<p>
<?php
while (list($key, $val) = each($phpgw_info["apps"])) {
echo "\n<A HREF=\"".$phpgw->link("navbar-sel.php","filename=".$phpgw_info["server"]["server_root"]."/".$key."/images/navbar.gif")."\">";
echo "\n<A HREF=\"".$phpgw->link("/admin/navbar-sel.php","filename=".$phpgw_info["server"]["server_root"]."/".$key."/images/navbar.gif")."\">";
echo $phpgw_info["apps"][$key]["title"]."</A><BR>";
}

View File

@ -156,7 +156,7 @@
$phpgw->common->hook_single('add_user_data', $value);
}
*/
Header('Location: ' . $phpgw->link('accounts.php','cd='.$cd));
Header('Location: ' . $phpgw->link('/admin/accounts.php','cd='.$cd));
$phpgw->common->phpgw_exit();
}
}
@ -186,7 +186,7 @@
$phpgw->template->set_var('tr_color1',$phpgw_info['theme']['row_on']);
$phpgw->template->set_var('tr_color2',$phpgw_info['theme']['row_off']);
$phpgw->template->set_var('form_action',$phpgw->link('newaccount.php'));
$phpgw->template->set_var('form_action',$phpgw->link('/admin/newaccount.php'));
$phpgw->template->set_var('lang_loginid',lang('LoginID'));
if ($account_status)

View File

@ -64,7 +64,7 @@
$phpgw->acl->add($n_app_name,'everywhere',0,'g',1);
}
Header("Location: " . $phpgw->link("applications.php"));
Header("Location: " . $phpgw->link("/admin/applications.php"));
$phpgw->common->phpgw_exit();
} else {
$phpgw->template->set_var("error","<p><center>" . $phpgw->common->error_list($error) . "</center><br>");
@ -79,7 +79,7 @@
$phpgw->template->set_var("th_bg",$phpgw_info["theme"]["th_bg"]);
$phpgw->template->set_var("hidden_vars","");
$phpgw->template->set_var("form_action",$phpgw->link("newapplication.php"));
$phpgw->template->set_var("form_action",$phpgw->link("/admin/newapplication.php"));
display_row(lang("application name"),'<input name="n_app_name" value="' . $n_app_name . '">');
display_row(lang("application title"),'<input name="n_app_title" value="' . $n_app_title . '">');

View File

@ -108,7 +108,7 @@
$phpgw->db->unlock();
Header("Location: " . $phpgw->link("groups.php","cd=$cd"));
Header("Location: " . $phpgw->link("/admin/groups.php","cd=$cd"));
$phpgw->common->phpgw_exit();
}
}
@ -125,7 +125,7 @@
$p->set_var("error","");
}
$p->set_var("form_action",$phpgw->link("newgroup.php"));
$p->set_var("form_action",$phpgw->link("/admin/newgroup.php"));
$p->set_var("hidden_vars","");
$p->set_var("lang_group_name",lang("New group name"));
$p->set_var("group_name_value","");

View File

@ -28,7 +28,7 @@
if (! $account_id)
{
Header('Location: ' . $phpgw->link('accounts.php'));
Header('Location: ' . $phpgw->link('/admin/accounts.php'));
}
$t = new Template($phpgw->common->get_tpl_dir('admin'));