From: mchurch Date: Thu, 3 Jun 2004 12:13:57 +0000 (+0000) Subject: Changed use of PHP_SELF to $ME. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6f4d8ece46281c1c4910ce40361b0e2e504846ba;p=moodle.git Changed use of PHP_SELF to $ME. --- diff --git a/mod/wiki/wikifiles.php b/mod/wiki/wikifiles.php index cc35d44df6..4a36ebf7cc 100755 --- a/mod/wiki/wikifiles.php +++ b/mod/wiki/wikifiles.php @@ -35,7 +35,7 @@ function html_header($course, $wdir, $formfield=""){ - global $CFG,$THEME; + global $CFG, $THEME, $ME; if (! $site = get_site()) { error("Invalid site!"); @@ -57,9 +57,9 @@ for ($i=1; $i<$numdirs; $i++) { $navigation .= " -> "; $link .= "/".urlencode($dirs[$i]); - $navigation .= "id&wdir=$link\">".$dirs[$i].""; + $navigation .= "id&wdir=$link\">".$dirs[$i].""; } - $fullnav = "id&wdir=/\">$strfiles $navigation"; + $fullnav = "id&wdir=/\">$strfiles $navigation"; } print_header(); @@ -153,7 +153,7 @@ echo "

$struploadafile ($strmaxsize) --> $wdir"; echo "
"; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -163,7 +163,7 @@ echo " "; echo "
"; echo "
"; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -196,8 +196,8 @@ print_simple_box_end(); echo "
"; notice_yesno (get_string("deletecheckfiles"), - "".basename($_SERVER['PHP_SELF'])."?id=$id&wdir=$wdir&action=delete&confirm=1", - "".basename($_SERVER['PHP_SELF'])."?id=$id&wdir=$wdir&action=cancel"); + "".basename($ME)."?id=$id&wdir=$wdir&action=delete&confirm=1", + "".basename($ME)."?id=$id&wdir=$wdir&action=cancel"); } else { displaydir($wdir); } @@ -253,7 +253,7 @@ html_header($course, $wdir, "form.name"); echo "

$strrenamefileto:"; echo "
"; - echo ""; + echo ""; echo " "; echo " "; echo " "; @@ -262,7 +262,7 @@ echo " "; echo ""; echo ""; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -291,7 +291,7 @@ html_header($course, $wdir, "form.name"); echo "

$strcreatefolder:"; echo "
"; - echo ""; + echo ""; echo " "; echo " "; echo " "; @@ -299,7 +299,7 @@ echo " "; echo ""; echo ""; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -338,7 +338,7 @@ print_heading("$streditfile"); echo "
"; - echo ""; + echo ""; echo " "; echo " "; echo " "; @@ -348,7 +348,7 @@ echo " "; echo ""; echo ""; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -402,7 +402,7 @@ echo "
"; echo "

".get_string("whattocallzip"); echo "
"; - echo ""; + echo ""; echo " "; echo " "; echo " "; @@ -410,7 +410,7 @@ echo " "; echo ""; echo ""; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -476,7 +476,7 @@ print_simple_box_end(); } - echo "
"; + echo "
"; echo " "; echo " "; echo " "; @@ -523,7 +523,7 @@ } echo "
"; } - echo "

"; + echo "
"; echo " "; echo " "; echo " "; @@ -706,7 +706,7 @@ function displaydir ($wdir) { $strchoose = get_string("choose"); - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -736,10 +736,10 @@ function displaydir ($wdir) { echo ""; print_cell("center", ""); - print_cell("left", "pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\">".htmlspecialchars($dir).""); + print_cell("left", "pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\">".htmlspecialchars($dir).""); print_cell("right", "-"); print_cell("right", $filedate); - print_cell("right", "$strrename"); + print_cell("right", "$strrename"); echo ""; } @@ -789,13 +789,13 @@ function displaydir ($wdir) { $edittext = "$strchoose "; if ($icon == "text.gif" || $icon == "html.gif") { - $edittext .= "$stredit"; + $edittext .= "$stredit"; } else if ($icon == "zip.gif") { - $edittext .= "$strunzip "; - $edittext .= "$strlist "; + $edittext .= "$strunzip "; + $edittext .= "$strlist "; } - print_cell("right", "$edittext $strrename"); + print_cell("right", "$edittext $strrename"); echo ""; } @@ -823,7 +823,7 @@ function displaydir ($wdir) { echo ""; echo ""; echo "
"; if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) { - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -831,7 +831,7 @@ function displaydir ($wdir) { echo "
"; } echo "
"; - echo "
"; + echo ""; echo " "; echo " "; echo " "; @@ -839,7 +839,7 @@ function displaydir ($wdir) { echo "
"; echo "
"; - echo "
"; + echo ""; echo " "; echo " "; echo " ";