aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/public/portal
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/www/policy/public/portal')
-rw-r--r--mayor-orig/www/policy/public/portal/portal/hir-pre.php24
-rw-r--r--mayor-orig/www/policy/public/portal/portal/hir.php11
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal-pre.php37
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal.php37
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php43
-rw-r--r--mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php29
-rw-r--r--mayor-orig/www/policy/public/portal/rpc/rpc-pre.php104
-rw-r--r--mayor-orig/www/policy/public/portal/start.php0
8 files changed, 0 insertions, 285 deletions
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 @@
-<?php
- global $OG;
-
- require_once('include/modules/portal/share/hirek.php');
- $hirId = readVariable($_GET['hirId'],id);
- if ($hirId>=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 @@
-<?php
-
- /* including global phtml libs */
-
- require_once('skin/classic/module-portal/html/share/doboz.phtml');
- require_once('skin/classic/module-portal/html/share/hirek.phtml');
-
- global $skin,$SKINSSHOW,$ADAT;
-
- putHir($ADAT);
-?>
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 @@
-<?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');
-
- $ev=date('Y');$honap=date('m');$nap=date('d');
- if ($ev % 4 ==0) {if ($ev % 100 !==0) {$szokoev=true;} else {if ($ev % 400==0) {$szokoev=true;}}} else {$szokoev=false;}
- if (!$szokoev && $honap==2 && $nap>=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 @@
-<?php
-
- /* including global phtml libs */
-
- require_once('skin/classic/module-portal/html/share/doboz.phtml');
- require_once('skin/classic/module-portal/html/share/hirek.phtml');
- require_once('skin/classic/module-portal/html/share/kerdoiv.phtml');
-
- global $skin,$SKINSSHOW;
-
-/*
- if (in_array($skin,$SKINSSHOW)) {
- 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');
- } else {
- if (file_exists('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php'))
- require('policy/'._POLICY.'/portal/portal/portal_'.demo.'.'._DEFAULT_SKIN.'.php');
- }
- }
-*/
-
- /* $skinnek lennie kell */
- if (defined('_POLICY') && defined('__PORTAL_CODE')) {
- if (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_'.__PORTAL_CODE.'.classic.php') )
- require('policy/'._POLICY.'/portal/portal/portal_'.__PORTAL_CODE.'.'.'classic'.'.php');
- elseif (file_exists('policy/'._POLICY.'/portal/portal/portal_demo.classic.php') )
- require('policy/'._POLICY.'/portal/portal/portal_demo.classic'.'.php');
- else
- echo 'portal ERROR.:(';
- } 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/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 @@
-<?php
-
- global $ADAT,$vmPost;
-
- $TXT['japszotar'] ='
-<!-- MaYoR-じしょ search form -->
-<form name="jisho" style="font-size:10px" method="post" action=" http://szotar.vmg.sulinet.hu/index.php?p=dict" target="_blank">
-<select name="lang" style="font-size:10px; width:110px; background-color: #eeeeee;">
-<option value="hu">magyar</option>
-<option value="jp">japán</option>
-<option value="en">angol</option>
-</select>
-<br/>
-<input name="word" value="" style="width: 90px; font-size:10px;" type="text" />
-<input src="skin/classic/module-portal/img/ok_button.gif" name="sent" value="Mehet" type="image" />
-</form>
-<!-- end of MaYoR-じしょ -->';
-
-
- echo '<table class="portalMain">';
- echo '<tr><td class="bal">';
-
- putDoboz('MaYoR-じしょ',$TXT['japszotar'],array('header-color'=>'#bb0088'));
-
- echo '</td>';
- echo '<td class="kozep">';
-
- putHirek($ADAT);
-
- echo '</td>';
- echo '<td class="jobb">';
-
- putDoboz('Névnapok','Ma: '.$ADAT['nevnap']['ma'].'<br/>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 '</td>';
- echo '</tr>';
- echo '</table>';
-
-?>
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 @@
-<?php
-
- global $ADAT,$vmPost;
-
- if ($_GET['show'] == 'hirek') {
-
- putHirek($ADAT);
-
- } else {
- echo '
- <h1>Belépés</h1>
- <div class="set">
- <a class="diak" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=private&toSkin=pda&toPSF=naplo:osztalyozo:diak').'">diák</a>
- <a class="szulo" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=parent&toSkin=pda&toPSF=naplo:osztalyozo:diak').'">szülő</a>
- <a class="tanar" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=private&toSkin=pda&toPSF=naplo::naplo').'">tanár</a>';
-
- if (defined('__FORUM_INSTALLED') && __FORUM_INSTALLED===true)
- echo '<a class="forum" href="'.href('index.php?page=auth&f=login&toPolicy=private&skin=pda&policy=public&toPolicy=public&toSkin=pda&toPSF=forum::').'">fórum</a>';
- echo '</div>';
-
- echo '<h1>Szolgáltatások</h1>
- <div class="set">
- <a class="orarend" href="'.href('index.php?page=naplo&sub=orarend&f=orarend').'">órarend</a>
- <a class="helyettesites" href="'.href('index.php?page=naplo&sub=orarend&f=helyettesites').'">helyettesítés</a>
- <a class="hirek" href="'.href('index.php?page=portal&f=portal&show=hirek').'">hírek</a>';
- echo '</div>';
- }
-
-?>
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 @@
-<?php
-/*
- MOVED!!
- - mayor-base/public/rpc/rpc
- - mayor-portal-mayor/rpc/controller/rpc
- ===========================================
-
- require_once('include/share/ssl/ssl.php');
-
- // MOVE
- function getRegisztraltIskolaAdat($nodeId) {
- if ($nodeId=='') {
- $q = "SELECT * FROM regisztracio";
- $r = db_query($q, array('modul'=>'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
--- a/mayor-orig/www/policy/public/portal/start.php
+++ /dev/null