aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-portal/www/policy
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-portal/www/policy')
-rw-r--r--mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php8
-rw-r--r--mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php9
2 files changed, 15 insertions, 2 deletions
diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php
index dc4e79d5..d8026e35 100644
--- a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php
+++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php
@@ -5,7 +5,13 @@
require_once('include/modules/portal/share/kerdoiv.php');
require_once('include/modules/session/groupInfo.php');
- $ADAT['hirek'] = getHirek(array('cid'=>array(0),'tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6),'csoport'=>$AUTH['my']['categories']));
+ $ADAT['kategoriak'] = getKategoriak();
+ for ($i=0; $i<count($ADAT['kategoriak']); $i++) {
+ $RESTRICTKATEGORIA[] = intval($ADAT['kategoriak'][$i]['id']);
+ }
+ $kategoriaId = readVariable($_GET['kategoriaId'],'id',null,$RESTRICTKATEGORIA);
+ $ADAT['kategoriaId'] = $kategoriaId;
+ $ADAT['hirek'] = getHirek(array('kategoria'=>array($kategoriaId),'cid'=>array(0),'tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6),'csoport'=>$AUTH['my']['categories']));
$ADAT['kerdoiv'] = getKerdoiv(_POLICY);
$ev=date('Y');$honap=date('m');$nap=date('d');
diff --git a/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php
index d02f5484..44906949 100644
--- a/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php
+++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php
@@ -14,7 +14,14 @@
// $ADAT['nevnap']['ma'] = getNevnap(date('m'),date('d'));
// $ADAT['nevnap']['holnap'] = getNevnap(date('m'),date('d')+1);
- $FILTER=array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1));
+ $ADAT['kategoriak'] = getKategoriak();
+ for ($i=0; $i<count($ADAT['kategoriak']); $i++) {
+ $RESTRICTKATEGORIA[] = intval($ADAT['kategoriak'][$i]['id']);
+ }
+ $kategoriaId = readVariable($_GET['kategoriaId'],'id',null,$RESTRICTKATEGORIA);
+ $ADAT['kategoriaId'] = $kategoriaId;
+
+ $FILTER=array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1),'kategoria'=>array($kategoriaId));
if (defined('__PORTAL_RESTRICT_CID'))
$FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID);