From aa8e7241d5c7e03f102c551e68103c5bc0bf10f5 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Sun, 22 Mar 2009 21:34:08 +0000 Subject: [PATCH] rename query parameters git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@432 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/operator/group.php | 14 +++++++------- src/messenger/webim/operator/groups.php | 2 +- src/messenger/webim/view/group.php | 6 +++--- src/messenger/webim/view/groups.php | 12 ++++++------ 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/messenger/webim/operator/group.php b/src/messenger/webim/operator/group.php index a8d76dad..07a8719f 100644 --- a/src/messenger/webim/operator/group.php +++ b/src/messenger/webim/operator/group.php @@ -17,7 +17,7 @@ require_once('../libs/operator.php'); $operator = check_login(); -$page = array('depid' => ''); +$page = array('grid' => ''); $errors = array(); $groupid = ''; @@ -70,7 +70,7 @@ function update_group($groupid,$name,$descr,$commonname,$commondescr) { if( isset($_POST['name'])) { - $groupid = verifyparam( "dep", "/^(\d{1,9})?$/", ""); + $groupid = verifyparam( "gid", "/^(\d{1,9})?$/", ""); $name = getparam('name'); $description = getparam('description'); $commonname = getparam('commonname'); @@ -99,22 +99,22 @@ if( isset($_POST['name'])) { $page['formdescription'] = topage($description); $page['formcommonname'] = topage($commonname); $page['formcommondescription'] = topage($commondescription); - $page['depid'] = topage($groupid); + $page['grid'] = topage($groupid); } -} else if( isset($_GET['dep']) ) { - $groupid = verifyparam( 'dep', "/^\d{1,9}$/"); +} else if( isset($_GET['gid']) ) { + $groupid = verifyparam( 'gid', "/^\d{1,9}$/"); $group = group_by_id($groupid); if( !$group ) { $errors[] = getlocal("page.group.no_such"); - $page['depid'] = topage($groupid); + $page['grid'] = topage($groupid); } else { $page['formname'] = topage($group['vclocalname']); $page['formdescription'] = topage($group['vclocaldescription']); $page['formcommonname'] = topage($group['vccommonname']); $page['formcommondescription'] = topage($group['vccommondescription']); - $page['depid'] = topage($group['groupid']); + $page['grid'] = topage($group['groupid']); } } diff --git a/src/messenger/webim/operator/groups.php b/src/messenger/webim/operator/groups.php index 2716f380..5b95e879 100644 --- a/src/messenger/webim/operator/groups.php +++ b/src/messenger/webim/operator/groups.php @@ -21,7 +21,7 @@ if( isset($_GET['act']) && $_GET['act'] == 'del' ) { // TODO check permissions, delete in other places - $groupid = verifyparam( "dep", "/^(\d{1,9})?$/"); + $groupid = verifyparam( "gid", "/^(\d{1,9})?$/"); $link = connect(); perform_query("delete from chatgroup where groupid = $groupid",$link); diff --git a/src/messenger/webim/view/group.php b/src/messenger/webim/view/group.php index 3f8b089d..2f5df1fa 100644 --- a/src/messenger/webim/view/group.php +++ b/src/messenger/webim/view/group.php @@ -19,10 +19,10 @@ $page['menuid'] = "groups"; function tpl_content() { global $page, $webimroot, $errors; ?> - + - +
@@ -32,7 +32,7 @@ require_once('inc_errors.php'); ?>
- +
diff --git a/src/messenger/webim/view/groups.php b/src/messenger/webim/view/groups.php index d95234b9..9a9ca298 100644 --- a/src/messenger/webim/view/groups.php +++ b/src/messenger/webim/view/groups.php @@ -48,21 +48,21 @@ function tpl_content() { global $page, $webimroot; 0) { - foreach( $page['groups'] as $dep ) { ?> + foreach( $page['groups'] as $grp ) { ?> - - + + - + - + - + remove