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/private/naplo/admin/admin-pre.php | 5 - .../www/policy/private/naplo/admin/admin.php | 0 .../policy/private/naplo/admin/azonositok-pre.php | 133 ------- .../www/policy/private/naplo/admin/azonositok.php | 9 - .../policy/private/naplo/admin/checksql-pre.php | 22 -- .../www/policy/private/naplo/admin/checksql.php | 15 - .../policy/private/naplo/admin/csoportok-pre.php | 68 ---- .../www/policy/private/naplo/admin/csoportok.php | 14 - .../private/naplo/admin/fillhaladasi-pre.php | 30 -- .../policy/private/naplo/admin/fillhaladasi.php | 6 - .../www/policy/private/naplo/admin/import-pre.php | 49 --- .../www/policy/private/naplo/admin/import.php | 19 - .../www/policy/private/naplo/admin/install-pre.php | 47 --- .../www/policy/private/naplo/admin/install.php | 31 -- .../policy/private/naplo/admin/intezmenyek-pre.php | 79 ----- .../www/policy/private/naplo/admin/intezmenyek.php | 13 - .../naplo/admin/kretaHianyzasImport-pre.php | 105 ------ .../private/naplo/admin/kretaHianyzasImport.php | 9 - .../private/naplo/admin/rpcPrivilege-pre.php | 45 --- .../policy/private/naplo/admin/rpcPrivilege.php | 10 - .../private/naplo/admin/szemeszterek-pre.php | 80 ----- .../policy/private/naplo/admin/szemeszterek.php | 13 - .../private/naplo/admin/szuloiAzonositok-pre.php | 171 --------- .../private/naplo/admin/szuloiAzonositok.php | 9 - .../www/policy/private/naplo/admin/tanevek-pre.php | 151 -------- .../www/policy/private/naplo/admin/tanevek.php | 13 - .../policy/private/naplo/admin/tankorok-pre.php | 39 --- .../www/policy/private/naplo/admin/tankorok.php | 16 - .../naplo/bejegyzesek/bejegyzesTipus-pre.php | 59 ---- .../private/naplo/bejegyzesek/bejegyzesTipus.php | 9 - .../private/naplo/bejegyzesek/bejegyzesek-pre.php | 73 ---- .../private/naplo/bejegyzesek/bejegyzesek.php | 15 - .../policy/private/naplo/bejegyzesek/info-pre.php | 10 - .../www/policy/private/naplo/bejegyzesek/info.php | 5 - .../private/naplo/bejegyzesek/ujBejegyzes-pre.php | 60 ---- .../private/naplo/bejegyzesek/ujBejegyzes.php | 12 - mayor-orig/www/policy/private/naplo/error-pre.php | 0 mayor-orig/www/policy/private/naplo/error.php | 6 - .../private/naplo/ertekeles/ertekeles-pre.php | 205 ----------- .../policy/private/naplo/ertekeles/ertekeles.php | 9 - .../policy/private/naplo/ertekeles/export-pre.php | 33 -- .../www/policy/private/naplo/ertekeles/export.php | 27 -- .../naplo/ertekeles/kerdoivBetoltes-pre.php | 149 -------- .../private/naplo/ertekeles/kerdoivBetoltes.php | 10 - .../private/naplo/ertekeles/osszesites-pre.php | 97 ------ .../policy/private/naplo/ertekeles/osszesites.php | 5 - .../policy/private/naplo/esemeny/esemeny-pre.php | 7 - .../www/policy/private/naplo/esemeny/esemeny.php | 0 .../private/naplo/esemeny/esemenyDiak-pre.php | 83 ----- .../policy/private/naplo/esemeny/esemenyDiak.php | 8 - .../private/naplo/esemeny/jelentkezes-pre.php | 45 --- .../policy/private/naplo/esemeny/jelentkezes.php | 8 - .../policy/private/naplo/esemeny/ujEsemeny-pre.php | 91 ----- .../www/policy/private/naplo/esemeny/ujEsemeny.php | 10 - .../private/naplo/export/bizonyitvany-pre.php | 114 ------ .../policy/private/naplo/export/bizonyitvany.php | 9 - .../policy/private/naplo/export/diakExport-pre.php | 68 ---- .../www/policy/private/naplo/export/diakExport.php | 12 - .../naplo/export/kirBizonyitvanyExport-pre.php | 132 ------- .../private/naplo/export/kirBizonyitvanyExport.php | 0 .../www/policy/private/naplo/export/kreta-pre.php | 176 ---------- .../www/policy/private/naplo/export/kreta.php | 11 - .../www/policy/private/naplo/export/sulix-pre.php | 26 -- .../www/policy/private/naplo/export/sulix.php | 9 - .../naplo/export/tanarOsztalyOraszam-pre.php | 106 ------ .../private/naplo/export/tanarOsztalyOraszam.php | 10 - .../private/naplo/export/tantargyFelosztas-pre.php | 63 ---- .../private/naplo/export/tantargyFelosztas.php | 9 - .../private/naplo/haladasi/elmaradas-pre.php | 17 - .../policy/private/naplo/haladasi/elmaradas.php | 12 - .../private/naplo/haladasi/elszamolas-pre.php | 59 ---- .../policy/private/naplo/haladasi/elszamolas.php | 9 - .../policy/private/naplo/haladasi/haladasi-pre.php | 387 --------------------- .../www/policy/private/naplo/haladasi/haladasi.php | 15 - .../private/naplo/haladasi/helyettesites-pre.php | 195 ----------- .../private/naplo/haladasi/helyettesites.php | 46 --- .../policy/private/naplo/haladasi/hetes-pre.php | 260 -------------- .../www/policy/private/naplo/haladasi/hetes.php | 9 - .../private/naplo/haladasi/minuszora-pre.php | 75 ---- .../policy/private/naplo/haladasi/minuszora.php | 9 - .../www/policy/private/naplo/haladasi/ora-pre.php | 33 -- .../www/policy/private/naplo/haladasi/ora.php | 9 - .../private/naplo/haladasi/oralatogatas-pre.php | 102 ------ .../policy/private/naplo/haladasi/oralatogatas.php | 9 - .../private/naplo/haladasi/osszevonas-pre.php | 109 ------ .../policy/private/naplo/haladasi/osszevonas.php | 13 - .../policy/private/naplo/haladasi/pluszora-pre.php | 177 ---------- .../www/policy/private/naplo/haladasi/pluszora.php | 15 - .../private/naplo/haladasi/specialis-pre.php | 95 ----- .../policy/private/naplo/haladasi/specialis.php | 17 - .../www/policy/private/naplo/haladasi/stat-pre.php | 58 --- .../www/policy/private/naplo/haladasi/stat.php | 9 - .../policy/private/naplo/haladasi/tankor-pre.php | 29 -- .../www/policy/private/naplo/haladasi/tankor.php | 10 - .../private/naplo/haladasi/teremModositas-pre.php | 102 ------ .../private/naplo/haladasi/teremModositas.php | 9 - .../www/policy/private/naplo/hianyzas/diak-pre.php | 213 ------------ .../www/policy/private/naplo/hianyzas/diak.php | 10 - .../private/naplo/hianyzas/diakIgazolatlan-pre.php | 26 -- .../private/naplo/hianyzas/diakIgazolatlan.php | 9 - .../private/naplo/hianyzas/diakLista-pre.php | 101 ------ .../policy/private/naplo/hianyzas/diakLista.php | 10 - .../policy/private/naplo/hianyzas/hianyzas-pre.php | 7 - .../www/policy/private/naplo/hianyzas/hianyzas.php | 0 .../www/policy/private/naplo/hianyzas/info-pre.php | 32 -- .../www/policy/private/naplo/hianyzas/info.php | 5 - .../www/policy/private/naplo/hianyzas/nap-pre.php | 162 --------- .../www/policy/private/naplo/hianyzas/nap.php | 14 - .../policy/private/naplo/hianyzas/oktstat-pre.php | 33 -- .../www/policy/private/naplo/hianyzas/oktstat.php | 12 - .../www/policy/private/naplo/hianyzas/ora-pre.php | 166 --------- .../www/policy/private/naplo/hianyzas/ora.php | 10 - .../policy/private/naplo/hianyzas/osztaly-pre.php | 124 ------- .../www/policy/private/naplo/hianyzas/osztaly.php | 13 - .../private/naplo/hianyzas/osztalyNap-pre.php | 53 --- .../policy/private/naplo/hianyzas/osztalyNap.php | 10 - .../private/naplo/hibabejelento/admin-pre.php | 80 ----- .../policy/private/naplo/hibabejelento/admin.php | 16 - .../naplo/hibabejelento/hibabejelento-pre.php | 24 -- .../private/naplo/hibabejelento/hibabejelento.php | 10 - .../policy/private/naplo/hirnok/cronFutar-pre.php | 32 -- .../www/policy/private/naplo/hirnok/cronFutar.php | 43 --- .../www/policy/private/naplo/hirnok/hirnok-pre.php | 53 --- .../www/policy/private/naplo/hirnok/hirnok.php | 6 - .../naplo/hirnok/hirnokFeliratkozas-pre.php | 47 --- .../private/naplo/hirnok/hirnokFeliratkozas.php | 7 - .../policy/private/naplo/intezmeny/diak-pre.php | 261 -------------- .../www/policy/private/naplo/intezmeny/diak.php | 30 -- .../private/naplo/intezmeny/diakExport-pre.php | 56 --- .../policy/private/naplo/intezmeny/diakExport.php | 9 - .../private/naplo/intezmeny/diakFelmentes-pre.php | 325 ----------------- .../private/naplo/intezmeny/diakFelmentes.php | 13 - .../private/naplo/intezmeny/diakStatusz-pre.php | 117 ------- .../policy/private/naplo/intezmeny/diakStatusz.php | 10 - .../private/naplo/intezmeny/diakSzulo-pre.php | 98 ------ .../policy/private/naplo/intezmeny/diakSzulo.php | 13 - .../private/naplo/intezmeny/diakTankor-pre.php | 116 ------ .../policy/private/naplo/intezmeny/diakTankor.php | 13 - .../naplo/intezmeny/diakTankorJelentkezes-pre.php | 113 ------ .../naplo/intezmeny/diakTankorJelentkezes.php | 10 - .../private/naplo/intezmeny/felmentes-pre.php | 67 ---- .../policy/private/naplo/intezmeny/felmentes.php | 11 - .../private/naplo/intezmeny/intezmeny-pre.php | 5 - .../policy/private/naplo/intezmeny/intezmeny.php | 0 .../private/naplo/intezmeny/kepesitesek-pre.php | 92 ----- .../policy/private/naplo/intezmeny/kepesitesek.php | 10 - .../policy/private/naplo/intezmeny/kepzes-pre.php | 60 ---- .../www/policy/private/naplo/intezmeny/kepzes.php | 14 - .../private/naplo/intezmeny/kepzesOraterv-pre.php | 114 ------ .../private/naplo/intezmeny/kepzesOraterv.php | 12 - .../private/naplo/intezmeny/munkakozosseg-pre.php | 110 ------ .../private/naplo/intezmeny/munkakozosseg.php | 27 -- .../policy/private/naplo/intezmeny/osztaly-pre.php | 324 ----------------- .../www/policy/private/naplo/intezmeny/osztaly.php | 40 --- .../policy/private/naplo/intezmeny/szulo-pre.php | 15 - .../www/policy/private/naplo/intezmeny/szulo.php | 24 -- .../policy/private/naplo/intezmeny/tanar-pre.php | 108 ------ .../www/policy/private/naplo/intezmeny/tanar.php | 27 -- .../policy/private/naplo/intezmeny/tankor-pre.php | 219 ------------ .../www/policy/private/naplo/intezmeny/tankor.php | 20 -- .../private/naplo/intezmeny/tankorDiak-pre.php | 162 --------- .../policy/private/naplo/intezmeny/tankorDiak.php | 17 - .../private/naplo/intezmeny/tankorLetszam-pre.php | 101 ------ .../private/naplo/intezmeny/tankorLetszam.php | 8 - .../naplo/intezmeny/tankorSzemeszter-pre.php | 122 ------- .../private/naplo/intezmeny/tankorSzemeszter.php | 9 - .../private/naplo/intezmeny/tankorTanar-pre.php | 114 ------ .../policy/private/naplo/intezmeny/tankorTanar.php | 9 - .../intezmeny/tankorTanarHozzarendeles-pre.php | 64 ---- .../naplo/intezmeny/tankorTanarHozzarendeles.php | 10 - .../private/naplo/intezmeny/tantargyFelosztas.php | 9 - .../policy/private/naplo/intezmeny/terem-pre.php | 45 --- .../www/policy/private/naplo/intezmeny/terem.php | 13 - .../private/naplo/intezmeny/tovabbkepzes-pre.php | 112 ------ .../private/naplo/intezmeny/tovabbkepzes.php | 12 - .../policy/private/naplo/intezmeny/valtas-pre.php | 58 --- .../www/policy/private/naplo/intezmeny/valtas.php | 7 - .../policy/private/naplo/intezmeny/verseny-pre.php | 54 --- .../www/policy/private/naplo/intezmeny/verseny.php | 10 - .../policy/private/naplo/intezmeny/zaradek-pre.php | 76 ---- .../www/policy/private/naplo/intezmeny/zaradek.php | 11 - .../private/naplo/koszi/esemenyAdmin-pre.php | 83 ----- .../policy/private/naplo/koszi/esemenyAdmin.php | 21 -- .../www/policy/private/naplo/koszi/koszi-pre.php | 49 --- .../www/policy/private/naplo/koszi/koszi.php | 8 - .../policy/private/naplo/koszi/kosziAdmin-pre.php | 93 ----- .../www/policy/private/naplo/koszi/kosziAdmin.php | 10 - mayor-orig/www/policy/private/naplo/naplo-pre.php | 22 -- mayor-orig/www/policy/private/naplo/naplo.php | 15 - .../naplo/nyomtatas/beiskolazasiTerv-pre.php | 37 -- .../private/naplo/nyomtatas/beiskolazasiTerv.php | 6 - .../naplo/nyomtatas/bizonyitvanyNyomtatas-pre.php | 88 ----- .../naplo/nyomtatas/bizonyitvanyNyomtatas.php | 0 .../private/naplo/nyomtatas/diakAdatlap-pre.php | 135 ------- .../policy/private/naplo/nyomtatas/diakAdatlap.php | 8 - .../naplo/nyomtatas/diakTankorJelentkezes-pre.php | 71 ---- .../naplo/nyomtatas/diakTankorJelentkezes.php | 12 - .../private/naplo/nyomtatas/ertesito-pre.php | 101 ------ .../policy/private/naplo/nyomtatas/ertesito.php | 0 .../private/naplo/nyomtatas/haladasinaplo-pre.php | 212 ----------- .../private/naplo/nyomtatas/haladasinaplo.php | 6 - .../naplo/nyomtatas/helyettesitesinaplo-pre.php | 39 --- .../naplo/nyomtatas/helyettesitesinaplo.php | 9 - .../private/naplo/nyomtatas/nyomtatas-pre.php | 6 - .../policy/private/naplo/nyomtatas/nyomtatas.php | 0 .../naplo/nyomtatas/osztalyozonaplo-pre.php | 161 --------- .../private/naplo/nyomtatas/osztalyozonaplo.php | 9 - .../naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php | 105 ------ .../naplo/nyomtatas/sniEvVegiJegyzokonyv.php | 1 - .../naplo/nyomtatas/sniHaviJegyzokonyv-pre.php | 93 ----- .../private/naplo/nyomtatas/sniHaviJegyzokonyv.php | 1 - .../naplo/nyomtatas/szovegesErtekeles-pre.php | 78 ----- .../private/naplo/nyomtatas/szovegesErtekeles.php | 5 - .../naplo/nyomtatas/tankorNaplohozRendeles-pre.php | 58 --- .../naplo/nyomtatas/tankorNaplohozRendeles.php | 15 - .../private/naplo/nyomtatas/torzslap-pre.php | 165 --------- .../policy/private/naplo/nyomtatas/torzslap.php | 5 - .../naplo/nyomtatas/tovabbkepzesHatarozat-pre.php | 40 --- .../naplo/nyomtatas/tovabbkepzesHatarozat.php | 6 - .../private/naplo/nyomtatas/zaradekok-pre.php | 49 --- .../policy/private/naplo/nyomtatas/zaradekok.php | 0 .../policy/private/naplo/orarend/ascExport-pre.php | 110 ------ .../www/policy/private/naplo/orarend/ascExport.php | 11 - .../private/naplo/orarend/helyettesites-pre.php | 80 ----- .../policy/private/naplo/orarend/helyettesites.php | 9 - .../policy/private/naplo/orarend/orarend-pre.php | 312 ----------------- .../www/policy/private/naplo/orarend/orarend.php | 8 - .../private/naplo/orarend/orarendBetolto-pre.php | 80 ----- .../private/naplo/orarend/orarendBetolto.php | 14 - .../naplo/orarend/orarendEllenorzes-pre.php | 56 --- .../private/naplo/orarend/orarendEllenorzes.php | 9 - .../private/naplo/orarend/orarendModosito-pre.php | 287 --------------- .../private/naplo/orarend/orarendModosito.php | 14 - .../private/naplo/orarend/orarendTankor-pre.php | 56 --- .../policy/private/naplo/orarend/orarendTankor.php | 8 - .../naplo/orarend/orarendTeremModositas-pre.php | 86 ----- .../naplo/orarend/orarendTeremModositas.php | 9 - .../private/naplo/orarend/orarendUtkozes-pre.php | 77 ---- .../private/naplo/orarend/orarendUtkozes.php | 47 --- .../private/naplo/orarend/szabadTerem-pre.php | 35 -- .../policy/private/naplo/orarend/szabadTerem.php | 9 - .../private/naplo/orarend/tanarOrarend-pre.php | 49 --- .../policy/private/naplo/orarend/tanarOrarend.php | 9 - .../policy/private/naplo/orarend/termez-pre.php | 173 --------- .../www/policy/private/naplo/orarend/termez.php | 6 - .../private/naplo/osztalyozo/bizelomenetel-pre.php | 7 - .../private/naplo/osztalyozo/bizelomenetel.php | 3 - .../private/naplo/osztalyozo/bizonyitvany-pre.php | 166 --------- .../private/naplo/osztalyozo/bizonyitvany.php | 16 - .../policy/private/naplo/osztalyozo/diak-pre.php | 100 ------ .../www/policy/private/naplo/osztalyozo/diak.php | 12 - .../private/naplo/osztalyozo/dolgozat-pre.php | 168 --------- .../policy/private/naplo/osztalyozo/dolgozat.php | 16 - .../policy/private/naplo/osztalyozo/jegy-pre.php | 120 ------- .../www/policy/private/naplo/osztalyozo/jegy.php | 12 - .../private/naplo/osztalyozo/osztalyozo-pre.php | 6 - .../policy/private/naplo/osztalyozo/osztalyozo.php | 0 .../policy/private/naplo/osztalyozo/stat-pre.php | 319 ----------------- .../www/policy/private/naplo/osztalyozo/stat.php | 15 - .../naplo/osztalyozo/szempontRendszer-pre.php | 51 --- .../private/naplo/osztalyozo/szempontRendszer.php | 16 - .../naplo/osztalyozo/szovegesErtekeles-pre.php | 258 -------------- .../private/naplo/osztalyozo/szovegesErtekeles.php | 15 - .../policy/private/naplo/osztalyozo/tankor-pre.php | 332 ------------------ .../www/policy/private/naplo/osztalyozo/tankor.php | 17 - .../private/naplo/osztalyozo/targySorrend-pre.php | 47 --- .../private/naplo/osztalyozo/targySorrend.php | 8 - .../policy/private/naplo/osztalyozo/vizsga-pre.php | 95 ----- .../www/policy/private/naplo/osztalyozo/vizsga.php | 11 - .../naplo/osztalyozo/vizsgaJelentkezes-pre.php | 37 -- .../private/naplo/osztalyozo/vizsgaJelentkezes.php | 9 - .../private/naplo/osztalyozo/zaroJegyCheck-pre.php | 82 ----- .../private/naplo/osztalyozo/zaroJegyCheck.php | 4 - .../policy/private/naplo/sni/diakAllapot-pre.php | 127 ------- .../www/policy/private/naplo/sni/diakAllapot.php | 8 - .../private/naplo/sni/fejlesztesiTerv-pre.php | 110 ------ .../policy/private/naplo/sni/fejlesztesiTerv.php | 9 - .../www/policy/private/naplo/sni/sni-pre.php | 5 - mayor-orig/www/policy/private/naplo/sni/sni.php | 0 .../naplo/sni/tantargyiFeljegyzesek-pre.php | 113 ------ .../private/naplo/sni/tantargyiFeljegyzesek.php | 10 - .../private/naplo/stat/lemorzsolodas-pre.php | 38 -- .../policy/private/naplo/stat/lemorzsolodas.php | 8 - .../www/policy/private/naplo/stat/letszam-pre.php | 88 ----- .../www/policy/private/naplo/stat/letszam.php | 8 - .../private/naplo/stat/tantargyFelosztas-pre.php | 127 ------- .../private/naplo/stat/tantargyFelosztas.php | 10 - .../www/policy/private/naplo/szulinap-pre.php | 15 - mayor-orig/www/policy/private/naplo/szulinap.php | 44 --- .../policy/private/naplo/tanev/checkStatus-pre.php | 7 - .../www/policy/private/naplo/tanev/checkStatus.php | 6 - .../policy/private/naplo/tanev/diakTanarai-pre.php | 54 --- .../www/policy/private/naplo/tanev/diakTanarai.php | 11 - .../policy/private/naplo/tanev/fogadoOra-pre.php | 142 -------- .../www/policy/private/naplo/tanev/fogadoOra.php | 26 -- .../policy/private/naplo/tanev/munkaterv-pre.php | 102 ------ .../www/policy/private/naplo/tanev/munkaterv.php | 26 -- .../www/policy/private/naplo/tanev/tanev-pre.php | 5 - .../www/policy/private/naplo/tanev/tanev.php | 0 .../policy/private/naplo/tanev/tankorBlokk-pre.php | 114 ------ .../www/policy/private/naplo/tanev/tankorBlokk.php | 14 - .../private/naplo/tanev/tankorCsoport-pre.php | 132 ------- .../policy/private/naplo/tanev/tankorCsoport.php | 11 - .../policy/private/naplo/tanev/targyBontas-pre.php | 175 ---------- .../www/policy/private/naplo/tanev/targyBontas.php | 19 - .../private/naplo/tanev/targyOraszam-pre.php | 10 - .../policy/private/naplo/tanev/targyOraszam.php | 7 - .../naplo/tanev/vegzosOrarendLezaras-pre.php | 72 ---- .../private/naplo/tanev/vegzosOrarendLezaras.php | 9 - .../naplo/tanev/vegzosTankorLezaras-pre.php | 77 ---- .../private/naplo/tanev/vegzosTankorLezaras.php | 9 - .../policy/private/naplo/tanmenet/tanmenet-pre.php | 5 - .../www/policy/private/naplo/tanmenet/tanmenet.php | 0 .../private/naplo/tanmenet/tanmenetInfo-pre.php | 35 -- .../policy/private/naplo/tanmenet/tanmenetInfo.php | 15 - .../naplo/tanmenet/tanmenetJovahagyas-pre.php | 88 ----- .../private/naplo/tanmenet/tanmenetJovahagyas.php | 9 - .../private/naplo/tanmenet/tanmenetLeadas-pre.php | 51 --- .../private/naplo/tanmenet/tanmenetLeadas.php | 9 - .../naplo/tanmenet/tanmenetModositas-pre.php | 83 ----- .../private/naplo/tanmenet/tanmenetModositas.php | 9 - .../private/naplo/tanmenet/tanmenetTankor-pre.php | 95 ----- .../private/naplo/tanmenet/tanmenetTankor.php | 11 - .../private/naplo/tanmenet/ujTanmenet-pre.php | 72 ---- .../policy/private/naplo/tanmenet/ujTanmenet.php | 8 - mayor-orig/www/policy/private/naplo/tools/ajax.php | 7 - .../www/policy/private/naplo/tools/ajaxExample.php | 29 -- .../private/naplo/tools/dolgozatAdat-pre.php | 38 -- .../policy/private/naplo/tools/getDiakAdat-pre.php | 61 ---- .../policy/private/naplo/tools/getJegyAdat-pre.php | 36 -- .../policy/private/naplo/tools/getOraAdat-pre.php | 94 ----- .../private/naplo/tools/getOsztalyAdat-pre.php | 39 --- .../private/naplo/tools/getSzuloAdat-pre.php | 27 -- .../private/naplo/tools/getTanarAdat-pre.php | 56 --- .../private/naplo/tools/getTankorAdat-pre.php | 38 -- .../private/naplo/tools/getZaroJegyAdat-pre.php | 41 --- .../private/naplo/tools/intezmenyNev-pre.php | 10 - .../policy/private/naplo/tools/intezmenyNev.php | 8 - .../policy/private/naplo/tools/jegyzetAdat-pre.php | 165 --------- .../www/policy/private/naplo/tools/kereso-pre.php | 25 -- .../www/policy/private/naplo/tools/napAdat-pre.php | 23 -- mayor-orig/www/policy/private/naplo/tools/oid.php | 1 - .../www/policy/private/naplo/tools/oraAdat-pre.php | 2 - .../www/policy/private/naplo/tools/tankor-pre.php | 39 --- .../policy/private/naplo/tools/tankorLista-pre.php | 66 ---- .../policy/private/naplo/tools/tankorMod-pre.php | 40 --- .../policy/private/naplo/tools/ujTankor-pre.php | 114 ------ .../www/policy/private/naplo/uzeno/postas-pre.php | 89 ----- .../www/policy/private/naplo/uzeno/postas.php | 5 - .../www/policy/private/naplo/uzeno/uzeno-pre.php | 187 ---------- .../www/policy/private/naplo/uzeno/uzeno.php | 12 - .../policy/private/password/changePassword-pre.php | 60 ---- .../www/policy/private/password/changePassword.php | 9 - .../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 | 8 - .../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 | 41 --- .../www/policy/private/portal/portal/portal.php | 14 - .../private/portal/portal/portal_demo.classic.php | 59 ---- .../private/portal/portal/portal_demo.pda.php | 3 - mayor-orig/www/policy/private/portal/start.php | 0 .../www/policy/private/session/accountInfo-pre.php | 75 ---- .../www/policy/private/session/accountInfo.php | 19 - .../private/session/admin/knownNodes-pre.php | 39 --- .../policy/private/session/admin/knownNodes.php | 10 - .../private/session/admin/registration-pre.php | 123 ------- .../policy/private/session/admin/registration.php | 16 - .../policy/private/session/createAccount-pre.php | 110 ------ .../www/policy/private/session/createAccount.php | 12 - .../www/policy/private/session/createGroup-pre.php | 49 --- .../www/policy/private/session/createGroup.php | 12 - .../www/policy/private/session/download-pre.php | 66 ---- mayor-orig/www/policy/private/session/download.php | 9 - .../www/policy/private/session/eduroam-pre.php | 5 - mayor-orig/www/policy/private/session/eduroam.php | 0 .../policy/private/session/facebookConnect-pre.php | 91 ----- .../www/policy/private/session/facebookConnect.php | 7 - .../www/policy/private/session/googleapi-pre.php | 100 ------ .../www/policy/private/session/googleapi.php | 28 -- .../www/policy/private/session/groupInfo-pre.php | 43 --- .../www/policy/private/session/groupInfo.php | 12 - .../private/session/search/searchAccount-pre.php | 29 -- .../private/session/search/searchAccount.php | 16 - .../private/session/search/searchGroup-pre.php | 25 -- .../policy/private/session/search/searchGroup.php | 16 - .../www/policy/private/session/session-pre.php | 5 - mayor-orig/www/policy/private/session/session.php | 0 .../policy/private/session/sessionAdmin-pre.php | 24 -- .../www/policy/private/session/sessionAdmin.php | 9 - 396 files changed, 19756 deletions(-) delete mode 100644 mayor-orig/www/policy/private/naplo/admin/admin-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/admin.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/azonositok.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/checksql-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/checksql.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/csoportok-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/csoportok.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/fillhaladasi-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/fillhaladasi.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/import-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/import.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/install-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/install.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/intezmenyek.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/szemeszterek.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/tanevek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/tanevek.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/tankorok-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/admin/tankorok.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/info-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/info.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes.php delete mode 100644 mayor-orig/www/policy/private/naplo/error-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/error.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/ertekeles-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/ertekeles.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/export-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/export.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/osszesites-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/ertekeles/osszesites.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/esemeny-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/esemeny.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/jelentkezes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/jelentkezes.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/bizonyitvany-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/bizonyitvany.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/diakExport-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/diakExport.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/kreta-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/kreta.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/sulix-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/sulix.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/tantargyFelosztas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/export/tantargyFelosztas.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/elmaradas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/elmaradas.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/elszamolas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/elszamolas.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/haladasi-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/haladasi.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/helyettesites.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/hetes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/hetes.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/minuszora-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/minuszora.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/ora-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/ora.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/oralatogatas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/oralatogatas.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/osszevonas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/osszevonas.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/pluszora-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/pluszora.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/specialis-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/specialis.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/stat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/stat.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/tankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/tankor.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/teremModositas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/haladasi/teremModositas.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/diak-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/diak.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/diakLista-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/diakLista.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/hianyzas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/hianyzas.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/info-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/info.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/nap-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/nap.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/oktstat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/oktstat.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/ora-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/ora.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/osztaly-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/osztaly.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap.php delete mode 100644 mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hibabejelento/admin.php delete mode 100644 mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php delete mode 100644 mayor-orig/www/policy/private/naplo/hirnok/cronFutar-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hirnok/cronFutar.php delete mode 100644 mayor-orig/www/policy/private/naplo/hirnok/hirnok-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hirnok/hirnok.php delete mode 100644 mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diak-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diak.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakExport-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakExport.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakTankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakTankor.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/felmentes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/felmentes.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/intezmeny-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/intezmeny.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/kepzes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/kepzes.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/osztaly-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/osztaly.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/szulo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/szulo.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tanar-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tanar.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankor.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tantargyFelosztas.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/terem-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/terem.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/valtas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/valtas.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/verseny-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/verseny.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/zaradek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/intezmeny/zaradek.php delete mode 100644 mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin.php delete mode 100644 mayor-orig/www/policy/private/naplo/koszi/koszi-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/koszi/koszi.php delete mode 100644 mayor-orig/www/policy/private/naplo/koszi/kosziAdmin-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/koszi/kosziAdmin.php delete mode 100644 mayor-orig/www/policy/private/naplo/naplo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/naplo.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/ertesito-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/ertesito.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/ascExport.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/helyettesites.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarend.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendBetolto-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendBetolto.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendModosito-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendModosito.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendTankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendTankor.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/szabadTerem-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/szabadTerem.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/tanarOrarend-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/tanarOrarend.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/termez-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/orarend/termez.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/diak-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/diak.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/jegy-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/jegy.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/stat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/stat.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/tankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/tankor.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/vizsga-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/vizsga.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/diakAllapot-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/diakAllapot.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/sni-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/sni.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek.php delete mode 100644 mayor-orig/www/policy/private/naplo/stat/lemorzsolodas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/stat/lemorzsolodas.php delete mode 100644 mayor-orig/www/policy/private/naplo/stat/letszam-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/stat/letszam.php delete mode 100644 mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php delete mode 100644 mayor-orig/www/policy/private/naplo/szulinap-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/szulinap.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/checkStatus.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/munkaterv.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/tanev.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/targyBontas.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/ajax.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/ajaxExample.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/kereso-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/oid.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/tankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/uzeno/postas.php delete mode 100644 mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php delete mode 100644 mayor-orig/www/policy/private/naplo/uzeno/uzeno.php delete mode 100644 mayor-orig/www/policy/private/password/changePassword-pre.php delete mode 100644 mayor-orig/www/policy/private/password/changePassword.php delete mode 100644 mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php delete mode 100644 mayor-orig/www/policy/private/portal/hirek/egyhir.php delete mode 100644 mayor-orig/www/policy/private/portal/hirek/hirek-pre.php delete mode 100644 mayor-orig/www/policy/private/portal/hirek/hirek.php delete mode 100644 mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php delete mode 100644 mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php delete mode 100644 mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php delete mode 100644 mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php delete mode 100644 mayor-orig/www/policy/private/portal/portal-pre.php delete mode 100644 mayor-orig/www/policy/private/portal/portal.php delete mode 100644 mayor-orig/www/policy/private/portal/portal/portal-pre.php delete mode 100644 mayor-orig/www/policy/private/portal/portal/portal.php delete mode 100644 mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php delete mode 100644 mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php delete mode 100644 mayor-orig/www/policy/private/portal/start.php delete mode 100644 mayor-orig/www/policy/private/session/accountInfo-pre.php delete mode 100644 mayor-orig/www/policy/private/session/accountInfo.php delete mode 100644 mayor-orig/www/policy/private/session/admin/knownNodes-pre.php delete mode 100644 mayor-orig/www/policy/private/session/admin/knownNodes.php delete mode 100644 mayor-orig/www/policy/private/session/admin/registration-pre.php delete mode 100644 mayor-orig/www/policy/private/session/admin/registration.php delete mode 100644 mayor-orig/www/policy/private/session/createAccount-pre.php delete mode 100644 mayor-orig/www/policy/private/session/createAccount.php delete mode 100644 mayor-orig/www/policy/private/session/createGroup-pre.php delete mode 100644 mayor-orig/www/policy/private/session/createGroup.php delete mode 100644 mayor-orig/www/policy/private/session/download-pre.php delete mode 100644 mayor-orig/www/policy/private/session/download.php delete mode 100644 mayor-orig/www/policy/private/session/eduroam-pre.php delete mode 100644 mayor-orig/www/policy/private/session/eduroam.php delete mode 100644 mayor-orig/www/policy/private/session/facebookConnect-pre.php delete mode 100644 mayor-orig/www/policy/private/session/facebookConnect.php delete mode 100644 mayor-orig/www/policy/private/session/googleapi-pre.php delete mode 100644 mayor-orig/www/policy/private/session/googleapi.php delete mode 100644 mayor-orig/www/policy/private/session/groupInfo-pre.php delete mode 100644 mayor-orig/www/policy/private/session/groupInfo.php delete mode 100644 mayor-orig/www/policy/private/session/search/searchAccount-pre.php delete mode 100644 mayor-orig/www/policy/private/session/search/searchAccount.php delete mode 100644 mayor-orig/www/policy/private/session/search/searchGroup-pre.php delete mode 100644 mayor-orig/www/policy/private/session/search/searchGroup.php delete mode 100644 mayor-orig/www/policy/private/session/session-pre.php delete mode 100644 mayor-orig/www/policy/private/session/session.php delete mode 100644 mayor-orig/www/policy/private/session/sessionAdmin-pre.php delete mode 100644 mayor-orig/www/policy/private/session/sessionAdmin.php (limited to 'mayor-orig/www/policy/private') diff --git a/mayor-orig/www/policy/private/naplo/admin/admin-pre.php b/mayor-orig/www/policy/private/naplo/admin/admin-pre.php deleted file mode 100644 index 5cb70fd2..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/admin-pre.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/admin/admin.php b/mayor-orig/www/policy/private/naplo/admin/admin.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php b/mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php deleted file mode 100644 index 19622167..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php +++ /dev/null @@ -1,133 +0,0 @@ - 1) { - $osztalyTagok[$i]['userAccounts'] = array(); - for ($j = 0; $j < $ret['count']; $j++) $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0]; - $_SESSION['alert'][] = "message:wrong_data:több account egy oId-hoz:oId=$oId:userAccount=".implode(',', $osztalyTagok[$i]['userAccounts']); - } - if (!isset($osztalyTagok[$i]['userAccount']) && count($osztalyTagok[$i]['userAccounts']) == 0) { - // Ha az oId alapján nem találtunk, akkor tovább keresünk név alapján - $ret = searchAccount('userCn', $osztalyTagok[$i]['diakNev'], array('userAccount','studyId'), 'private'); - if ($ret['count'] > 0) { - $osztalyTagok[$i]['userAccounts'] = $osztalyTagok[$i]['studyIds'] = array(); - for ($j = 0; $j < $ret['count']; $j++) { - $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0]; - $osztalyTagok[$i]['studyIds'][] = $ret[$j]['studyId'][0]; - } - } - // Javasolt azonosító generálása - $csNev = $osztalyTagok[$i]['viseltCsaladinev']; - $pos = mb_strpos($csNev, ' ', 0, 'UTF-8'); - if ($pos > 0 && mb_substr($csNev, $pos-2, 2, 'UTF-8') == 'né') { - $csNev = mb_substr($csNev,$pos+1,strlen($csNev)-$pos-1,'UTF-8'); - $pos = mb_strpos($csNev, ' ', 0, 'UTF-8'); - } - if ($pos > 0) $csNev = mb_substr($csNev, 0, $pos, 'UTF-8'); - $uNev = $osztalyTagok[$i]['viseltUtonev']; - $pos = mb_strpos($uNev, ' ', 0, 'UTF-8'); - if ($pos > 0) $uNev = mb_substr($uNev, 0, $pos, 'UTF-8'); - if ($AUTH[_POLICY]['unixStyleAccounts']) { - $csNev = ekezettelen(kisbetus($csNev)); - $uNev = ekezettelen(kisbetus($uNev)); - $osztalyTagok[$i]['generatedAccount'] = substr($csNev.$uNev[0], 0, 8); - } else { - $pos = mb_strpos($csNev, ' ', 0, 'UTF-8'); - $osztalyTagok[$i]['generatedAccount'] = $csNev.'.'.$uNev; - } - } - } - } - } - - if ($action == 'createAzonosito') { - $userPassword = readVariable($_POST['userPassword'], 'sql', null); - $CONTAINER = $AUTH['private'][ $AUTH['private']['backend'].'Containers']; - $container = readVariable($_POST['container'], 'enum', null, $CONTAINER); - if (is_array($CONTAINER) && count($CONTAINER) > 0 && !isset($container)) { - $_SESSION['alert'][] = 'message:empty_fields:container'; - } else { - define('__JELSZOGENERALAS', $userPassword == ''); - - if (is_array($_POST['userAccount'])) for ($i = 0; $i < count($_POST['userAccount']); $i++) { - $oId = readVariable($_POST['oId'][$i], 'number', null); - $userAccount = readVariable($_POST['userAccount'][$i], 'sql', null); - if (isset($oId) && isset($userAccount)) { - if (__JELSZOGENERALAS === true) { - $userPassword = $Tagok[$oId]['userPassword'] = sprintf("%u", crc32($Tagok[$oId]['viseltCsaladinev'])); - } - $userCn = $Tagok[$oId]['diakNev']; - createAccount($userCn, $userAccount, $userPassword, 'private', - $SET = array('category' => 'diák', 'container' => $container, 'groups' => '', 'policyAttrs' => array('studyId' => $oId)) - ); - // a settings táblában felvesszük, hogy melyik intézményhez van rendelve (ez persze nem korlátoz, csak egy alapértelmezés - $q = "DELETE FROM settings WHERE userAccount='%s' AND policy='%s'"; - db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array($userAccount, 'private'))); - $q = "INSERT INTO settings (userAccount,policy,intezmeny) VALUES ('%s','%s','%s')"; - db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array($userAccount, 'private', __INTEZMENY))); - } - } - } - - // Újraolvasás - $osztalyTagok = getOsztalyNevsorEsOid($osztalyId); - for ($i = 0; $i < count($osztalyTagok); $i++) { - $oId = $osztalyTagok[$i]['oId']; - $osztalyTagok[$i]['userAccounts'] = array(); - if ($oId != '') { - $ret = searchAccount('studyId', $oId, array('userAccount'), 'private'); - if ($ret['count'] == 1) { - $osztalyTagok[$i]['userAccount'] = $ret[0]['userAccount'][0]; - } elseif ($ret['count'] > 1) { - $osztalyTagok[$i]['userAccounts'] = array(); - for ($j = 0; $j < $ret['count']; $j++) $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0]; - } - if (!isset($osztalyTagok[$i]) && !is_array($osztalyTagok[$i]['userAccounts'])) { - // Ha az oId alapján nem találtunk, akkor tovább keresünk név alapján - $ret = searchAccount('userCn', $osztalyTagok[$i]['diakNev'], array('userAccount','studyId'), 'private'); - if ($ret['count'] > 0) { - $osztalyTagok[$i]['userAccounts'] = $osztalyTagok[$i]['studyIds'] = array(); - for ($j = 0; $j < $ret['count']; $j++) { - $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0]; - $osztalyTagok[$i]['studyIds'][] = $ret[$j]['studyId'][0]; - } - } - } - } - } // for - újraolvasás - } - - $TOOL['tanevSelect'] = array('tipus' => 'cella','tanev' => $tanev, 'paramName' => 'tanev', 'post' => array('osztalyId')); - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('igDt', 'tanev')); - getToolParameters(); - - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/admin/azonositok.php b/mayor-orig/www/policy/private/naplo/admin/azonositok.php deleted file mode 100644 index 50df705e..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/azonositok.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/admin/checksql-pre.php b/mayor-orig/www/policy/private/naplo/admin/checksql-pre.php deleted file mode 100644 index e952a01b..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/checksql-pre.php +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/admin/checksql.php b/mayor-orig/www/policy/private/naplo/admin/checksql.php deleted file mode 100644 index 7ad8e3b9..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/checksql.php +++ /dev/null @@ -1,15 +0,0 @@ -0) { - echo '
'.$i.' | |
---|---|
'; - echo htmlDiff($Q_ERR[$i]['inDb'],$Q_ERR[$i]['inFile']); //filenamenormal checked - echo ' | '; - echo ' |
Még nem hoztál létre naploadmin
csoportot!
Hozd létre a Felhasználói adatok/Új csoport
menüpont alatt!
Létre kell hoznunk a naplo modul alap adatbázisát!
'; - echo 'Ehhez szükség lesz a MySQL root jelszó megadására.
'; - echo ''; // --TODO - } else { - echo 'Úgy tűnik a modul telepítése kész. Az base/config.php
-ben módosítsuk a __NAPLO_INSTALLED
értékét true-ra és kész.
Már telepítve!
'; -} -?> diff --git a/mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php b/mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php deleted file mode 100644 index e2dcc43d..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php +++ /dev/null @@ -1,79 +0,0 @@ -'cella', 'action' => 'intezmenyValasztas', 'post'=>array()); - getToolParameters(); - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/admin/intezmenyek.php b/mayor-orig/www/policy/private/naplo/admin/intezmenyek.php deleted file mode 100644 index 22c35361..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/intezmenyek.php +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport-pre.php b/mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport-pre.php deleted file mode 100644 index 8f4cb909..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport-pre.php +++ /dev/null @@ -1,105 +0,0 @@ - 'helyettesítés', - 'Szakszerű felügyelet' => 'helyettesítés', - 'Óraösszevonás' => 'összevonás', - 'Nem szakszerű helyettesítés (felügyelet)' => 'felügyelet' - ); - -//$KRETA2MAYOR['tanar'] = reindex(getTanarok(array('összes'=>true,'extraAttrs'=>'kretaNev')),array('kretaNev')); -//dump($KRETA2MAYOR['tanar']); - - $lr_intezmeny = db_connect('naplo_intezmeny'); - $lr_naplo = db_connect('naplo'); - - $q = "select getNev(diakId,'diak') COLLATE utf8_hungarian_ci AS diakNev,diakId,statusz,oId from ".__INTEZMENYDBNEV.".diak WHERE statusz!='jogviszonya lezárva' ORDER BY diakNev"; - $v = array(); - $DIAKNEV2diakId = db_query($q, array('debug'=>false,'modul'=>'naplo','values'=>$v,'result'=>'multiassoc','keyfield'=>'diakNev'),$lr_naplo); - $file = fopen("/tmp/hianyzasKreta.tsv","r"); - if ($file!==false) { - $q = "TRUNCATE TABLE hianyzasKreta"; - db_query($q, array('fv'=>'kretaHianyzasImport'),$lr_naplo) or die(); - } - while(! feof($file)) { - $line = chop(trim(fgets($file))); - $record = explode("\t",$line); -// dump($record); -/* -kretaHianyzasImportarray (size=10) - 0 => string 'Bacsó Dániel József' (length=22) - 1 => string '72437828706' (length=11) - 2 => string '2018-12-17' (length=10) - 3 => string '2' (length=1) - 4 => string '08.A' (length=4) - 5 => string 'ének-zene' (length=10) - 6 => string 'Hiányzás' (length=10) - 7 => string '' (length=0) - 8 => string 'Igen' (length=4) - 9 => string 'Orvosi igazolás' (length=16) -*/ - $D = array(); - $D['diakNev'] = $record[0]; - if (count($DIAKNEV2diakId[$D['diakNev']])!=1) { - $_SESSION['alert'][] = 'info:dup'.serialize($D['diakNev']).':'.serialize($DIAKNEV2diakId[$D['diakNev']]); - $ADAT['hiba'][] = $D; - continue;; - } else { - $D['diakId'] = $DIAKNEV2diakId[$D['diakNev']][0]['diakId']; - $D['oId'] = $DIAKNEV2diakId[$D['diakNev']][0]['oId']; - } - $_tmp = explode('/',$record[1]); - $D['dt'] = $_tmp[2] .'-'. $_tmp[0] .'-'. $_tmp[1]; - $D['ora'] = intval($record[2]); - $D['kretaTankorNev'] = $record[3]; - $D['kretaTantargyNev'] = $record[4]; - $D['tipus'] = kisbetus($record[5]); - $D['perc'] = ($record[6]<=0) ? '':intval($record[6]); - $D['kretaStatusz'] = $record[7]=='Igen' ? 'igen':'nem'; - $D['status'] = $record[7]=='Igen' ? 'igazolt':'igazolatlan'; - $D['kretaIgazolas'] = $record[8]; -// Itt kitalálható lenne pár dolog, egyelőre hagyjuk - $D['oraAdat'] = getDiakOra($D['diakId'],$D['dt'],$D['ora'],$lr_intezmeny,$lr_naplo); - if ($D['oraAdat']['oraId']!='') { - // $ADAT['betoltendo'][] = ($D); -// $ADAT['KRETA2MAYOR']['targyNev'][$D['kretaTankorNev'].':'.$D['kretaTantargyNev']][] = $D['oraAdat']['tankorNev']; - $D['tankorId'] = $D['oraAdat']['tankorId']; - } else $ADAT['hibaCounter']++; - - $q = "INSERT INTO hianyzasKreta (diakId,tankorId,kretaDiakNev,oId,dt,ora,kretaTankorNev,kretaTantargyNev,tipus,perc,kretaStatusz,statusz,kretaIgazolas) - VALUES (%u, IF(%u=0,NULL,%u),'%s','%s','%s',%u,'%s','%s','%s',%u,'%s','%s','%s')"; - $v = array($D['diakId'], - $D['tankorId'], - $D['tankorId'], - $D['kretaDiakNev'], - $D['oId'], - $D['dt'], - $D['ora'], - $D['kretaTankorNev'], - $D['kretaTargyNev'], - $D['tipus'], - $D['perc'], - $D['kretaStatusz'], - $D['statusz'], - $D['kretaIgazolas']); - db_query($q, array('fv'=>'kretaHianyzasImport','values'=>$v),$lr_naplo); - } - - fclose($file); - db_close($lr); - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport.php b/mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport.php deleted file mode 100644 index 9d55012d..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/kretaHianyzasImport.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php b/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php deleted file mode 100644 index d33879c1..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php +++ /dev/null @@ -1,45 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php b/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php deleted file mode 100644 index 1f928d21..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php b/mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php deleted file mode 100644 index 6edd8674..00000000 --- a/mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php +++ /dev/null @@ -1,80 +0,0 @@ -= _TIME - ) { - $szemeszterId = $_POST['szemeszterId'] = $_TANEV['szemeszter'][$i]['szemeszterId']; - $tanev = $_TANEV['szemeszter'][$i]['tanev']; - $szemeszter = $_TANEV['szemeszter'][$i]['szemeszter']; - break; - } - } - } else { - // szándékosan nincs szemeszter beállítva - } - if (isset($szemeszterId)) $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId); - $ADAT['idoszakTipusok'] = getIdoszakTipusok(); - - // -------- action --------- // - if ($action != '') { - if ($action == 'idoszakModositas') { - for ($i = 0; $i < count($_POST['idoszakId']); $i++) - $Mod[ $_POST['idoszakId'][$i] ] = array('tolDt' => $_POST['tolDt'][$i], 'igDt' => $_POST['igDt'][$i]); - for ($i = 0; $i < count($_POST['torlendo']); $i++) $Mod[ $_POST['torlendo'][$i] ]['torlendo'] = true; - foreach ($ADAT['szemeszterAdat']['idoszak'] as $i => $iAdat) { - $iId = $iAdat['idoszakId']; - if ($Mod[$iId]['torlendo'] == true) { -// echo 'Torol: '.$iId.''; var_dump($ADAT['teremIds']); echo ''; - - teremAdatModositas($D,($action=='ujTerem')); - - unset($ADAT['teremId']); - } - - $ADAT['teremAdat'] = getTermek(array('result' => 'assoc', 'keyfield' => 'teremId', 'telephelyId' => $telephelyId)); - - $TOOL['telephelySelect'] = array('tipus'=>'cella','paramName' => 'telephelyId', 'post' => array('tanev')); - if ($ADAT['teremId']!='' || $ADAT['teremId']!='') { - $TOOL['vissza']['icon'] = 'arrow-left'; - } - getToolParameters(); - } -?> diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/terem.php b/mayor-orig/www/policy/private/naplo/intezmeny/terem.php deleted file mode 100644 index 207141cb..00000000 --- a/mayor-orig/www/policy/private/naplo/intezmeny/terem.php +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php deleted file mode 100644 index f2eacf29..00000000 --- a/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php +++ /dev/null @@ -1,112 +0,0 @@ -\n"; - - $tanev = $ADAT['tanev'] = readVariable($_POST['tanev'],'numeric',__TANEV); - - if (__TANAR) $tanarId = __USERTANARID; - if (__VEZETOSEG || __NAPLOADMIN) define('__MODOSITHAT',true); - else define('__MODOSITHAT',false); - -/* ------------------------------------------------- */ - if (__MODOSITHAT) { - if ($action=='modTanarTovabbkepzesForduloDt') { - $_tanarId = readVariable($_POST['tanarId'],'id'); - $_forduloDt = readVariable($_POST['forduloDt'],'date'); - $_JSON['result'] = true; - $_JSON['tanarId'] = $_tanarId; - $_JSON['forduloDt'] = $_dt; - $_JSON['result'] = updateTanarAdat($_tanarId,array('tovabbkepzesForduloDt'=>$_forduloDt)); - } elseif ($action=='ujTovabbkepzes') { - $ADAT['tovabbkepzoIntezmenyId'] = readVariable($_POST['tovabbkepzoIntezmenyId'],'id',null); - if (is_null($ADAT['tovabbkepzoIntezmenyId'])) { - $UJINTEZMENY['intezmenyRovidNev'] = readVariable($_POST['intezmenyRovidNev'],'string',null); - $UJINTEZMENY['intezmenyNev'] = readVariable($_POST['intezmenyNev'],'string',null); - if ($UJINTEZMENY['intezmenyRovidNev']!='' && $UJINTEZMENY['intezmenyNev']!='') $ADAT['tovabbkepzoIntezmenyId'] = ujTovabbkepzoIntezmeny($UJINTEZMENY); - } - if ($ADAT['tovabbkepzoIntezmenyId']>0) { - $ADAT['tovabbkepzesNev'] = readVariable($_POST['tovabbkepzesNev'],'string',null); - $ADAT['oraszam'] = intval(readVariable($_POST['oraszam'],'numeric unsigned',null)); - $ADAT['kategoria'] = readVariable($_POST['kategoria'],'string',null); - $ADAT['akkreditalt'] = ($ADAT['kategoria']=='egyéb') ? 0:1; - ujTovabbkepzes($ADAT); - } - } elseif ($action=='modTovabbkepzes') { - $MOD = readVariable($_POST['tovabbkepzesId'],'id',null); - for ($i=0; $i
'; var_dump($ADAT['ofoTargyId']); echo ''; - for ($i = 0; $i < count($ret); $i++) { - $ADAT['targyAdat'][ $ret[$i]['targyId'] ] = $ret[$i]; - $szavak = explode(' ', ($huHyphen->hyphen(trim($ret[$i]['targyNev'])))); - $ADAT['targyAdat'][ $ret[$i]['targyId'] ]['tordeltTargyNev'] = tordel($szavak); - $ADAT['targyAdat'][ $ret[$i]['targyId'] ]['tankor'] = array(); - //if ($ret[$i]['targyNev'] == 'osztályfőnöki') $ADAT['ofoTargyId'] = $ret[$i]['targyId']; - } - for ($i = 0; $i < count($ADAT['tankorok']); $i++) { - $ADAT['targyAdat'][ $ADAT['tankorok'][$i]['targyId'] ]['db']++; - $tankorId = $ADAT['tankorok'][$i]['tankorId']; - $targyId = $ADAT['tankorok'][$i]['targyId']; - if (is_array($ADAT['naploTankor']) && in_array($tankorId, $ADAT['naploTankor'])) { -// $ADAT['naploTargyak'][$targyId][] = $tankorId; - $ADAT['targyAdat'][$targyId]['tankor'][] = $tankorId; - $ADAT['tankorTargy'][$tankorId] = $targyId; - if ($ADAT['tankorok'][$i]['targyId'] == $ADAT['ofoTargyId']) $ADAT['ofoTankorId'] = $tankorId; -// else $ADAT['oszlopTankore'][] = $tankorId; - } - } - $ADAT['targyFejlec'] = $ADAT['oszlopTankore'] = array(); $db = 0; - $ADAT['helyek'] = array(6,15,15,15); $Foglalt = array(0,0,0,0); $lap = 0; - foreach ($ADAT['targyAdat'] as $targyId => $tAdat) { - - if ( - count($tAdat['tankor']) == 0 - || $targyId == $ADAT['ofoTargyId'] - || $targyId == $ADAT['magatartasId'] - || $targyId == $ADAT['szorgalomId'] - ) continue; - - $tDb = count($tAdat['tankor']); - $tmp = array('targyId' => $targyId, 'sorsz' => 1); - while ($tDb > 0) { - $szabad = $ADAT['helyek'][$lap] - $Foglalt[$lap]; - - $db = min($szabad, $tDb); - $tmp['db'] = $db; - $ADAT['targyFejlec'][$lap][] = $tmp; - $Foglalt[$lap] += $db; - $tmp['sorsz'] += $db; - $tDb -= $db; - if ($ADAT['helyek'][$lap] == $Foglalt[$lap]) $lap++; - } - // Ha 21-nél több tankör van és nem jön ki pont 21-re a tárgy határ -/* - if ($db < 21 && $db + count($tAdat['tankor']) > 21) while ($db < 21) { - $ADAT['oszlopTankore'][] = ''; - $db++; - } -*/ - for ($i = 0; $i < count($tAdat['tankor']); $i++) { - $tankorId = $tAdat['tankor'][$i]; - if ($tankorId != $ADAT['ofoTankorId']) { - $ADAT['oszlopTankore'][] = $tankorId; - $db++; - } - } - } - // Tanuló-tankör mátrix - $ADAT['diakIds'] = array(); - for ($i = 0; $i < count($ADAT['nevsor']); $i++) { - $ADAT['diakTankor'][ $ADAT['nevsor'][$i]['diakId'] ] = getTankorByDiakId( - $ADAT['nevsor'][$i]['diakId'], $tanev, - array('csakId' => true, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'', 'jelenlet'=>'' ) - ); - $ADAT['diakIds'][] = $ADAT['nevsor'][$i]['diakId']; - $ADAT['diakAdat'][ $ADAT['nevsor'][$i]['diakId'] ] = $ADAT['nevsor'][$i]; - } - // Órák lekérdezése - getNaploOrak($ADAT); - getNaploHianyzasok($ADAT); - - // Melyik tárgyhoz mely (és hány) tankörök tartoznak - - $filename = str_replace(' ','','Haladasi_'.date('Ymd').'_'.$ADAT['osztalyAdat']['osztalyJel']); - - $content = ''. - - putTeXHaladasiOldalbeallitas(). - - putTeXElolap($ADAT). - putTeXLapdobas(). - putTeXDefineFootline($ADAT['osztalyJel'], $ADAT['ofo']). - putTeXTanuloTankorMatriX($ADAT). - putTeXLapdobas(). - - putTeXUresLap(). - - putTeXAllandoFejlec(). - putTeXOrarendMacro(); // putTechPage1 és putTechPage3-ban kell majd paraméteresen meghívni - - $dt = $tolDt; - while(strtotime($dt)<=strtotime($igDt)) { - $ADAT['tanitasiNapOk'] = array(); - $vanOra = false; // Ha a három nap egyikén sincs óra akkor ne rakjuk ki ezeket a napokat... - for ($i = 0; $i < 3; $i++) { - $ADAT['tanitasiNapOk'][$i] = date('Y-m-d',strtotime('+'.$i.' days',strtotime($dt))); - if (count($ADAT['orak'][ $ADAT['tanitasiNapOk'][$i] ])) $vanOra = true; - } - if ($vanOra) { - $content .= - putTeXPage1($ADAT). - putTeXLapdobas(). - putTeXPage2($ADAT). - putTeXLapdobas(). - ''; - - if (count($ADAT['oszlopTankore']) > 21) - $content .= - putTeXPage34($ADAT). - putTeXLapdobas(); - } - $dt = date('Y-m-d',strtotime('+3 days',strtotime($dt))); - if (date('w', strtotime($dt)) == 0) $dt = date('Y-m-d', strtotime('+1 day', strtotime($dt))); // == vasárnap... - } - - - $content .= endTeXDocument(); - - $filename = fileNameNormal($filename); - if (!defined('_TEX_ERROR') && generatePDF($filename, _DOWNLOADDIR.'/private/nyomtatas/haladasi', $content, __NYOMTATAS_FUZETKENT === true)) { - header('Location: '.location('index.php?page=session&f=download&download=true&dir=nyomtatas/haladasi&file='.$filename.'.pdf')); - } - - } - - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array()); - getToolParameters(); - -} - - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php b/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php deleted file mode 100644 index 0807e2d6..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php deleted file mode 100644 index ba48545e..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php +++ /dev/null @@ -1,39 +0,0 @@ - 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'igDt', - 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], - 'hanyNaponta' => 1, 'post'=>array('osztalyId', 'diakId', 'targySorrend') - ); - getToolParameters(); - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php b/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php deleted file mode 100644 index 404b92b3..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php deleted file mode 100644 index f22d3af1..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php b/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php deleted file mode 100644 index 0c9d3196..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php +++ /dev/null @@ -1,161 +0,0 @@ -evfolyamJel) - // tanítási napok száma az aláíró ív záradékához - $NSz = getNapokSzama(array('osztalyId' => $osztalyId)); - $ADAT['tanitasiNapokSzama'] = $NSz['tanítási nap']+$NSz['speciális tanítási nap']; - - if ($evfolyamJel=='') die('VÉGZETES HIBA o-pre.php'); - - /* Tanárok kigyűjtése */ - $_TANKOROK = getOsztalyTankorei($osztalyId); - $_TANAROK = array(); - for ($i=0; $i
'; var_dump($ret2); echo ''; - - $ADAT['diakAdat'][ $ret[$i]['diakId'] ]['torzslapszam'] = getDiakTorzslapszam($ret[$i]['diakId'], $osztalyId); - - $diakKiDts[ $ret[$i]['diakId'] ] = $diakByOsztaly[ $ret[$i]['diakId'] ]['osztalyDiak'][0]['kiDt']; // mikor lépett ki a diák az osztályból - } - unset($ret); - unset($diakByOsztaly); - - foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) { - $ADAT['hianyzas'][$szemeszter] = getDiakHianyzasOsszesites($ADAT['diakIds'], $szAdat, $diakKiDts); - // Az egész szorgalmi időszak alatt szerzett osztályzatokra szükség van! (szükség van?) - $szAdat['zarasDt'] = $_TANEV['zarasDt']; - $szAdat['kezdesDt'] = $_TANEV['kezdesDt']; - $ADAT['zaroJegy'][$szemeszter] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $evfolyamJel, $szAdat); //TODO: ellenőrizni, evfolyam-->evfolyamJel!!! - } - $ADAT['jegyek'] = getDiakJegyek($ADAT); - $ADAT['szulok'] = getSzulok(); - // TeX generálás - $filename = fileNameNormal('Osztalyozo_'.date('Ymd').'_'.$ADAT['osztalyAdat']['osztalyJel']); - $lapDobasok = 0; - $content = - - putTeXOsztalyozoOldalbeallitas(). -// putTeXOldalbeallitasok(). -// putTeXMakrok(). - - putTeXDefineFootline($ADAT['osztalyAdat']['osztalyJel'], $ADAT['osztalyAdat']['osztalyfonokNev']); - - // Tanulónként egy-egy lap.... - for ($i = 0; $i < count($ADAT['diakIds']); $i++) { - $sorsz = $i+1; // Napló sorszám // TODO ??? - $diakId = $ADAT['diakIds'][$i]; - $cn = $ADAT['diakAdat'][$diakId]['diakNev']; - $birthlocality = $ADAT['diakAdat'][$diakId]['szuletesiHely']; - $birthtimestamp = $ADAT['diakAdat'][$diakId]['szuletesiIdo']; - //$content .= putTeXOsztalyozoFejlec($sorsz,$cn,$birthlocality,$birthtimestamp); - //$content .= putTeXOsztalyozoJegyek($diakId, $ADAT); - //$content .= putTeXOsztalyozoAdatok($diakId, $ADAT); - //$content .= putTeXLapdobas(); - //$lapDobasok++; - $iGlobal = 0; // Ha nem férne ki 20 helyre a tárgyak listája... - while ($iGlobal < count($ADAT['targyak'])) { - $content .= putTeXOsztalyozoFejlec($sorsz,$cn,$birthlocality,$birthtimestamp); - $content .= putTeXOsztalyozoJegyek($diakId, $ADAT, $iGlobal); - $content .= putTeXOsztalyozoAdatok($diakId, $ADAT); - $content .= putTeXLapdobas(); - $lapDobasok++; - } - } - - $content .= putTeXTanarLista($ADAT, $lapDobasok).putTeXLapdobas(); - $content .= endTeXDocument(); - - $filename = str_replace('/','_',$filename); - if (generatePDF($filename, _DOWNLOADDIR.'/private/nyomtatas/osztalyozo', $content, __NYOMTATAS_FUZETKENT === true)) { - if (count($_SESSION['alert']) == 0) - header('Location: '.location('index.php?page=session&f=download&download=true&dir=nyomtatas/osztalyozo&file='.$filename.'.pdf')); - else - $ADAT['letoltes'] = 'index.php?page=session&f=download&download=true&dir=nyomtatas/osztalyozo&file='.$filename.'.pdf'; - } - - } - - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array()); - getToolParameters(); - -} - - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php b/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php deleted file mode 100644 index 864c5486..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php deleted file mode 100644 index 72e34994..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php +++ /dev/null @@ -1,105 +0,0 @@ - $osztalyId, 'result' => 'idonly','override' => false)); - } - if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) { - // Intézmény adatai - $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY); - // Osztály adatai - if (isset($osztalyId)) $ADAT['osztaly'] = getOsztalyAdat($osztalyId, __TANEV); - // A tanárok - $ADAT['tanarok'] = getTanarok(array('result' => 'assoc')); - // Az osztály tanárai - // nincs feltétlen osztály // -/* - $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true)); - $ADAT['osztalyTanar'] = array(); $paros = false; - for ($i = 0; $i < count($Tankorok); $i++) { - for ($j = 0; $j < count($Tankorok[$i]['tanarok']); $j++) { - if (!is_array($ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ])) { - $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ] = $ADAT['tanarok'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ]; - $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ]['paros'] = $paros; - $paros = !$paros; - - } - } - } -*/ - if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) { - // a diákok alapadatai - $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId')); - // SNI-s diákok kiválogatása... - $ADAT['sniDiakIds'] = $Diakok = array(); - foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) { - if ($dAdat['fogyatekossag'] != '') { - $ADAT['sniDiakIds'][] = $_diakId; - $dAdat['aktualisStatusz'] = $dAdat['statusz']; - $Diakok[] = $dAdat; - } - } - } - - - // sni-s diákokon végigmenve: - foreach ($ADAT['sniDiakIds'] as $diakId) { - // Mentor/Ofő lekérdezése, konstans beállítása - $sniDA = getSniDiakAdat($diakId); - if (!is_array($sniDA)) $sniDA = array(); - $DA = array_merge($ADAT['diakAdat'][$diakId], $sniDA); - if (is_array($DA['felelos'])) foreach ($DA['felelos'] as $key => $tanarId) $felelos[$tanarId] = array(); - else $felelos = array(); - $DA['felelos'] = $felelos; - // A hónapokon végigmenve - $ho = intval(substr($_TANEV['kezdesDt'],5,2)); - $dt = date('Y-m-01', strtotime($_TANEV['kezdesDt'])); - while ($ho != 1+substr($_TANEV['zarasDt'],5,2)) { - $ADAT['diakAdat'][$diakId]['honap'][$ho] = getHaviOsszegzes($diakId, $dt); - $ADAT['diakAdat'][$diakId]['honap'][$ho]['hoNev'] = kisbetus($Honapok[$ho-1]); - // lépés a következő hónapra - $ho++; if ($ho > 12) $ho = 1; - $dt = date('Y-m-d', strtotime('next month', strtotime($dt))); - } - } - if (isset($osztalyId)) $ADAT['file'] = fileNameNormal('evVegiJegyzokonyv-'.$ADAT['osztaly']['osztalyJel'].'-'.str_replace('-','',$dt)); - else $ADAT['file'] = fileNameNormal('evVegiJegyzokonyv-'.$diakId.'-'.str_replace('-','',$dt)); - if (generateJegyzokonyv($ADAT)) - header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/sniEvVegiJegyzokonyv&file='.$ADAT['file'].'.pdf')); - - } - // Tool - $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('dt')); - $TOOL['diakSelect'] = array( - // 'diakok' => $Diakok, - 'tipus'=>'cella','paramName' => 'diakId', - 'osztalyId'=> $osztalyId,'post' => array('osztalyId'), - 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva') - ); - - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php deleted file mode 100644 index a2208099..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php deleted file mode 100644 index 951f9b4e..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php +++ /dev/null @@ -1,93 +0,0 @@ - 'assoc')); - // Az osztály tanárai - $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true)); - $ADAT['osztalyTanar'] = array(); $paros = false; - for ($i = 0; $i < count($Tankorok); $i++) { - for ($j = 0; $j < count($Tankorok[$i]['tanarok']); $j++) { - if (!is_array($ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ])) { - $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ] = $ADAT['tanarok'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ]; - $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ]['paros'] = $paros; - $paros = !$paros; - - } - } - } - // Az osztály tagjai - $ADAT['diakIds'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'idonly','override' => false)); - if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) { - // a diákok alapadatai - $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId')); - // SNI-s diákok kiválogatása... - $ADAT['sniDiakIds'] = $Diakok = array(); - foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) { - if ($dAdat['fogyatekossag'] != '') { - $ADAT['sniDiakIds'][] = $_diakId; - $dAdat['aktualisStatusz'] = $dAdat['statusz']; - $Diakok[] = $dAdat; - } - } - } - - - // sni-s diákokon végigmenve: - foreach ($ADAT['sniDiakIds'] as $diakId) { - // Mentor/Ofő lekérdezése, konstans beállítása - $sniDA = getSniDiakAdat($diakId); - if (!is_array($sniDA)) $sniDA = array(); - $tmpArray = array_merge($ADAT['diakAdat'][$diakId], $sniDA, getHaviOsszegzes($diakId, $dt)); - if (is_array($tmpArray['felelos'])) foreach ($tmpArray['felelos'] as $key => $tanarId) $felelos[$tanarId] = array(); - else $felelos = array(); - $tmpArray['felelos'] = $felelos; - $ADAT['diakAdat'][$diakId] = $tmpArray; - } - $ADAT['file'] = fileNameNormal('haviJegyzokonyv-'.$ADAT['osztaly']['osztalyJel'].'-'.str_replace('-','',$dt)); - if (generateJegyzokonyv($ADAT)) - header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/sniHaviJegyzokonyv&file='.$ADAT['file'].'.pdf')); - - } - // Tool - $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('dt')); - $TOOL['datumSelect'] = array( - 'tipus' => 'sor', 'ParamName' => 'dt', 'tanev' => __TANEV, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], - 'hanyNaponta' => 'havonta', 'post' => array('diakId', 'osztalyId') - ); - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php deleted file mode 100644 index a2208099..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php deleted file mode 100644 index 0f7bdd81..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php +++ /dev/null @@ -1,78 +0,0 @@ - $osztalyId, 'tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt, - 'statusz'=>array('jogviszonyban van'), 'extraAttrs'=>'oId as oktatasiAzonosito,torzslapSzam')); - if (is_array($Diakok)) for ($i = 0; $i < count($Diakok); $i++) { - $diakIds[] = $Diakok[$i]['diakId']; - $ADAT['diakAdat'][$Diakok[$i]['diakId']] = $Diakok[$i]; - } - } - $diakId = readVariable($_POST['diakId'], 'numeric unsigned', null, $diakIds); - if (isset($diakId)) $diakIds = array($diakId); - $ADAT['diakIds'] = $diakIds; - - if (count($ADAT['diakIds']) > 0 && (isset($ADAT['dt']) || isset($ADAT['szemeszterId']))) { - $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszter']); - $printFile = nyomtatvanyKeszites($ADAT); // ??? - $printFile = fileNameNormal($printFile); - if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile")) - header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/szovegesErtekeles&file='.$printFile)); - } - -// $TOOL['datumSelect'] = array( -// 'tipus' => 'cella', 'post' => array('diakId','osztalyId'), -// 'paramName' => 'dt', 'hanyNaponta' => 1, 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])), 'igDt' => $TA['zarasDt'] -// ); - $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'dt', - 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])), 'igDt' => $TA['zarasDt'], - 'hanyNaponta' => 1, 'post' => array('osztalyId','diakId','sorrendNev') - ); - $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tolDt', 'tolDt', 'dt','sorrendNev')); - if (isset($osztalyId)) - $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'diakok' => $Diakok, 'post' => array('osztalyId', 'tolDt', 'dt','sorrendNev')); - $TOOL['szemeszterSelect'] = array( - 'tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') , - 'post' => array('osztalyId', 'tanarId', 'diakId', 'tolDt', 'dt', 'tankorId', 'kepzesId', 'evfolyam','sorrendNev') - ); - $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId','diakId','tolDt','dt','tankorId','kepzesId','evfolyam')); - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php b/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php deleted file mode 100644 index c24a85d5..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php deleted file mode 100644 index 232b406b..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php +++ /dev/null @@ -1,58 +0,0 @@ - 0) { - tankorNaplohozRendeles($osztalyId, $_POST['T']); - } - - } // action - - - // A naplókhoz rendelt tanköröket lekérdezzük - $ADAT['tankorNaploja'] = getTankorokNaploja(); - $ADAT['naploTankorei'] = array(); - foreach ($ADAT['tankorNaploja'] as $_tankorId => $_osztalyId) { - $ADAT['naploTankorei'][$_osztalyId][] = $_tankorId; - } - // osztályok lekérdezése - $ADAT['osztalyok'] = getOsztalyok(); - $ADAT['osztalyJele'] = array(); - for ($i =0; $i < count($ADAT['osztalyok']); $i++) $ADAT['osztalyJele'][ $ADAT['osztalyok'][$i]['osztalyId'] ] = $ADAT['osztalyok'][$i]['osztalyJel']; - - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'osztalyok' => $ADAT['osztalyok'], 'post' => array()); - getToolParameters(); - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php deleted file mode 100644 index 5285af45..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php +++ /dev/null @@ -1,15 +0,0 @@ - 0) putOsztalyTankorei($osztalyId, $ADAT); - } else { - putHozzarendelesekTorlese(); - putHianyzoTankorok($ADAT); - putEloszlas($ADAT); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php deleted file mode 100644 index 16bc3ae6..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php +++ /dev/null @@ -1,165 +0,0 @@ - 'getDiakBizonyitvany/óraszám', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'targyId', 'values' => $v - )); - - $szDb = $ADAT['szemeszter']['tanevAdat']['maxSzemeszter']; // Feltételezzük, hogy a szemeszterek számozása 1-től indul és folyamatos - foreach ($jres as $targyId => $tAdat) { - $oraszam = 0; - for ($i = 0; $i < count($tAdat); $i++) { - $oraszam += $tAdat[$i]['oraszam']; - } - $ret[$targyId]['hetiOraszam'] = $oraszam / $szDb; - /* - A TANITASI_HETEK_SZAMA a diák (egyik) osztályához rendelt munkaterv alapján van meghatározva - így - csak az aktuális tanévben (__TANEV) van értelme. Ha több osztálya is van a tanulónak, akkor problémás... - */ - if (defined('TANITASI_HETEK_SZAMA')) $ret[$targyId]['evesOraszam'] = $oraszam / $szDb * TANITASI_HETEK_SZAMA; - } - return $ret; - } - - - $ADAT['magatartasIds'] = getMagatartas(); - $ADAT['szorgalomIds']= getSzorgalom(); - - // A dátum, osztály és diákok kiválasztása - $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'], 'numeric unsigned', null); - if (isset($szemeszterId)) { // szemesztert záró értékelés - intézményi adatbázis - $ADAT['szemeszter'] = getSzemeszterAdatById($ADAT['szemeszterId']); - $ADAT['dt'] = $dt = $ADAT['szemeszter']['zarasDt']; - define('__ZARO_SZEMESZTER', $ADAT['szemeszter']['szemeszter'] == $ADAT['szemeszter']['tanevAdat']['maxSzemeszter']); //?? - $ADAT['tanev'] = $tanev = $ADAT['szemeszter']['tanev']; - } - $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null); - $ADAT['targySorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'anyakönyv', array('napló','bizonyítvány','anyakönyv','ellenőrző','egyedi')); - // Ha egy diák van kiválasztva... - $diakId = readVariable($_POST['diakId'], 'numeric unsigned', null, $diakIds); - - if (isset($osztalyId) && isset($szemeszterId)) { - define('TANITASI_HETEK_SZAMA', getTanitasiHetekSzama(array('osztalyId'=>$osztalyId))); - $diakIds = array(); - $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev); - $ADAT['evfolyamJel'] = getEvfolyamJel($osztalyId, $tanev); - $ADAT['file'] = fileNameNormal('torzslap-'.str_replace('.', '', $ADAT['osztalyAdat']['osztalyJel'])); - $Diakok = getDiakok(array('osztalyId' => $osztalyId, 'tanev' => $tanev, 'tolDt' => $ADAT['szemeszter']['tanevAdat']['kezdesDt'], 'igDt' => $ADAT['szemeszter']['tanevAdat']['zarasDt'], - 'statusz'=>array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva'), - 'extraAttrs'=>'oId as oktatasiAzonosito,torzslapSzam as torzslapszam,allampolgarsag,szuletesiHely,szuletesiIdo,anyaId') - ); - osztalyTorzslapszamGeneralas($osztalyId); - $dTsz = getDiakokTorzslapszamaByOsztalyId($osztalyId); - if (is_array($Diakok)) for ($i = 0; $i < count($Diakok); $i++) { - if (!isset($diakId) || $diakId == $Diakok[$i]['diakId']) { - $diakIds[] = $Diakok[$i]['diakId']; - $Diakok[$i]['anyaNev'] = getSzuloNevById($Diakok[$i]['anyaId'], $szuleteskori = true); - $Diakok[$i]['evfolyamJel'] = $ADAT['evfolyamJel']; // kell ez?? // getEvfolyamJel($osztalyId, $ADAT['tanev']); - $Diakok[$i]['szuletesiOrszag'] = ''; // Ezzel mi legyen?? - $Diakok[$i]['feljegyzesek'] = ''; // Egyedi törzslap záradékok kellenek ide, semmi más! - $ADAT['diakAdat'][$Diakok[$i]['diakId']] = $Diakok[$i]; - $ADAT['diakAdat'][$Diakok[$i]['diakId']]['szuletesiIdo'] = dateToString($Diakok[$i]['szuletesiIdo']); - $ADAT['diakAdat'][$Diakok[$i]['diakId']]['torzslapszam'] = $dTsz[$Diakok[$i]['diakId']]; - } - } - $kovetkezoTanev = __TANEV+1; $kovTA = getTanevAdat($kovetkezoTanev); - $ADAT['diakZaradekok'] = getZaradekokByDiakIds($diakIds, array('tolDt'=>$_TANEV['kezdesDt'], 'igDt'=>$kovTA['kezdesDt'], 'tipus'=>'törzslap feljegyzés','keyfield'=>'diakId','result'=>'multiassoc')); // kell a tol-ig szűrés?? - $ADAT['diakZaradekok'] = getZaradekokByDiakIds($diakIds, array('tolDt'=>$_TANEV['kezdesDt'], 'igDt'=>$kovTA['kezdesDt'], 'dokumentum'=>'törzslap','keyfield'=>'diakId','result'=>'multiassoc')); // kell a tol-ig szűrés?? - $ADAT['diakBejegyzesek'] = getTorzslapBejegyzesByDiakIds($diakIds, array('tanev' => $tanev)); - - $ADAT['diakIds'] = $diakIds; - - if (count($ADAT['diakIds']) > 0) { - $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszter']); - $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszter'], $osztalyId, $sorrendNev); - $ADAT['jegyek'] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $ADAT['evfolyamJel'], $ADAT['szemeszter'], array('felevivel'=>true)); // TODO: ellenőrzés - - foreach ($ADAT['jegyek'] as $diakId => $dJegyek) { - $ADAT['targyOraszam'][$diakId] = getDiakTargyOraszam($diakId, $osztalyId, $tanev, $ADAT); - } - - $printFile = torzslapNyomtatvanyKeszites($ADAT); // ??? - $printFile = fileNameNormal($printFile); - if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile")) - header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/torzslap&file='.$printFile)); - } - } // van osztály és szemeszter - - - $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('szemeszterId', 'tolDt', 'dt','sorrendNev')); - if (isset($osztalyId)) - $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'diakok' => $Diakok, 'post' => array('szemeszterId', 'osztalyId', 'tolDt', 'dt','sorrendNev')); - $TOOL['szemeszterSelect'] = array( - 'tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') , - 'post' => array('osztalyId', 'tanarId', 'diakId', 'tolDt', 'dt', 'tankorId', 'kepzesId', 'evfolyamJel','sorrendNev') - ); - $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId','diakId','tolDt','dt','tankorId','kepzesId','evfolyamJel')); - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php b/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php deleted file mode 100644 index c24a85d5..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php deleted file mode 100644 index f7250037..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php +++ /dev/null @@ -1,40 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php deleted file mode 100644 index bc70f948..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php deleted file mode 100644 index 4694c82f..00000000 --- a/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php +++ /dev/null @@ -1,49 +0,0 @@ - 'indexed', 'tolDt' => $ADAT['tolDt'], 'igDt' => $ADAT['igDt'], 'dokumentum' => 'osztálynapló')); - $ADAT['bejegyzes'][ $ADAT['diakIds'][$i] ] = getDiakBejegyzesekByTanev($ADAT['diakIds'][$i], $ADAT['tanev']); - } - $ADAT['file'] = fileNameNormal($ADAT['file']); - if (pdfZaradekok($ADAT)) - header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/zaradekok&file='.$ADAT['file'].'.pdf')); - - } - - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array()); - getToolParameters(); - -} - -?> diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php b/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php b/mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php deleted file mode 100644 index 878bb8e6..00000000 --- a/mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php +++ /dev/null @@ -1,110 +0,0 @@ - $tanev, 'tolDt' => $dt, 'igDt' => $dt, 'csakOrarendbol' => true)); - $ADAT['exportalandoHet'] = readVariable($_POST['orarendiHet'], 'numeric', null, $ADAT['orarendiHet']); - if (isset($ADAT['exportalandoHet'])) $ADAT['szeminariumkent'] = true; - else $ADAT['szeminariumkent'] = readVariable($_POST['szeminariumkent'], 'bool', false, array(true, false)); - $ADAT['szakkorokkel'] = readVariable($_POST['szakkorokkel'], 'bool', false, array(true, false)); - $ADAT['targyBontas'] = readVariable($_POST['targyBontas'], 'bool', false, array(true, false)); - - // Bontások lekérdezése - $ADAT['bontas'] = ascBontasLekerdezes($ADAT['tanevDb']); - - if (!readVariable($_POST['blokkokNelkul'], 'bool', false, array(true, false))) $ADAT['tankorBlokk'] = getTankorBlokkok($tanev); - else $ADAT['tankorBlokk'] = array(); - // A tankörök blokk óraszámai - $tankor2blokk = array(); - if (is_array($ADAT['tankorBlokk']['exportOraszam'])) - foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) { // blokkonként - for ($i = 0; $i < count($ADAT['tankorBlokk']['idk'][$bId]); $i++) { // az érintett tankörökön végigmenve - $tankor2blokk[ $ADAT['tankorBlokk']['idk'][$bId][$i] ]['blokkOraszam'] += $oraszam; - } - } - $ADAT['tankorIndex'] = array(); - if ($ADAT['szakkorokkel']) $ADAT['tankorok'] = getTankorok(array("tanev=$tanev")); - else $ADAT['tankorok'] = getTankorok(array("tanev=$tanev","jelenlet='kötelező'")); - for ($i = 0; $i < count($ADAT['tankorok']); $i++) { - $tankorId = $ADAT['tankorok'][$i]['tankorId']; - $ADAT['tankorok'][$i]['tankorAdat'] = getTankorAdat($tankorId, $tanev); - // óraszám - if (isset($ADAT['exportalandoHet'])) { - $ADAT['tankorok'][$i]['hetiOraszam'] = getTankorHetiOraszam($tankorId, array('tanev' => $tanev, 'dt' => $dt, 'het' => $ADAT['exportalandoHet'])); - } else { - $ADAT['tankorok'][$i]['hetiOraszam'] = 0; - for ($j = 0; $j < count($ADAT['tankorok'][$i]['tankorAdat'][$tankorId]); $j++) // Szemeszterenként végigmenve - $ADAT['tankorok'][$i]['hetiOraszam'] += $ADAT['tankorok'][$i]['tankorAdat'][$tankorId][$j]['oraszam']; - if ($j != 0) { - $ADAT['tankorok'][$i]['hetiOraszam'] /= $j; - // Korrigáljuk a tankört érintő blokkok óraszámával - if ($ADAT['tankorok'][$i]['hetiOraszam'] >= $tankor2blokk[$tankorId]['blokkOraszam']) - $ADAT['tankorok'][$i]['hetiOraszam'] -= $tankor2blokk[$tankorId]['blokkOraszam']; - else - $_SESSION['alert'][] = 'message:wrong_data:tankorOraszam='.$ADAT['tankorok'][$i]['hetiOraszam'].'; blokkOraszam=' - .$tankor2blokk[$tankorId]['blokkOraszam'].'; tankorId='.$tankorId; - } - } // óraszám - $ADAT['tankorIndex'][$tankorId] = $i; - } - - // --------------------- action -------------------------- // - - if ($action == 'ascExport') { - if ( -// tankorTanarRendbenE($tanev, $dt) -// && - ascExport($ADAT) - ) -define('__LOADURL', href('index.php?page=session&f=download&download=true&dir=orarend&file=ascExport.xml',array('sessionID','lang','skin','policy','alert'))); -//header('Location: '.location('index.php?page=session&f=download&download=true&dir=orarend&file=ascExport.xml',array('sessionID','lang','skin','policy','alert'))); - - } elseif ($action == 'blokkOraszam') { - - if (is_array($_POST['blokkOraszam'])) - for ($i = 0; $i < count($_POST['blokkOraszam']); $i++) { - list($bId, $oraszam) = explode(':', $_POST['blokkOraszam'][$i]); - $blokkOraszam = readVariable($oraszam, 'float unsigned', 0); - if ($blokkOraszam >= 0) $ADAT['blokkOraszam'][$bId] = $oraszam; - } // if+for - blokkOraszamRogzites($ADAT['blokkOraszam'], $ADAT['tanevDb']); - $ADAT['tankorBlokk'] = getTankorBlokkok($tanev); - - } elseif ($action == 'tobbszorosOra') { - - ascBontasModositas($ADAT); - $ADAT['bontas'] = ascBontasLekerdezes($ADAT['tanevDb']); - - } - - // --------------------- action -------------------------- // - - $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array()); - $TOOL['datumSelect'] = array( - 'tipus'=>'cella', 'post' => array('tanev'),'paramName' => 'dt', 'hanyNaponta' => 1, - 'override'=>true,'tolDt' => $_TA['kezdesDt'],'igDt' => $_TA['zarasDt'], - ); - - getToolParameters(); - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/orarend/ascExport.php b/mayor-orig/www/policy/private/naplo/orarend/ascExport.php deleted file mode 100644 index 7972ab6b..00000000 --- a/mayor-orig/www/policy/private/naplo/orarend/ascExport.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php b/mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php deleted file mode 100644 index c4ed7cb9..00000000 --- a/mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php +++ /dev/null @@ -1,80 +0,0 @@ - 0) $tolDt = $_POST['tolDt']; - - /* Az órarendihét kiválasztása */ - if (!isset($tolDt)) $tolDt = date('Y-m-d'); - if (strtotime($tolDt) > strtotime($_TANEV['zarasDt'])) $tolDt = $_TANEV['zarasDt']; - elseif (strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $tolDt = $_TANEV['kezdesDt']; - if ($tolDt != '') $het = getOrarendiHetByDt($tolDt); - if ($het == '') $het = getLastOrarend(); - //$igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt)))); - $igDt = $tolDt; - - if ($osztalyId!='') { - $TANKORIDK = getTankorByOsztalyId($osztalyId,__TANEV,array('csakId'=>true)); - $ADAT['orak'] = getHelyettesitendoOrak(array('osztalyId'=>$osztalyId,'tolDt'=>$tolDt,'igDt'=>$igDt,'tankorIdk'=>$TANKORIDK)); - } elseif ($tanarId!='') { - $TANKORIDK = getTankorByTanarId($tanarId,__TANEV,array('csakId'=>true)); - $ADAT['orak'] = getHelyettesitendoOrak(array('tolDt'=>$tolDt,'igDt'=>$igDt,'tankorIdk'=>$TANKORIDK)); - } else { - $ADAT['orak'] = getHelyettesitendoOrak(array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId)); - } - $ADAT['tankorok'] = getTankoradatByIds($ADAT['orak']['tankorok'],array('dt'=>$tolDt)); // $ADAT['orak'] at vizsgáld meg! - $ADAT['tanarok'] = getTanarok(array('result'=>'assoc')); - $ADAT['termek'] = getTermek(array('result'=>'assoc')); - - /* TOOL ME :) */ - $TOOL['datumSelect'] = array( - 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId'), - 'paramName' => 'tolDt', 'hanyNaponta' => 1, - 'override'=>true, // használathoz még át kell írni pár függvényt!!! - 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))), - 'igDt' => $_TANEV['zarasDt'], - ); - $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array('tolDt','osztalyId','tanarId')); - - //$TOOL['orarendiHetSelect'] = array('tipus'=>'cella' , 'paramName' => 'het', 'post'=>array('targyId','tankorId','osztalyId','tanarId'), 'disabled'=>true); - //$TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post'=>array('tanev')); - //$TOOL['targySelect'] = array('tipus'=>'cella', 'paramName' => 'targyId', 'post'=>array('het')); -// if ($osztalyId!='') { -// $TOOL['diakSelect'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array('tolDt','osztalyId')); -// } else -// $TOOL['munkakozossegSelect'] = array('tipus'=>'sor','paramName'=>'mkId', 'post'=>array('tolDt')); - $TOOL['osztalySelect']= array('tipus'=>'cella','paramName'=>'osztalyId', 'post'=>array('tolDt')); - $TOOL['tanarSelect'] = array('tipus'=>'cella','paramName'=>'tanarId', 'post'=>array('tolDt')); -// if ($osztalyId!='' || $tanarId!='' || $diakId!='' || $mkId!='') $TOOL['tankorSelect'] = array('tipus'=>'sor','paramName'=>'tankorId', 'post'=>array('tolDt','osztaly - - getToolParameters(); - -?> diff --git a/mayor-orig/www/policy/private/naplo/orarend/helyettesites.php b/mayor-orig/www/policy/private/naplo/orarend/helyettesites.php deleted file mode 100644 index e5eca8ff..00000000 --- a/mayor-orig/www/policy/private/naplo/orarend/helyettesites.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php deleted file mode 100644 index f570cc8f..00000000 --- a/mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php +++ /dev/null @@ -1,312 +0,0 @@ -0) $PAGESTATE[$key]=intval($val); - } - } - } - - // -- TESZT VÉGE - $targyId = readVariable($_POST['targyId'], 'id', getPSFvar('targyId')); - $tankorId = readVariable($_POST['tankorId'], 'id', readVariable($_GET['tankorId'],'id',getPSFvar('tankorId'))); - $osztalyId = readVariable($_POST['osztalyId'], 'id', readVariable($_GET['osztalyId'],'id',getPSFvar('osztalyId'))); - $tanarId = $_POST['tanarId'] = readVariable($_POST['tanarId'], 'id', readVariable($_GET['tanarId'],'id',getPSFvar('tanarId'))); - $diakId = $_POST['diakId'] = readVariable($_POST['diakId'], 'id', readVariable($_GET['diakId'],'id',getPSFvar('diakId'))); - $teremId = readVariable($_POST['teremId'], 'id', getPSFvar('teremId')); - $mkId = readVariable($_POST['mkId'], 'id',getPSFvar('mkId')); - $het = readVariable($_POST['het'], 'id',getPSFvar('het')); // ??? - - $ADAT['telephelyek'] = getTelephelyek(); - $telephelyIds = array(); - foreach ($ADAT['telephelyek'] as $tAdat) $telephelyIds[] = $tAdat['telephelyId']; - $telephelyId = readVariable($_POST['telephelyId'], 'id', (count($ADAT['telephelyek'])>1?null:1), $telephelyIds); - /* A telephelyet ki tudnánk találni a lekérdezett órák termeiből is... */ - $tolDt = readVariable($_POST['tolDt'], 'date', getTanitasihetHetfo(array('napszam'=>0))); - $dt = readVariable($_POST['dt'], 'date'); // mutatni - - if ($mkId=='' && $tanarId=='' && $diakId=='' && $osztalyId=='' && $tankorId=='' && $teremId=='') { // ez itt mind isnotset - if (__DIAK && defined('__USERDIAKID')) $diakId=__USERDIAKID; - if (__TANAR && defined('__USERTANARID')) $tanarId=__USERTANARID; - } - - /* ----------------------------------------- */ - if (_POLICY=='private' && $action == 'setPublic' && is_numeric($diakId) && ((__NAGYKORU===true && $diakId==__USERDIAKID) || (__NAGYKORU === false && $diakId==__SZULODIAKID))) { - require_once('include/modules/naplo/share/diakModifier.php'); - diakAdatkezelesModositas(array('diakId'=>$diakId,'kulcs'=>'publikusOrarend','ertek'=>'1')); - } - /* ----------------------------------------- */ - - /* Az órarendihét kiválasztása */ - if (isset($dt)) $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', strtotime($dt) ))); - if (!isset($tolDt)) - // A következő nap előtti hétfő - $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time()))); - -/* - if (strtotime($tolDt) > strtotime($_TANEV['zarasDt'])) $_tolDt = $_TANEV['zarasDt']; - elseif (strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $_tolDt = $_TANEV['kezdesDt']; - // és akkor korrigáljunk még egyszer - if (isset($_tolDt)) // A következő nap előtti hétfő - $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time()))); -*/ - if ($tolDt != '') $het = getOrarendiHetByDt($tolDt); - if ($het == '') $het = getLastOrarend(); - $igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt)))); - - // SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL - if (MAYOR_SOCIAL === true && $action== 'orarendiOraTeremModosit') { - if(is_array($_POST)) { - $TMP_TERMEK = getTermek(array('result' => 'assoc')); - $TMP_TEREMIDS = array_keys($TMP_TERMEK); - foreach($_POST as $_pk => $_pv) { - if (($_pv>0 || $_pv=="teremTorol") && substr($_pk,0,3) == 'OOM') { - list($placeholder, $M['het'], $M['nap'], $M['ora'], $M['tanarId'],$M['dt']) = explode('+',$_pk); - if ($_pv=='teremTorol') $_pv=0; // hackit - $M['teremId'] = readVariable($_pv,'id',0,$TMP_TEREMIDS); - $M['tanev'] = __TANEV; - $teremModositasResult = teremModositas($M); - } - } - } - } - // SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL SOCIAL - - $ADAT['termek'] = getTermek(array('result'=>'assoc','telephelyId'=>$telephelyId)); - $ADAT['tanarok'] = getTanarok(array('result'=>'assoc','telephelyId'=>$telephelyId)); //--TODO telephely -// ===================== - if ($tankorId!='') { - $ADAT['orarend'] = getOrarendByTankorId($tankorId, array('tolDt'=>$tolDt,'igDt'=>$igDt)); - //$ADAT['toPrint'] = getTankorNev($tankorId); // vagy getTankornev külön? - $TANKOROK['haladasi'] = array($tankorId); - $ADAT['kivalasztott'] = array('tankor',$tankorId); - } elseif($tanarId!='') { -// if (_POLICY == 'public') $_SESSION['alert'][] = 'info:adatkezeles:letilva'; -// else { - $ADAT['orarend'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId,'orarendiOraTankor'=>true)); - $ADAT['toPrint'] = $ADAT['tanarok'][$tanarId]['tanarNev']; -// } - $ADAT['kivalasztott'] = array('tanar',$tanarId); - } elseif($diakId!='') { - $ADAT['orarendTipus'] = 'diakOrarend'; - /* ide kerülhet, hogy a diák (__NAGYKORU)/szülő engedélyezte-e a saját/gyermeke órarendjének mutatását */ - $ADAT['adatKezeles'] = getDiakAdatkezeles($diakId,array('publikusOrarend'=>1)); - $ADAT['publikusOrarend'] = ($ADAT['adatKezeles']['publikusOrarend']['ertek'] == 1) ? true : false; - - // if (MAYOR_SOCIAL === true) $ADAT['publikusOrarend'] = true; - - /* Ha belül vagyunk, akkor állíthassa be egy gombnyomással, hogy ő bizony engedélyezi */ - define(__ALLOWSET, ((__NAGYKORU===true && $diakId==__USERDIAKID) || (__NAGYKORU === false && $diakId==__SZULODIAKID))); - if (_POLICY == 'public' && $ADAT['publikusOrarend'] === false) { - $_SESSION['alert'][] = 'info:adatkezeles:'.'A keresési feltétel a felhasználó által belépés után a napló modulban engedélyezhető!'; - } else { - $ADAT['orarend'] = getOrarendByDiakId($diakId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'osztalyId'=>$osztalyId)); // itt az osztalyId-t nem lenne kötelező megadni, de a felületen úgysem lehet máshogy idejutni - $TANKOROK['haladasi'] = getTankorByDiakId($diakId, __TANEV, array('csakId' => true, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'idonly')); - $ADAT['diakFelmentes'] = getTankorDiakFelmentes($diakId, __TANEV, array('tolDt'=>$tolDt,'igDt'=>$igDt)); - } - $ADAT['diakEvfolyamAdat'] = getEvfolyamAdatByDiakId($diakId,$tolDt,__TANEV); - $ADAT['kepzes'] = getKepzesByDiakId($diakId, array('result' => '', 'dt' => $tolDt, 'arraymap' => null)); - if (count($ADAT['kepzes'])==1) { - $ADAT['kepzesOraterv'] = getOraszamByKepzes($ADAT['kepzes'][0]['kepzesId'], array('szemeszter'=>1,'evfolyam'=>$ADAT['diakEvfolyamAdat']['evfolyam'])); - } else {//nincs képzése, vagy több van - } - - $ADAT['kivalasztott'] = array('diak',$diakId); - } elseif ($osztalyId!='') { - $ADAT['orarendTipus'] = 'osztalyOrarend'; - $ADAT['orarend'] = getOrarendByOsztalyId($osztalyId,array('tolDt'=>$tolDt,'igDt'=>$igDt)); - $OADAT = getOsztalyAdat($osztalyId); - $ADAT['toPrint'] = $OADAT['osztalyJel']; - $TANKOROK['haladasi'] = getTankorByOsztalyId($osztalyId, __TANEV, array('csakId' => true, 'tanarral' => false, 'result' => 'idonly')); - $ADAT['kivalasztott'] = array('osztaly',$osztalyId); - } elseif ($mkId!='') { - $ADAT['orarend'] = getOrarendByMkId($mkId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId)); - $TANKOROK['haladasi'] = getTankorByMkId($mkId, __TANEV, array('csakId' => true,'filter' => array()) ); - $ADAT['kivalasztott'] = array('munkakozosseg',$mkId); - } elseif ($teremId!='') { - $teremAdat = getTeremAdatById($teremId); - $ADAT['orarend'] = getOrarendByTeremId($teremId,'',array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId)); - $ADAT['toPrint'] = $teremAdat['leiras']; - $ADAT['kivalasztott'] = array('terem',$teremId); - } - else $ADAT = array(); -// ----------- - $TANKOROK['erintett'] = $ADAT['orarend']['tankorok']; // --FIXME (2013.05.03) - $TANKOROK['mindenByDt'] = $ADAT['orarend']['mindenTankorByDt']; // --FIXME (2013.05.03) - - $ADAT['NAPOK'] = $_NAPOK = _genNapok($tolDt,$igDt); - - if (isset($tanarId)) { - $ADAT['haladasi'] = getTanarOrak($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'result'=>'likeOrarend')); - } elseif ((is_array($TANKOROK['mindenByDt']) && count($TANKOROK['mindenByDt']>0)) || $teremId!='') { - // akkor egészítsük ki a haladási naplós órákkal - /* FS#100 */ - $ADAT['haladasi'] = array('tankorok'=>array()); - // dátumfüggő FS#100 - for ($i=0; $i
'; -var_dump($r); - - - $_SESSION['alert'][] = 'info::Nyelvek hibásak lehetnek, ha van olyan tárgy, ami nem első-második nyelvnek van megjelölve'; -*/ - - $_SESSION['alert'][] = 'info::csak a kiválasztott dátumkor "jogviszonyban van" jogviszonyú diákok látszanak ebben a táblázatban (a fiú/lány mezők hiánya hibás adatokhoz vezethet)'; - - $TOOL['datumSelect'] = array( - 'tipus'=>'cella', 'post' => array(), - 'paramName' => 'dt', 'hanyNaponta' => 1, -// 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])), -// 'igDt' => $_TANEV['zarasDt'], - 'napok' => $NAPOK - ); - - -?> diff --git a/mayor-orig/www/policy/private/naplo/stat/letszam.php b/mayor-orig/www/policy/private/naplo/stat/letszam.php deleted file mode 100644 index d521ccc6..00000000 --- a/mayor-orig/www/policy/private/naplo/stat/letszam.php +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php b/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php deleted file mode 100644 index a47d6316..00000000 --- a/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php +++ /dev/null @@ -1,127 +0,0 @@ -'idonly')); - $ADAT['tankorTipusok'] = getTankorTipusok(); - foreach ($ADAT['tankorTipusok'] as $tankorTipusId => $tAdat) $ADAT['tankorTipusIds'][$tAdat['oratervi']][] = $tankorTipusId; - $ADAT['finanszírozott pedagógus létszám'] = array( - 'általános iskola' => 11.8, // 11.8 tanuló / 1 pedagógus - 'gimnázium' => 12.5, // 12.5 tanuló / 1 pedagógus - 'szakiskola, Híd programok' => 12, // ... - 'szakközépiskola, nem szakkképző évfolyam' => 12.4, - 'szakközépiskola, szakkképző évfolyam' => 13.7 - ); // -- TODO szakgimnázium??? - - - - $IA['intezmenyAdat'] = getIntezmenyByRovidnev(__INTEZMENY); - $IA['osztalyAdat'] = getOsztalyok(__TANEV, array('result' => 'assoc', 'minden'=>false, 'telephelyId' => null)); - foreach ($IA['osztalyAdat'] as $idx => $oAdat) $IA['osztalyIds'][] = $oAdat['osztalyId']; - $IA['targyAdat'] = getTargyAdatByIds(); - - $IA['diakLetszam']['statusz'] = getDiakLetszamByStatusz(); - $IA['diakLetszam']['osztaly'] = getDiakLetszamByOsztalyId($IA['osztalyIds']); - foreach ($IA['diakLetszam']['osztaly'] as $osztalyId => $letszam) - if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['összes'] += intval($letszam); - foreach ($IA['diakLetszam']['osztaly']['fiú'] as $osztalyId => $letszam) - if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['fiú'] += intval($letszam); - foreach ($IA['diakLetszam']['osztaly']['lány'] as $osztalyId => $letszam) - if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['lány'] += intval($letszam); - $IA['tanarLetszam']['besorolas'] = getTanarLetszamByBesorolas(); - $IA['tanarLetszam']['statusz'] = getTanarLetszamByStatusz(); - $IA['oraszamok'] = getTankorOraszamOsszesites($ADAT['tankorTipusIds']); - $IA['targyOraszamok'] = getTargyOraszamok($ADAT['tankorTipusIds']); - $IA['osztalyOraszamok'] = getOsztalyOraszamok($IA['osztalyIds'], $ADAT['tankorTipusIds']); - foreach ($IA['osztalyOraszamok']['összes'] as $osztalyId => $oraszam) { - $IA['evfolyamOraszamok']['összes'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($oraszam); - $IA['evfolyamOraszamok']['óratervi'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($IA['osztalyOraszamok']['óratervi'][$osztalyId]); - $IA['evfolyamOraszamok']['tanórán kívüli'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($IA['osztalyOraszamok']['tanórán kívüli'][$osztalyId]); - } - $egyhaziE = ($IA['intezmenyAdat']['fenntarto']=='egyházi'); - foreach ($IA['osztalyAdat'] as $osztalyId => $osztalyAdat) { - $IA['osztalyIdokeret'][$osztalyId] = getOsztalyHetiIdokeret($osztalyId, $osztalyAdat, array('egyhaziE'=>$egyhaziE)); - $IA['osztalyIdokeret']['összesen']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['összesen']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['összesen']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['összesen']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['összesen']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['összesen']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - if (in_array($osztalyAdat['osztalyJellegId'], array(21,22)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4'))) { - $IA['osztalyIdokeret']['alsó']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['alsó']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['alsó']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['alsó']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['alsó']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['alsó']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - } - if (in_array($osztalyAdat['osztalyJellegId'], array(21,23)) && in_array($osztalyAdat['evfolyamJel'], array('5','6','7','8'))) { - $IA['osztalyIdokeret']['felső']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['felső']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['felső']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['felső']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['felső']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['felső']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - } - if (in_array($osztalyAdat['osztalyJellegId'], array(21,22,23)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4','5','6','7','8'))) { - $IA['osztalyIdokeret']['általános']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['általános']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['általános']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['általános']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['általános']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['általános']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - } - if (in_array($osztalyAdat['osztalyJellegId'], array(51,52,53,61,62,63)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4','5','6','7','8'))) { - $IA['osztalyIdokeret']['gimnázium18']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['gimnázium18']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['gimnázium18']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['gimnázium18']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['gimnázium18']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['gimnázium18']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - } - if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63)) && in_array($osztalyAdat['evfolyamJel'], array('9','10','11','12'))) { - $IA['osztalyIdokeret']['gimnázium92']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['gimnázium92']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['gimnázium92']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['gimnázium92']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['gimnázium92']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['gimnázium92']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - } - if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63))) { - $IA['osztalyIdokeret']['gimnázium']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes']; - $IA['osztalyIdokeret']['gimnázium']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett']; - $IA['osztalyIdokeret']['gimnázium']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás']; - $IA['osztalyIdokeret']['gimnázium']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi']; - $IA['osztalyIdokeret']['gimnázium']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium']; - $IA['osztalyIdokeret']['gimnázium']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi']; - } - // Finanszírozott pedagógus létszámhoz diáklészámok osztály-típusonként - if (in_array($osztalyAdat['osztalyJellegId'], array(21,22,23))) { // általános iskola - $IA['diakLetszam']['általános iskola'] += $IA['diakLetszam']['osztaly'][$osztalyId]; - } else if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63,65))) { // gimnázium - $IA['diakLetszam']['gimnázium'] += $IA['diakLetszam']['osztaly'][$osztalyId]; - } else if (in_array($osztalyAdat['osztalyJellegId'], array(82,83,84,85,91,92,93))) { // szakiskola, Híd programok - $IA['diakLetszam']['szakiskola, Híd programok'] += $IA['diakLetszam']['osztaly'][$osztalyId]; - } else if (in_array($osztalyAdat['osztalyJellegId'], array(71,72,73,74,75,76,77,78,79))) { // szakközépiskola, nem szakképző évfolyam - $IA['diakLetszam']['szakközépiskola, nem szakkképző évfolyam'] += $IA['diakLetszam']['osztaly'][$osztalyId]; - } else if (in_array($osztalyAdat['osztalyJellegId'], array())) { // szakközépiskola, szakképző évfolyam - $IA['diakLetszam']['szakközépiskola, szakképző évfolyam'] += $IA['diakLetszam']['osztaly'][$osztalyId]; - } - } // osztályok - $IA['tankorLetszamStat'] = getTankorLetszamStat(); -*/ - $IA = getTantargyfelosztasStat(); - - $ADAT['intezmeny'][__INTEZMENY] = $IA; - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php b/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php deleted file mode 100644 index 1e5786be..00000000 --- a/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/szulinap-pre.php b/mayor-orig/www/policy/private/naplo/szulinap-pre.php deleted file mode 100644 index 46164faf..00000000 --- a/mayor-orig/www/policy/private/naplo/szulinap-pre.php +++ /dev/null @@ -1,15 +0,0 @@ -'assoc')); - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/szulinap.php b/mayor-orig/www/policy/private/naplo/szulinap.php deleted file mode 100644 index 93606734..00000000 --- a/mayor-orig/www/policy/private/naplo/szulinap.php +++ /dev/null @@ -1,44 +0,0 @@ -'; - for ($i=0; $i'; - echo $ADAT['ma']['diak'][$i]['viseltNevElotag'].' '; - echo $ADAT['ma']['diak'][$i]['viseltCsaladinev'].' '; - echo $ADAT['ma']['diak'][$i]['viseltUtonev']; - echo ''; - } - echo ''; - } - - if (is_array($ADAT['ma']['diakOsztaly'])) foreach($ADAT['ma']['diakOsztaly'] as $_diakId => $_osztalyId) { - $O[$_osztalyId[0]]++; - if ( defined('__USERDIAKID') && __USERDIAKID == $_diakId ) $szulinapos = true; - - } - - if ($szulinapos) echo _HAPPYBIRTHDAY; - - if (is_array($O)) { - echo ' '; - foreach($O as $osztalyId => $db) { - echo '
'; - } - -} - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php b/mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php deleted file mode 100644 index dbf2ba62..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanev/checkStatus.php b/mayor-orig/www/policy/private/naplo/tanev/checkStatus.php deleted file mode 100644 index 56f3a5fe..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/checkStatus.php +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php b/mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php deleted file mode 100644 index 24a3248a..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php +++ /dev/null @@ -1,54 +0,0 @@ - 'assoc')); - if (count($ADAT['osztalyId']) > 0 && isset($targyId)) { - - // diákok lekérdezése - $ADAT['diak'] = getDiakokByOsztalyId($ADAT['osztalyId']); - // diákok tankörei - for ($i = 0; $i < count($ADAT['diak']); $i++) { - - $diakId = $ADAT['diak'][$i]['diakId']; - $ADAT['diak'][$i]['tankorIds'] = array(); - $ret = getTankorByDiakId($diakId, $tanev = __TANEV, $SET = array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'result'=>'', 'jelenlet'=>'')); - if ($ret !== false) { - for ($j = 0; $j < count($ret); $j++) { - if ($ret[$j]['targyId'] == $targyId) { - $ADAT['diak'][$i]['tankorIds'][] = $ret[$j]['tankorId']; - if (!in_array($ret[$j]['tankorId'], $ADAT['tankorIds'])) $ADAT['tankorIds'][] = $ret[$j]['tankorId']; - } - } - } - } - - // Tankörök tanárai - $ADAT['tankorTanar'] = getTankorTanaraiByInterval( - $ADAT['tankorIds'], array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'assoc') - ); - } - - - // ToolBar - $TOOL['targySelect']= array('tipus'=>'cella','paramName'=>'targyId', 'post'=>array('osztalyIds')); - getToolParameters(); - - } -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php b/mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php deleted file mode 100644 index 2800d37a..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php +++ /dev/null @@ -1,11 +0,0 @@ - 0) - putDiakTanarLista($ADAT); - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php b/mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php deleted file mode 100644 index a57888c2..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php +++ /dev/null @@ -1,142 +0,0 @@ - __TANEV, null, 'tipus' => array('fogadóóra jelentkezés'), 'tolDt' => date('Y-m-d H:i:s'), 'igDt' => date('Y-m-d H:i:s'), 'return' => '', 'arraymap'=>null)); - define('__FOGADOORA_JELENTKEZES',(is_array($idoszak) && count($idoszak)>0)); - } - // ----------- action -------------- // - if (__NAPLOADMIN || __VEZETOSEG) { - if ( strtotime($_POST['tolDt']) > 0) $_tolDt = $_POST['tolDt']; - - if ($action == 'kovetkezoFogado') { - $tol = readVariable($_tolDt.' '.$_POST['tolTime'].':00', 'datetime'); - $ig = readVariable($_tolDt.' '.$_POST['igTime'].':00', 'datetime'); - if (isset($tol) && isset($ig)) kovetkezoFogadoOraInit($tol, $ig); - } elseif ($action == 'tanarFogado') { - $tol = readVariable($_tolDt.' '.$_POST['tolTime'].':00', 'datetime'); - $ig = readVariable($_tolDt.' '.$_POST['igTime'].':00', 'datetime'); - $teremId = readVariable($_POST['teremId'], 'id'); - if (tanarFogadoOra($tanarId, $tol, $ig, $teremId)) - $_SESSION['alert'][] = 'info:success'; - - } elseif ($action == 'listaLekerdezese') { - $Lista = getFogadoOraLista(); - } - } - if (__DIAK && $action == 'fogadoOraJelentkezes') { - if (__FOGADOORA_JELENTKEZES === true) { - $M = array(); - for ($i = 0; $i < count($diakTanarai); $i++) { - if (isset($_POST['jel'.$i])) { - list($tId, $datetime) = explode('/',$_POST['jel'.$i]); - $M[] = array('tanarId' => readVariable($tId, 'id'), 'datetime' => readVariable($datetime, 'datetime')); - } - } - fogadoOraJelentkezes($szuloId, $M); - } else { - $_SESSION['alert'][] = 'message:deadline_expired'; - } - } - // ----------- action vége -------------- // - $FogadoDt = getKovetkezoFogadoDtk(); - $Tanarok = getTanarok(array('result' => 'assoc')); - $Termek = getTermek(); - $TermekAsszoc = getTermek(array('result' => 'assoc', 'tipus' => array(), 'telephelyId' => null)); - $Szulok = getSzulok(); - - if (isset($tanarId)) { - $tanarFogado = getTanarFogadoOra($tanarId); - $szuloIds = array(); - foreach ($tanarFogado['jelentkezesek'] as $szId => $szAdat) $szuloIds[] = $szAdat['szuloId']; - if (count($szuloIds) > 0) $Szulok['diakjai'] = getSzulokDiakjai($szuloIds); - } elseif (__NAPLOADMIN || __VEZETOSEG || __DIAK) { - if (count($FogadoDt['dates']) > 0) { - $FogadoOsszes = getFogadoOsszes(); - } - if (is_array($Lista)) { - $szuloIds = array(2,3,4); - reset($Lista); - foreach ($Lista['jelentkezesek'] as $tanarId => $tAdat) { - foreach ($tAdat as $index => $A) { - if (!in_array($A['szuloId'], $szuloIds) && $A['szuloId'] != '') $szuloIds[] = $A['szuloId']; - } - } - reset($Lista); - if (count($szuloIds) > 0) $Szulok['diakjai'] = getSzulokDiakjai($szuloIds); - unset($tanarId); - } - } - if (__DIAK) { - // Minden tanár csak egyszer szerepeljen!! - $tanarIds = $dTanarai = $tanarTerme = array(); - for ($i = 0; $i < count($diakTanarai); $i++) - if (!in_array($diakTanarai[$i]['tanarId'], $tanarIds)) { - $diakTanarai[$i]['foglalt'] = getTanarFogadoOra($diakTanarai[$i]['tanarId']); - $tanarIds[] = $diakTanarai[$i]['tanarId']; - $dTanarai[] = $diakTanarai[$i]; - - } - $diakTanarai = $dTanarai; - $Alkalmak = array('napok' => array()); - for ($i = 0; $i < count($FogadoOsszes); $i++) { - if (in_array($FogadoOsszes[$i]['tanarId'], $tanarIds)) { - $Alkalmak[$FogadoOsszes[$i]['tanarId']] = $FogadoOsszes[$i]; - $Alkalmak['tanarTerme'][$FogadoOsszes[$i]['tanarId']] = $FogadoOsszes[$i]['teremId']; - - $nap = substr($FogadoOsszes[$i]['tol'], 0, 10); - if (!array_key_exists($nap, $Alkalmak['napok'])) { - $Alkalmak['napok'][$nap] = array( - 'tol' => substr($FogadoOsszes[$i]['tol'], 11, 5), - 'ig' => substr($FogadoOsszes[$i]['ig'], 11, 5), - ); - } else { - if ($Alkalmak['napok'][$nap]['tol'] > ($tol = substr($FogadoOsszes[$i]['tol'], 11, 5))) - $Alkalmak['napok'][$nap]['tol'] = $tol; - if ($Alkalmak['napok'][$nap]['ig'] < ($ig = substr($FogadoOsszes[$i]['ig'], 11, 5))) - $Alkalmak['napok'][$nap]['ig'] = $ig; - } - } - } - ksort($Alkalmak); - $szuloJelentkezes = getSzuloJelentkezes($szuloId); - } - - if (count($FogadoDt['dates']) > 0) { - // Szülő fogadóóra naponként jelentkezhet -// if (__DIAK) -// $TOOL['datumSelect'] = array( -// 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'), -// 'paramName' => 'igDt', 'hanyNaponta' => 7, -// 'tolDt' => date('Y-m-d', strtotime('Saturday', strtotime($_TANEV['kezdesDt']))), -// 'igDt' => $_TANEV['zarasDt'], -// ); - // Aki a tanár fogadóóráit szeretné látni - if (__NAPLOADMIN || __VEZETOSEG || __TANAR || __TITKARSAG) - $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('igDt')); - } - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php b/mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php deleted file mode 100644 index a90526cd..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php +++ /dev/null @@ -1,26 +0,0 @@ - 0 && isset($tanarId)) { - tanarFogadoIdopontModosito($tanarFogado['adatok'], $Termek); - } elseif (is_array($Lista)) { - putFogadoOraLista($Lista, $Tanarok, $Szulok); - } else { - kovetkezoFogadoIdopont($tanarFogado, $Termek); - if (is_array($FogadoOsszes)) putFogadoOsszes($FogadoOsszes, $Tanarok); - } - - } - if ((__TANAR===true || _TITKARSAG===true) && count($FogadoDt['dates']) > 0 && isset($tanarId)) { - tanarFogadoIdopont($tanarFogado, $Termek, $Szulok); - } - if (__DIAK===true) { // Szülő - jelentkezés - putFogadoOraJelentkezes($szuloId, $diakTanarai, $Alkalmak, $szuloJelentkezes, $TermekAsszoc); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php b/mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php deleted file mode 100644 index 770529c2..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php +++ /dev/null @@ -1,102 +0,0 @@ - 'assoc')); - $ADAT['fields']['csengetesiRendTipus'] = getEnumField('naplo','nap','csengetesiRendTipus'); - - if (count($ADAT['munkaterv']) == 1) $munkatervId = 1; - else $munkatervId = readVariable($_POST['munkatervId'], 'id'); - if (!isset($munkatervId)) $munkatervId = 1; - $ADAT['munkatervId'] = $munkatervId; - if (__NAPLOADMIN===true || __VEZETOSEG===true) { // csak admin és a vezetőség módosíthat bármit! - - $ADAT['osztaly'] = getOsztalyok(); - for ($i = 0; $i < count($ADAT['osztaly']); $i++) { - $ADAT['osztaly'][$i]['munkatervId'] = getMunkatervByOsztalyId($ADAT['osztaly'][$i]['osztalyId']); - } - if ($action == 'napokInit') { - for ($i = 1; $i <= intval($_POST['hetDb']); $i++) $ADAT['Hetek'][] = $i; - $ADAT['tanitasiNap'] = readVariable($_POST['tanitasiNap'], 'numeric unsigned'); - $ADAT['tanitasNelkuliMunkanap'] = readVariable($_POST['tanitasNelkuliMunkanap'], 'numeric unsigned'); - $ADAT['vegzosZarasDt'] = readVariable($_POST['vegzosZarasDt'], 'date'); - if ($initResult = initNapok($ADAT)) $ADAT['munkatervId'] = 1; - $ADAT['munkaterv'] = getMunkatervek(array('result' => 'assoc')); - } - if (__MUNKATERV_OK || $initResult===true) { - if ($action == 'hetHozzarendeles') { - // később esetleg ezt is lehetne munkatervenként külön... nem? - for ($i = 1; $i <= intval($_POST['hetDb']); $i++) $ADAT['Hetek'][] = $i; - $tolDt = readVariable($_POST['tolDt'], 'date'); - $igDt = readVariable($_POST['igDt'], 'date'); - orarendiHetekHozzarendelese($tolDt, $igDt, $ADAT['Hetek']); - } elseif ($action == 'munkatervModositas') { - $dt = readVariable($_POST['dt'], 'date'); - $tipus = readVariable($_POST['tipus'], 'enum', 'tanítási nap', $ADAT['napTipusok']); - $megj = readVariable($_POST['megjegyzes'],'string',''); - $orarendiHet = readVariable($_POST['orarendiHet'], 'numeric unsigned'); - $csengetesiRendTipus = readVariable($_POST['csengetesiRendTipus'], 'string', null, $ADAT['fields']['csengetesiRendTipus']); - $ADAT['Hetek'] = getOrarendiHetek(array('tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'])); - if ( - $_TANEV['statusz'] == 'aktív' - && (__FOLYO_TANEV || __NAPLOADMIN) - ) - munkatervModositas($dt, $tipus, $megj, $orarendiHet, $ADAT['Hetek'], $ADAT['munkatervId'], $csengetesiRendTipus); - $ADAT['Napok'] = getTanevNapjai($munkatervId); - } elseif ($action == 'ujMunkaterv') { - $ADAT['munkatervNev'] = readVariable($_POST['munkatervNev'],'string',''); - $ADAT['tanitasiNap'] = readVariable($_POST['tanitasiNap'], 'numeric unsigned'); - $ADAT['tanitasNelkuliMunkanap'] = readVariable($_POST['tanitasNelkuliMunkanap'], 'numeric unsigned'); - $ADAT['vegzosZarasDt'] = readVariable($_POST['vegzosZarasDt'], 'date'); - $ADAT['munkatervId'] = $munkatervId = ujMunkaterv($ADAT); - if ($munkatervId) { $ADAT['munkaterv'] = getMunkatervek(array('result' => 'assoc')); } - } elseif ($action == 'munkatervOsztaly') { - $ADAT['osztalyIds'] = readVariable($_POST['osztalyId'], 'id'); - $ADAT['ujMunkatervIds'] = readVariable($_POST['ujMunkatervId'], 'id'); - if (!munkatervOsztaly($ADAT)) $_SESSION['alert'][] = 'message:a hozzárendelés nem sikerült'; - for ($i = 0; $i < count($ADAT['osztaly']); $i++) { - $ADAT['osztaly'][$i]['munkatervId'] = getMunkatervByOsztalyId($ADAT['osztaly'][$i]['osztalyId']); - } - } - if ($action == 'honapValasztas' && $_POST['ho'] != '') { - $ho = $_POST['ho']; - $ADAT['Napok'] = getHonapNapjai($ho, $munkatervId); - $ADAT['Hetek'] = getOrarendiHetek(array('tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'])); - } else { - $ADAT['Napok'] = getTanevNapjai($munkatervId); - } - - } else { - $ADAT['Hetek'] = getOrarendiHetek(array('tolDt'=>$_TANEV['kezdesDt'],'igDt'=>$_TANEV['zarasDt'])); - } - } else { // nem admin, nem vezető --> csak éves munkatervet lát (ha van) - $ADAT['Napok'] = getTanevNapjai($munkatervId); - } - $ADAT['NapokSzama'] = getNapokSzama(array('munkatervId' => $munkatervId)); - - - if (count($ADAT['munkaterv']) > 1) { - $TOOL['munkatervSelect'] = array('tipus' => 'cella','paramName' => 'munkatervId', 'post' => array()); - getToolParameters(); - - } - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/munkaterv.php b/mayor-orig/www/policy/private/naplo/tanev/munkaterv.php deleted file mode 100644 index 8e9719e5..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/munkaterv.php +++ /dev/null @@ -1,26 +0,0 @@ - false)); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php b/mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php deleted file mode 100644 index d584bfb5..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanev/tanev.php b/mayor-orig/www/policy/private/naplo/tanev/tanev.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php b/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php deleted file mode 100644 index c8672be4..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php +++ /dev/null @@ -1,114 +0,0 @@ -'idonly')); - - if (isset($osztalyId)) { - $ADAT['osztalySzuro'] = array($osztalyId); - } else { - // Évfolyam szerinti szűréshez - évfolyamok - $ADAT['evfolyamJelSzuro'] = readVariable($_POST['evfolyamJel'], 'enum', null, $ADAT['evfolyamJelek']); - $ADAT['osztalySzuro'] = getOsztalyIdByEvfolyamJel($ADAT['evfolyamJelSzuro'], $tanev); - } - if (count($ADAT['osztalySzuro']) > 1) $ADAT['osztalySzurtTankorIds'] = getTankorByOsztalyIds($ADAT['osztalySzuro'], $tanev); - elseif (count($ADAT['osztalySzuro']) > 0) { - $osztalyId = $ADAT['osztalySzuro'][0]; - $ADAT['osztalySzurtTankorIds'] = getTankorByOsztalyId($osztalyId, $tanev, array('csakId' => true)); - } else $ADAT['osztalySzurtTankorIds'] = array(); - // Tárgy szerinti szűréshez - tárgyak - $ADAT['targyak'] = getTargyak(); - for ($i = 0; $i < count($ADAT['targyak']); $i++) $targyIds[] = $ADAT['targyak'][$i]['targyId']; - if (is_array($_POST['targyId'])) { - for ($i = 0; $i < count($_POST['targyId']); $i++) { - $targyId = readVariable($_POST['targyId'][$i], 'numeric unsigned', null, $targyIds); - if (isset($targyId)) { - $ADAT['targySzuro'][] = $targyId; - } - } - } - - if ($action == 'ujTankorBlokk') { - - $_DATA = array(); - $_DATA['blokkNev'] = readVariable($_POST['blokkNev'],'string'); - $_DATA['exportOraszam'] = readVariable(str_replace(',', '.', $_POST['exportOraszam']), 'float unsigned'); - $_DATA['tankorId'] = readVariable($_POST['tankorId'], 'numeric unsigned'); - ujTankorBlokk($_DATA['blokkNev'], $_DATA['exportOraszam'], $_DATA['tankorId'], $tanev); - - } elseif ($action=='modTankorBlokk') { - - $_DATA['tanev'] = $tanev; - $_DATA['blokkId'] = readVariable($_POST['blokkId'], 'numeric unsigned'); - $_DATA['exportOraszam'] = readVariable(str_replace(',', '.', $_POST['exportOraszam']), 'float unsigned'); - $_DATA['blokkNev'] = readVariable($_POST['blokkNev'], 'string'); - $_DATA['tankorIds'] = readVariable($_POST['tankorIds'], 'numeric unsigned'); -// for ($i = 0; $i < count($_POST['tankorIds']); $i++) { -// if (intval($_POST['tankorIds'][$i])) $_DATA['tankorIds'][] = intval($_POST['tankorIds'][$i]); -// } - if (isset($_POST['del']) && $_POST['del'] != '') - tankorBlokkTorles($_DATA); - else - tankorBlokkModositas($_DATA); - - } - - $tankorok= getTankorok( - array("tanev=$tanev"), - "LPAD(substring_index(substring_index(tankorNev,'-',1),'.',1),2,'0'),substring_index(substring_index(tankorNev,' ',2),' ',-1),tankorNev,tanev,szemeszter" - ); - if (count($ADAT['targySzuro']) > 0) - $szurtTankorok = getTankorok( // tárgy szerinti szűrés - array("tanev=$tanev", 'targyId IN ('.implode(',', $ADAT['targySzuro']).')'), - "LPAD(substring_index(substring_index(tankorNev,'-',1),'.',1),2,'0'),substring_index(substring_index(tankorNev,' ',2),' ',-1),tankorNev,tanev,szemeszter" - ); - else $szurtTankorok = $tankorok; - - $ADAT['tankorOraszam'] = getTankorOraszamByTanev($tanev); - $ADAT['tankorExportOraszam'] = getTankorExportOraszamByTanev($tanev); - - $ADAT['tankorBlokkok'] = getTankorBlokkok($tanev); - for ($i = 0; $i < count($tankorok); $i++) { - $ADAT['tankorIdk'][] = $tankorId = $tankorok[$i]['tankorId']; - $ADAT['tankorAdat'][$tankorId] = $tankorok[$i]; - } - $ADAT['tankorTanar'] = getTankorTanaraiByInterval($ADAT['tankorIdk'], array('tanev' => $tanev, 'result' => 'assoc')); - for ($i = 0; $i < count($szurtTankorok); $i++) { - if ( // osztály szerinti szűrés - count($ADAT['osztalySzurtTankorIds']) == 0 - || in_array($szurtTankorok[$i]['tankorId'], $ADAT['osztalySzurtTankorIds']) - ) $ADAT['szurtTankorIdk'][] = $szurtTankorok[$i]['tankorId']; - } - if (count($ADAT['szurtTankorIdk']) == 0) { - $_SESSION['alert'][] = 'message:wrong_data:A megadott tárgyakhoz nem tartozik egy tankör sem - a szűrési feltételt töröljük!'; - $ADAT['szurtTankorIdk'] = $ADAT['tankorIdk']; - $ADAT['targySzuro'] = $ADAT['osztalySzuro'] = $_POST['targyId'] = array(); - unset($osztalyId); - } - $ADAT['tanev'] = $tanev; - - $TOOL['tanevSelect'] = array('tipus'=>'cella', 'paramName'=>'tanev','post'=>array()); - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('targyId')); - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php b/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php deleted file mode 100644 index 51742aa9..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php +++ /dev/null @@ -1,14 +0,0 @@ - 0) putCsoportok($Csoportok, $tankorAdat, $szTankorIds, $osztalyId); - putTankorBlokkok($ADAT); - - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php b/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php deleted file mode 100644 index cddfb69c..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php +++ /dev/null @@ -1,132 +0,0 @@ - $csoportAdat) { - $csoportIds[] = $csoportId; - $Csoportok[$csoportId]['csoportNev'] = $csoportAdat[0]['csoportNev']; - $Csoportok[$csoportId]['tankorok'] = array(); - for ($i = 0; $i < count($csoportAdat); $i++) { - $Csoportok[$csoportId]['tankorok'][] = $csoportAdat[$i]['tankorId']; - $csTankorIds[] = $csoportAdat[$i]['tankorId']; - } - } - $szTankorIds = array_diff($tankorIds, $csTankorIds); - -// ----------------- action --------------------- // -/* $min=0; $max=0; - - if ($min<$Tankorok[$i]['min']) $min= $Tankorok[$i]['min']; - if ($Tankorok[$i]['max']!=0 && $max>$Tankorok[$i]['max']) $max= $Tankorok[$i]['max']; -*/ - - if ($action == 'ujTankorCsoport') { - - $csoportNev = $_POST['csoportNev']; - $tankorId = $_POST['tankorId']; - ujTankorCsoport($csoportNev, $tankorId); - - } elseif ($action == 'tankorCsoportModositas') { - - $csoportId = readVariable($_POST['csoportId'], 'numeric unsigned', null, $csoportIds); - if (isset($csoportId)) { - $csoportNev = $_POST['csoportNev']; - $tankorId = $_POST['tankorId']; - if (isset($_POST['tankorCsoportTorles'])) tankorCsoportTorles($csoportId, $tanev); - else tankorCsoportModositas($csoportId, $csoportNev, $tankorId); - } - - } elseif ($action == 'tankorCsoportokKeresese') { - - // Kérdezzük le a szabad tankörök diákjait - foreach ($szTankorIds as $i => $tankorId) { - $tmp = getTankorDiakjaiByInterval($tankorId, $tanev); - $szTankorDiak[$tankorId] = $tmp['idk']; - } - // Azonos tagokkal rendelkező csoportok keresése - $ujCsoportok = $voltMar = $Nevek = array(); - foreach ($szTankorIds as $i => $tankorId) { - if (!$voltMar[$tankorId]) { - $voltMar[$tankorId] = true; - $ujCsoport = array( - 'ids' => array($tankorId), -// 'diakIds' => $szTankorDiak[ $tankorId ] - ); - foreach ($szTankorIds as $j => $_tankorId) { - if ( - !$voltMar[ $_tankorId ] - && $szTankorDiak[ $tankorId ] == $szTankorDiak[ $_tankorId ] - ) { - $ujCsoport['ids'][] = $_tankorId; - $voltMar[ $_tankorId ] = true; - } - } - // csoportnév - a tárgynevekből - $Targyak = array(); - for ($k = 0; $k < count($ujCsoport['ids']); $k++) { - $tankorId = $ujCsoport['ids'][$k]; - $tankorNev = $tankorAdat[ $tankorId ]['tankorNev']; - $Targyak[] = substr($tankorNev, ($pos = strpos($tankorNev, ' ')+1), strrpos($tankorNev, ' ')-$pos); - } - $ujCsoport['nev'] = implode(' - ', $Targyak); - $ujCsoport['nev'] .= ' '.(++$Nevek[ $ujCsoport['nev'] ]).'.'; - $ujCsoportok[] = $ujCsoport; - } - } - // új csoportok felvétele - for ($i = 0; $i < count($ujCsoportok); $i++) { - if (count($ujCsoportok[$i]['ids']) > 1) ujTankorCsoport($ujCsoportok[$i]['nev'], $ujCsoportok[$i]['ids']); - } - } - - if ($action != '') { - - $CsA = getTankorCsoportByTankorIds($tankorIds); - $Csoportok = $csTankorIds = array(); - foreach ($CsA as $csoportId => $csoportAdat) { - $Csoportok[$csoportId]['csoportNev'] = $csoportAdat[0]['csoportNev']; - $Csoportok[$csoportId]['tankorok'] = array(); - for ($i = 0; $i < count($csoportAdat); $i++) { - $Csoportok[$csoportId]['tankorok'][] = $csoportAdat[$i]['tankorId']; - $csTankorIds[] = $csoportAdat[$i]['tankorId']; - } - } - $szTankorIds = array_diff($tankorIds, $csTankorIds); - - } - -// ----------------- action --------------------- // - -//echo $q; -//echo '- '; - echo $ADAT['osztaly'][$osztalyId]['osztalyJel'].': ' ; - echo $db.' '; - echo '
'; - } - echo ''; var_dump($ujCsoportok); echo ''; - - } - - - $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array()); - getToolParameters(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php b/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php deleted file mode 100644 index 955de6c7..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php +++ /dev/null @@ -1,11 +0,0 @@ - 0) putCsoportok($Csoportok, $tankorAdat, $szTankorIds, $osztalyId); - if (count($szTankorIds) > 0) putTankorCsoportKereso($osztalyId); - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php b/mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php deleted file mode 100644 index c9aaf91b..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php +++ /dev/null @@ -1,175 +0,0 @@ - 'indexed', 'minden'=>false, 'telephelyId' => $telephelyId)); - foreach ($ADAT['filter']['osztalyAdat'] as $idx => $oAdat) { - $ADAT['filter']['osztalyAdat'][$idx]['bontasOk'] = osztalyBontasKeszE($oAdat['osztalyId']); - $ADAT['filter']['osztalyIds'][] = $oAdat['osztalyId']; - } - $ADAT['filter']['kepzesAdat'] = getKepzesByOsztalyId($ADAT['filter']['osztalyIds'], array('result'=>'indexed','arraymap'=>array('kepzesId'))); - - if (isset($ADAT['evfolyamJel'])) { // csak egy évfolyamhoz tartozó osztályok jelölhetők ki egyszerre - - // szűrés osztályra - osztalyId az egyik kulcs mező - $ADAT['osztalyAdat'] = array(); - $osszesOsztalyId = array(); - if (is_array($ADAT['filter']['osztalyAdat'])) foreach ($ADAT['filter']['osztalyAdat'] as $oAdat) { - if ($oAdat['evfolyamJel'] == $evfolyamJel) { - $ADAT['osztalyAdat'][$oAdat['osztalyId']] = $oAdat; - $osszesOsztalyId[] = $oAdat['osztalyId']; - } - } - if (count($osszesOsztalyId) == 0) $ADAT['osztalyIds'] = array(); // üres tömb esetén nem szűr a readVariable... - else $ADAT['osztalyIds'] = readVariable($_POST['osztalyIds'], 'id', null, $osszesOsztalyId); - $_POST['osztalyIds'] = $osztalyIds = $ADAT['osztalyIds']; - - // Az osztályokhoz rendelt tankörök lekérdezése - a bontásokban ezek lehetnek - kell a névhez... - $ADAT['tankorAdat'] = array(); - foreach ($osztalyIds as $osztalyId) { - $TA = getTankorByOsztalyId($osztalyId); - foreach ($TA as $tAdat) if (!is_array($ADAT['tankorAdat'][ $tAdat['tankorId'] ])) { - $ADAT['tankorAdat'][ $tAdat['tankorId'] ] = $tAdat; - $ADAT['tankorAdat'][ $tAdat['tankorId'] ]['tankorNevTargyNelkul'] = str_replace($ADAT['targyAdat'][ $tAdat['targyId'] ]['targyNev'].' ','',$tAdat['tankorNev']); - } - } - - // képzések lekérdezése - a képzés óratervhez - if (is_array($osztalyIds) && count($osztalyIds) > 0) { - // itt volt a kepzesTargyBontas - de az init utánra tettem... - $ADAT['kepzesek'] = getKepzesByOsztalyId($osztalyIds, array('result' => 'indexed', 'arraymap' => array('kepzesId','osztalyId'))); - $ADAT['kepzesAdat'] = array(); - if (is_array($ADAT['kepzesek'])) foreach ($ADAT['kepzesek'] as $kepzesId => $kAdat) { - $ADAT['kepzesAdat'][$kepzesId] = current(current($kAdat)); - unset($ADAT['kepzesAdat'][$kepzesId]['osztalyId']); - $ADAT['kepzesAdat'][$kepzesId]['osztalyIds'] = array_keys($kAdat); - } - $osszesKepzesId = array_keys($ADAT['kepzesek']); - unset($ADAT['kepzesek']); - } - if (is_array($_POST['kepzesIds'])) $ADAT['kepzesIds'] = readVariable($_POST['kepzesIds'], 'id', null, $osszesKepzesId); - else $ADAT['kepzesIds'] = $osszesKepzesId; - - // képzés adott évfolyamának óraterve... - if (is_array($ADAT['kepzesIds']) && count($ADAT['kepzesIds'])) { - // Itt kellene inicializálni - minden tárgyat tartalmazó kepzesOratervId:osztalyId párhoz legyen legalább egy bontás - kepzesTargyBontasInit($ADAT['osztalyIds'], $ADAT['kepzesIds']); - $ADAT['targyBontasStatus'] = checkTargyBontas(); - $ADAT['oraterv'] = kepzesOratervSorrend($evfolyamJel, $ADAT['osztalyIds'], $ADAT['kepzesIds']); - // itt volt a targyAdat... felkerült az elejére - $ADAT['osztalyTargyBontas'] = getKepzesTargyBontasByOsztalyIds($osztalyIds); -//dump($ADAT['osztalyTargyBontas']); - } - - $ADAT['oratervenKivuliTankorok'] = getOratervenKivuliTankorIds(); - - } // van evfolyamJel - - - - // Ajax action - if ($action == 'addBontas') { - $keys = explode(',', $_POST['keys']); - foreach ($keys as $key) { - list($osztalyId, $kepzesOratervId) = explode('-',$key); - $bontas[] = addBontas($osztalyId, $kepzesOratervId); - - } - $_JSON = array( - 'keys' => $_POST['keys'], - 'bontas' => $bontas, - 'targyNev' => $ADAT['targyAdat'][ $bontas[0]['targyId'] ]['targyNev'], - 'result' => 'success' - ); - } else if ($action == 'addBontasTargy') { - $targyIds = array_keys($ADAT['targyAdat']); - $targyId = readVariable($_POST['targyId'], 'id', null, $targyIds);// tárgyIds-re szűkítés!! - if ($targyId != '') { - $keys = explode(',', $_POST['keys']); - foreach ($keys as $key) { - list($osztalyId, $kepzesOratervId) = explode('-',$key); - $bontas[] = addBontas($osztalyId, $kepzesOratervId, $targyId); - } - $_JSON = array( - 'keys' => $_POST['keys'], - 'bontas' => $bontas, - 'targyNev' => $ADAT['targyAdat'][$targyId]['targyNev'], - 'result' => 'success' - ); - } else { - $_JSON = array( - 'keys' => $_POST['keys'], - 'result' => 'fail' - ); - } - } else if ($action == 'bontasTankor') { - $keys = explode(',', $_POST['keys']); - $bontasIds = readVariable($keys, 'id'); - $tankorId = readVariable($_POST['tankorId'], 'id'); - $hetiOraszam = readVariable($_POST['hetiOraszam'], 'float unsigned'); - - $targyId = getTankorTargyId($tankorId); - $targyNev = $ADAT['targyAdat'][$targyId]['targyNev']; - $ret = bontasTankor($bontasIds, $tankorId, $hetiOraszam); - $tankorNev = getTankorNevById($tankorId); // A tankörnév változhat az osztály hozzárendelés miatt... - $tankorNevTargyNelkul = str_replace($targyNev.' ','',$tankorNev); - $_JSON = array( - 'keys' => $_POST['keys'], - 'bontasIds' => $bontasIds, - 'hetiOraszam' => $hetiOraszam, - 'tankorId' => $tankorId, - 'tankorNev' => $tankorNevTargyNelkul, - 'ret' => $ret, - 'TANEV' => __TANEV, - 'result' => ($ret?'success':'fail') - ); - - } else if ($action == 'delBontas') { - $keys = explode(',', $_POST['keys']); - $bontasIds = readVariable($keys, 'id'); - $return = delBontas($bontasIds); - $_JSON = array( - 'keys' => $_POST['keys'], - 'bontasIds' => (is_array($return)?$return:array()), - 'result' => (is_array($return)?'success':'fail') - ); - } else { // Ez csak tesztelés, hibakeresés... - $_JSON = array( - 'post' => $_POST, - ); - } - // Ajax action vége - - $TOOL['telephelySelect'] = array('tipus' => 'cella','paramName' => 'telephelyId', 'post' => array('osztalyIds','kepzesIds','evfolyamJel')); - $TOOL['evfolyamJelSelect'] = array('tipus' => 'cella','paramName' => 'evfolyamJel','paramDesc'=>'evfolyamJel','adatok' => $ADAT['evfolyamJelek'],'post' => array('osztalyIds','kepzesIds','telephelyId')); - getToolParameters(); - - } - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyBontas.php b/mayor-orig/www/policy/private/naplo/tanev/targyBontas.php deleted file mode 100644 index 1a8aca25..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/targyBontas.php +++ /dev/null @@ -1,19 +0,0 @@ -0 - && is_array($ADAT['kepzesIds']) && count($ADAT['kepzesIds'])>0 - ) { - putTargyBontas($ADAT); - } - } -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php b/mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php deleted file mode 100644 index 37d057cd..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php b/mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php deleted file mode 100644 index bdc6ccf3..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php deleted file mode 100644 index 2f29caae..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php +++ /dev/null @@ -1,72 +0,0 @@ - 0) { - - // Végzős tankörök lekérdezése (csak végzős!!) - $ADAT['vegzosTankor'] = getTankorByOsztalyIds($ADAT['lezarandoOsztaly']); - // A tanulmányi időszakon túlnyúló órarendi órák tolDt-ének beállítása - vegzosOrarendLezaras($ADAT); - vegzosHaladasiNaploLezaras($ADAT); - foreach ($ADAT['lezarandoOsztaly'] as $index => $osztalyId) { - // osztaly diákjainak lekérdezése - $Diakok = getDiakok(array('osztalyId' => $osztalyId)); - $diakIds = array(); - for ($i = 0; $i < count($Diakok); $i++) $diakIds[] = $Diakok[$i]['diakId']; - // osztaly tanköreinek lekérdezése - $tankorIds = array_values(array_diff(getTankorByOsztalyId($osztalyId, __TANEV, array('csakId' => true)), $ADAT['vegzosTankor'])); - - if (is_array($tankorIds) && count($tankorIds) > 0) for ($i = 0; $i < count($diakIds); $i++) { - // A nem csak végzős tankörökben a tankör tagság beállítása - $Mod = array( - 'diakId' => $diakIds[$i], - 'tankorIds' => $tankorIds, - 'tolDt' => $ADAT['dt'], - 'igDt' => $_TANEV['zarasDt'], - 'utkozes' => 'torles' - ); - tankorDiakTorol($Mod); - } - } - - } - - $TOOL['datumSelect'] = array( - 'tipus' => 'cella', 'post' => array('lezarandoOsztaly'), - 'paramName' => 'dt', 'hanyNaponta' => 1, - 'override'=>true, // használathoz még át kell írni pár függvényt!!! - 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))), - 'igDt' => $_TANEV['zarasDt'], - ); - getToolParameters(); - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php deleted file mode 100644 index 1efe15cb..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php deleted file mode 100644 index 4695da13..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php +++ /dev/null @@ -1,77 +0,0 @@ - $osztalyId) { - // osztaly diákjainak lekérdezése - $Diakok = getDiakok(array('osztalyId' => $osztalyId)); - $diakIds = array(); - for ($i = 0; $i < count($Diakok); $i++) $diakIds[] = $Diakok[$i]['diakId']; - // osztaly tanköreinek lekérdezése - $tankorIds = getTankorByOsztalyId($osztalyId, __TANEV, array('csakId' => true)); - if (is_array($tankorIds) && count($tankorIds) > 0) for ($i = 0; $i < count($diakIds); $i++) { - // A nem csak végzős tankörökben a tankör tagság beállítása - $Mod = array( - 'diakId' => $diakIds[$i], - 'tankorIds' => $tankorIds, - 'tolDt' => $ADAT['dt'], - 'utkozes' => 'torles' - ); - tankorDiakTorol($Mod); - } - } - $_SESSION['alert'][] = 'info:success'; - - } - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php deleted file mode 100644 index 1efe15cb..00000000 --- a/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php deleted file mode 100644 index 58d44e40..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php deleted file mode 100644 index a60e71d0..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php +++ /dev/null @@ -1,35 +0,0 @@ -'cella', 'paramName'=>'tanarId', 'post'=>array('targyId')); - $TOOL['targySelect'] = array('tipus'=>'cella', 'paramName'=>'targyId', 'post'=>array('tanarId')); - if (isset($tanarId) || isset($targyId)) { - $TOOL['tanmenetSelect'] = array('tipus'=>'sor', 'paramName'=>'tanmenetId', 'post'=>array('tanarId','targyId')); - $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas'), - 'titleConst' => array('_MODOSITAS'), 'post' => array('tanarId','targyId'), - 'paramName'=>'tanmenetId'); - } - getToolParameters(); - - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php deleted file mode 100644 index 9d2b70e0..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php +++ /dev/null @@ -1,15 +0,0 @@ -"tanmenet")); - echo ''."\n"; - echo 'Nincs tanmenet megadva!
'; - if ($skin != 'ajax') formEnd(); - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php deleted file mode 100644 index d173ab93..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php +++ /dev/null @@ -1,88 +0,0 @@ -0) $mkId = $ADAT['vezetettMkIds'][0]; - $ADAT['mkId'] = $mkId; - - if ($mkId != 0) { - - - $ADAT['tanarok'] = getTanarok(array('mkId'=>$mkId, 'tanev'=>__TANEV, 'result'=>'assoc')); - $ADAT['tanarIds'] = array_keys($ADAT['tanarok']); - $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'id', null, $ADAT['tanarIds']); - $Filter = array(); - if ($tanarId != '') { - $tTankorIds = getTankorByTanarId($tanarId, __TANEV, array('csakId'=>true)); - if (is_array($tTankorIds) && count($tTankorIds) > 0) $Filter[] = 'tankor.tankorId IN ('.implode(',',$tTankorIds).')'; - } - $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id', null); - if ($osztalyId != '') { - $oTankorIds = getTankorByOsztalyId($osztalyId, __TANEV, array('csakId'=>true)); - if (is_array($oTankorIds) && count($oTankorIds) > 0) $Filter[] = 'tankor.tankorId IN ('.implode(',',$oTankorIds).')'; - - } - define('__JOVAHAGYHAT', __VEZETOSEG || __NAPLOADMIN || in_array($mkId, $ADAT['vezetettMkIds'])); - $ADAT['tankorok'] = getTankorByMkId($mkId, __TANEV, array('csakId'=>false, 'filter'=>$Filter)); - $ADAT['tankorIds'] = array(); - foreach ($ADAT['tankorok'] as $tAdat) { - $ADAT['tankorIds'][] = $tAdat['tankorId']; - } - if (count($ADAT['tankorIds']) > 0) { - $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds']); - $ADAT['tanmenetAdat'] = $tanmenetIds = array(); - foreach ($ADAT['tankorTanmenet'] as $tankorId => $tanmenetId) { - if (!in_array($tanmenetId, $tanmenetIds)) $tanmenetIds[] = $tanmenetId; - } - foreach ($tanmenetIds as $tanmenetId) $ADAT['tanmenetAdat'][$tanmenetId] = getTanmenetAdat($tanmenetId); - } // vannak tankorok - - - if ($action == 'tanmenetModositas' && __JOVAHAGYHAT) { - - $tanmenetId = readVariable($_POST['tanmenetId'], 'id'); - $statusz = readVariable($_POST['statusz'], 'enum', array('új','kész','jóváhagyott','publikus')); - if ($tanmenetId != '' && $statusz != '') { - $D = array( - 'tanmenetNev' => $ADAT['tanmenetAdat'][$tanmenetId]['tanmenetNev'], - 'oraszam' => $ADAT['tanmenetAdat'][$tanmenetId]['oraszam'], - 'evfolyamJel' => $ADAT['tanmenetAdat'][$tanmenetId]['evfolyamJel'], - 'tanmenetId' => $tanmenetId, - 'ujStatusz' => $statusz - ); - if (tanmenetAdatModositas($D)) $ADAT['tanmenetAdat'][$tanmenetId]['statusz'] = $statusz; - } - } - - } // van mkId - - $TOOL['munkakozossegSelect'] = array('tipus'=>'cella', 'paramName'=>'mkId', 'post'=>array('tanarId','osztalyId')); - if ($mkId != '') { - $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'mkId'=>$mkId, 'post'=>array('mkId','osztalyId')); - $TOOL['osztalySelect'] = array('tipus'=>'cella', 'paramName'=>'osztalyId', 'mkId'=>$mkId, 'post'=>array('mkId','tanarId')); - } -/* - $TOOL['targySelect'] = array('tipus'=>'cella', 'paramName'=>'targyId', 'post'=>array()); - if (isset($tanarId) || isset($targyId)) { - $TOOL['tanmenetSelect'] = array('tipus'=>'cella', 'paramName'=>'tanmenetId', 'post'=>array('tanarId','targyId')); - $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas'), - 'titleConst' => array('_MODOSITAS'), 'post' => array('tanarId','targyId'), - 'paramName'=>'tanmenetId'); - } -*/ - getToolParameters(); - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php deleted file mode 100644 index f0a92c71..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php deleted file mode 100644 index a71c14b0..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php +++ /dev/null @@ -1,51 +0,0 @@ - $ADAT['tanev'], 'tipus' => array('tanmenet leadás'), 'tolDt' => date('Y-m-d'), 'igDt' => date('Y-m-d'))); - define('__TANMENETLEADASIDOSZAK',(count($ADAT['idoszak']) > 0)); - if (!__TANMENETLEADASIDOSZAK) $_SESSION['alert'][] = 'info:nincs_tanmenetleadas_idoszak:tanev='.$ADAT['tanev']; - else $_SESSION['alert'][] = 'info:tanmenetleadas_idoszak_vege:'.substr($ADAT['idoszak'][0]['igDt'],0,10); - - $ADAT['tanarok'] = getTanarok(array('tanev' => $tanev)); - - $ADAT['tankorIds'] = array(); - for ($i = 0; $i < count($ADAT['tanarok']); $i++) { - $tanarId = $ADAT['tanarok'][$i]['tanarId']; - $ADAT['tanarok'][$i]['tankorIds'] = getTankorByTanarId($tanarId, __TANEV, array('csakId' => true)); - $ADAT['tankorIds'] = array_unique(array_merge($ADAT['tankorIds'], $ADAT['tanarok'][$i]['tankorIds'])); - } - $ADAT['tankorok'] = getTankorAdatByIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'dt' => $_TANEV['kezdesDt'])); - $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds'], array('tanev' => $ADAT['tanev'])); - $ADAT['tanmenetek'] = getTanmenetek(); - -//echo ''; var_dump($ADAT['tanmenetek']); echo ''; - -echo ''; - // Melyik tanárnak hány "leadott jóváhagyott" / "leadott, nem jóváhagyott" / "nem leadott" tanmenet-tankör hozzárendelése van? - for ($i = 0; $i < count($ADAT['tanarok']); $i++) { - $tanarId = $ADAT['tanarok'][$i]['tanarId']; - foreach ($ADAT['tanarok'][$i]['tankorIds'] as $tankorId) { - if (isset($ADAT['tankorTanmenet'][$tankorId])) { - $tanmenetId = $ADAT['tankorTanmenet'][$tankorId]; - if ( - $ADAT['tanmenetek'][$tanmenetId]['statusz'] == 'jóváhagyott' - || $ADAT['tanmenetek'][$tanmenetId]['statusz'] == 'publikus' - ) $ADAT['tanarok'][$i]['db']['jóváhagyott']++; - elseif ($ADAT['tanmenetek'][$tanmenetId]['statusz'] == 'kész') $ADAT['tanarok'][$i]['db']['kész']++; - else $ADAT['tanarok'][$i]['db']['új']++; -// if ($ADAT['tanmenetek'][$tanmenetId]['jovahagyva']) $ADAT['tanarok'][$i]['db']['jovahagyva']++; -// else $ADAT['tanarok'][$i]['db']['nincs jovahagyva']++; - } else { - $ADAT['tanarok'][$i]['db']['hiányzik']++; - } - } - } -?> diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php deleted file mode 100644 index 12e8e920..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php deleted file mode 100644 index 0afd8498..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php +++ /dev/null @@ -1,83 +0,0 @@ -'idonly')); - $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId); - $ADAT['mkAdat'] = getMunkakozossegByTargyId($ADAT['tanmenetAdat']['targyId']); - $ADAT['tanarId'] = $tanarId = $ADAT['tanmenetAdat']['tanarId']; - $ADAT['targyId'] = $targyId = $ADAT['tanmenetAdat']['targyId']; - define('__KESZITO', (__USERTANARID == $ADAT['tanmenetAdat']['tanarId'])); - define('__MKVEZETO', (__USERTANARID == $ADAT['mkAdat']['mkVezId'])); - define('__MODOSITHAT', - __NAPLOADMIN // admin bármikor - || ( - (__VEZETOSEG || __KESZITO || __MKVEZETO) // vezetőségi tag, mk.vez és a létrehozó szaktanár... - && ($ADAT['tanmenetAdat']['statusz'] == 'új' || $ADAT['tanmenetAdat']['statusz'] == 'kész') // ... ha még nincs jóváhagyva - ) - ); - if (__NAPLOADMIN || __VEZETOSEG || __MKVEZETO) $ADAT['statusz'] = array('új','kész','jóváhagyott','publikus','elavult'); - elseif (__KESZITO) { - if (in_array($ADAT['tanmenetAdat']['statusz'], array('új','kész'))) { $ADAT['statusz'] = array('új','kész'); } - else { $ADAT['statusz'] = array('jóváhagyott','publikus'); } - } else $ADAT['statusz'] = array(); - - if ($action != '') { - if (__MODOSITHAT && $action == 'tanmenetTemakorModositas') { - $ADAT['temakor']['oraszam'] = readVariable($_POST['oraszam'], 'numeric unsigned'); - $ADAT['temakor']['temakorMegnevezes'] = readVariable($_POST['temakorMegnevezes'], 'string', ''); - tanmenetTemakorModositas($ADAT); - $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId); - } elseif ($action == 'tanmenetAdatModositas') { - if ((__NAPLOADMIN === true || __KESZITO) && readVariable($_POST['tanmenetTorol'],'numeric unsigned') == 1) { - if (tanmenetTorol($tanmenetId)===false) { - $_SESSION['alert'][] = 'info:error:hiba a tanmenet törlésekor'; - } else { - $_SESSION['alert'][] = 'info:success'; - unset ($ADAT); - unset($tanmenetId); - } - } else { - if (__MODOSITHAT) { // Az óraszám és évfolyam-jel is változtatható - $DAT['oraszam'] = readVariable($_POST['oraszam'], 'numeric unsigned'); - $DAT['evfolyamJel'] = readVariable($_POST['evfolyamJel'], 'numeric unsigned'); - } else { // csak a tanmenet neve és státusza változtatható - $DAT = $ADAT['tanmenetAdat']; - } - $DAT['tanmenetId'] = $tanmenetId; - $DAT['tanmenetNev'] = readVariable($_POST['tanmenetNev'], 'string'); - $DAT['ujStatusz'] = readVariable($_POST['statusz'], 'enum', $ADAT['tanmenetAdat']['statusz'], $ADAT['statusz']); - tanmenetAdatModositas($DAT); - $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId); - } - } - } - } - - - $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array()); - $TOOL['targySelect'] = array('tipus'=>'cella', 'paramName'=>'targyId', 'post'=>array()); - if (isset($tanarId) || isset($targyId) || isset($tanmenetId)) { - $TOOL['tanmenetSelect'] = array('tipus'=>'sor', 'paramName'=>'tanmenetId', 'post'=>array('tanarId','targyId')); - $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo'), - 'titleConst' => array('_MUTAT'), 'post' => array('tanmenetId','tanarId','targyId'), - 'paramName'=>'tanmenetId'); - } - getToolParameters(); - - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php deleted file mode 100644 index e741e222..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php deleted file mode 100644 index 74ca1a6e..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php +++ /dev/null @@ -1,95 +0,0 @@ - true)); - $ADAT['tankorok'] = getTankorAdatByIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'dt' => $_TANEV['kezdesDt'])); - $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds'], array('tanev' => $ADAT['tanev'])); - $tanmenetAdat = $ADAT['tanmenetek'] = array(); - if (is_array($ADAT['tankorok'])) - foreach ($ADAT['tankorok'] as $tankorId => $tAdat) { - if (!is_array($ADAT['tanmenetek'][ $tAdat['targyId'] ])) { - $ADAT['tanmenetek'][ $tAdat['targyId'] ] = getTanmenetByTargyId($tAdat['targyId'], array('result'=>'assoc')); - if (is_array($ADAT['tanmenetek'][ $tAdat['targyId'] ])) - foreach ($ADAT['tanmenetek'][ $tAdat['targyId'] ] as $tanmenetId => $tanAdat) { - // Mikor módosítható az adott tanmenet? - $ADAT['tanmenetek'][ $tAdat['targyId'] ][ $tanmenetId ]['modosithato'] = ( - __NAPLOADMIN // admin bármikor - || ( - (__VEZETOSEG || __USERTANARID == $tanAdat['tanarId']) // vezetőségi tag és a létrehozó szaktanár... - && ($tanAdat['statusz'] == 'új' || $tanAdat['statusz'] == 'kész') // ... ha még nincs jóváhagyva - ) - - ); - $ADAT['tanmenetAdat'][$tanmenetId] = $tanAdat; - } - } - } - -//echo ''; var_dump($ADAT['tanmenetek']); echo ''; - - $ADAT['idoszak'] = getIdoszakByTanev(array('tanev' => $ADAT['tanev'], 'tipus' => array('tanmenet leadás'), 'tolDt' => date('Y-m-d'), 'igDt' => date('Y-m-d'))); - define('__TANMENETLEADASIDOSZAK',(count($ADAT['idoszak']) > 0)); - if (!__TANMENETLEADASIDOSZAK) $_SESSION['alert'][] = 'info:nincs_tanmenetleadas_idoszak:tanev='.$ADAT['tanev']; - define('__MODOSITHAT', - __NAPLOADMIN // admin bármikor - || __VEZETOSEG || __USERTANARID == $ADAT['tanarId'] // vezetőség és szaktanár is bármikor -// || ( -// (__VEZETOSEG || __USERTANARID == $ADAT['tanarId']) // vezetőségi tag és a létrehozó szaktanár... -// && __TANMENETLEADASIDOSZAK // megfelelő időszakban vagyunk -// ) - ); - - - if (__MODOSITHAT===true && $action == 'hozzarendeles') { - if (isset($_POST['masolas'])) $action = 'masolas'; - elseif (isset($_POST['uj'])) $action = 'uj'; - elseif (isset($_POST['modosit'])) $action = 'modosit'; - elseif (isset($_POST['info'])) $action = 'info'; - } else { - $action = ''; - } - $ADAT['tankorId'] = readVariable($_POST['tankorId'], 'id'); - - if (__MODOSITHAT === true) { - if ($action == 'hozzarendeles') { - $ADAT['tanmenetId'] = readVariable($_POST['tanmenetId'], 'id'); - tankorTanmenetHozzarendeles($ADAT); - $ADAT['tankorTanmenet'][$ADAT['tankorId']] = $ADAT['tanmenetId']; - } elseif (__TANAR && $action == 'uj') { - header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=ujTanmenet&tankorId='.$ADAT['tankorId'])); - } elseif (__TANAR && $action == 'masolas') { - $eredetiTanmenetId = readVariable($_POST['tanmenetId'], 'id'); - if (isset($eredetiTanmenetId)) { - $ADAT['tanmenetId'] = tanmenetDuplikalas($eredetiTanmenetId, __USERTANARID); - tankorTanmenetHozzarendeles($ADAT); - header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas&tanmenetId='.$ADAT['tanmenetId'])); - } - } elseif ($action == 'modosit') { - $ADAT['tanmenetId'] = readVariable($_POST['tanmenetId'], 'id'); - if (isset($ADAT['tanmenetId'])) header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas&tanmenetId='.$ADAT['tanmenetId'])); - } elseif ($action == 'info') { - $ADAT['tanmenetId'] = readVariable($_POST['tanmenetId'], 'id'); - if (isset($ADAT['tanmenetId'])) header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo&tanmenetId='.$ADAT['tanmenetId'])); - } - } - } - - - $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array()); -// $TOOL['osztalySelect']= array('tipus'=>'cella', 'paramName'=>'osztalyId', 'post'=>array()); - getToolParameters(); -?> diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php deleted file mode 100644 index 814e624d..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php deleted file mode 100644 index e0d2402d..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php +++ /dev/null @@ -1,72 +0,0 @@ - 'indexed')); - $ADAT['mkIds'] = $ADAT['targyIds'] = $ADAT['targy'] = array(); - foreach ($ADAT['munkakozosseg'] as $key => $mkAdat) { - $tmp = getTargyakByMkId($mkAdat['munkakozossegId'], array('result' => 'indexed')); - $ADAT['mkIds'][] = $mkAdat['munkakozossegId']; - $ADAT['targy'] = array_merge($ADAT['targy'], $tmp); - } - for ($i = 0; $i < count($ADAT['targy']); $i++) $ADAT['targyIds'][] = $ADAT['targy'][$i]['targyId']; - - // tanév - alapértelmezetten a __TANEV - $ADAT['tanev'] = readVariable($_POST['tanev'], 'numeric unsigned', is_numeric(__TANEV)?__TANEV:null); - - // Egy tankörhöz rendelendő új tanmenethez - $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'],'id', readVariable($_GET['tankorId'], 'id')); - - // tankör --> tárgy --> munkaközösség - if (isset($tankorId)) { - $TA = getTankorAdat($tankorId); - $ADAT['tankorAdat'] = $TA[$tankorId][0]; - $ADAT['tankorAdat']['osztalyIds'] = getTankorOsztalyaiByTanev($tankorId, $ADAT['tanev']); - $evf = array(); - foreach ($ADAT['tankorAdat']['osztalyIds'] as $osztalyId) $evf[] = getEvfolyamJel($osztalyId, $ADAT['tanev']); - $ADAT['tankorAdat']['evfolyamJel'] = $evf[0]; - } - - // Munkaközösség és tankör - $mkId = readVariable($_POST['mkId'], 'id', null, $ADAT['mkIds']); - $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'id', $ADAT['tankorAdat']['targyId'], $ADAT['targyIds']); - if (isset($tankorId) && $targyId != $ADAT['tankorAdat']['targyId']) unset($tankorId); - - $ADAT['evfolyamJel'] = $evfolyamJel = readVariable($_POST['evfolyamJel'], 'enum', $ADAT['tankorAdat']['evfolyamJel']); - if (isset($targyId) && isset($evfolyamJel)) { - $ADAT['targyAdat'] = getTargyById($targyId); - // Itt lekérdezhetnénk az eddigi ilyen tanmenetek listáját - megjelenítés céljából - $ADAT['tanmenetek'] = getTanmenetByTargyId($targyId); -//echo ''; var_dump($ADAT['tanmenetek']); echo ''; - } - - if ($action == 'ujTanmenet') { - $ADAT['tanmenetNev'] = readVariable($_POST['tanmenetNev'], 'string', $evfolyamJel.'. '.$ADAT['targyAdat']['targyNev'].' ('.$ADAT['targyAdat']['targyJelleg'].')'); - $ADAT['oraszam'] = readVariable($_POST['oraszam'], 'numeric unsigned'); - $ADAT['tanmenetId'] = $tanmenetId = ujTanmenet($ADAT); - if (isset($tankorId)) { - // itt kellene hozzárendelni a tankorhoz? - tankorTanmenetHozzarendeles($ADAT); - } - if ($tanmenetId) header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas&tanmenetId='.$tanmenetId)); - } - - // $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array('tankorId','targyId','evfolyamJel')); - $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'munkakozossegek' => $ADAT['munkakozosseg'], 'post'=>array('tankorId','evfolyamJel')); - if (isset($mkId)) $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'post'=>array('mkId', 'tankorId','evfolyamJel')); - else $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'targyak' => $ADAT['targy'], 'post'=>array('mkId', 'tankorId','evfolyamJel')); - $TOOL['evfolyamJelSelect'] = array('tipus'=>'cella', 'paramName' => 'evfolyamJel', 'paramDesc'=>'evfolyamJel','adatok' => $ADAT['evfolyamJelek'],'post'=>array('targyId', 'tankorId')); - getToolParameters(); - - -?> diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php b/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php deleted file mode 100644 index f304c404..00000000 --- a/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tools/ajax.php b/mayor-orig/www/policy/private/naplo/tools/ajax.php deleted file mode 100644 index 9d01f5fb..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/ajax.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tools/ajaxExample.php b/mayor-orig/www/policy/private/naplo/tools/ajaxExample.php deleted file mode 100644 index 41e27e62..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/ajaxExample.php +++ /dev/null @@ -1,29 +0,0 @@ -$today,'tolDt'=>$today),'post'); - - echo '
'; - - echo ''; // -- OBSOLETE - -?> diff --git a/mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php deleted file mode 100644 index 02619e93..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php +++ /dev/null @@ -1,38 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php deleted file mode 100644 index 5d722b38..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php +++ /dev/null @@ -1,61 +0,0 @@ -true,'result'=>'assoc','keyfield'=>'osztalyId','osztalyIds'=>$OSZTALYIDS)); - $_JSON['diakJogviszony'] = getDiakJogviszony($diakId); -// $_JSON['diakHianyzasOsszesites'] = getDiakHianyzasOsszesites($diakId,szemeszteradat); - $_JSON['diakHianyzasStat'] = getDiakHianyzasStat($diakId); - $_JSON['diakTankor'] = getTankorByDiakId($diakId,__TANEV); - for ($i=0; $ifalse)); - // $_JSON['diakJogviszony'] = getDiakTorzslapszam($diakId); - - $_tmp = getKepzesByDiakId($diakId); - $_JSON['diakKepzes'] = $_tmp[$diakId]; - - $tmp = getDiakSzulei($diakId); - $_JSON['diakSzulo'] = array(); - if (is_array($tmp[0]) && count($tmp[0])>=1) { - foreach ($tmp[0] as $tipus => $id) if (!is_null($id)) $szuloIds[] = $id; - if (count($szuloIds)>0) { - $_JSON['diakSzulo'] = getSzulok(array('csakId'=>false,'result'=>'indexed','szuloIds'=>$szuloIds)); -// $_JSON['szuloIds'] = $szuloIds; - } - } -} - - /* PUBLIKUS ADATOK */ - $_JSON['diakId'] = $diakId; - $_JSON['tanev'] = __TANEV; - - // controllok: - //enum('felvételt nyert','jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva') -// if ($_JSON['statusz'] == 'jogviszonya lezárva') { -// } else { -// } -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php deleted file mode 100644 index 1a91a482..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php +++ /dev/null @@ -1,36 +0,0 @@ -false)); -// $jegySelect .= putJegySelect($ADAT,'return'); -// $jegySelect .= formEnd(array('print'=>false)); -// $_JSON['jegySelect'] = $jegySelect; - -// $_JSON['debug'] = $ADAT; - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php deleted file mode 100644 index 31dd4699..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php +++ /dev/null @@ -1,94 +0,0 @@ -'pre','modul'=>'naplo','result'=>'idonly','values'=>$v)); - - for ($i=0; $i $tolDt,'igDt'=>$igDt,'tankorIdk'=>$JA['tankorIdk'], - // módosítható az óra? - $_JSON['oraBeirhato'] = $oraBeirhato; - $_JSON['dolgozatBeirhato'] = $dolgozatBeirhato; - - if ($oraBeirhato===true) { // HTML FORM - $oraForm = ''; - $_JSON['oraForm'] = $oraForm; - } - if ($dolgozatBeirhato===true) { // HTML FORM - $dolgozatForm = ''; - $_JSON['dolgozatForm'] = $dolgozatForm; - } - } - - /* PUBLIKUS ADATOK */ - $_JSON['oraId'] = $oraId; - $_JSON['tanev'] = __TANEV; - - // TEMPLATE -// $ORAK = getTanarNapiOrak($tanarId); - $s = ''; - if (is_array($ORAK) && count($ORAK)>0) { - for ($ora=__MIN_ORA; $ora<=__MAX_ORA; $ora++) { - $OA = $ORAK[$ora]; - $s .= ' '.$ora.'. '.$OA[$i]['tankorNev']; - for ($i=0; $i\ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php deleted file mode 100644 index 246f5821..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php +++ /dev/null @@ -1,39 +0,0 @@ - substr($_JSON['tankorNev'],0, strpos($_JSON['tankorNev'],' ')), - 'targyNev' => $targyAdat['targyNev'], - 'tankorJel' =>$_JSON['tankorJel'] - ); - $_JSON['tankorNevReszei']['tankorNevExtra'] = trim(str_replace($_JSON['tankorNevReszei']['evfOszt'].' '.$_JSON['tankorNevReszei']['targyNev'],'', - str_replace($_JSON['targyJel'],'',$_JSON['tankorNev']))); - $_JSON['tankorSzemeszter'] = getTankorSzemeszterei($tankorId); - $_JSON['osztalyIds'] = getTankorOsztalyai($tankorId); - $_JSON['osztalyok'] = getOsztalyok(); - $_JSON['tankorTanar'] = getTankorTanarai($tankorId); - $_JSON['tankorDiak'] = //getTankorDiakjai($tankorId); - getTankorDiakjaiByInterval($tankorId); - $_JSON['tankorBlokk'] = getTankorBlokkByTankorId(array($tankorId),__TANEV,array('blokkNevekkel'=>true)); -*/ - $_JSON['visibleData'] = true; -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php deleted file mode 100644 index 99758d84..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php +++ /dev/null @@ -1,27 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php deleted file mode 100644 index 22394655..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php +++ /dev/null @@ -1,56 +0,0 @@ -$tanarId)); - - // TEMPLATE - $ORAK = getTanarNapiOrak($tanarId); - $s = ''; - if (is_array($ORAK) && count($ORAK)>0) { - for ($ora=__MIN_ORA; $ora<=__MAX_ORA; $ora++) { - $OA = $ORAK[$ora]; - $s .= ' '.$ora.'. '.$OA[$i]['tankorNev']; - for ($i=0; $i'; - -// echo '\ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php deleted file mode 100644 index 01571f22..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php +++ /dev/null @@ -1,38 +0,0 @@ - substr($_JSON['tankorNev'],0, strpos($_JSON['tankorNev'],' ')), - 'targyNev' => $targyAdat['targyNev'], - 'tankorJel' =>$_JSON['tankorJel'] - ); - $_JSON['tankorNevReszei']['tankorNevExtra'] = trim(str_replace($_JSON['tankorNevReszei']['evfOszt'].' '.$_JSON['tankorNevReszei']['targyNev'],'', - str_replace($_JSON['targyJel'],'',$_JSON['tankorNev']))); - $_JSON['tankorSzemeszter'] = getTankorSzemeszterei($tankorId); - $_JSON['osztalyIds'] = getTankorOsztalyai($tankorId); - $_JSON['osztalyok'] = getOsztalyok(); - $_JSON['tankorTanar'] = getTankorTanarai($tankorId); - $_JSON['tankorDiak'] = //getTankorDiakjai($tankorId); - getTankorDiakjaiByInterval($tankorId); - $_JSON['tankorBlokk'] = getTankorBlokkByTankorId(array($tankorId),__TANEV,array('blokkNevekkel'=>true)); - $_JSON['tanmenetId'] = array_pop(getTanmenetByTankorIds(array($tankorId))); - $_JSON['tanmenetAdat'] = getTanmenetAdat($_JSON['tanmenetId']); - - $_JSON['visibleData'] = true; -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php deleted file mode 100644 index fd5a624e..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php +++ /dev/null @@ -1,41 +0,0 @@ -false)); - $jegySelect .= putJegySelect($ZA,'return'); -// $jegySelect .= formEnd(array('print'=>false)); - $_JSON['jegySelect'] = $jegySelect; - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php b/mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php deleted file mode 100644 index e881059c..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php b/mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php deleted file mode 100644 index af83206a..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php +++ /dev/null @@ -1,8 +0,0 @@ -div#naploToolIntezmenyNev {font-size:x-large; text-align: center; padding:1em;}'; - echo ' '.$intezmeny['nev'].''; -?> diff --git a/mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php deleted file mode 100644 index a893ddf6..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php +++ /dev/null @@ -1,165 +0,0 @@ -$tanev,'tolDt'=>$dt,'igDt'=>$dt)); - } elseif (__JEGYZETSZEREPTIPUS == 'tanar') { - $ADAT['munkakozossegek'] = getMunkakozossegByTanarId(__JEGYZETSZEREPID, array('idonly'=>false)); - if (is_array($_OSZTALYA) && count($_OSZTALYA)>0) $ADAT['osztalyok'] = getOsztalyok(null,array('osztalyIds'=>$_OSZTALYA)); - $ADAT['tankorok'] = getTankorByTanarId(__JEGYZETSZEREPID); - } else { - - } - - // GET - $_JSON['adat'] = $ADAT['jegyzetAdat'] = getJegyzetAdat($jegyzetId); - - define('__READONLY',($jegyzetId>0 - && (__JEGYZETSZEREPTIPUS!==$ADAT['jegyzetAdat']['userTipus'] - || __JEGYZETSZEREPID!==$ADAT['jegyzetAdat']['userId']))); - if ($jegyzetId<=0) { - $dt = $_JSON['refJegyzetDt']; - $leiras = "Új jegyzet"; - } else { - $dt = $ADAT['jegyzetAdat']['dt']; - $leiras = "Jegyzet"; - } - - $_JSON['jegyzetId'] = $jegyzetId; - $_JSON['visibleData'] = true; - $_JSON['leiras'] = $leiras; - - $_CHK[$ADAT['jegyzetAdat']['publikus']] = ' checked="checked" '; - - // generate HTML Template -if (__READONLY===false) { - - // formBegin!!!!!! a pre-ben nem létezik :( - $jegyzetForm = ''; - - // töröl - $jegyzetForm .= ' - '; - -} else { - $jegyzetForm .= ''.supertext($_JSON['adat']['jegyzetLeiras']).'
'; - $jegyzetForm .= ''; - for ($i=0; $i
'; - - $jegyzetForm .= ''.$_D['tankorNev'].''; - } - } - for ($i=0; $i '; - } - } - for ($i=0; $i '; - } - } - - $jegyzetForm .= ' '; - $jegyzetForm .= 'Ezt a jegyzetet más felhasználó jegyezte be. - Adatai egyelőre nem nyilvánosak. Addig is jegyezd meg, hogy ezeket így írjuk helyesen: -
;) - - '; -} - - $_JSON['jegyzetForm'] = $jegyzetForm; - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/kereso-pre.php b/mayor-orig/www/policy/private/naplo/tools/kereso-pre.php deleted file mode 100644 index 026acd20..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/kereso-pre.php +++ /dev/null @@ -1,25 +0,0 @@ -true)); - } - - if ($ADAT['strict']==1) { - $_JSON = $ADAT; - } else { - $_JSON[] = $ADAT; // hozzáfűzzük valami random indexszel?!?! - } - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php deleted file mode 100644 index 22ead763..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php +++ /dev/null @@ -1,23 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/oid.php b/mayor-orig/www/policy/private/naplo/tools/oid.php deleted file mode 100644 index bb5e7696..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/oid.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php deleted file mode 100644 index 67c94a57..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php +++ /dev/null @@ -1,2 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/tankor-pre.php b/mayor-orig/www/policy/private/naplo/tools/tankor-pre.php deleted file mode 100644 index ae614514..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/tankor-pre.php +++ /dev/null @@ -1,39 +0,0 @@ - - table._t tr th { font-weight:normal; text-align: right; } - '; - $r.='
- tanár úr (fiú, tehát külön),
- tanárnő (lány, tehát egybe),
- muszáj (pontos jé)
'; - foreach($tankorAdat as $k => $v) { - $r .= '
'."\n"; - -/* $r.= 'Tankörtípus:'; - $r.= ''; - $r.=serialize($TA); -*/ - return $r; - } - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php b/mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php deleted file mode 100644 index 7dab9b9f..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php +++ /dev/null @@ -1,66 +0,0 @@ -$tolDt, 'igDt'=>$igDt)); - } elseif (isset($osztalyId) && $osztalyId!='') { // osztály tankörei - $tankorok = getTankorByOsztalyId($osztalyId, $tanev, array('tolDt'=>$tolDt, 'igDt'=>$igDt)); - } elseif (isset($tanarId) && $tanarId!='') { // tanár tankörei - $tankorok = getTankorByTanarId($tanarId, $tanev, array('tolDt'=>$tolDt, 'igDt'=>$igDt)); - } else { // általános tankörlekérdző - $WHERE = array(); - if (isset($targyId) && $targyId != '') { // leszűkítés adott tárgyra - $WHERE[] = 'targyId='.$targyId; - } elseif (isset($mkId) && $mkId != '') { // leszűkítés adott munkaközösségre - $TARGYAK = getTargyakByMkId($mkId); - for ($i = 0; $i < count($TARGYAK); $i++) $T[] = $TARGYAK[$i]['targyId']; - if (count($T) > 0) $WHERE[] = 'targyId IN ('.implode(',', $T).')'; - } - - if (isset($tanev)) // szűkítés adott tanévre - $WHERE[] = 'tankorSzemeszter.tanev='.$tanev; - - $tankorok = getTankorok($WHERE); - } - $tankorIds = array(); - for ($i=0; $i'; - } - $r.=' '.$k.': '.$v.' 0) { - - $bontasTankorIds = getTankorByBontasIds($bontasIds); - $tankorOraszamok = getTankorTervezettOraszamok($tankorIds); - - for ($i=0; $i \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php b/mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php deleted file mode 100644 index 35a4306f..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php +++ /dev/null @@ -1,40 +0,0 @@ - substr($_JSON['tankorNev'],0, strpos($_JSON['tankorNev'],' ')), - 'targyNev' => $targyAdat['targyNev'], - 'tankorJel' =>$_JSON['tankorJel'] - ); - $_JSON['tankorNevReszei']['tankorNevExtra'] = trim(str_replace($_JSON['tankorNevReszei']['evfOszt'].' '.$_JSON['tankorNevReszei']['targyNev'],'', - str_replace($_JSON['targyJel'],'',$_JSON['tankorNev']))); - $_JSON['tankorSzemeszter'] = getTankorSzemeszterei($tankorId); - $_JSON['osztalyIds'] = getTankorOsztalyai($tankorId); - $_JSON['alert'] = $_SESSION['alert']; - $_JSON['osztalyok'] = getOsztalyok(); - $_JSON['tankorTipusok'] = getTankorTipusok(); - // $_JSON['post'] = $_POST; - } - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php b/mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php deleted file mode 100644 index 0f581de6..00000000 --- a/mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php +++ /dev/null @@ -1,114 +0,0 @@ - $tAdat) { - foreach ($tAdat as $evfolyamJel => $eAdat) { - if ($evfolyamJel == $koAdat['evfolyamJel']) $ok = true; - if ($ok) { - foreach ($eAdat as $szemeszter => $szAdat) { - $ADAT['oraszam'][$tanev][$szemeszter] = $szAdat[0]['hetiOraszam']; - $tankorOraszam[] = array('tanev'=>$tanev,'szemeszter'=>$szemeszter,'oraszam'=>$szAdat[0]['hetiOraszam']); - } - $tanev++; - } - } - } - // a bontásokból: - // - osztalyIds - $q = "SELECT DISTINCT osztalyId FROM kepzesTargyBontas WHERE bontasId IN (".implode(',', array_fill(0, count($bontasIds), '%u')).")"; - $ADAT['osztalyIds'] = db_query($q, array('fv'=>'ujTankor-pre','modul'=>'naplo','result'=>'idonly','values'=>$bontasIds)); - // A tárgy adataiból: évközi követelmény - $targyAdat = getTargyById($ADAT['targyId']); - $ADAT['kovetelmeny'] = $targyAdat['evkoziKovetelmeny']; - // kellene még: elnevezés - $ADAT['tankorJel'] = 'B'.$bontasIds[0]; - // választható - default NULL; min/max létszám: 0; évközi követelmény: a tárgyból/jegy; - $ADAT['min'] = $ADAT['max'] = 0; - - // A tankor felvétele - $lr = db_connect('naplo_intezmeny'); - db_start_trans($lr); $ok = true; - $q = "INSERT INTO tankor (targyId,tankorTipusId,kovetelmeny,min,max) VALUES (%u,%u,'%s',%u,%u)"; - $v = array($ADAT['targyId'], $ADAT['tankorTipusId'], $ADAT['kovetelmeny'], $ADAT['min'], $ADAT['max']); - $tankorId = db_query($q, array('fv'=>'ujTankor-pre/1','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v), $lr); - $ok = $ok && $tankorId; - if ($ok) { - // tankör-osztály hozzárendelés - $q = "INSERT INTO tankorOsztaly (tankorId, osztalyId) VALUES (%u, %u)"; - foreach ($ADAT['osztalyIds'] as $index => $osztalyId) $ok = $ok && db_query($q, array('fv'=>'ujTankor-pre/3','modul'=>'naplo_intezmeny','values'=>array($tankorId, $osztalyId)), $lr); - } - if ($ok) { - // tankör-szemeszter - még tankörnév nélkül... - $tankorNev = $ADAT['tankorJel']; - foreach ($ADAT['oraszam'] as $tanev => $tAdat) { - foreach ($tAdat as $szemeszter => $oraszam) { - $q = "INSERT INTO tankorSzemeszter (tankorId, tanev, szemeszter, oraszam, tankorNev) VALUES (%u, %u, %u, %f, '%s')"; - $ok = $ok && db_query($q, array('fv'=>'ujTankor-pre/4','modul'=>'naplo_intezmeny','values'=>array($tankorId, $tanev, $szemeszter, $oraszam, $tankorNev)), $lr); - } - } - } - // tankör nevének beállítása - if ($ok) $nev = setTankorNev($tankorId, $tankorNevExtra='B'.$bontasIds[0], $lr); - $ok = $ok && ($nev !== false); - - // tankör bontásokhoz rendelése - $bontasAdat = getBontasAdat($bontasIds[0]); - $hetiOraszam = $koAdat['hetiOraszam']-$bontasAdat['hetiOraszam']; - $ok = $ok && bontasTankorHozzarendeles($bontasIds, $tankorId, $hetiOraszam, $lr); - - // visszaküldendő adatok összegyűjtése - $tankorAdat = getTankorAdat($tankorId, __TANEV, $lr); - $_JSON = array( - 'bontasIds' => $bontasIds, - 'hetiOraszam' => $hetiOraszam, - 'tankorId' => $tankorId, - 'tankorNev' => str_replace($targyAdat['targyNev'].' ','',$tankorAdat[$tankorId][0]['tankorNev']), - 'tankorNevOrig' => $tankorAdat[$tankorId][0]['tankorNev'], - 'tankorOraszam' => $tankorOraszam, - 'ideiTankorOraszam' => array( - $tankorAdat[$tankorId][0]['oraszam'], - $tankorAdat[$tankorId][1]['oraszam'] - ) - ); - if ($ok !== false) { - db_commit($lr); - } else { db_rollback($lr); } - db_close($lr); - - } -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php b/mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php deleted file mode 100644 index 8f44cd8c..00000000 --- a/mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php +++ /dev/null @@ -1,89 +0,0 @@ -$ADAT['diakokkal'])); - } elseif ($ADAT['mId']!='' && count($ADAT['uzenet'])==1) { - // egy üzenet adatait nézzük, akkor kérdezzük le a feladót és a címzettet - $D = $ADAT['uzenet'][0]; - foreach (array('felado','cimzett') as $_t) { - switch ($D[$_t.'Tipus']) { - case 'tanar': $nev = getTanarNevById($D[$_t.'Id']); break; - case 'diak': $nev = getDiakNevById($D[$_t.'Id']); break; - case 'szulo': $nev = getSzuloNevById($D[$_t.'Id']); break; - case 'tankor': - case 'tankorSzulo': $nev = getTankorNevById($D[$_t.'Id']); break; - case 'munkakozosseg': $nev = getMunkakozossegNevById($D[$_t.'Id']); break; - case 'osztaly': - case 'osztalyTanar': - case 'osztalySzulo': $nev = getOsztalyNevById($D[$_t.'Id']); break; - } - if (uzenhet($_t.'Tipus')) $ADAT['r'][$D[$_t.'Tipus']][] = array($D[$_t.'Tipus'].'Id'=>$D[$_t.'Id'],$D[$_t.'Tipus'].'Nev'=>$nev); - } - } else { - $ADAT['r'] = initUzenoTipusok(array('csakId'=>false,'tanev'=>$ADAT['tanev'])); - if (uzenhet('tanar') && in_array(__SZEREP,array('diak','szulo'))) /* Írjuk felül az üres tanart a tankör tanáraival */ - $ADAT['r']['tanar'] = extendUzenoTipusok(array('csakId'=>false,'tanev'=>$ADAT['tanev'])); - if (uzenhet(__SZEREP)) $ADAT['r'][__SZEREP][] = array(__SZEREP.'Id'=>0, __SZEREP.'Nev'=>''); - } - - if ($ADAT['cimzettTipus']!='' && is_numeric($ADAT['cimzettId']) && ($_POST['postazoHash']=='submit' || $_POST['gomb']=='OK')) { - - $P = array( - 'tanev'=>__TANEV, - 'cimzettId'=>readVariable($ADAT['cimzettId'],'id'), - 'cimzettTipus' => readVariable($ADAT['cimzettTipus'],'strictstring',null), - 'txt'=> $ADAT['txt'] ); - - if (postUzenet($P) === true) { - /* Ha sikered */ - unset($_POST); - header('Location: '.location('index.php?page=naplo&sub=uzeno&f=uzeno')); - } else { - $_SESSION['alert'][] = 'page::uzenorogziteshiba'; - } - - } - -?> diff --git a/mayor-orig/www/policy/private/naplo/uzeno/postas.php b/mayor-orig/www/policy/private/naplo/uzeno/postas.php deleted file mode 100644 index 18ccddef..00000000 --- a/mayor-orig/www/policy/private/naplo/uzeno/postas.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php b/mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php deleted file mode 100644 index 4aededc1..00000000 --- a/mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php +++ /dev/null @@ -1,187 +0,0 @@ -0) $defaultSzalId = __MEID.'_'.__SZEREP.'_'.$ADAT['diakId'].'_diak'; - if ($ADAT['diakId']>0) $defaultCimzett = 'diak|'.$ADAT['diakId']; - } - // vezérléshez - $ADAT['mId'] = readVariable($_GET['mId'],'id'); - $ADAT['szalId'] = readVariable($_GET['szalId'],'string',$defaultSzalId); - $ADAT['cimzettId'] = readVariable($_GET['cimzettId'],'id'); - $ADAT['cimzettTipus'] = readVariable($_GET['cimzettTipus'],'strictstring'); - $ADAT['replyTipus'] = $ADAT['cimzettTipus'] ; - $ADAT['feladoId'] = readVariable($_GET['feladoId'],'id'); - $ADAT['feladoTipus'] = readVariable($_GET['feladoTipus'],'strictstring'); - - $ADAT['mutato'] = readVariable($_GET['mutato'], 'numeric'); - $ADAT['tanev'] = readVariable($_POST['tanev'],'numeric',readVariable($_GET['tanev'],'numeric',__TANEV)); - - $ADAT['toSkin'] = readVariable($_GET['toSkin'],'enum',null,$SKINS); - - $ADAT['pattern'] = readVariable($_POST['pattern'],'string'); - /* Ha van cimzett mező, akkor az új UI-ről jön a kérés, felülírhatunk mindent. */ - $ADAT['cimzett'] = readVariable($_POST['cimzett'],'string',$defaultCimzett); - if($ADAT['cimzett']!='') { - //$_SESSION['alert'][] = '::postazonak kellene kezelni!!!'; // he? - list($ADAT['cimzettTipus'],$ADAT['cimzettId']) = explode('|',$ADAT['cimzett']); - } else { - $ADAT['cimzettTipus'] = readVariable($_POST['cimzettTipus'],'strictstring'); - $ADAT['cimzettId'] = intval($_POST[$ADAT['cimzettTipus'].'Id']); - } - -// $ADAT['r']['diak'] = getDiakokByPattern($ADAT['pattern']); - - /* Képkezelés */ - $ADAT['kepMutat'] = __SHOW_FACES_TF; - - $ADAT['tagsagok'] = initUzenoTipusok(array('csakId'=>false,'tanev'=>$ADAT['tanev'])); - $ADAT['tagsagok']['diak'] = getDiakok(); - $ADAT['tagsagok']['tanar'] = getTanarok(); -// $ADAT['tagsagok'][__SZEREP][] = setUzenoFeladoId(); - /* create id */ - - /*..*/ - $AVAIL_TIPUSOK = (array_keys($ADAT['tagsagok'])); - /* Postázó - mayorNaploUzen cookie-t minden oldalletöltésnél újrageneráljuk, így a posttal, ha nem egyezik, biza hiába minden. - */ - $kuuk = readVariable($_COOKIE['mayorNaploUzen'],'strictstring'); - $txt = (readVariable($_POST['txt'],'string')); - - if ($action == 'postUzenet' && $kuuk == $_POST['kuuk'] && in_array($_POST['cimzettTipus'],$AVAIL_TIPUSOK) && $txt!='' - && $_POST[$_POST['cimzettTipus'].'Id'] != '' - ) { - /* hacky spellchecker - to get rid of annoying mispelled... */ - if (mb_stristr($txt,'tanárúr',false,'UTF-8')!==false) $_SESSION['alert'][] = 'message:check_spelling:Tanár úr!'; - if (mb_stristr($txt,'tanár nő',false,'UTF-8')!==false) $_SESSION['alert'][] = 'message:check_spelling:Tanárnő!'; - if (mb_stristr($txt,'muszály',false,'UTF-8')!==false) $_SESSION['alert'][] = 'message:check_spelling:Muszáj!'; - /* --- */ - $P = array( - 'tanev'=>$ADAT['tanev'], - 'cimzettId'=> $ADAT['cimzettId'], - 'cimzettTipus' => $ADAT['cimzettTipus'], - 'txt'=> $txt ); - if (count($_SESSION['alert'])==0 && postUzenet($P)===true) { - $_SESSION['alert'][] = 'info:msg_success:'; // a félreértés kedvéért kitöröljük a szűrőket - unset($ADAT['feladoTipus']); unset($ADAT['feladoId']); - unset($ADAT['cimzettTipus']); unset($ADAT['cimzettId']); - } else { - $_SESSION['alert'][] = 'info::figyelmezteto uzenetkor nem rogzitjuk az uzeneteket!'; - $ADAT['txt']=$txt; - } - unset($P); - unset($ADAT['mId']); - } elseif (__UZENOADMIN===true && $_GET['action'] =='delUzenet') { - delUzenet($ADAT['mId'],$ADAT['tanev']); - unset($ADAT['mId']); - } elseif ($_GET['action'] == 'flagUzenet') { // közvetlenül is olvashatjuk - $FLAG['flag'] = readVariable($_GET['flag'],'numeric unsigned',1,array(0,1)); - $FLAG['mId'] = $ADAT['mId']; - $FLAG['tanev']= $ADAT['tanev']; - // a kapcsolótáblába rögzíthető status - flagUzenet($FLAG); - unset($ADAT['mId']); - } - - $ADAT['kuuk'] = rand(); - setcookie('mayorNaploUzen', $ADAT['kuuk']); - - $_CONVERT = array('tankorSzulo'=>'tankor', 'osztalySzulo'=>'osztaly', 'osztalyTanar'=>'osztaly'); - if ($ADAT['cimzettId']!='' && in_array($ADAT['cimzettTipus'],$AVAIL_TIPUSOK) ) { - $b = false; - for ($i=0; $i 100,'pointer'=>0); - $SET['order'] = 'DESC'; - } elseif ($ADAT['mId']!='') { - $SET['filter'][] = 'uzeno.mId='.intval($ADAT['mId']); - } elseif ($skin=='ajax') { - $SET['limits'] = array('limit'=>__UZENO_AJAXLIMIT,'pointer'=>0); - $SET['filterFlag'][] = '`uzenoFlagek`.`flag`!=1 OR flag IS NULL'; - } else { - if (!is_numeric($ADAT['mutato']) || $ADAT['mutato']==0) $SET['limits'] = array('limit'=>__UZENO_DEFAULTLIMIT, 'pointer'=>0); - else $SET['limits'] = array('limit'=>__UZENO_DEFAULTLIMIT, 'mutato'=>$ADAT['mutato'], 'pointer'=>($ADAT['mutato']-1)*__UZENO_DEFAULTLIMIT); - } - $SET['tanev'] = $ADAT['tanev']; - $ADAT['limits'] = $SET['limits']; - $ADAT['uzenetek'] = getUzenoUzenetek($SET); - /* id */ - // for($i=0; $i false,'result'=>'standard','szuloIds'=>$_SZULOIDS)); - for($i=0; $i 0 && count($SZULOIDS)<50) $ADAT['szuloDiakjai'] = getSzulokDiakjai($SZULOIDS); - // - $SET['count'] = true; - $ADAT['limits']['max'] = getUzenoUzenetek($SET); - - $TOOL['tanevSelect'] = array('tipus'=>'cella', 'paramName'=>'tanev', 'tanev'=>$ADAT['tanev'], 'post' => array('tanev')); - $TOOL['vissza'] = array('tipus'=>'vissza','paramName'=>'','icon'=>'inbox','post'=>array('page'=>'naplo','sub'=>'uzeno','f'=>'uzeno')); - if ($ADAT['szalId']!='' || $ADAT['mId']!='') { - $TOOL['vissza']['icon'] = 'arrow-left'; - } - - getToolParameters(); - -} else { - $_SESSION['alert'][] = '::uzeno_is_not_installed'; -} -?> diff --git a/mayor-orig/www/policy/private/naplo/uzeno/uzeno.php b/mayor-orig/www/policy/private/naplo/uzeno/uzeno.php deleted file mode 100644 index 12036771..00000000 --- a/mayor-orig/www/policy/private/naplo/uzeno/uzeno.php +++ /dev/null @@ -1,12 +0,0 @@ -0 ) - putUzeno($ADAT); - if ($skin!='ajax' && $ADAT['feladoId']!==0) - putUzenoUzenet($ADAT); - -} -?> diff --git a/mayor-orig/www/policy/private/password/changePassword-pre.php b/mayor-orig/www/policy/private/password/changePassword-pre.php deleted file mode 100644 index 08731581..00000000 --- a/mayor-orig/www/policy/private/password/changePassword-pre.php +++ /dev/null @@ -1,60 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/password/changePassword.php b/mayor-orig/www/policy/private/password/changePassword.php deleted file mode 100644 index f95661e0..00000000 --- a/mayor-orig/www/policy/private/password/changePassword.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php b/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php deleted file mode 100644 index f5931b9d..00000000 --- a/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php +++ /dev/null @@ -1,42 +0,0 @@ -$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 deleted file mode 100644 index 3ad1f486..00000000 --- a/mayor-orig/www/policy/private/portal/hirek/egyhir.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php b/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php deleted file mode 100644 index db6e321f..00000000 --- a/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php +++ /dev/null @@ -1,8 +0,0 @@ -date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6)); - $ADAT['hirek'] = getHirek($FILTER); - -?> diff --git a/mayor-orig/www/policy/private/portal/hirek/hirek.php b/mayor-orig/www/policy/private/portal/hirek/hirek.php deleted file mode 100644 index 8f17a358..00000000 --- a/mayor-orig/www/policy/private/portal/hirek/hirek.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php deleted file mode 100644 index 630c9cbd..00000000 --- a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index 2474b23e..00000000 --- a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php deleted file mode 100644 index 8825861c..00000000 --- a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php deleted file mode 100644 index 2ccaf34e..00000000 --- a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/portal-pre.php b/mayor-orig/www/policy/private/portal/portal-pre.php deleted file mode 100644 index 3d9a95da..00000000 --- a/mayor-orig/www/policy/private/portal/portal-pre.php +++ /dev/null @@ -1,5 +0,0 @@ - \ 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 deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/portal/portal/portal-pre.php b/mayor-orig/www/policy/private/portal/portal/portal-pre.php deleted file mode 100644 index dc4e79d5..00000000 --- a/mayor-orig/www/policy/private/portal/portal/portal-pre.php +++ /dev/null @@ -1,41 +0,0 @@ -array(0),'tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6),'csoport'=>$AUTH['my']['categories'])); - $ADAT['kerdoiv'] = getKerdoiv(_POLICY); - - $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); - - 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 deleted file mode 100644 index 1640b057..00000000 --- a/mayor-orig/www/policy/private/portal/portal/portal.php +++ /dev/null @@ -1,14 +0,0 @@ - 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 deleted file mode 100644 index d71d745b..00000000 --- a/mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php +++ /dev/null @@ -1,59 +0,0 @@ -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 ' '; - echo '
'; - -?> diff --git a/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php b/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php deleted file mode 100644 index 62a2de0c..00000000 --- a/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/portal/start.php b/mayor-orig/www/policy/private/portal/start.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/session/accountInfo-pre.php b/mayor-orig/www/policy/private/session/accountInfo-pre.php deleted file mode 100644 index 9b54adf5..00000000 --- a/mayor-orig/www/policy/private/session/accountInfo-pre.php +++ /dev/null @@ -1,75 +0,0 @@ -$changeSkinTo)); - - } elseif ($action=='generateEduroamId') { - $eduroamDOMAIN = readVariable($_POST['eduroamDOMAIN'],'enum',null,$eduroamDOMAINS); - $eduroamPASSWORD = @exec('pwgen'); - if (__TANAR===true) { - $eduroamAFFILIATION = 'faculty'; - } elseif (__DIAK===true) { - $eduroamAFFILIATION = 'student'; - } else { - $eduroamAFFILIATION = 'staff'; - } - createEduroamSettings(array('userAccount'=>$userAccount,'policy'=> $toPolicy, - 'eduroamUID' => $userAccount, - 'eduroamDOMAIN'=>$eduroamDOMAIN, - 'eduroamAFFILIATION'=>$eduroamAFFILIATION, - 'eduroamPASSWORD'=>$eduroamPASSWORD)); - } elseif ($action=='modoifyEduroamId') { - - } - - $userInfo = getUserInfo($userAccount, $toPolicy); // keretrendszer attribútumai - $accountInfo = getAccountInfo($userAccount, $toPolicy); // backend attribútumai - - $ADAT = getUserSettings($userAccount, $toPolicy); - $ADAT['activity'] = getMyActivity(); - - if ($toPolicy=='private' && _POLICY ==='private') { - $ADAT['eduroamAdat'] = getEduroamSettings($userAccount, $toPolicy); - // dump($ADAT); - } -?> diff --git a/mayor-orig/www/policy/private/session/accountInfo.php b/mayor-orig/www/policy/private/session/accountInfo.php deleted file mode 100644 index 66642ef3..00000000 --- a/mayor-orig/www/policy/private/session/accountInfo.php +++ /dev/null @@ -1,19 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/admin/knownNodes-pre.php b/mayor-orig/www/policy/private/session/admin/knownNodes-pre.php deleted file mode 100644 index d166babd..00000000 --- a/mayor-orig/www/policy/private/session/admin/knownNodes-pre.php +++ /dev/null @@ -1,39 +0,0 @@ -getPublicKey(); - $ADAT['my']['nodeId'] = $RPC->getNodeId(); - - - if ($action == 'rpcPing') { - $ADAT['nodeId'] = readVariable($_POST['nodeId'],'id'); - $RPC->setRemoteHostByNodeId($ADAT['nodeId']); - $RPC->setRequestTarget('base'); - $ADAT['pingResult'] = $RPC->sendRequest(array('func'=>'ping')); - $ADAT['nodeVersion'] = $ADAT['pingResult']['revision']; - // $RPC->setRequestTarget('controller'); - } elseif ($action == 'getPublicDataByNodeId') { - $ADAT['nodeId'] = readVariable($_POST['nodeId'],'id'); - $RPC->setRequestTarget('base'); - $RPC->setRemoteHostByNodeId($ADAT['nodeId']); - } elseif ($action == 'removeNode') { - $ADAT['nodeId'] = readVariable($_POST['nodeId'],'id'); - removeNodeFromLocalKeychain($ADAT['nodeId']); - } - - $ADAT['nodes'] = getPublicDataFromLocalKeychain(); - - } - -?> diff --git a/mayor-orig/www/policy/private/session/admin/knownNodes.php b/mayor-orig/www/policy/private/session/admin/knownNodes.php deleted file mode 100644 index e7a95d58..00000000 --- a/mayor-orig/www/policy/private/session/admin/knownNodes.php +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/admin/registration-pre.php b/mayor-orig/www/policy/private/session/admin/registration-pre.php deleted file mode 100644 index eabc8cfe..00000000 --- a/mayor-orig/www/policy/private/session/admin/registration-pre.php +++ /dev/null @@ -1,123 +0,0 @@ - array('kotelezo'=>true,'options'=>$ADAT['NODETIPUSOK']), - 'nev' => array('kotelezo'=>true), - 'rovidNev' => array(), - 'OMKod' => array(), - 'cimHelyseg' => array('kotelezo'=>true), - 'cimIrsz' => array('kotelezo'=>true), - 'cimKozteruletNev' => array('kotelezo'=>true), - 'cimKozteruletJelleg' => array('kotelezo'=>true), - 'cimHazszam' => array('kotelezo'=>true), - 'telefon' => array(), - 'fax' => array(), - 'email' => array(), - 'honlap' => array(), - 'url' => array(), - 'kapcsolatNev' => array('kotelezo'=>true), - 'kapcsolatEmail' => array('kotelezo'=>true), - 'kapcsolatTelefon' => array(), - // külön, más helyen jelennek meg - 'dij'=> array('kotelezo'=>true,'display'=>false,'type'=>'none'), - 'egyebTamogatas' => array('display'=>false,'type'=>'none'), - 'utemezes'=>array('display'=>false,'type'=>'none'), - // rejtett mezők - nem módosíthatók - 'regId'=>array('display'=>false,'type'=>'none'), - 'dt'=>array('display'=>false), - 'publicKey' => array('kotelezo'=>true,'display'=>false,'readonly'=>true,'type'=>'textarea'), - ); - $ADAT['my']['url'] = $url = substr($_SERVER["HTTP_REFERER"], 0, strpos($_SERVER["HTTP_REFERER"], 'index.php?')); - $ADAT['my']['dt'] = date('Y-m-d'); - - $RPC = new Interconnect(); - $ADAT['my']['publicKey'] = $RPC->getPublicKey(); - $ADAT['my']['nodeId'] = $RPC->getNodeId(); - - // regisztráció - if ($action == 'sendRegRequest') { - unset($_POST['action']); - $_POST['publicRequest'] = 'registration'; - $res = json_decode(sendPublicRequest($_POST), true); - foreach ($res['alert'] as $index => $aAdat) $_SESSION['alert'][] = implode(':',$aAdat); - if ($res['success'] === true) { - setNodeId($res['nodeId'], $ADAT['my']['publicKey']); - $ADAT['my']['nodeId'] = $res['nodeId']; - $RPC = new Interconnect(); // újracsatlakozás... - } - //dump($res); - } elseif ($action == 'checkOldRegByPublicKey') { - $DATA['publicKey'] = $ADAT['my']['publicKey']; - $DATA['publicRequest'] = 'getNodeIdByPublicKey'; - // ha kellene ellenőrzés, akkar a választ a publicKey-el kódolva kellene küldeni... - $res = json_decode(sendPublicRequest($DATA), true); - foreach ($res['alert'] as $index => $aAdat) $_SESSION['alert'][] = implode(':',$aAdat); - if ($res['success'] === true) { - setNodeId($res['nodeId'], $ADAT['my']['publicKey']); - $ADAT['my']['nodeId'] = $res['nodeId']; - $RPC = new Interconnect(); // újracsatlakozás... - } - dump($res); - } - - if ($ADAT['my']['nodeId'] != 0) - try { - $RPC->setRemoteHostByNodeId(''); // controller - $RPC->setRequestTarget('controller'); - $ADAT['registrationStatus']['result'] = $RPC->sendRequest(array('func'=>'checkRegistration')); - //dump($ADAT['registrationStatus']['result'], $RPC->getStatus()); - // Teszt: egy alap metódus lekérdezése... - //$RPC->setRequestTarget('base'); - // $ADAT['controllerVersion'] = $RPC->sendRequest(array('func'=>'ping')); - // dump($ADAT['controllerVersion']); - // $RPC->setRequestTarget('controller'); - if ($ADAT['registrationStatus']['result']['valid'] == 1) { - $ADAT['regAdat'] = $RPC->getRegistrationDataByNodeId($ADAT['my']['nodeId']); - //dump($ADAT['regAdat'], $RPC->getStatus()); - } - } catch (Exception $e) { - dump("checkRegistration",$e); - } - - if ($action == 'modRegAdat') { - $MOD = array(); - foreach ($ADAT['regAdat']['nodeData'] as $key => $value) { - $newValue = readVariable($_POST[$key], 'string'); - if ( - !in_array($key, array('nodeId','regId','publicKey')) - && str_replace(array("\n","\r","\n\r"),"",$value) != str_replace(array("\n","\r","\n\r"),"",$newValue) - && !is_null($newValue) - ) $MOD[$key] = $newValue; - } - if (count($MOD) > 0) try { - // Interconnect-en keresztül!! - $ADAT['modRegData']['result'] = $RPC->sendRequest( - array('func'=>'modRegData', 'data'=>$MOD, 'regId'=>$ADAT['regAdat']['nodeData']['regId']) - ); - // A megjelenítéshez módosítjuk a kirakandó adatokat helyben is. - if ($ADAT['modRegData']['result']['result'] === true) { - $_SESSION['alert'][] = 'info:success:A regisztrációs adatokat módosítottuk a regisztrációs szerveren.'; - foreach ($MOD as $key => $val) $ADAT['regAdat']['nodeData'][$key] = $val; - } else { - $_SESSION['alert'][] = 'message:wrong_data:Az adatmódosítás nem sikerült a regisztrációs szerveren.'; - } - } catch (Exception $e) { - dump("modRegData",$e); - } - - } - - } - -?> diff --git a/mayor-orig/www/policy/private/session/admin/registration.php b/mayor-orig/www/policy/private/session/admin/registration.php deleted file mode 100644 index 6ad2d8e7..00000000 --- a/mayor-orig/www/policy/private/session/admin/registration.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/createAccount-pre.php b/mayor-orig/www/policy/private/session/createAccount-pre.php deleted file mode 100644 index ce789482..00000000 --- a/mayor-orig/www/policy/private/session/createAccount-pre.php +++ /dev/null @@ -1,110 +0,0 @@ - byAdmin esetén csak az érintet policy-n belül az adminGroup tagjainak lehet létrehozni új account-ot - createAccount => byRegistration esetén bárki regisztrálhat bármely policy-ből -*/ - - if (_RIGHTS_OK !== true) die(); - - if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) { - $DEFAULTS['userAccount'] = readVariable($_GET['userAccount'],'userAccount'); - $DEFAULTS['userCn'] = readVariable($_GET['userCn'],'emptystringnull'); - $DEFAULTS['userPassword'] = readVariable($_GET['userPassword'],'emptystringnull'); - $DEFAULTS['mail'] = readVariable($_GET['email'],'emptystringnull'); - $DEFAULTS['telephoneNumber'] = readVariable($_GET['tel'],'emptystringnull'); - } - - $toPolicy = readVariable($_POST['toPolicy'], 'enum', readVariable($_GET['toPolicy'], 'enum',_POLICY, $POLICIES), $POLICIES); - - @$toPSF = $_REQUEST['toPSF']; - - if ($toPolicy != _POLICY) require_once(_CONFIGDIR."/$toPolicy-conf.php"); - if ( - ( - $AUTH[$toPolicy]['createAccount'] == 'byAdmin' - and memberOf(_USERACCOUNT, $AUTH['private']['adminGroup']) - ) - or ( - $AUTH[$toPolicy]['createAccount'] == 'byRegistration' - && _USERACCOUNT =='' - ) - ) { - define('_ENABLE',true); - } else { - define('_ENABLE',false); - $_SESSION['alert'][] = 'page:insufficient_access:#1'; - } - - if (_ENABLE && $action == 'createAccount' && isset($_POST['new'])) { - - $file = $_FILES['file']['tmp_name']; - if ($file != '' && $file != 'none' && file_exists($file)) { - - $uidfp=fopen($file, 'r'); - while ($sor=fgets($uidfp, 4096)) { - list($userCn, $userAccount, $userPassword, $category, $studyId, $container)=explode(" ",chop($sor)); - // A biztonság kedvéért ez a html form validációval egyező legyen - $userCn = readVariable($userCn,'html'); - $userAccount = readvariable($userAccount,'html'); - $studyId = readVariable($studyId,'number'); - $category = readVariable($category, 'enum','',$AUTH[$toPolicy]['categories']); - $container = readVariable($container,'enum','',$AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers']); - $policyAccountAttrs = array(); - if (is_array($AUTH[$toPolicy]['accountAttrs'])) foreach ($AUTH[$toPolicy]['accountAttrs'] as $attr) { - if (isset($$attr) and $$attr != '') $policyAccountAttrs[$attr] = readVariable($$attr, 'string'); - } - if (createAccount($userCn, $userAccount, $userPassword, $toPolicy, array('container'=> $container, 'category' => $category, 'policyAttrs' => $policyAccountAttrs)) ===false) { - $_SESSION['alert'][] = "info:user_create_failure: cn.$userCn|account.$userAccount|policy.$toPolicy|category.$category|container.$container"; - } - } - fclose($uidfp); - - } else { - - // kötelező paraméterek - $userCn = readVariable($_POST['userCn'],'html'); - $userAccount = readvariable($_POST['userAccount'],'html'); - $studyId = readVariable($_POST['studyId'],'number'); - $userPassword = $_POST['userPassword']; - $verification = $_POST['verification']; - - // opcionális paraméterek - $category = readVariable($_POST['category'], 'enum','',$AUTH[$toPolicy]['categories']); - $container = readVariable($_POST['container'],'enum','',$AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers']); - - $policyAccountAttrs = array(); - if (is_array($AUTH[$toPolicy]['accountAttrs'])) foreach ($AUTH[$toPolicy]['accountAttrs'] as $attr) { - if (isset($_POST[$attr]) and $_POST[$attr] != '') $policyAccountAttrs[$attr] = readVariable($_POST[$attr], 'string'); // ??? - } - - if ($userCn == '' or $userAccount == '' or $userPassword == '' or $verification == '') { - // Csak policy váltás történt - // $_SESSION['alert'][] = 'message:empty_field'; - } elseif ($userPassword != $verification) { - $_SESSION['alert'][] = 'message:pw_not_match'; - } else { - if (createAccount($userCn, $userAccount, $userPassword, $toPolicy, - array('container'=> $container, 'category' => $category, 'policyAttrs' => $policyAccountAttrs))) { - if ( - _POLICY == 'private' - && memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']) - ) header('Location: '.location("index.php?page=session&f=accountInfo&userAccount=$userAccount&toPolicy=$toPolicy")); - elseif (_POLICY == 'public') { - $toPSF = ($toPSF=='') ? 'auth::login' : $toPSF; - header( - 'Location: '.location("index.php?page=auth&f=login&userAccount=$userAccount&policy=public&toPolicy=$toPolicy&toPSF=$toPSF", array('skin','lang','sessionID')) - ); - } else { - $toPSF = ($toPSF=='') ? 'session::accountInfo' : $toPSF; - header( - 'Location: '.location("index.php?page=auth&f=login&userAccount=$userAccount&policy=public&toPolicy=$toPolicy&toPSF=$toPSF", array('skin','lang','sessionID')) - ); - } - } - } - } - - } - -?> diff --git a/mayor-orig/www/policy/private/session/createAccount.php b/mayor-orig/www/policy/private/session/createAccount.php deleted file mode 100644 index 94c4b703..00000000 --- a/mayor-orig/www/policy/private/session/createAccount.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/createGroup-pre.php b/mayor-orig/www/policy/private/session/createGroup-pre.php deleted file mode 100644 index 8b65ce02..00000000 --- a/mayor-orig/www/policy/private/session/createGroup-pre.php +++ /dev/null @@ -1,49 +0,0 @@ - $container, 'policyAttrs' => $policyGroupAttrs))) { - header('Location: '.location("index.php?page=session&f=groupInfo&groupCn=$groupCn&toPolicy=$toPolicy")); - } - } - } - - - } - -?> diff --git a/mayor-orig/www/policy/private/session/createGroup.php b/mayor-orig/www/policy/private/session/createGroup.php deleted file mode 100644 index a914ceaf..00000000 --- a/mayor-orig/www/policy/private/session/createGroup.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/download-pre.php b/mayor-orig/www/policy/private/session/download-pre.php deleted file mode 100644 index 6b396143..00000000 --- a/mayor-orig/www/policy/private/session/download-pre.php +++ /dev/null @@ -1,66 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/download.php b/mayor-orig/www/policy/private/session/download.php deleted file mode 100644 index 12d907a9..00000000 --- a/mayor-orig/www/policy/private/session/download.php +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/eduroam-pre.php b/mayor-orig/www/policy/private/session/eduroam-pre.php deleted file mode 100644 index 40a406cd..00000000 --- a/mayor-orig/www/policy/private/session/eduroam-pre.php +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/session/eduroam.php b/mayor-orig/www/policy/private/session/eduroam.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/session/facebookConnect-pre.php b/mayor-orig/www/policy/private/session/facebookConnect-pre.php deleted file mode 100644 index b0988ae5..00000000 --- a/mayor-orig/www/policy/private/session/facebookConnect-pre.php +++ /dev/null @@ -1,91 +0,0 @@ - __FB_APP_ID, - 'app_secret' => __FB_APP_SECRET, - 'cookie' => true, - 'status' => true, - 'default_graph_version' => 'v2.5', - )); - $oAuth2Client = $fb->getOAuth2Client(); - - $helper = $fb->getJavaScriptHelper(); - try { - $accessToken = $helper->getAccessToken(); - // convert - if ($accessToken !='' && !$accessToken->isLongLived()) { - try { - $accessToken = $oAuth2Client->getLongLivedAccessToken($accessToken); - } catch (Facebook\Exceptions\FacebookSDKException $e) { - $_SESSION['alert'][] = "info::Error getting long-lived access token: " . $helper->getMessage() . ""; - } - } - } catch(Facebook\Exceptions\FacebookResponseException $e) { - // When Graph returns an error - $_SESSION['alert'][] = 'info::Graph returned an error: ' . $e->getMessage(); - } catch(Facebook\Exceptions\FacebookSDKException $e) { - // When validation fails or other local issues - $_SESSION['alert'][] = 'info::Facebook SDK returned an error: ' . $e->getMessage(); - } - if (isset($accessToken)) { - $_SESSION['facebook_access_token'] = (string) $accessToken; - $_SESSION['facebook_access_token_object'] = $accessToken; - $response = $fb->get('/me?fields=id,name,email',$accessToken); - $userNode = $response->getGraphUser(); - $ADAT['fbUserId'] = $userNode->getField('id'); - $ADAT['fbUserCn'] = $userNode->getField('name'); - $ADAT['fbUserEmail'] = $userNode->getField('email'); - } - } - if ($action=='revokeFbAuth') { - fbConnectRevoke($ADAT['fbUserId']); - } elseif ($action=='grantFbAuth') { - fbConnectGrant($ADAT); - } - - $ADAT['fbUserIdStatusz'] = checkFbConnectAssoc($ADAT); - - function checkFbConnectAssoc($ADAT) { - if ($ADAT['fbUserId']=='') return 0; - - $q = "SELECT count(*) AS db FROM facebookConnect where userAccount='%s' AND policy='%s' AND fbUserId='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId']); - $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v)); - if ($db==1) return 1; // 'OK'; - - $q = "SELECT count(*) AS db FROM facebookConnect where userAccount='%s' AND policy='%s' AND fbUserId!='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId']); - $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v)); - if ($db==1) return 2; // 'masik fbUserId van megadva'; - - $q = "SELECT count(*) AS db FROM facebookConnect where userAccount!='%s' AND policy='%s' AND fbUserId='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId']); - $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v)); - if ($db==1) return 3; // 'masik userAccount van hozzárendelve ehhez a fb azonosítóhoz'; - - return false; - } - - function fbConnectRevoke($fbUserId) { - if ($fbUserId=='') return 0; - - $q = "DELETE FROM facebookConnect where userAccount='%s' AND policy='%s' AND fbUserId='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$fbUserId); - return db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','values'=>$v)); - } - function fbConnectGrant($ADAT) { - if ($ADAT['fbUserId']=='') return 0; - - $q = "INSERT IGNORE INTO facebookConnect (userAccount,policy,fbUserId,fbUserCn,fbUserEmail,studyId) VALUES ('%s','%s','%s','%s','%s','%s')"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId'],'fbUserCn'=>_USERCN.' ('.$ADAT['fbUserCn'].')','fbUserEmail'=>$ADAT['fbUserEmail'],'studyId'=>_STUDYID); - return db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'insert','values'=>$v)); - } - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/session/facebookConnect.php b/mayor-orig/www/policy/private/session/facebookConnect.php deleted file mode 100644 index e125c680..00000000 --- a/mayor-orig/www/policy/private/session/facebookConnect.php +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/session/googleapi-pre.php b/mayor-orig/www/policy/private/session/googleapi-pre.php deleted file mode 100644 index 49438dcc..00000000 --- a/mayor-orig/www/policy/private/session/googleapi-pre.php +++ /dev/null @@ -1,100 +0,0 @@ -setClientId(__GOOGLEAPI_CLIENT_ID); - $client->setClientSecret(__GOOGLEAPI_CLIENT_SECRET); - $client->setScopes('email'); - // $client->setAccessToken($_SESSION['googleapi_id_token']); - try { - $ADAT['payload'] = $payload = $client->verifyIdToken($_SESSION['googleapi_id_token']); - $ADAT['googleapiStatusz'] = 1; - } catch(Exception $e) { - $_SESSION['alert'][] = 'info::googleapi SDK hiba: ' . $e->getMessage(); - $ADAT['googleapiStatusz'] = 2; - } - } elseif ($_GET['id_token']!='') { - $redirect_uri = _BASE_URL.'/index.php'; - $client = new Google_Client(); - //$client->setAuthConfig($oauth_credentials); - $client->setClientId(__GOOGLEAPI_CLIENT_ID); - $client->setClientSecret(__GOOGLEAPI_CLIENT_SECRET); -// $client->setRedirectUri($redirect_uri); - $client->setScopes('email'); - try { - $payload = $client->verifyIdToken($_GET['id_token']); - } catch(Exception $e) { - $_SESSION['alert'][] = 'info::googleapi SDK hiba: ' . $e->getMessage(); - } - if (isset($payload['sub'])) { // subject - $_SESSION['google_access_token'] = (string) $payload; - $_SESSION['google_access_token_object'] = $payload; - // mayor auth start - $accountInformation=array(); - $toPolicy = 'public'; - $ADAT['googleSub'] = $payload['sub']; -// $ADAT['fbUserId'] = $userNode->getField('id'); - $ADAT['googleUserCn'] = $payload['name']; - $ADAT['googleUserEmail'] = $payload['email']; - googleapiGrant($ADAT); - /* mayor auth stop */ - } else { - $_SESSION['alert'][] = 'info:nem érvényes accessToken'; - } - } - - } - function googleapiCheckAssoc($ADAT) { - if ($ADAT['googleSub']=='') return 0; - - $q = "SELECT count(*) AS db FROM googleConnect where userAccount='%s' AND policy='%s' AND googleSub='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['googleSub']); - $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v)); - if ($db==1) return 1; // 'OK'; - - $q = "SELECT count(*) AS db FROM googleConnect where userAccount='%s' AND policy='%s' AND googleSub!='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['googleSub']); - $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v)); - if ($db==1) return 2; // 'masik googleSub van megadva'; - - $q = "SELECT count(*) AS db FROM googleConnect where userAccount!='%s' AND policy='%s' AND googleSub='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'googleSub'=>$ADAT['googleSub']); - $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v)); - if ($db==1) return 3; // 'masik userAccount van hozzárendelve ehhez a googleSub azonosítóhoz'; - - return false; - } - - function googleapiRevoke() { - $q = "DELETE FROM googleConnect where userAccount='%s' AND policy='%s'"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY); - return db_query($q,array('fv'=>'googleapiRevoke','modul'=>'login','values'=>$v)); - } - function googleapiGrant($ADAT) { - if ($ADAT['googleSub']=='') return 0; - $q = "INSERT IGNORE INTO googleConnect (userAccount,policy,googleSub,googleUserCn,googleUserEmail,studyId) VALUES ('%s','%s','%s','%s','%s','%s')"; - $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'googleSub'=>$ADAT['googleSub'],_USERACCOUNT.' ('.$ADAT['googleUserCn'].')',$ADAT['googleUserEmail'],_STUDYID); - return db_query($q,array('debug'=>true,'fv'=>'googleapiGrant','modul'=>'login','result'=>'insert','values'=>$v)); - } - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/session/googleapi.php b/mayor-orig/www/policy/private/session/googleapi.php deleted file mode 100644 index fe079bed..00000000 --- a/mayor-orig/www/policy/private/session/googleapi.php +++ /dev/null @@ -1,28 +0,0 @@ -'; - 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'=>href('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 'Tesztüzem
'; - -// formBegin(); -// echo ''; -// echo ''; -// formEnd(); - -// formBegin(); -// echo ''; -// echo ''; -// formEnd(); - -// formBegin(); -// echo ''; -// echo ''; -// formEnd(); - - putGoogleapiStatusz($ADAT); - -?> \ No newline at end of file diff --git a/mayor-orig/www/policy/private/session/groupInfo-pre.php b/mayor-orig/www/policy/private/session/groupInfo-pre.php deleted file mode 100644 index 97864ffa..00000000 --- a/mayor-orig/www/policy/private/session/groupInfo-pre.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/groupInfo.php b/mayor-orig/www/policy/private/session/groupInfo.php deleted file mode 100644 index 6dda377c..00000000 --- a/mayor-orig/www/policy/private/session/groupInfo.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/search/searchAccount-pre.php b/mayor-orig/www/policy/private/session/search/searchAccount-pre.php deleted file mode 100644 index 1ef93e95..00000000 --- a/mayor-orig/www/policy/private/session/search/searchAccount-pre.php +++ /dev/null @@ -1,29 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/search/searchAccount.php b/mayor-orig/www/policy/private/session/search/searchAccount.php deleted file mode 100644 index 727706ee..00000000 --- a/mayor-orig/www/policy/private/session/search/searchAccount.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/search/searchGroup-pre.php b/mayor-orig/www/policy/private/session/search/searchGroup-pre.php deleted file mode 100644 index 94deeba2..00000000 --- a/mayor-orig/www/policy/private/session/search/searchGroup-pre.php +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/search/searchGroup.php b/mayor-orig/www/policy/private/session/search/searchGroup.php deleted file mode 100644 index c36d0ef6..00000000 --- a/mayor-orig/www/policy/private/session/search/searchGroup.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/mayor-orig/www/policy/private/session/session-pre.php b/mayor-orig/www/policy/private/session/session-pre.php deleted file mode 100644 index d1c65349..00000000 --- a/mayor-orig/www/policy/private/session/session-pre.php +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/policy/private/session/session.php b/mayor-orig/www/policy/private/session/session.php deleted file mode 100644 index e69de29b..00000000 diff --git a/mayor-orig/www/policy/private/session/sessionAdmin-pre.php b/mayor-orig/www/policy/private/session/sessionAdmin-pre.php deleted file mode 100644 index 08b55781..00000000 --- a/mayor-orig/www/policy/private/session/sessionAdmin-pre.php +++ /dev/null @@ -1,24 +0,0 @@ -'; var_dump($ADAT); echo ''; - - } - - -?> diff --git a/mayor-orig/www/policy/private/session/sessionAdmin.php b/mayor-orig/www/policy/private/session/sessionAdmin.php deleted file mode 100644 index d1398e4f..00000000 --- a/mayor-orig/www/policy/private/session/sessionAdmin.php +++ /dev/null @@ -1,9 +0,0 @@ - -- cgit v1.2.3