Index: trunk/phpwiki/fpw/special_upload.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | global $removeFile , $xtitle , $removeFile , $Upload , $Upload_name , $no_copyright ; |
8 | 8 | global $user , $vpage , $wikiUploadTitle , $wikiUploadText , $wikiUploadDenied ; |
9 | 9 | global $wikiUploadDeleted , $wikiUploadDelMsg1 , $wikiUploadDelMsg2 ; |
10 | | - global $wikiUploadAffirm , $wikiUploadFull ; |
| 10 | + global $wikiUploadAffirm , $wikiUploadFull , $wikiUploadRestrictions ; |
11 | 11 | global $wikiUploadSuccess , $wikiUploadSuccess1 , $wikiUploadSuccess2 ; |
12 | 12 | global $wikiUploadAffirmText , $wikiUploadButton , $wikiUser ; |
13 | 13 | $vpage->special ( $wikiUploadTitle ) ; |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | unset ( $removeFile ) ; |
31 | 31 | } else if (isset($Upload_name) or isset($Upload)) { |
32 | 32 | if ( $no_copyright != "AFFIRMED" ) return $wikiUploadAffirm ; |
| 33 | + if ( $user->id == 0 ) return $wikiUploadRestrictions ; |
33 | 34 | # $Upload_name = ereg_replace(" ", "_", $Upload_name); |
34 | 35 | $abc = split("\.", $Upload_name); |
35 | 36 | |
Index: trunk/phpwiki/fpw/wikiTextEn.php |
— | — | @@ -303,6 +303,7 @@ |
304 | 304 | $wikiUploadDelMsg1 = "*On $now, [[user:$1|$1]] deleted file '''$2'''\n" ; |
305 | 305 | $wikiUploadDelMsg2 = "Deletion of file $1" ; |
306 | 306 | $wikiUploadAffirm = "<nowiki>You need to affirm that the file is not violating copygights. Return to the <a href=\"$THESCRIPT?title=special:upload\">Upload page</a></nowiki>" ; |
| 307 | +$wikiUploadRestrictions = "<nowiki>You have to log in to upload a file!</nowiki>" ; |
307 | 308 | $wikiUploadFull = "Sorry, we are almost out of disk space. We can't let you upload any files right now." ; |
308 | 309 | $wikiUploadSuccess = "File <b>$1</b> was successfully uploaded!" ; |
309 | 310 | $wikiUploadSuccess1 = "*On $1, $2 uploaded file '''$3'''\n" ; |