mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +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"]["disable_message_class"] = True;
|
||||
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||
include("../header.inc.php");
|
||||
// Make sure they are not attempting to delete there own account.
|
||||
// If they are, they should not reach this point anyway.
|
||||
@ -53,7 +55,7 @@
|
||||
}
|
||||
|
||||
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();
|
||||
$lid = $phpgw->db->f(0);
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
if (! $app_name)
|
||||
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";
|
||||
include("../header.inc.php");
|
||||
|
||||
@ -46,6 +48,6 @@
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<?
|
||||
<?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"]["currentapp"] = "admin";
|
||||
$phpgw_info["flags"]["disable_message_class"] = True;
|
||||
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||
include("../header.inc.php");
|
||||
if (! $con)
|
||||
Header("Location: " . $phpgw->link("accounts.php"));
|
||||
@ -28,7 +30,7 @@
|
||||
}
|
||||
|
||||
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();
|
||||
$lid = $phpgw->db->f("loginid");
|
||||
|
||||
@ -113,11 +115,11 @@
|
||||
$phpgw->common->header();
|
||||
$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();
|
||||
$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();
|
||||
$account_status = $phpgw->db->f("status");
|
||||
?>
|
||||
|
@ -15,6 +15,8 @@
|
||||
$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";
|
||||
include("../header.inc.php");
|
||||
|
||||
@ -63,4 +65,4 @@
|
||||
$t->pparse("out","form");
|
||||
|
||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -15,6 +15,8 @@
|
||||
$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";
|
||||
include("../header.inc.php");
|
||||
|
||||
@ -27,7 +29,7 @@
|
||||
$t->set_file(array("form" => "groups_form.tpl"));
|
||||
|
||||
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();
|
||||
|
||||
$old_group_name = $phpgw->db->f("group_name");
|
||||
@ -45,7 +47,7 @@
|
||||
$phpgw->accounts->add_app($n_group_permissions);
|
||||
$phpgw->db->query("update groups set group_name='$n_group', group_apps='"
|
||||
. $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->next_record();
|
||||
$group_con = $phpgw->db->f("group_id");
|
||||
@ -100,7 +102,7 @@
|
||||
$selected_permissions[$n_group_permissions[$i]] = " selected";
|
||||
}
|
||||
} 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();
|
||||
|
||||
$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();
|
||||
|
||||
$t->set_var("form_action",$phpgw->link("editgroup.php"));
|
||||
@ -162,3 +164,4 @@
|
||||
$t->pparse("out","form");
|
||||
|
||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||
?>
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
$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";
|
||||
include("../header.inc.php");
|
||||
if ($submit) {
|
||||
@ -191,3 +193,4 @@
|
||||
</form>
|
||||
<?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"]["disable_message_class"] = True;
|
||||
$phpgw_info["flags"]["disable_send_class"] = True;
|
||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||
include("../header.inc.php");
|
||||
|
||||
@ -27,8 +29,8 @@
|
||||
$error = lang("You must enter an application name and title.");
|
||||
} else {
|
||||
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled) values('"
|
||||
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "','"
|
||||
. "$n_app_enabled')");
|
||||
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "',"
|
||||
. "$n_app_enabled)");
|
||||
|
||||
Header("Location: " . $phpgw->link("applications.php"));
|
||||
exit;
|
||||
@ -61,3 +63,4 @@
|
||||
$t->pparse("out","form");
|
||||
|
||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user