0) { echo $vocab["deletefollowing"] . ":"; } echo "
"; echo "

" . $vocab["sure"] . "

"; echo "

" . $vocab["YES"] . "!     " . $vocab["NO"] . "!

"; echo "
"; } } if($type == "area") { // Seul l'admin peut supprimer un domaine if(authGetUserLevel(getUserName(),$room) < 5) { showAccessDenied($day, $month, $year, $area,$back); exit(); } # We are only going to let them delete an area if there are # no rooms. its easier $n = sql_query1("select count(*) from grr_room where area_id=$area"); if ($n == 0) { # OK, nothing there, lets blast it away sql_command("delete from grr_area where id=$area"); # Redirect back to the admin page header("Location: admin_room.php"); } else { # There are rooms left in the area # print the page header print_header("","","","",$type="with_session", $page="admin"); echo $vocab['delarea']; echo "" . $vocab['back'] . ""; } } ?>