diff --git a/admin/delete.php b/admin/delete.php index a6b75993a52..37d9979a576 100644 --- a/admin/delete.php +++ b/admin/delete.php @@ -3,23 +3,23 @@ // Deletes the moodledata directory, COMPLETELY!! // BE VERY CAREFUL USING THIS! - require_once("../config.php"); + require_once('../config.php'); require_login(); if (!isadmin()) { - error("You must be admin to use this script!"); + error('You must be admin to use this script!'); } $deletedir = $CFG->dataroot; // The directory to delete! if (!$sure) { - notice_yesno ("Are you completely sure you want to delete everything inside the directory $deletedir ?", "delete.php?sure=yes", "index.php"); + notice_yesno ('Are you completely sure you want to delete everything inside the directory '. $deletedir .' ?', 'delete.php?sure=yes', 'index.php'); exit; } if (!$reallysure) { - notice_yesno ("Are you REALLY REALLY completely sure you want to delete everything inside the directory $deletedir (this includes all user images, and any other course files that have been created) ?", "delete.php?sure=yes&reallysure=yes", "index.php"); + notice_yesno ('Are you REALLY REALLY completely sure you want to delete everything inside the directory '. $deletedir .' (this includes all user images, and any other course files that have been created) ?', 'delete.php?sure=yes&reallysure=yes', 'index.php'); exit; } @@ -27,7 +27,7 @@ delete_subdirectories($deletedir); - echo "
$REDIRECT_URL", "center", "", "$THEME->cellheading"); + print_simple_box('An unusual error occurred (tried to reach a page that doesn\'t exist).
'. $REDIRECT_URL, 'center', '', $THEME->cellheading); ?> @@ -34,4 +34,4 @@ print_footer(); -?> +?> \ No newline at end of file