mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
various little fixes
This commit is contained in:
parent
24d5295a9d
commit
816aac68fe
@ -16,6 +16,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
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.
|
||||||
@ -53,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($confirm) {
|
if ($confirm) {
|
||||||
$phpgw->db->query("select loginid from accounts where con='$con'");
|
$phpgw->db->query("select loginid from accounts where con=$con");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$lid = $phpgw->db->f(0);
|
$lid = $phpgw->db->f(0);
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
if (! $app_name)
|
if (! $app_name)
|
||||||
Header("Location: " . $phpgw->link("applications.php"));
|
Header("Location: " . $phpgw->link("applications.php"));
|
||||||
|
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
@ -46,6 +48,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</center>
|
</center>
|
||||||
<?
|
<?php
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
|
?>
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
||||||
|
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
if (! $con)
|
if (! $con)
|
||||||
Header("Location: " . $phpgw->link("accounts.php"));
|
Header("Location: " . $phpgw->link("accounts.php"));
|
||||||
@ -28,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($submit) {
|
if ($submit) {
|
||||||
$phpgw->db->query("select loginid from accounts where con='$con'");
|
$phpgw->db->query("select loginid from accounts where con=$con");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$lid = $phpgw->db->f("loginid");
|
$lid = $phpgw->db->f("loginid");
|
||||||
|
|
||||||
@ -113,11 +115,11 @@
|
|||||||
$phpgw->common->header();
|
$phpgw->common->header();
|
||||||
$phpgw->common->navbar();
|
$phpgw->common->navbar();
|
||||||
|
|
||||||
$phpgw->db->query("select loginid from accounts where con='$con'");
|
$phpgw->db->query("select loginid from accounts where con=$con");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$db_perms = $phpgw->accounts->read_apps($phpgw->db->f("loginid"));
|
$db_perms = $phpgw->accounts->read_apps($phpgw->db->f("loginid"));
|
||||||
|
|
||||||
$phpgw->db->query("select * from accounts where con='$con'");
|
$phpgw->db->query("select * from accounts where con=$con");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$account_status = $phpgw->db->f("status");
|
$account_status = $phpgw->db->f("status");
|
||||||
?>
|
?>
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
@ -63,4 +65,4 @@
|
|||||||
$t->pparse("out","form");
|
$t->pparse("out","form");
|
||||||
|
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
|
?>
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
@ -27,7 +29,7 @@
|
|||||||
$t->set_file(array("form" => "groups_form.tpl"));
|
$t->set_file(array("form" => "groups_form.tpl"));
|
||||||
|
|
||||||
if ($submit) {
|
if ($submit) {
|
||||||
$phpgw->db->query("select group_name from groups where group_id='$group_id'");
|
$phpgw->db->query("select group_name from groups where group_id=$group_id");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
|
|
||||||
$old_group_name = $phpgw->db->f("group_name");
|
$old_group_name = $phpgw->db->f("group_name");
|
||||||
@ -45,7 +47,7 @@
|
|||||||
$phpgw->accounts->add_app($n_group_permissions);
|
$phpgw->accounts->add_app($n_group_permissions);
|
||||||
$phpgw->db->query("update groups set group_name='$n_group', group_apps='"
|
$phpgw->db->query("update groups set group_name='$n_group', group_apps='"
|
||||||
. $phpgw->accounts->add_app("",True)
|
. $phpgw->accounts->add_app("",True)
|
||||||
. "' where group_id='$group_id'");
|
. "' where group_id=$group_id");
|
||||||
$phpgw->db->query("SELECT group_id FROM groups WHERE group_name='$n_group'");
|
$phpgw->db->query("SELECT group_id FROM groups WHERE group_name='$n_group'");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$group_con = $phpgw->db->f("group_id");
|
$group_con = $phpgw->db->f("group_id");
|
||||||
@ -100,7 +102,7 @@
|
|||||||
$selected_permissions[$n_group_permissions[$i]] = " selected";
|
$selected_permissions[$n_group_permissions[$i]] = " selected";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$phpgw->db->query("select group_name from groups where group_id='$group_id'");
|
$phpgw->db->query("select group_name from groups where group_id=$group_id");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
|
|
||||||
$t->set_var("group_name_value",$phpgw->db->f("group_name"));
|
$t->set_var("group_name_value",$phpgw->db->f("group_name"));
|
||||||
@ -118,7 +120,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw->db->query("select * from groups where group_id='$group_id'");
|
$phpgw->db->query("select * from groups where group_id=$group_id");
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
|
|
||||||
$t->set_var("form_action",$phpgw->link("editgroup.php"));
|
$t->set_var("form_action",$phpgw->link("editgroup.php"));
|
||||||
@ -143,8 +145,8 @@
|
|||||||
$user_list .= "<option value=\"" . $phpgw->db->f("con") . "\""
|
$user_list .= "<option value=\"" . $phpgw->db->f("con") . "\""
|
||||||
. $selected_users[$phpgw->db->f("con")] . ">"
|
. $selected_users[$phpgw->db->f("con")] . ">"
|
||||||
. $phpgw->common->display_fullname($phpgw->db->f("loginid"),
|
. $phpgw->common->display_fullname($phpgw->db->f("loginid"),
|
||||||
$phpgw->db->f("firstname"),
|
$phpgw->db->f("firstname"),
|
||||||
$phpgw->db->f("lastname")) . "</option>";
|
$phpgw->db->f("lastname")) . "</option>";
|
||||||
}
|
}
|
||||||
$t->set_var("user_list",$user_list);
|
$t->set_var("user_list",$user_list);
|
||||||
|
|
||||||
@ -162,3 +164,4 @@
|
|||||||
$t->pparse("out","form");
|
$t->pparse("out","form");
|
||||||
|
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
|
?>
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
||||||
|
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
if ($submit) {
|
if ($submit) {
|
||||||
@ -191,3 +193,4 @@
|
|||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
|
?>
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||||
|
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
@ -27,8 +29,8 @@
|
|||||||
$error = lang("You must enter an application name and title.");
|
$error = lang("You must enter an application name and title.");
|
||||||
} else {
|
} else {
|
||||||
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled) values('"
|
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled) values('"
|
||||||
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "','"
|
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "',"
|
||||||
. "$n_app_enabled')");
|
. "$n_app_enabled)");
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link("applications.php"));
|
Header("Location: " . $phpgw->link("applications.php"));
|
||||||
exit;
|
exit;
|
||||||
@ -61,3 +63,4 @@
|
|||||||
$t->pparse("out","form");
|
$t->pparse("out","form");
|
||||||
|
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user