From f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 21:20:34 +0100 Subject: további rendrakás --- .../www/policy/public/portal/portal/hir-pre.php | 24 ----- mayor-orig/www/policy/public/portal/portal/hir.php | 11 --- .../www/policy/public/portal/portal/portal-pre.php | 37 -------- .../www/policy/public/portal/portal/portal.php | 37 -------- .../public/portal/portal/portal_demo.classic.php | 43 --------- .../public/portal/portal/portal_demo.pda.php | 29 ------ .../www/policy/public/portal/rpc/rpc-pre.php | 104 --------------------- mayor-orig/www/policy/public/portal/start.php | 0 8 files changed, 285 deletions(-) delete mode 100644 mayor-orig/www/policy/public/portal/portal/hir-pre.php delete mode 100644 mayor-orig/www/policy/public/portal/portal/hir.php delete mode 100644 mayor-orig/www/policy/public/portal/portal/portal-pre.php delete mode 100644 mayor-orig/www/policy/public/portal/portal/portal.php delete mode 100644 mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php delete mode 100644 mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php delete mode 100644 mayor-orig/www/policy/public/portal/rpc/rpc-pre.php delete mode 100644 mayor-orig/www/policy/public/portal/start.php (limited to 'mayor-orig/www/policy/public/portal') diff --git a/mayor-orig/www/policy/public/portal/portal/hir-pre.php b/mayor-orig/www/policy/public/portal/portal/hir-pre.php deleted file mode 100644 index 7e88f0f3..00000000 --- a/mayor-orig/www/policy/public/portal/portal/hir-pre.php +++ /dev/null @@ -1,24 +0,0 @@ -=1) { - if (_POLICY=='private') - $FILTER=array('id'=>$hirId); - else - $FILTER=array('id'=>$hirId,'flag'=>array(1),'class'=>array(1)); - - if (defined('__PORTAL_RESTRICT_CID')) - $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID); - - $ADAT['hirek'] = getHirek($FILTER); - /* opengraph attributumok */ - $OG = array('title'=>$ADAT['hirek']['szovegek'][0]['cim'],'getparameter'=>'hirId='.$hirId); - if ($ADAT['hirek']['szovegek'][0]['pic']!='') { - $OG['image'] = $ADAT['hirek']['szovegek'][0]['pic']; - } - } - - -?> diff --git a/mayor-orig/www/policy/public/portal/portal/hir.php b/mayor-orig/www/policy/public/portal/portal/hir.php deleted file mode 100644 index 6a7ee860..00000000 --- a/mayor-orig/www/policy/public/portal/portal/hir.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/mayor-orig/www/policy/public/portal/portal/portal-pre.php b/mayor-orig/www/policy/public/portal/portal/portal-pre.php deleted file mode 100644 index d02f5484..00000000 --- a/mayor-orig/www/policy/public/portal/portal/portal-pre.php +++ /dev/null @@ -1,37 +0,0 @@ -=24) {$nap=$nap+1;} - - $ADAT['nevnap']['ma'] = getNevnap($honap,$nap); - $ADAT['nevnap']['holnap'] = getNevnap($honap,$nap+1); - -// $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)); - if (defined('__PORTAL_RESTRICT_CID')) - $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID); - - $ADAT['hirek'] = getHirek($FILTER); - $ADAT['kerdoiv'] = getKerdoiv(_POLICY); - - $kerdoivId = readVariable($_POST['kerdoivId'],'numeric',$ADAT['kerdoiv']['kerdes']['sorszam']); - $vId = readVariable($_POST['vId'],'numeric'); - $szavazotte = szavazotte($kerdoivId); - // Kérdőív - <<<< - if ($action == 'szavaz' && $szavazotte==false) { - szavaz($vId,1,$kerdoivId); - $szavazotte = true; - $_SESSION['kerdoivSzavazott'] = true; - } - $ADAT['kerdoiv'] = getKerdoiv(); - $ADAT['kerdoiv']['szavazott'] = $szavazotte; - // Kérdőív - >>>> - -?> diff --git a/mayor-orig/www/policy/public/portal/portal/portal.php b/mayor-orig/www/policy/public/portal/portal/portal.php deleted file mode 100644 index 96275bf4..00000000 --- a/mayor-orig/www/policy/public/portal/portal/portal.php +++ /dev/null @@ -1,37 +0,0 @@ - diff --git a/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php deleted file mode 100644 index 31aebc95..00000000 --- a/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php +++ /dev/null @@ -1,43 +0,0 @@ - -
- -
- - -
-'; - - - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo '
'; - - putDoboz('MaYoR-じしょ',$TXT['japszotar'],array('header-color'=>'#bb0088')); - - echo ''; - - putHirek($ADAT); - - echo ''; - - putDoboz('Névnapok','Ma: '.$ADAT['nevnap']['ma'].'
Holnap: '.$ADAT['nevnap']['holnap'],array('header-color'=>'rgb(138,128,238)')); - - - if (is_array($ADAT['kerdoiv']['kerdes']) && count($ADAT['kerdoiv']['kerdes']) > 0) - putDoboz('Kérdőív', genKerdoiv($ADAT['kerdoiv']), array('header-color'=>'rgb(238,82,38)')); - - echo '
'; - -?> diff --git a/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php b/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php deleted file mode 100644 index 3123adcd..00000000 --- a/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php +++ /dev/null @@ -1,29 +0,0 @@ -Belépés -
- diák - szülő - tanár'; - - if (defined('__FORUM_INSTALLED') && __FORUM_INSTALLED===true) - echo 'fórum'; - echo '
'; - - echo '

