ISKOLÁK
- | '.$json[$i]["name"].' '.$json[$i]["location"].' Second line |
+ '.$json[$i]["name"].' '.$json[$i]["location"].' '.$fulltype.' |
"; + }else{ + $error = 1; + } } if(!file_exists("images/school")){ - mkdir("images/user", 0777); - echo "Intézményi fotó könyvtár létrehozva"; + if(mkdir("images/user", 0777) && $error != 1){ + echo "Intézményi fotó könyvtár létrehozva
"; + }else{ + $error = 1; + } } if(!file_exists("creds.php")){ - file_put_contents("creds.php", ''); - echo "Adatbázis konfiguráció létrehozva (creds.php)"; + if(file_put_contents("creds.php", '') && $error != 1){ + echo "Adatbázis konfiguráció létrehozva (creds.php)
"; + }else{ + $error = 1; + } +} + +if($error == 1){ + echo "Nincsennek a jogok megfelelően beállítva. A gyökérmappa (".basename(__DIR__) .") legyen 777 jogosultságú."; } ?> \ No newline at end of file