aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/private/portal
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:34:04 +0200
committerM.Gergo2018-07-06 11:34:04 +0200
commit095e5987eadbe3786be5e12ef385bda9640155b0 (patch)
treee796dcd1c575094cf43e0b0b7d4c8fb22896e66f /mayor-orig/www/policy/private/portal
parent43de9af71f7f4ca5731b94a06d688ae8412ba427 (diff)
downloadmayor-095e5987eadbe3786be5e12ef385bda9640155b0.tar.gz
mayor-095e5987eadbe3786be5e12ef385bda9640155b0.zip
checkupdate.sh + portal 2018/Feb kiinduló
Diffstat (limited to 'mayor-orig/www/policy/private/portal')
-rw-r--r--mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php42
-rw-r--r--mayor-orig/www/policy/private/portal/hirek/egyhir.php5
-rw-r--r--mayor-orig/www/policy/private/portal/hirek/hirek-pre.php7
-rw-r--r--mayor-orig/www/policy/private/portal/hirek/hirek.php7
-rw-r--r--mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php11
-rw-r--r--mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php5
-rw-r--r--mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php17
-rw-r--r--mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php7
-rw-r--r--mayor-orig/www/policy/private/portal/portal-pre.php5
-rw-r--r--mayor-orig/www/policy/private/portal/portal.php0
-rw-r--r--mayor-orig/www/policy/private/portal/portal/portal-pre.php35
-rw-r--r--mayor-orig/www/policy/private/portal/portal/portal.php14
-rw-r--r--mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php59
-rw-r--r--mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php3
14 files changed, 217 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php b/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php
new file mode 100644
index 00000000..f5931b9d
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php
@@ -0,0 +1,42 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/portal/share/hirek.php');
+ $hirId = readVariable($_POST['hirId'],'id',null);
+ if ($hirId=='') $hirId = readVariable($_GET['hirId'],'id',null);
+ $action = readVariable($_POST['action'],'strictstring',array(null,'save',''));
+ if ($action=='save' && (__HIREKADMIN || $hirId=='' || isOwner($hirId))) {
+ global $LANGUAGES;
+ if (__HIREKADMIN === true) {
+ $DATA['cim'] = readVariable($_POST['cim'],'string');
+ $DATA['txt'] = readVariable($_POST['txt'],'string');
+ } else {
+ $DATA['cim'] = readVariable($_POST['cim'],'string');
+ $DATA['txt'] = readVariable($_POST['txt'],'string');
+ }
+ $DATA['hirId'] = $hirId;
+ $DATA['pic'] = readVariable($_POST['pic'],'string');
+ $DATA['kdt'] = readVariable($_POST['kdt'],'datetime',date('Y-m-d H:i:s'));
+ $DATA['vdt'] = readVariable($_POST['vdt'],'datetime');
+ $DATA['flag']= readVariable($_POST['flag'],'numeric',null);
+ $DATA['class']= readVariable($_POST['class'],'numeric',null);
+ $DATA['cid']= readVariable($_POST['cid'],'numeric',null);
+ $DATA['lang'] = readVariable($_POST['lang'],'strictstring',$LANGUAGES);
+ $DATA['owner'] = _USERACCOUNT;
+ if (is_array($_POST['csoport'])) {
+ $DATA['csoport'] = implode(',',readVariable($_POST['csoport'],'sql'));
+ }
+ $r = saveHir($DATA);
+ if ($hirId=='') $hirId=$r;
+ }
+ if ($hirId!='' && is_numeric($hirId) && __HIREKADMIN || isOwner($hirId))
+ $HIREK = getHirek(array('id'=>$hirId));
+ elseif ($hirId!='')
+ $_SESSION['alert'][] = 'page:not_owner';
+
+ $ADAT['kategoriak'] = getKategoriak();
+
+
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/hirek/egyhir.php b/mayor-orig/www/policy/private/portal/hirek/egyhir.php
new file mode 100644
index 00000000..3ad1f486
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/hirek/egyhir.php
@@ -0,0 +1,5 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+ global $HIREK,$ADAT;
+ putHirForm($HIREK['szovegek'][0], $ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php b/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php
new file mode 100644
index 00000000..247d10d9
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php
@@ -0,0 +1,7 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ require_once('include/modules/portal/share/hirek.php');
+ $ADAT['hirek'] = getHirek(array('tolDt'=>date('Y-m-d'), 'igDt'=>date('Y-m-d'),'flag'=>array(1)));
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/hirek/hirek.php b/mayor-orig/www/policy/private/portal/hirek/hirek.php
new file mode 100644
index 00000000..8f17a358
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/hirek/hirek.php
@@ -0,0 +1,7 @@
+<?php
+
+ global $ADAT;
+
+ putHirek($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php
new file mode 100644
index 00000000..630c9cbd
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php
@@ -0,0 +1,11 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__HIREKADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ }
+
+ require_once('include/modules/portal/share/hirek.php');
+ $HIREK = getHirek(array('all'=>true)); // minden nyelvű hír
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php
new file mode 100644
index 00000000..2474b23e
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php
@@ -0,0 +1,5 @@
+<?php
+
+ global $HIREK;
+ putHirek($HIREK['szovegek']);
+?>
diff --git a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php
new file mode 100644
index 00000000..8825861c
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php
@@ -0,0 +1,17 @@
+<?php
+
+ if (__HIREKADMIN) {
+
+ require_once('include/modules/portal/share/kerdoiv.php');
+
+ if ($action == 'ujKerdes') {
+ addKerdoiv($_POST['kerdes'],$_POST['valaszok']);
+ } elseif ($action == 'delKerdes') {
+ $sorszamok = (readVariable($_POST['sorszam'],'id'));
+ if (is_array($sorszamok)) delKerdoivKerdes($sorszamok);
+ }
+ $ADAT = getRegiKerdesek();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php
new file mode 100644
index 00000000..2ccaf34e
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php
@@ -0,0 +1,7 @@
+<?php
+
+ global $ADAT;
+ putUjKerdoiv();
+ putRegiKerdesek($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/portal-pre.php b/mayor-orig/www/policy/private/portal/portal-pre.php
new file mode 100644
index 00000000..3d9a95da
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/portal-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=portal&sub=portal&f=portal'));
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/portal/portal.php b/mayor-orig/www/policy/private/portal/portal.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/portal.php
diff --git a/mayor-orig/www/policy/private/portal/portal/portal-pre.php b/mayor-orig/www/policy/private/portal/portal/portal-pre.php
new file mode 100644
index 00000000..2f8d7772
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/portal/portal-pre.php
@@ -0,0 +1,35 @@
+<?php
+
+ require_once('include/modules/portal/share/hirek.php');
+ require_once('include/modules/portal/share/nevnap.php');
+ require_once('include/modules/portal/share/kerdoiv.php');
+ require_once('include/modules/session/groupInfo.php');
+
+ $ADAT['hirek'] = getHirek(array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(6),'csoport'=>$AUTH['my']['categories']));
+ $ADAT['kerdoiv'] = getKerdoiv(_POLICY);
+
+ if (in_array($AUTH[_POLICY]['backend'],array('mysql','ads')) && _POLICY=='private') {
+ $ADAT['hirekAdmin'] = getGroupInfo('hirekadmin','private',array('withNewAccounts' => false));
+ $ADAT['vezetoseg'] = getGroupInfo('vezetoseg','private',array('withNewAccounts' => false));
+ $ADAT['titkarsag'] = getGroupInfo('titkarsag','private',array('withNewAccounts' => false));
+ $ADAT['useradmin'] = getGroupInfo('useradmin','private',array('withNewAccounts' => false));
+ $ADAT['diakadmin'] = getGroupInfo('diakadmin','private',array('withNewAccounts' => false));
+ }
+ $kerdoivId = $ADAT['kerdoiv']['kerdes']['sorszam'];
+ $vId = readVariable($_POST['vId'],'numeric');
+ $szavazotte = szavazotte($kerdoivId);
+ // Kérdőív - <<<<
+ if ($action == 'szavaz' && !$szavazotte) {
+ szavaz($vId,1,$kerdoivId);
+ $szavazotte=true;
+ $_SESSION['kerdoivSzavazott'] = true;
+ }
+ $ADAT['kerdoiv'] = getKerdoiv(_POLICY);
+ $ADAT['kerdoiv']['szavazott'] = $szavazotte;
+ // Kérdőív - >>>>
+
+ require('skin/classic/module-portal/html/share/doboz.phtml');
+ require('skin/classic/module-portal/html/share/hirek.phtml');
+ require('skin/classic/module-portal/html/share/kerdoiv.phtml');
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/portal/portal.php b/mayor-orig/www/policy/private/portal/portal/portal.php
new file mode 100644
index 00000000..1640b057
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/portal/portal.php
@@ -0,0 +1,14 @@
+<?php
+
+ global $skin;
+
+ /* $skinnek lennie kell */
+ if (defined('_POLICY') && defined('__PORTAL_CODE') && file_exists('policy/'._POLICY.'/portal/portal/portal_'.__PORTAL_CODE.'.'.$skin.'.php') ) {
+ require('policy/'._POLICY.'/portal/portal/portal_'.__PORTAL_CODE.'.'.$skin.'.php');
+ } elseif (file_exists('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'.$skin.'.php')) {
+ require('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'.$skin.'.php');
+ } elseif (file_exists('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php')) {
+ require('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php');
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php
new file mode 100644
index 00000000..dc88056a
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php
@@ -0,0 +1,59 @@
+<?php
+
+ global $ADAT,$vmPost,$AUTH;
+
+ $LINKEK['inside'] = array(
+ array('href'=>href('index.php?page=naplo'),
+ 'szoveg' => 'Napló'),
+ array('href'=>href('index.php?page=portal&sub=hirek&f=egyhir'),
+ 'szoveg' => 'Hír beküldés'),
+ );
+
+ echo '<table class="portalMain">';
+ echo '<tr><td class="bal">';
+
+ // putDoboz('Napló',genLinkek($LINKEK['inside']),array('header-color'=>'#778877'));
+ putDoboz('Születésnaposok :)',ajaxUpdaterForm('szulinap','index.php?page=naplo&sub=&f=szulinap',array(),'post',true),
+ array('header-color'=>'rgb(100,100,150)'));
+// putDoboz('Hiányzók',ajaxUpdaterForm('hianyzok','index.php?page=naplo&sub=hianyzas&f=info',array(),'post',true),
+// array('header-color'=>'rgb(100,150,150)'));
+ if (in_array('diák',$AUTH['my']['categories']))
+ putDoboz('Bejegyzések',ajaxUpdaterForm('bejegyzesek','index.php?page=naplo&sub=bejegyzesek&f=info',array(),'post',true),
+ array('header-color'=>'rgb(150,100,150)'));
+
+ echo '</td>';
+ echo '<td class="kozep">';
+
+ echo ajaxUpdaterForm('intezmenyNev','index.php?page=naplo&sub=tools&f=intezmenyNev',array(),'post',true);
+ echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/naplo.css\')</script>';
+ echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/hirnok/hirnok.css\')</script>';
+ echo ajaxUpdaterForm('hangya2','index.php?page=naplo&sub=hibabejelento&f=admin&view=2',array(),'post',true);
+ echo ajaxUpdaterForm('hirnok','index.php?page=naplo&sub=hirnok&f=hirnok',array(),'post',true);
+ //echo ajaxUpdaterForm('naploHaladasi','index.php?page=naplo',array(),'post',true);
+ //echo ajaxUpdaterForm('hangya2','index.php?page=naplo&sub=hibabejelento&f=admin&view=2',array(),'post',true);
+
+// echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/uzeno/uzeno.css\')</script>';
+// echo ajaxUpdaterForm('uzenoKozep','index.php?page=naplo&sub=uzeno&f=uzeno',array(),'post',true);
+
+ putHirek($ADAT);
+
+ echo '</td>';
+ echo '<td class="jobb">';
+
+ if (is_array($ADAT['kerdoiv']['kerdes']) && count($ADAT['kerdoiv']['kerdes']) > 0)
+ putDoboz('Kérdőív', genKerdoiv($ADAT['kerdoiv']), array('header-color'=>'rgb(140,160,120)'));
+
+ echo '<script type="text/javascript">includeCSS(\'/skin/ajax/module-naplo/css/orarend/orarend.css\')</script>';
+ $_refStamp = mktime(date('H')+8,0,0,date('m'), date('d'), date('Y'));
+ $dt = date('Y-m-d', $_refStamp);
+ putDoboz('Órarend '.$dt,ajaxUpdaterForm('orarend','index.php?page=naplo&sub=orarend&f=orarend',array('dt' => $dt),'post',true)
+ ,array('header-link'=>'index.php?page=naplo&sub=orarend&f=orarend','header-color'=>'#f06'));
+
+ // putDoboz('Hangya',ajaxUpdaterForm('hangya','index.php?page=naplo&sub=hibabejelento&f=admin',array(),'post',true),
+ // array('header-color'=>'rgb(150,100,150)'));
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php b/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php
new file mode 100644
index 00000000..62a2de0c
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php
@@ -0,0 +1,3 @@
+<?php
+
+?>