$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");
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");