You have a bunch of bad-syntax IF statements and an else statement at the bottom which has nothing to go with.
Here is the error: Parse error: syntax error, unexpected '{' in train.php on line 38 Everything worked till I flubbed all of it up... and i forgot to take a backup before breaking everything... Sorry, I forgot the most important part the error message.
Ok heres what i found (Not so sure since im pretty much a begineer myself). LINE 38: OLD: if (db_num_rows($result) > 0 && $session['user']['level'] <= (getsetting("ammountofmasters")){ NEW: if (db_num_rows($result) > 0 && $session['user']['level'] <= (getsetting("ammountofmasters"))){ Line 55 add a close brace ( } ) Line 192: missing close brace?? OLD: if ($session['user']['level']<=(getsetting("ammountofmasters")){ NEW: if ($session['user']['level']<=(getsetting("ammountofmasters"))){ LINE 264: Remove close brace before "ELSE {"