From: Even H. <ho...@us...> - 2005-03-08 00:23:08
|
Update of /cvsroot/tavi/tavi/template In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5762/template Modified Files: edit.php wiki.css Log Message: Start of captcha-mechanisme to prevent spam. Finished until editing-part. Misses the save-part, still. And a start at the mysql 4.x timestamp-issue... Index: edit.php =================================================================== RCS file: /cvsroot/tavi/tavi/template/edit.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- edit.php 16 Dec 2003 20:29:27 -0000 1.11 +++ edit.php 8 Mar 2005 00:22:39 -0000 1.12 @@ -15,7 +15,7 @@ function template_edit($args) { - global $EditRows, $EditCols, $UserName, $PrefsScript; + global $EditRows, $EditCols, $UserName, $PrefsScript, $UseCaptcha; template_common_prologue(array('norobots' => 1, 'title' => TMPL_Editing .' '. $args['page'], @@ -27,7 +27,13 @@ <div id="body"> <form method="post" action="<?php print saveURL($args['page']); ?>"> <div class="form"> -<input type="submit" name="Save" value="<?php echo TMPL_ButtonSave; ?>" /> +<?php + if ($UseCaptcha) { + $formTxt = 'When saving, enter the following:<br>'. + '<input name="posted_code" value="" type="text" size="20" />'; + echo html_captcha($args['captcha'], $formTxt); + } + ?><input type="submit" name="Save" value="<?php echo TMPL_ButtonSave; ?>" /> <input type="submit" name="Preview" value="<?php echo TMPL_ButtonPreview; ?>" /> <?php if($UserName != '') Index: wiki.css =================================================================== RCS file: /cvsroot/tavi/tavi/template/wiki.css,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- wiki.css 28 Oct 2003 16:47:34 -0000 1.13 +++ wiki.css 8 Mar 2005 00:22:39 -0000 1.14 @@ -76,6 +76,10 @@ .phpsource span.string { color: #CC0000; } .phpsource span.comment { color: #FF9900; } +table.codephr {float: right} +td.codephr {font-size: 7px} +td.codehdr {vertical-align: top} + @media print { body { background-color: #ffffff; color: #000000; } div#header #toolbar-top { display: none; } |