From: Mutwin K. <mu...@us...> - 2005-02-13 21:21:57
|
Update of /cvsroot/fuwiki/fuwiki_1_0/elements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30058/elements Modified Files: comment_box.inc revision_warning.inc search_box.inc Log Message: up-to-date with fuckupwiki codebase Index: comment_box.inc =================================================================== RCS file: /cvsroot/fuwiki/fuwiki_1_0/elements/comment_box.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** comment_box.inc 7 Nov 2004 12:00:34 -0000 1.4 --- comment_box.inc 13 Feb 2005 21:21:48 -0000 1.5 *************** *** 22,26 **** */ ! global $WikiUser; if(!$WikiUser->get_setting("show_commentbox")) --- 22,26 ---- */ ! global $WikiUser, $WikiIO; if(!$WikiUser->get_setting("show_commentbox")) *************** *** 34,41 **** $out .= "<textarea name=\"comment\" rows=\"10\" cols=\"50\" style=\"width: 100%;\" accesskey=\"c\"></textarea><br />\n"; $out .= "<input type=\"submit\" name=\"commented\" value=\"". _COMBOXSUBMIT ."\" accesskey=\"s\" />\n"; ! if($WikiUser->get_setting("show_commentbox_signature")) ! { ! $out .= "<input size=\"30\" name=\"signature\" value=\"". $WikiUser->get_signature() ."\" />\n"; ! } $out .= " Action: <input name=\"action\" value=\""._COMMENT_DEFAULT."\" />"; if($WikiUser->get_setting("show_commentbox_upload")) --- 34,42 ---- $out .= "<textarea name=\"comment\" rows=\"10\" cols=\"50\" style=\"width: 100%;\" accesskey=\"c\"></textarea><br />\n"; $out .= "<input type=\"submit\" name=\"commented\" value=\"". _COMBOXSUBMIT ."\" accesskey=\"s\" />\n"; ! if(!$WikiUser->get_setting("show_commentbox_signature")) ! $type = "hidden"; ! else ! $type = ""; ! $out .= "<input ". ($type == "" ? "" : "type=\"".$type."\" ")."size=\"30\" name=\"signature\" value=\"". $WikiUser->get_signature() ."\" />\n"; $out .= " Action: <input name=\"action\" value=\""._COMMENT_DEFAULT."\" />"; if($WikiUser->get_setting("show_commentbox_upload")) *************** *** 44,47 **** --- 45,50 ---- $out .= "<br />". _EDIT_UPLOAD ." <input name=\"userfile\" class=\"userfile\" type=\"file\"> "; } + if(!$WikiIO->page_exists(_PAGENAME) && $WikiUser->is_authorized() && $WikiUser->get_is_cool()) + $out .= "<br /><input type=\"checkbox\" name=\"is_private\" value=\"active\"> Private\n"; $out .= "</p></form></div>\n"; return $out; Index: search_box.inc =================================================================== RCS file: /cvsroot/fuwiki/fuwiki_1_0/elements/search_box.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** search_box.inc 7 Nov 2004 12:00:34 -0000 1.2 --- search_box.inc 13 Feb 2005 21:21:48 -0000 1.3 *************** *** 26,29 **** --- 26,31 ---- if(!$WikiUser->get_setting("show_searchbox")) return ""; + + global $WikiIO, $_GET; $str = "\n<div><form action=\"index.php?FWikiSearch\" method=\"post\">\n"; Index: revision_warning.inc =================================================================== RCS file: /cvsroot/fuwiki/fuwiki_1_0/elements/revision_warning.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** revision_warning.inc 7 Nov 2004 12:00:34 -0000 1.2 --- revision_warning.inc 13 Feb 2005 21:21:48 -0000 1.3 *************** *** 31,35 **** $out = "\nERROR: Someone has already changed this Revision!<br />\nPlease insert your changes in the upper Textarea.\n"; $out .= show_edit(rawurldecode(utf8_decode(_PAGENAME)), 0, false); ! $out .= "<hr width=\"100%\" /><br />\n"; $out .= show_edit(rawurldecode(utf8_decode(_PAGENAME)), $myV, true, stripslashes(rawurldecode(utf8_decode(($_POST["WikiCode"]))))); --- 31,35 ---- $out = "\nERROR: Someone has already changed this Revision!<br />\nPlease insert your changes in the upper Textarea.\n"; $out .= show_edit(rawurldecode(utf8_decode(_PAGENAME)), 0, false); ! $out .= "<hr width=\"100%\"><br />\n"; $out .= show_edit(rawurldecode(utf8_decode(_PAGENAME)), $myV, true, stripslashes(rawurldecode(utf8_decode(($_POST["WikiCode"]))))); |