aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/include/menu
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-base/www/include/menu')
-rw-r--r--mayor-orig/mayor-base/www/include/menu/base.php107
-rw-r--r--mayor-orig/mayor-base/www/include/menu/parent/hu_HU/base.php44
-rw-r--r--mayor-orig/mayor-base/www/include/menu/private/hu_HU/base.php67
-rw-r--r--mayor-orig/mayor-base/www/include/menu/public/hu_HU/base.php34
4 files changed, 252 insertions, 0 deletions
diff --git a/mayor-orig/mayor-base/www/include/menu/base.php b/mayor-orig/mayor-base/www/include/menu/base.php
new file mode 100644
index 00000000..c5a7d773
--- /dev/null
+++ b/mayor-orig/mayor-base/www/include/menu/base.php
@@ -0,0 +1,107 @@
+<?php
+#
+# MaYoR keretrendszer - konfigurációs file
+# (A telepítő által generálva)
+#
+
+// Base
+if (file_exists('include/menu/'._POLICY.'/'.$lang.'/base.php')) {
+ require('include/menu/'._POLICY.'/'.$lang.'/base.php');
+} else {
+ require('include/menu/'._POLICY.'/'._DEFAULT_LANG.'/base.php');
+}
+// Modules
+ $files = scandir('include/menu/'._POLICY.'/'.$lang);
+ $ff = array();
+ if (is_array($files)) foreach ($files as $file) {
+ list($name,$ext) = explode('.',$file);
+ if ($ext=='php' && substr($file,0,7)=='module-') $ff[] = $name;
+ }
+ sort($ff);
+ foreach ($ff as $name) {
+ require_once('include/menu/'._POLICY.'/'.$lang.'/'.$name.'.php');
+ }
+
+// Custom
+if (file_exists('../config/menu/'._POLICY.'/menu-'.$lang.'.php')) {
+ require('../config/menu/'._POLICY.'/menu-'.$lang.'.php');
+}
+
+/*
+ Egy menüpont (item, tétel) felépítése:
+ txt - a megjelenő szöveg
+ [url] - ha nincs: a $MENU alapján kiolvasható PSF-re mutat
+ - ha &-tel kezdődik: az lőzőhöz fúzzük
+ - ha http-vel kezdődik: a megadott URL-t vesszük egy az egyben (sessionID, lang, skin stb nélkül)
+ - egyéb esetben: az adott linket használjuk átadva a fontos paramétereket (sessionId, policy, lang, skin)
+ [get] - az utolsó esetben az átadandó paraméterek listája ()
+
+ A $MENU tömb felépítése:
+
+ $MENU = array(
+ $page1 => array( // Az első szinten a modulok menüpontjai
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ),
+ [$page2 => array( ... ), ...]
+ $item1 => array( // Az elsp szinten nem modulhoz tartozó tételek
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ),
+ [$item2 => array( ... ), ...]
+ 'modules' => array( // 'modules'-en belul csak page-ek vannak
+ $page1 => array(
+ 'sub' => array( // 'sub'-on belül csak sub-ok vannak
+ $sub1 => array(
+ $f1 => array(
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ),
+ [$f2 => array(
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ), ...]
+ ),
+ [$sub2 => arrray( ... ), ...]
+ ),
+ [$f1 => array(
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ), ...]
+ ),
+ [$page2 => array( ... ), ...]
+ )
+ )
+
+Kirajzolva:
+
+$M[$page1][0] | $M[$page1][1] ... | $M[$page2][0] | ... | $M[$item1][0] | $M[$item1][1] ...
+$M['modules'][$page][$f1][0] | $M['modules'][$page][$f1][1] ... | $M['modules'][$page][$f2][0] | $M['modules'][$page][$f1][0] ...
+$M['modules'][$page]['sub'][$sub][$f1][0] ... $M['modules'][$page]['sub'][$sub][$f2][0]
+
+Például:
+
+ $MENU['modules']['login'] = array(
+ 'sub' => array(
+
+ 'sub1' => array(
+ 'f11' => array(
+ array('txt' => 'Kakukk'),
+ array('txt' => 'Tojás', 'url'=>'http://')
+ )
+ ),
+ 'sub2' => array(
+ 'f21' => array(
+ array('txt' => 'Cica'),
+ )
+ )
+
+ ),
+ 'login' => array(
+ array('txt' => 'Szülői bejelentkezés','url' => '&toPolicy=parent'),
+ array('txt' => 'Bejelentkezés','url' => '&toPolicy=private'),
+ )
+ );
+*/
+
+?>
diff --git a/mayor-orig/mayor-base/www/include/menu/parent/hu_HU/base.php b/mayor-orig/mayor-base/www/include/menu/parent/hu_HU/base.php
new file mode 100644
index 00000000..9bb5a5db
--- /dev/null
+++ b/mayor-orig/mayor-base/www/include/menu/parent/hu_HU/base.php
@@ -0,0 +1,44 @@
+<?php
+
+ if (defined('_SESSIONID') and _SESSIONID != '') {
+ $MENU['logout'] = array(
+ array(
+ 'txt' => 'Kilépés',
+ 'url' => 'index.php?policy=public&page=session&f=logout',
+ 'get' => array('sessionID','skin','lang')
+ )
+ );
+ $MENU['session'] = array(
+ array(
+ 'txt' => 'Jelszóváltoztatás',
+ 'url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=parent',
+ 'get' => array('skin','lang','sessionID'),
+ )
+ );
+ }
+ $MENU['modules']['session'] = array(
+ // 'searchAccount' => array(array('txt' => 'Felhasználó keresése','url' => 'index.php?page=session&sub=search&f=searchAccount')),
+// 'searchGroup' => array(array('txt' => 'Csoport keresése','url' => 'index.php?page=session&sub=search&f=searchGroup')),
+ 'changeMyPassword' => array(array('txt' => 'Jelszóváltoztatás','url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=parent','get' => array('skin','lang','sessionID'))),
+// 'sub' => array(
+// 'search' => array(
+// 'searchAccount' => array(array('txt' => 'Felhasználó keresése')),
+// 'searchGroup' => array(array('txt' => 'Csoport keresése')),
+// )
+// )
+ );
+// $MENU['home'] = array(
+// array('txt' => 'Kezdőlap', 'url' => 'index.php')
+// );
+
+ global $NAV;
+ if ($page=='session') {
+ if (is_array($MENU['modules']['session'])) foreach ($MENU['modules']['session'] as $_sub => $M) {
+ $NAV[2][] = array('page' => 'session', 'f' => $_sub);
+ }
+ }
+ $NAV[1][] = array('page'=>'session','f'=>'changeMyPassword');
+ $NAV[1][] = array('page'=>'logout');
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-base/www/include/menu/private/hu_HU/base.php b/mayor-orig/mayor-base/www/include/menu/private/hu_HU/base.php
new file mode 100644
index 00000000..c872a4ca
--- /dev/null
+++ b/mayor-orig/mayor-base/www/include/menu/private/hu_HU/base.php
@@ -0,0 +1,67 @@
+<?php
+
+ if (defined('_SESSIONID') and _SESSIONID != '') {
+ $MENU['logout'] = array(
+ array(
+ 'txt' => 'Kilépés',
+ 'url' => 'index.php?policy=public&page=session&f=logout',
+ 'get' => array('sessionID','skin','lang')
+ )
+ );
+ $MENU['session'] = array(
+ array(
+ 'txt' => 'Felhasználók',
+ 'url' => 'index.php?page=session'
+// 'url' => 'index.php?page=session&sub=search&f=searchAccount'
+ )
+ );
+ }
+
+ if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+/* $MENU['admin'] = array(
+ array(
+ 'txt' => 'Admin',
+ 'url' => 'index.php?page=session&sub=admin&f=registration',
+ )
+ );
+*/
+ $MENU['modules']['session'] = array(
+ 'createAccount' => array(array('txt' => 'Új felhasználó')),
+ 'createGroup' => array(array('txt' => 'Új csoport')),
+ 'searchAccount' => array(array('txt' => 'Felhasználó keresése','url' => 'index.php?page=session&sub=search&f=searchAccount')),
+ 'searchGroup' => array(array('txt' => 'Csoport keresése','url' => 'index.php?page=session&sub=search&f=searchGroup')),
+ 'changeMyPassword' => array(array('txt' => 'Jelszóváltoztatás','url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=private','get' => array('skin','lang','sessionID'))),
+ 'sessionAdmin' => array(array('txt' => 'Munkamenetek')),
+ 'facebookConnect' => array(array('txt' => 'Facebook azonosítás')),
+ 'googleapi' => array(array('txt' => 'Google azonosítás')),
+ 'admin' => array(array('txt' => 'Szerver regisztráció','url'=>'index.php?page=session&sub=admin&f=registration')),
+ );
+ $MENU['modules']['session']['sub']['admin'] = array(
+ 'registration' => array(array('txt' => 'Végpont regisztráció a felhőbe','url'=>'index.php?page=session&sub=admin&f=registration')),
+ 'knownNodes' => array(array('txt' => 'Ismert végpontok','url'=>'index.php?page=session&sub=admin&f=knownNodes')),
+ );
+
+ } else {
+ $MENU['modules']['session'] = array(
+ 'searchAccount' => array(array('txt' => 'Felhasználó keresése','url' => 'index.php?page=session&sub=search&f=searchAccount')),
+ 'searchGroup' => array(array('txt' => 'Csoport keresése','url' => 'index.php?page=session&sub=search&f=searchGroup')),
+ 'changeMyPassword' => array(array('txt' => 'Jelszóváltoztatás','url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=private','get' => array('skin','lang','sessionID'))),
+ 'facebookConnect' => array(array('txt' => 'Facebook belépés')),
+ 'googleapi' => array(array('txt' => 'Google belépés')),
+ );
+ }
+
+ global $NAV;
+ if ($page=='session') {
+ if (is_array($MENU['modules']['session'])) foreach ($MENU['modules']['session'] as $_sub => $M) {
+ $NAV['2'][] = array('page' => 'session', 'f' => $_sub);
+ }
+ } else {
+/* if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+ $NAV[1][] = array('page'=>'session');
+ } else {
+ $NAV[1][] = array('page'=>'session','f'=>'changeMyPassword');
+ }
+*/
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-base/www/include/menu/public/hu_HU/base.php b/mayor-orig/mayor-base/www/include/menu/public/hu_HU/base.php
new file mode 100644
index 00000000..66a36701
--- /dev/null
+++ b/mayor-orig/mayor-base/www/include/menu/public/hu_HU/base.php
@@ -0,0 +1,34 @@
+<?php
+
+ $MENU = array(
+ 'home'=>array(),
+ 'session'=>array(),
+ 'naplo'=>array(),
+ 'portal'=>array(),
+ 'felveteli'=>array(),
+// 'forum'=>array(),
+// 'auth'=>array(),
+ );
+
+ if (defined('_SESSIONID') and _SESSIONID != '') {
+ $MENU['session'] = array(
+ array('txt' => 'Kilépés', 'url' => 'index.php?page=session&f=logout')
+ );
+ }
+ $MENU['home'] = array(
+ array('txt' => 'Kezdőlap', 'url' => 'index.php')
+ );
+
+ // $NAVI[] = array('txt' => 'Kezdőlap', 'url' => 'index.php', 'icon' => 'icon-home-alt');
+
+// $MENU['modules']['session']['createAccount'] = array(
+// array('txt' => 'Szülői regisztráció', 'url' => 'index.php?page=session&f=createAccount&toPolicy=parent'),
+// array('txt' => 'Fórum regisztráció', 'url' => 'index.php?page=session&f=createAccount&toPolicy=public'),
+// );
+ if ($f == 'changeMyPassword') {
+ $MENU['back'] = array(array('txt'=>'Vissza','url'=>'index.php?policy='.$toPolicy,'get'=>array('sessionID','skin','lang')));
+ $MENU['password'] = array(array('txt'=>'Jelszóváltoztatás','url'=>'index.php?page=password&sub=&f=changeMyPassword'));
+// $NAV[1][] = array('page'=>'back');
+ }
+
+?>