0 ) { for( $i=0; $i<$q_count; $i++ ) { if( $q{$i} == "/" ){$par_count++; $i++;} if( $par_count == 1 ) $q1 .= $q{$i}; elseif( $par_count == 2 ) $q2 .= $q{$i}; elseif( $par_count == 3 ) $q3 .= $q{$i}; elseif( $par_count == 4 ) $q4 .= $q{$i}; elseif( $par_count == 5 ) $q5 .= $q{$i}; elseif( $par_count == 6 ) $q6 .= $q{$i}; elseif( $par_count == 7 ) $q7 .= $q{$i}; elseif( $par_count == 8 ) $q8 .= $q{$i}; elseif( $par_count == 9 ) $q9 .= $q{$i}; elseif( $par_count == 10 ) $q10 .= $q{$i}; } } else $q1 = "home"; if( $q1 != "admin.php" && $q1 != "artemis" && $q1 != "ajax.php" && $q2 != "ajax.php" && $q3 != "ajax.php" && $q4 != "ajax.php" && $q1 != "img" && $q1 != "lib" && $q1 != "css" && $q1 != "js" && $q1 != "photos" && $q1 != "profiles" && $q1 != "upload" ) { include_once( "../php/Page.php" ); $emessage = !empty( $_REQUEST["emessage"] ) ? $_REQUEST["emessage"] : ""; if( !empty( $_SESSION["msg"] ) ) $emessage = $_SESSION["msg"]; $page = new Page(); $page->createMainpage( $q, $q1, $q2, $q3, $q4, $q5, $q6, $q7, $q8, $q9, $q10, $emessage ); } else { if( file_exists( $q ) ) return( file_get_contents( $q ) ); else die( 'Dit bestand is niet gevonden!' ); } ?>