Szolgáltatások

-
- órarend - helyettesítés - hírek'; - echo '
'; - } - -?> diff --git a/mayor-orig/www/policy/public/portal/rpc/rpc-pre.php b/mayor-orig/www/policy/public/portal/rpc/rpc-pre.php deleted file mode 100644 index edd9a592..00000000 --- a/mayor-orig/www/policy/public/portal/rpc/rpc-pre.php +++ /dev/null @@ -1,104 +0,0 @@ -'portal','result'=>'indexed')); - } else { - $q = "SELECT * FROM regisztracio WHERE nodeId='%s'"; - $v = array($nodeId); - $r = db_query($q, array('modul'=>'portal','result'=>'record','values'=>$v)); - } - return $r; - } - - function getPublicDataByNodeIdFromReg($nodeId) { - $q = "SELECT * FROM regisztracio WHERE nodeId='%s'"; - $v = array($nodeId); - $r = db_query($q, array('debug'=>false,'fv'=>'getPublicDataByNodeIdFromReg','modul'=>'portal','result'=>'record','values'=>$v)); - return $r; - } - function modRegData($nodeId, $regId, $DATA) { - $q = "UPDATE regisztracio SET ".implode(',',array_fill(0, count($DATA), "%s='%s'"))." WHERE regId=%u AND nodeId=%u"; - foreach ($DATA as $key=>$val) { - $v[] = $key; $v[] = $val; - } - $v[] = $regId; $v[] = $nodeId; - $r = db_query($q, array('debug'=>true,'fv'=>'modRegData','modul'=>'portal','values'=>$v)); - if ($r) return true; - else return $q; - } - - /* Class: Interconnect AES * / - - /* remote procedure call remote controller * / - try - { - /* rights.php: - $RPC = new Interconnect(); - $RPC->setRemoteHostByNodeId($senderNodeId); - $REQUEST = $RPC->processRequest(); - * / - $REQUEST = $RPC->getIncomingRequest(); - $func = $REQUEST['func']; - - } - catch (Exception $e) - { - $func=''; - $DATA = array('error'=>$e->getMessage()); - } - // processing - $DATA = array(); - if (isset($func) && $func!='') { - switch ($func) { - case 'getVersion': - case 'ping': - $DATA = array('func'=>'getVersion','response_revision'=>_MAYORREV,'pong'); - $RPC->setResponse($DATA); - break; - case 'checkRegistration': - $DATA = getPublicDataByNodeIdFromReg($senderNodeId); - if (is_array($DATA)) $valid = 1; else $valid = 0; - $DATA = array('func'=>$func,'valid'=>$valid,'status'=>$RPC->getStatus(),'get'=>$_GET,'post'=>$_POST); - $RPC->setResponse($DATA); - break; - case 'getPublicDataByNodeId': - $DATA = getPublicDataByNodeIdFromReg($REQUEST['nodeId']); - $RPC->setResponse($DATA); - break; - case 'modRegData': - $DATA['result'] = modRegData($senderNodeId,$REQUEST['regId'],$REQUEST['data']); - $DATA['func'] = 'modRegData'; - $RPC->setResponse($DATA); - break; - case 'getIskola': - $iskolaAdat = getRegisztraltIskolaAdat($REQUEST['otherNodeId']); - $DATA = array('func'=>$func,'iskolaAdat'=>$iskolaAdat); - $RPC->setResponse($DATA); - break; - case 'getRegistrationData': - $DATA = getPublicDataByNodeIdFromReg($REQUEST['nodeId']); - break; - case 'refreshRegistration': - break; - case 'getPublicData': - $iskolaAdat = getRegisztraltIskolaAdat(); - $DATA = array('func'=>$func,'szomszedok'=>$iskolaAdat); - $RPC->setResponse($DATA); - break; - default: - break; - } - - } -*/ -?> diff --git a/mayor-orig/www/policy/public/portal/start.php b/mayor-orig/www/policy/public/portal/start.php deleted file mode 100644 index e69de29b..00000000 -- cgit v1.2.3