From 095e5987eadbe3786be5e12ef385bda9640155b0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Jul 2018 11:34:04 +0200 Subject: checkupdate.sh + portal 2018/Feb kiinduló --- .../www/policy/private/portal/hirek/egyhir-pre.php | 42 +++++++++++++++ .../www/policy/private/portal/hirek/egyhir.php | 5 ++ .../www/policy/private/portal/hirek/hirek-pre.php | 7 +++ .../www/policy/private/portal/hirek/hirek.php | 7 +++ .../policy/private/portal/hirek/hirekAdmin-pre.php | 11 ++++ .../www/policy/private/portal/hirek/hirekAdmin.php | 5 ++ .../private/portal/kerdoiv/kerdoivAdmin-pre.php | 17 +++++++ .../policy/private/portal/kerdoiv/kerdoivAdmin.php | 7 +++ .../www/policy/private/portal/portal-pre.php | 5 ++ mayor-orig/www/policy/private/portal/portal.php | 0 .../policy/private/portal/portal/portal-pre.php | 35 +++++++++++++ .../www/policy/private/portal/portal/portal.php | 14 +++++ .../private/portal/portal/portal_demo.classic.php | 59 ++++++++++++++++++++++ .../private/portal/portal/portal_demo.pda.php | 3 ++ 14 files changed, 217 insertions(+) create mode 100644 mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/egyhir.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirek-pre.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirek.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php create mode 100644 mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php create mode 100644 mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php create mode 100644 mayor-orig/www/policy/private/portal/portal-pre.php create mode 100644 mayor-orig/www/policy/private/portal/portal.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal-pre.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php (limited to 'mayor-orig/www/policy/private/portal') 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 @@ +$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 @@ + 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 @@ +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 @@ + 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 @@ +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 @@ + 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 @@ + 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 @@ + 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 @@ + \ 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 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 @@ +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 @@ + 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 @@ +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 '
'; + + // 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 ' | '; + echo ''; + + echo ajaxUpdaterForm('intezmenyNev','index.php?page=naplo&sub=tools&f=intezmenyNev',array(),'post',true); + echo ''; + echo ''; + 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 ''; +// echo ajaxUpdaterForm('uzenoKozep','index.php?page=naplo&sub=uzeno&f=uzeno',array(),'post',true); + + putHirek($ADAT); + + echo ' | '; + echo ''; + + 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 ''; + $_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 ' | '; + echo '