From 816aac68fe4175050dd4f421c7caeac9c62fd92c Mon Sep 17 00:00:00 2001 From: skeeter Date: Mon, 25 Sep 2000 21:13:52 +0000 Subject: [PATCH] various little fixes --- admin/deleteaccount.php | 4 +++- admin/deleteapplication.php | 6 ++++-- admin/editaccount.php | 10 ++++++---- admin/editapplication.php | 4 +++- admin/editgroup.php | 15 +++++++++------ admin/newaccount.php | 3 +++ admin/newapplication.php | 7 +++++-- 7 files changed, 33 insertions(+), 16 deletions(-) diff --git a/admin/deleteaccount.php b/admin/deleteaccount.php index ff2541ce32..d23121aa88 100755 --- a/admin/deleteaccount.php +++ b/admin/deleteaccount.php @@ -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); diff --git a/admin/deleteapplication.php b/admin/deleteapplication.php index 1566801f45..f808ac3397 100644 --- a/admin/deleteapplication.php +++ b/admin/deleteapplication.php @@ -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 @@ - diff --git a/admin/editaccount.php b/admin/editaccount.php index 150beafbfc..feaab4d20a 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.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"); ?> @@ -225,4 +227,4 @@ - \ No newline at end of file + diff --git a/admin/editapplication.php b/admin/editapplication.php index dfd4e95e8d..f8ce38fb3a 100644 --- a/admin/editapplication.php +++ b/admin/editapplication.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"); @@ -63,4 +65,4 @@ $t->pparse("out","form"); include($phpgw_info["server"]["api_dir"] . "/footer.inc.php"); - +?> diff --git a/admin/editgroup.php b/admin/editgroup.php index 3f15721cc2..5e39b76414 100755 --- a/admin/editgroup.php +++ b/admin/editgroup.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")); @@ -143,8 +145,8 @@ $user_list .= ""; + $phpgw->db->f("firstname"), + $phpgw->db->f("lastname")) . ""; } $t->set_var("user_list",$user_list); @@ -162,3 +164,4 @@ $t->pparse("out","form"); include($phpgw_info["server"]["api_dir"] . "/footer.inc.php"); +?> diff --git a/admin/newaccount.php b/admin/newaccount.php index 29ab89f893..0ae7b571b4 100755 --- a/admin/newaccount.php +++ b/admin/newaccount.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 @@ diff --git a/admin/newapplication.php b/admin/newapplication.php index 63f479e588..c1521d6680 100644 --- a/admin/newapplication.php +++ b/admin/newapplication.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"); +?>