Re[2]: [PEAR-DOC] cvs: peardoc /scripts make-chm.php

From: Date: Sun, 04 Dec 2005 16:40:23 +0000
Subject: Re[2]: [PEAR-DOC] cvs: peardoc /scripts make-chm.php
References: 1 2 3 4  Groups: php.pear.doc php.pear.qa 
Request: Send a blank email to pear-doc+get-7264@lists.php.net to get a copy of this message
||*()*|| [\..konnichi wa, ogenki desu ka, Pierre../] Sunday, December 4, 2005, 3:24:28 PM, you wrote: >> On Sat Dec 03, 2005 at 09:0046PM +0200, anatoly techtonik wrote: >> > Martin, can somebody from PEAR group finally give me access to >> > pearweb to release this package? Somebody gave it to user >> > "anatoly" - I can only guess it was an error. >> >> Done. And could you please remove this ridiculous user information on >> http://pear.php.net/user/techtonik? P> I did I removed info what was asked to be removed by Martin. Only because he made me a favor. What you've done is erased my current ToDo list. Very nice of you. P> Anatoly, we already told you many times to do not use your user page P> for rants or whatever else not related to your personal informations :) Is it my user page or what? If you want - write info about every developer yourself and make this field readonly. Add another CS about what users are allowed to write on "their" user pages. Come on, you are The PEAR Group and I'm nothing. Keep it this way. P> --Pierre P.S. I've already done what was written in this ToDo. See in attach. Hope you will find a time to review it at least before deleting. I already posted it two weekends ago. WBR.techtonik -- (B)uilding, (A)ntenna, (S)pan and (E)arth * terminal velocity - 54m/s, 305m *

--- account-edit_old.php Sun Nov 20 18:15:04 2005 +++ account-edit.php Sun Nov 20 19:42:08 2005 @@ -24,6 +24,13 @@ define('HTML_FORM_TD_ATTR', 'class="form-input"'); require_once 'HTML/Form.php'; + +/** local account editing script options */ + +/** chars user allowed to enter into user information field */ +define('PEARWEB_USER_INFO_LIMIT', 512); + + if (isset($_GET['handle'])) { $handle = $_GET['handle']; } elseif (isset($_POST['handle'])) { @@ -82,8 +89,10 @@ $user_data_post[$k] = htmlspecialchars($_POST[$k]); - if ($k == 'userinfo' && strlen($user_data_post[$k]) > 500) { - report_error('User information exceeds the allowed length of 500 characters.'); + if ($k == 'userinfo' && strlen($user_data_post[$k]) > PEARWEB_USER_INFO_LIMIT) { + report_error('User information exceeds the allowed length of ' + .PEARWEB_USER_INFO_LIMIT + .' characters.'); response_footer(); exit(); } @@ -170,6 +179,9 @@ } +/** display form for user information edit */ +/** add some optional dynamics to handle limitations around "user_info_limit" span */ + $form = new HTML_Form(htmlspecialchars($_SERVER['SCRIPT_NAME']), 'post'); $form->addText('name', '<span class="accesskey">N</span>ame:', @@ -185,10 +197,16 @@ $form->addText('pgpkeyid', 'PGP Key ID:' . '<p class="cell_note">(Without leading 0x)</p>', $row['pgpkeyid'], 40, 20); +/** add dhtml around "user_info_limit" span in next element to handle user info limitations */ $form->addTextarea('userinfo', 'Additional User Information:' - . '<p class="cell_note">(limited to 255 chars)</p>', - $row['userinfo'], 40, 5, null); + . '<p class="cell_note">' + . '(limited to <span id="user_info_limit">'.PEARWEB_USER_INFO_LIMIT.'</span> chars)' + . '</p>', + $row['userinfo'], 40, 5, PEARWEB_USER_INFO_LIMIT, + 'id="userinfo" '. + . 'onkeyup="document.getElementById(\'user_info_limit\').innerHTML = '.PEARWEB_USER_INFO_LIMIT.' - this.value.length; + document.getElementById(\'user_info_limit\').style.color = ('.PEARWEB_USER_INFO_LIMIT.' - this.value.length < 0) ? \'darkred\' : \'\'"'); $form->addTextarea('cvs_acl', 'CVS Access:', $cvs_acl, 40, 5, null);
« previous php.pear.doc (#7264) next »