summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-07-13 17:23:11 +0200
committerINOPIAE <inopiae@cacert.org>2013-07-13 17:23:11 +0200
commit28415701f781cd5ea4e4e3f14eb8bac1c7f4e791 (patch)
tree763e151bb0a940389d21c55987364150c90845da
parentfe9710d6fafab701280748655a6a0d24c74d8313 (diff)
downloadcacert-devel-28415701f781cd5ea4e4e3f14eb8bac1c7f4e791.tar.gz
cacert-devel-28415701f781cd5ea4e4e3f14eb8bac1c7f4e791.tar.xz
cacert-devel-28415701f781cd5ea4e4e3f14eb8bac1c7f4e791.zip
bug 1010: added filter function to includes/account.php
-rw-r--r--includes/account.php15
-rw-r--r--pages/account/18.php6
2 files changed, 18 insertions, 3 deletions
diff --git a/includes/account.php b/includes/account.php
index 56dd026..066f18b 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1834,6 +1834,21 @@
exit;
}
+ if($oldid == 18 && array_key_exists('filter',$_REQUEST) && $_REQUEST['filter']!= "")
+ {
+ $id=18;
+ $_SESSION['_config']['orgfilterid']=$_REQUEST['orgfilterid'];
+ $_SESSION['_config']['sorting']=$_REQUEST['sorting'];
+ $_SESSION['_config']['status']=$_REQUEST['status'];
+ }
+
+ if($oldid == 18 && array_key_exists('reset',$_REQUEST) && $_REQUEST['reset']!= "")
+ {
+ $id=18;
+ $_SESSION['_config']['orgfilterid']=0;
+ $_SESSION['_config']['sorting']=0;
+ $_SESSION['_config']['status']=0;
+ }
if($process != "" && $oldid == 20)
{
diff --git a/pages/account/18.php b/pages/account/18.php
index d294f1b..5d45f37 100644
--- a/pages/account/18.php
+++ b/pages/account/18.php
@@ -17,11 +17,11 @@
*/
$orgfilterid=0;
-if(array_key_exists('orgfilterid',$_REQUEST)) $orgfilterid=intval($_REQUEST['orgfilterid']);
+if(array_key_exists('orgfilterid',$_SESSION['_config'])) $orgfilterid=intval($_SESSION['_config']['orgfilterid']);
$sorting=0;
-if(array_key_exists('sorting',$_REQUEST)) $sorting=intval($_REQUEST['sorting']);
+if(array_key_exists('sorting',$_SESSION['_config'])) $sorting=intval($_SESSION['_config']['sorting']);
$status=0;
-if(array_key_exists('status',$_REQUEST)) $status=intval($_REQUEST['status']);
+if(array_key_exists('status',$_SESSION['_config'])) $status=intval($_SESSION['_config']['status']);
?>
<form method="post" action="account.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">