From e6988247360fa98b85915a38803d018dd353df00 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sun, 16 Dec 2018 16:35:17 +0100 Subject: Rev: 4412 --- .../classic/module-session/html/accountInfo.phtml | 65 +++++++++++++++++++++- 1 file changed, 62 insertions(+), 3 deletions(-) (limited to 'mayor-orig/www/skin/classic/module-session/html') diff --git a/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml b/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml index 35c992f0..cd1cafa9 100644 --- a/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml +++ b/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml @@ -25,6 +25,63 @@ formEnd(); } + function putEduroamForm($ADAT) { +return false; + global $eduroamDOMAINS; + if (__TANAR===true) { + $eduroamAFFILIATION = 'faculty'; + } elseif (__DIAK===true) { + $eduroamAFFILIATION = 'student'; + } else { + $eduroamAFFILIATION = 'staff'; + } + // info https://wiki.niif.hu/SulinetMassImport + + formBegin(); + if ($ADAT['eduroamAdat']['userAccount']!='') { + echo ''; + } else { + echo ''; + $ADAT['eduroamAdat']['eduroamUID'] = _USERACCOUNT; + $ADAT['eduroamAdat']['eduroamPASSWORD'] = @exec('pwgen'); // --TODO + } + echo ''; + echo ''; + echo ''; + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + + echo ''; + echo '
Eduroam
Eduroam felhasználói név:'.($ADAT['eduroamAdat']['eduroamUID']).'@'; + if ($ADAT['eduroamDOMAIN']!='') { + echo $ADAT['eduroamDOMAIN']; + } else { + echo ''; + } + echo '
Eduroam jelszó:'.($ADAT['eduroamAdat']['eduroamPASSWORD']).'
Eduroam viszony:'.($eduroamAFFILIATION).'
'; + formEnd(); + + } + function putAttr($name, $values, $anAttrDef, $toPolicy = _POLICY) { global $AUTH; @@ -35,7 +92,8 @@ elseif ($anAttrDef['type'] == 'radio') putRadioAttr($name, $values, $anAttrDef); elseif ($anAttrDef['type'] == 'timestamp') putTimestampAttr($name, $values, $anAttrDef); elseif ($anAttrDef['type'] == 'image') putImageAttr($name, $userAccount, $anAttrDef); - else echo 'Ismeretlen atribútum típus: '.$name.' ('.$anAttrDef[$name]['type'].')'; + elseif ($anAttrDef['type'] != '') echo '
ismeretlen attribútum típus: '.$name.' ('.($anAttrDef[$name]['type']).')
'; + else echo '
'.$name.': nem elérhető
'; } @@ -55,7 +113,6 @@ echo ''; echo ''."\n"; - } function putIntAttr($name, $values, $anAttrDef) { @@ -191,7 +248,9 @@ echo ''; echo ''; echo ''; - echo ''; + + if (_ACCESS_AS === _ADMIN_ACCESS) $_class = "asAdmin"; + echo '
'; echo ''; if ($toPolicy != _POLICY) echo ''."\n"; echo ''; -- cgit v1.2.3
'.$toPolicy.'
'.$userInfo['userCn'][0].'