phpmix-cvs Mailing List for phpMiX Open Source eXperiments (Page 4)
Status: Pre-Alpha
Brought to you by:
markus_petrux
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(160) |
May
|
Jun
(117) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <php...@li...> - 2006-06-03 17:34:50
|
Update of /cvsroot/phpmix/widgets/php/dynamic_signatures/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21303/images Log Message: Directory /cvsroot/phpmix/widgets/php/dynamic_signatures/images added to the repository |
From: <php...@li...> - 2006-06-03 17:34:30
|
Update of /cvsroot/phpmix/widgets/php/dynamic_signatures/gd_fonts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21228/gd_fonts Log Message: Directory /cvsroot/phpmix/widgets/php/dynamic_signatures/gd_fonts added to the repository |
From: <php...@li...> - 2006-06-03 17:34:12
|
Update of /cvsroot/phpmix/widgets/php/dynamic_signatures In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21034/dynamic_signatures Log Message: Directory /cvsroot/phpmix/widgets/php/dynamic_signatures added to the repository |
From: <php...@li...> - 2006-06-03 17:33:20
|
Update of /cvsroot/phpmix/widgets/javascript/dyntar/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20519/images Log Message: Directory /cvsroot/phpmix/widgets/javascript/dyntar/images added to the repository |
From: <php...@li...> - 2006-06-03 17:32:47
|
Update of /cvsroot/phpmix/widgets/javascript/dyntar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20010/dyntar Log Message: Directory /cvsroot/phpmix/widgets/javascript/dyntar added to the repository |
From: <php...@li...> - 2006-06-03 17:32:35
|
Update of /cvsroot/phpmix/widgets/javascript/dynifs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19945/dynifs Log Message: Directory /cvsroot/phpmix/widgets/javascript/dynifs added to the repository |
From: <php...@li...> - 2006-06-03 17:32:14
|
Update of /cvsroot/phpmix/widgets/php In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19850/php Log Message: Directory /cvsroot/phpmix/widgets/php added to the repository |
From: <php...@li...> - 2006-06-03 17:32:00
|
Update of /cvsroot/phpmix/widgets/javascript In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19450/javascript Log Message: Directory /cvsroot/phpmix/widgets/javascript added to the repository |
From: <php...@li...> - 2006-06-03 16:12:38
|
Update of /cvsroot/phpmix/drupal/modules/smtp_checker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6821/smtp_checker Added Files: INSTALL.txt LICENSE.txt README.txt smtp_checker.module Log Message: Initial import. --- NEW FILE: INSTALL.txt --- $Id: INSTALL.txt,v 1.1 2006/06/03 16:12:33 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : smtp_checker Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** INSTALLATION: 1. Create the folder 'modules/smtp_checker' 2. Copy all modules files, keeping directory structure, to the folder 'modules/smtp_checker' 3. Enable the smtp_checker module in 'admin/modules' 4. Forms fields to check using this module can be specified at: admin/settings/smtp_checker 5. You're done. ******************************************************************** Please, see the file README.txt for further information. --- NEW FILE: LICENSE.txt --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. --- NEW FILE: smtp_checker.module --- <?php // $Id: smtp_checker.module,v 1.1 2006/06/03 16:12:33 markus_petrux Exp $ /** * @file * Enable validation of e-mail addresses by checking the SMTP server. */ /** * Some external URLs used as reference in this module */ define(SMTP_CHECKER_DRUPAL_FORM_API_DOCS, 'http://drupal.org/node/33338'); define(SMTP_CHECKER_RFC2821, 'http://www.faqs.org/rfcs/rfc2821'); /** * Implementation of hook_perm(). */ function smtp_checker_perm() { return array('use smtp checker assistant'); } /** * Implementation of hook_help(). */ function smtp_checker_help($section) { switch ($section) { case 'admin/help#smtp_checker': $output = t('<p>The <strong>SMTP Checker</strong> module allows you to enable validation of e-mail addresses supplied by the user through any form, that uses the standard <a href="%form-api" target="_blank">drupal Form API</a>, by checking the related SMTP servers.</p> <p>The validation process works as follows: <ul> <li>The hostname part is extracted from the e-mail address (note: e-mail addresses are expected to be supplied in simple format: username@hostname).</li> <li>An attempt to obtain the list of mail servers associated with the e-mail address is made. The list is obtained by performing a lookup of the <em>MX records</em> defined for that <em>hostname</em> (note: according to <a href="%rfc2821" target="_blank">RFC 2821</a>, when no mail exchangers are defined, the hostname itself should be used).</li> <li>For each mail server, a SMTP connection is attempted to perform a mail delivery check to the specified e-mail address (note: no e-mail is sent, only an attempt to do so is made).</li> <li>If a mail server responds successfully, then the e-mail address is accepted, otherwise it is rejected with an error message.</li> </ul></p> <p>For the administrator\'s convenience, failed attempts are <a href="%admin-logs">logged</a> to make it as easy as possible to diagnose any error that might occur during the process.</p> <p>You can define which forms to apply this validation process using the <a href="%settings">settings panel</a> for this module.</p> ', array('%form-api' => url(SMTP_CHECKER_DRUPAL_FORM_API_DOCS), '%rfc2821' => url(SMTP_CHECKER_RFC2821), '%admin-logs' => url('admin/logs', 'filter=smtp checker'), '%settings' => url('admin/settings/smtp_checker'))); break; case 'admin/settings/smtp_checker': $output = t('<p>This panel allows you to specify which form fields you wish to hook in order to validate e-mail addresses <a href="%help">using the <strong>SMTP Checker</strong> module</a>. For each form you can specify its internal identifier and the fields that you wish to check, using the following format:</p> <p> form_id:fieldname_list</p> <p>Where:</p> <ul> <li><strong>form_id</strong> is a drupal form identifier. You should be able to find this information by looking at the source code of the page that contains the form and searching for the <em>value</em> of an input element of type <em>hidden</em> and name is <em>edit[form_id]</em>.</li> <li><strong>fieldname_list</strong> is a comma separated list of field names on the specified form that you wish to check.</li> </ul> <p>Note: The validation process performs a special handling for textarea fields, where more than one e-mail address can be specified using a comma separated list (such as in the recipients field of the contact module). For simple text fields, only a single e-mail address is expected.</p> ', array('%help' => url('admin/help/smtp_checker'))); break; case 'admin/modules#description': $output = t('Enables validation of e-mail addresses by checking the SMTP server.'); break; } return $output; } /** * Implementation of hook_settings(). */ function smtp_checker_settings() { $form = array( 'smtp_checker_forminfo' => array( '#type' => 'textarea', '#title' => t('Where to apply SMTP validation'), '#default_value' => variable_get('smtp_checker_forminfo', ''), '#rows' => 10, '#description' => t('Please, enter information about each form using separate lines.') ), 'smtp_checker_assistant' => array( '#type' => 'radios', '#title' => t('Enable SMTP Checker assistant in forms'), '#default_value' => variable_get('smtp_checker_assistant', 0), '#options' => array('1' => t('Enabled'), '0' => t('Disabled')), '#description' => t('<p>When this option is enabled all Drupal forms that have input fields of type text or textarea (except those that are critical such as the login form) will be disabled for normal operation and a special checkbox will be shown next to all text fields. You can then visit any form and check the fields that are aimed to accept e-mail addresses and that you wish to protect using the SMTP Checker module. Next to each checkbox there is a button that you have to press in order to update the module settings. This is an alternative (and hopefully easier) method to configure the <em>Where to apply SMTP validation</em> option.</p> <p>By default, this assistant is enabled to site administrators only. However, from the <a href="%access-control">access control panel</a>, you can grant the <em>"%use-assistant"</em> permission to any user role, if the need arises. In that way, you can visit a from as (say) a guest, and be able to see fields that are otherwise hidden, so you can activate the SMTP checker module for them. An example of this possible scenario is the comment form. Here, anonymous users may be requested to enter their e-mail address. That is, if you need to use the assistant to activate the SMTP checker module for fields that are only available to non-administrators, you need to grant the <em>"%use-assistant"</em> permission for them.</p> <p><strong>IMPORTANT:</strong> Remeber that, in order to restore forms to normal operation, you need to disable the assitant as soon as you get ready setting up the SMTP checker module.</p>', array('%access-control' => url('admin/access'), '%use-assistant' => t('use smtp checker assistant'))) ) ); return $form; } /** * Extract references to form fields of the specified types. * * @param $form * A $form array (note it is passed by reference). * @param $field_types * An array of field types, such as array('textfield','textarea'), the default. * @param $field_prefix * Used when the function is called recursivelly. * @return * An array of references to form fields of the specified types. */ function _smtp_checker_extract_fields(&$form, $field_types = array('textfield','textarea'), $field_prefix = '') { $result = array(); if (is_array($form)) { foreach ($form as $field_name => $field_data) { if ($field_name[0] != '#' && is_array($field_data)) { if (isset($field_data['#type']) && in_array($field_data['#type'], $field_types)) { $result[$field_prefix . $field_name] = &$form[$field_name]; } else { $tmp = _smtp_checker_extract_fields($form[$field_name], $field_types, $field_prefix . $field_name .'/'); if (is_array($tmp)) { $result = array_merge($result, $tmp); } } } } } return $result; } /** * Implement form_alter hook. */ function smtp_checker_form_alter($form_id, &$form) { static $forminfo = FALSE; // Extract forms/fields where we should check e-mail addresses. if (!$forminfo) { $tmp_string = variable_get('smtp_checker_forminfo', ''); $tmp_array = preg_split("/\r?\n|\r/", $tmp_string); $forminfo = array(); for ($i=0; $i<count($tmp_array); $i++) { $formline = explode(':', $tmp_array[$i]); if (count($formline) >= 2) { $formline[1] = explode(',', $formline[1]); array_map('trim', $formline[1]); $forminfo[$formline[0]] = $formline[1]; } } unset($tmp_string, $tmp_array, $formline); } // Check to see if we have to display the assistant. $show_assistant = FALSE; if (variable_get('smtp_checker_assistant', 0) && user_access('use smtp checker assistant') && $_GET['q'] != 'admin/settings/smtp_checker') { // This is a quick hack to ignore certain forms. That is, there are some forms that // we know there are no mail related fields. // This is specially important for the search_box, but there may be more. $ignored_forms = array('search_box','user_login'); if (!preg_match('#('. implode('|', $ignored_forms) .')#i', $form_id)) { // Now, extract references to form fields of type textfield/textarea $form_fields = _smtp_checker_extract_fields($form); // Is there any field of type textfield/textarea here? if (count($form_fields)) { // Ok, let's activate the assistant for this form. $show_assistant = TRUE; } } } // Should we display the assistant for this form? if ($show_assistant) { // Save a copy of the current form, unaltered. global $smtp_checker_form; $smtp_checker_form = $form; // Alter the form to add our checkboxes. form_set_error('', t('<p>This form has been temporarily disabled!</p>')); $smtp_checkbox_count = 0; foreach ($form_fields as $field_name => $field_data) { $checkbox_name = 'smtp-checker-'. $smtp_checkbox_count++; $checkbox_form = theme('checkbox', array( '#title' => '<span class="marker">'. t('SMTP Check field: %title', array('%title' => $form_fields[$field_name]['#title'])) .'</span>', '#name' => $checkbox_name, '#id' => $checkbox_name, '#return_value' => 1, '#value' => (isset($forminfo[$form_id]) && in_array($field_name, $forminfo[$form_id]) ? 1 : 0) )); $checkbox_form .= theme('submit', array( '#name' => $checkbox_name .'-button', '#button_type' => 'submit', '#attributes' => array('class' => 'form-submit'), '#value' => t('Update SMTP Checker settings') )); $form_fields[$field_name]['#prefix'] = $checkbox_form . $form_fields[$field_name]['#prefix']; $form_fields[$field_name]['#validate']['smtp_checker_form_disabled'] = array('form_id' => $form_id); } } else { // ok, this is 'normal' operation, is this form one of our targets? if( isset($forminfo[$form_id]) ) { // Extract references to form fields of type textfield/textarea $form_fields = _smtp_checker_extract_fields($form); // Perform the check if there are possible target fields only. if (count($form_fields)) { // Find the specified fields in this form. foreach ($forminfo[$form_id] as $field_name) { // Does the specified field exist in this form? if (isset($form_fields[$field_name])) { // Since they seem to wish to check for valid e-mail addresses // we should make sure the field is actually required. $form_fields[$field_name]['#required'] = TRUE; // Inject our validation routine if (!isset($form_fields[$field_name]['#validate'])) { $form_fields[$field_name]['#validate'] = array(); } $form_fields[$field_name]['#validate']['smtp_checker_form_validate'] = array('fieldname' => $field_name); } } } } } } /** * This handler is called when the assistant has been enabled. * We will deal here with any options specified by the user. * The user will be redirected to the same path and no other changes will take effect. * The form has been temporarily disabled. */ function smtp_checker_form_disabled($element, $form_id) { // Validate form_id global $smtp_checker_form; $form = $smtp_checker_form; if ($form_id == $form['form_id']) { form_set_error('', t('Internal error while checking form_id!')); return; } // Extract list of checked fields in current form $form_fields = _smtp_checker_extract_fields($form); $smtp_checkbox_count = 0; $smtp_fields = array(); foreach ($form_fields as $field_name => $field_data) { $checkbox_name = 'smtp-checker-'. $smtp_checkbox_count++; if (isset($_POST[$checkbox_name])) { $smtp_fields[$field_name] = $field_data['#title']; } } // Update SMTP Checker settings accordingly $tmp_string = variable_get('smtp_checker_forminfo', ''); $tmp_array = preg_split("/\r?\n|\r/", $tmp_string); $forminfo = array(); if (count($smtp_fields) > 0) { $forminfo[] = $form_id .':'. implode(',', array_keys($smtp_fields)); } for ($i=0; $i<count($tmp_array); $i++) { $formline = explode(':', $tmp_array[$i]); if (count($formline) >= 2) { if ($form_id != $formline[0]) { $forminfo[] = $formline[0] .':'. $formline[1]; } } } variable_set('smtp_checker_forminfo', implode("\n", $forminfo)); // Void the real form! drupal_get_messages(); drupal_goto($_GET['q']); } /** * Form callback used to invoke the real validation functions * * Note we perform a special handling for textarea fields * where more than one e-mail address can be specified * using a comma separated list. */ function smtp_checker_form_validate($element, $field_name) { if ($element['#type'] == 'textarea') { $email_addresses = explode(',', $element['#value']); array_map('trim', $email_addresses); } else { $email_addresses = array($element['#value']); } foreach($email_addresses as $email) { if (!_smtp_checker_validate($email)) { form_set_error($field_name, t('The e-mail address %mail is not valid, it was rejected by the mail server or the mail server failed to respond successfully. Please, check your input, verify that your e-mail address is active or try it again later.', array('%mail' => theme('placeholder', $email)))); } } } /** * Validate an e-mail address by checking the SMTP server, obtained from the related MX host(s) */ function _smtp_checker_validate($email) { if (!ini_get('safe_mode')) { set_time_limit(60); } // Separate hostname from e-mail address list($username, $hostname) = explode('@', $email); if (empty($username) || empty($hostname)) { $message = t('e-mail: %e-mail | invalid e-mail address format specified', array('%e-mail' => $email)); watchdog('smtp checker', $message); return FALSE; } // Try to find all MX records defined for the specified hostname $mxhosts = array(); $weights = array(); // We'll be using a different method depending on the Operating System we're running under $is_win = @preg_match("/Microsoft|Win32|IIS|WebSTAR|Xitami/", getenv('SERVER_SOFTWARE')); if ($is_win) { // Note this method won't work when safe_mode is on! // @TODO: There is an alternative method here: // http://www.php.net/manual/en/function.getmxrr.php#49290 if (!ini_get('safe_mode')) { @exec("nslookup -type=mx $hostname", $output); foreach ($output as $line) { if (preg_match("#^.*MX preference = (\d{1,10}), mail exchanger = (.*)$#i", $line, $match)) { $weights[] = $match[1]; $mxhosts[] = $match[2]; } } } } else { // a) First check for an MX record, but if it fails we still want // to try getmxrr() it if we can find ANY other DNS record. // b) If we found a DNS record then we'll attempt to get all // MX records using http://www.php.net/getmxrr if (checkdnsrr($hostname, 'MX') || checkdnsrr($hostname, 'ANY')) { getmxrr($hostname, $mxhosts, $weights); } } // NOTE: according to RFC 2821 http://www.faqs.org/rfcs/rfc2821 // when no mail exchangers are listed, hostname itself should be used if (count($mxhosts) <= 0) { $mxhosts[] = $hostname; } else { // Sort found MX hosts in order of lowest weight first, in addition // elements with the same weight are sorted in alphabetic order array_multisort($weights, $mxhosts); } // Test mail delivery against all MX host until one succeeds foreach ($mxhosts as $mxhost) { if (_smtp_checker_validate_mailbox($email, $mxhost)) { return TRUE; } } return FALSE; } /** * Test mail delivery through the specified SMTP host */ function _smtp_checker_validate_mailbox($email, $hostname) { // @TODO: Some of these values could probably be defined somewhere else (maybe by the user) $server_name = $_SERVER['SERVER_NAME']; $sendmail_from = @ini_get('sendmail_from'); $smtp_port = 25; $fsock_timeout = 15; // Attempt to prevent fsockopen to try out an invalid host. if (!is_array(gethostbynamel($hostname))) { $message = t('e-mail: %e-mail | DNS lookup failed', array('%e-mail' => $email)); watchdog('smtp checker', $message); return FALSE; } if (!($fp = @fsockopen($hostname, $smtp_port, $errno, $errmsg, $fsock_timeout))) { if (!is_numeric($errno)) { $errno = '(?)'; } if (empty($errmsg)) { $errmsg = ( !is_resource($fp) ? t('fsockopen returned an invalid resource') : t('(null)') ); } $message = t('e-mail: %e-mail | fsockopen failed to connect | Error #%errno "%message"', array('%e-mail' => $email, '%errno' => $errno, '%message' => $errmsg)); watchdog('smtp checker', $message); return FALSE; } usleep(888); $out = fgetss($fp, 1024); if (!ereg('^220', $out)) { @fclose($fp); $message = t('e-mail: %e-mail | Invalid fsockopen response "%message"', array('%e-mail' => $email, '%message' => $out)); watchdog('smtp checker', $message); return FALSE; } fputs($fp, "HELO {$server_name}\r\n"); while (ereg('^220', $out)) { $out = fgetss($fp, 1024); } fputs($fp, "VRFY <{$email}>\r\n"); $verify = fgetss($fp, 1024); fputs($fp, "MAIL FROM: <{$sendmail_from}>\r\n"); $From = fgetss($fp, 1024); fputs($fp, "RCPT TO: <{$email}>\r\n"); $To = fgetss($fp, 1024); fputs($fp, "QUIT\r\n"); fclose($fp); if (ereg('^250', $From) && ereg('^250', $To) && !ereg('^550', $verify)) { return TRUE; } $message = t('e-mail: %e-mail | VRFY: %verify | MAIL FROM: %from | RCPT TO: %to', array('%e-mail' => $email, '%verify' => $verify, '%from' => $From, '%to' => str_replace('-"', ' ', $To))); watchdog('smtp checker', $message); return FALSE; } --- NEW FILE: README.txt --- $Id: README.txt,v 1.1 2006/06/03 16:12:33 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : smtp_checker Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** DESCRIPTION: The SMTP Checker module allows you to enable validation of email addresses supplied by the user through any form, that uses the standard drupal Form API (see [1]), by checking the related SMTP servers. The validation process works as follows: * The hostname part is extracted from the email address (note: email addresses are expected to be supplied in simple format: username@hostname). * An attempt to obtain the list of mail servers associated with the email address is made. The list is obtained by performing a lookup of the MX records defined for that hostname (note: according to RFC 2821, see [2], when no mail exchangers are defined, the hostname itself should be used). * For each mail server, a SMTP connection is attempted to perform a mail delivery check to the specified email address (note: no email is sent, only an attempt to do so is made). * If a mail server responds successfully, then the email address is accepted, otherwise it is rejected with an error message. For the administrator's convenience, failed attempts are logged to make it as easy as possible to diagnose any error that might occur during the process. You can define which forms to apply this validation process using the settings panel for this module (admin/settings/smtp_checker). ******************************************************************** REFERENCES: [1] Drupal Form API: http://drupal.org/node/33338 [2] RFC 2821 - Simple Mail Transfer Protocol http://www.faqs.org/rfcs/rfc2821 ******************************************************************** INSTALLATION: Please, see the file INSTALL.txt in this directory. ******************************************************************** |
From: <php...@li...> - 2006-06-03 16:12:37
|
Update of /cvsroot/phpmix/drupal/modules/session_protection In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6821/session_protection Added Files: INSTALL.txt LICENSE.txt README.txt session_protection.module Log Message: Initial import. --- NEW FILE: INSTALL.txt --- $Id: INSTALL.txt,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : session_protection Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** INSTALLATION: 1. Create the folder 'modules/session_protection' 2. Copy all modules files, keeping directory structure, to the folder 'modules/session_protection' 3. Enable the session_protection module in 'admin/modules' 4. You're done. ******************************************************************** Please, see the file README.txt for further information. --- NEW FILE: session_protection.module --- <?php // $Id: session_protection.module,v 1.1 2006/06/03 16:12:33 markus_petrux Exp $ /** * Implementation of hook_help(). */ function session_protection_help($section) { switch ($section) { case 'admin/modules#description': $output = t('Protect user sessions from hijacking/fixation attacks.'); break; } return $output; } /** * Implementation of hook_init(). */ function session_protection_init() { global $user, $base_url; // Perform the checks for: // 1) session claiming to pertain to logged in users. // 2) guest sessions that have session data. if ($user->uid || !empty($_SESSION)) { $fingerprint = _session_protection_fingerprint(); // Make sure we have already stored a fingerprint in session data. // The second part of the expression ensures the session id is regenerated // when users logout. if (!isset($_SESSION['fingerprint']) || ($fingerprint !== $_SESSION['fingerprint'] && $user->uid != $_SESSION['user_id'])) { // Ok, let's compute a unique session fingerprint. $_SESSION['fingerprint'] = $fingerprint; // This is necessary to force session id regeneration everytime the user ID changes. $_SESSION['user_id'] = $user->uid; // Regenerating the session id here covers all possible methods of user login. // Including the core user module, of course, but also alternate login methods // provided by contrib modules... at the price of just an additional UPDATE // operation per user session (note it is not per page request). $old_sid = session_id(); session_regenerate_id(); db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'", session_id(), $old_sid); } else { // ok, a fingerprint was found, but does it match with the one we compute here? if ($fingerprint !== $_SESSION['fingerprint']) { // Let's record this event; note that t() is not yet available. watchdog('user', 'Possible session hijacking attempt.', WATCHDOG_WARNING); // Let's log this "fake" user out by forcing a new session id. // session_regenerate_id() is not used here, because it would // affect the session of the user being hijacked. $new_sid = md5(uniqid(mt_rand(), true)); session_id($new_sid); if ((bool)ini_get('session.use_cookies')) { // Update the session cookie. setcookie(session_name(), $new_sid, 0, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure')); } // Rebuild all session related information. sess_read($new_sid); // Note that, since $new_sid is still "unknown" to the session handler, // sess_read will populate the global $user object with the anonymous user. // In this case, we want to make sure session data is stored too. $_SESSION = array('fingerprint' => _session_protection_fingerprint()); sess_write($new_sid, session_encode()); // Redirect to the homepage; note that drupal_goto() is not yet available. header('Location: '. $base_url); exit(); } } } // Make sure session data is stored, specially when making redirections // with header('Location: ...'). For further information, see: // http://www.google.com/search?q=session_write_close+header+location register_shutdown_function('session_write_close'); } /** * Implementation of hook_exit(). */ function session_protection_exit() { // intentionally empty function; it is required so the module gets loaded // when page cache is enabled. } /** * Compute a session fingerprint. * * A session fingerprint is the MD5 hash of a string concatenation * that includes the user ID, the user agent and an admin selected * number of IP address parts. * * @TODO: It probably doesn't work with IPv6 addresses, so... */ function _session_protection_fingerprint() { global $user; $ip = $_SERVER['REMOTE_ADDR']; $ip = explode('.', $ip); $tmp = array(); for ($i=0; $i < SESSION_FINGERPRINT_IP_CLASSES; $i++) { $tmp[] = $ip[$i]; } $ip = implode('.', $tmp); return md5($user->uid . $_SERVER['HTTP_USER_AGENT'] . $ip); } /** * How many parts of an IP address to take into account to * compute a session fingerprint? * * 0 means the IP won't be taken into account. * 1 means only 8 bits of the IP will be taken into account. * 2 means 16 bits of the IP will be taken into account. * 3 means 24 bits of the IP will be taken into account. * 4 means the whole IP address will be taken into account. * * @TODO: Probably this option ought to be moved to somewhere else. * 1) to settings.php, so it could be configured on a per site basis? * 2) to the user table (so users can choose) with a site default? */ define('SESSION_FINGERPRINT_IP_CLASSES', 3); --- NEW FILE: LICENSE.txt --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. --- NEW FILE: README.txt --- $Id: README.txt,v 1.1 2006/06/03 16:12:33 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : session_protection Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** DESCRIPTION: The session_protection module protect user sessions against hijacking attacks and offer a better method to protect from session fixation than the one provided by Drupal itself. The method implemented by this module is based on session fingerprinting. A unique string is computed and attached to session data. The same exact string is computed for every page request, so it should be based on data that isn't prone to change (or that it doesn't change really often). The first time a user generates a request, the fingerprint is stored in session data. Subsequent requests will check the computed fingerprint against the one stored in session data. If it doesn't match, the request will be forced to use a new session id, logged out and redirected to the homepage. While that happens, the victim (the user who originated the first session) is not affected. ie. its session id along its session data remains untouched. At a bare minimum, the fingerprint should take into account the user ID. Note that changes in the fingerprint will force a regeneration of the session id, hence, this method protects from session fixation attacks. The user agent string is also used to compute the fingerprint. While this information could be easily spoofed, it still helps in that 1) this information doesn't change (or shouldn't) between page requests and 2) an attacker should not only know the session id, but also the user agent string of the victim. Optionally, the user ip (or part of it) may also be taken into account to compute the fingerprint. This is a method of session hijacking prevention that comes at the price that some legitimate users may be logged out when their IP (or the part of it that is taken into account here) changes. This may affect users who browse the site behind certain proxy farms, such as AOL, etc. This isn't reason enough to remove this kind of checking because: 1) proxy farm vendors are aware of the problem, of course, hence they provide methods to ensure a common IP range for users during the lifetime of their sessions. It seems, therefore, reasonable to provide with this type of protection. 2) admins deserve the right to choose the level of protection their sites may need. Some may not care about users behind proxy farms, also some may operate behind intranets, etc. ie. it depends on their target audience. ******************************************************************** INSTALLATION: see the INSTALL.txt file in this directory. ******************************************************************** |
From: <php...@li...> - 2006-06-03 16:12:35
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6821/phpinfo Added Files: INSTALL.txt LICENSE.txt README.txt phpinfo.module Log Message: Initial import. --- NEW FILE: phpinfo.module --- <?php // $Id: phpinfo.module,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ /** * @file * Display PHP Information in the administration section formatted according to your theme design. */ /** * Implementation of hook_help(). */ function phpinfo_help($section) { switch ($section) { case 'admin/help#phpinfo': if ($_GET['q'] != 'admin/phpinfo') { $output = t('<p>The <strong>PHP Information</strong> module allows you to view the <a href="%phpinfo" target="_blank">phpinfo()</a> report in the <a href="%admin">administration section</a> of your drupal site, formatted according to your theme design.</p> <p>This is something that might come handy when you need to check the currently active PHP configuration that affects your drupal site operation.</p> <p>By default, only site administrators have access to view PHP information, but it can be granted to others (view phpinfo) from the <a href="%access">access control</a> panel.</p> ', array('%phpinfo' => 'http://www.php.net/phpinfo', '%admin' => url('admin/phpinfo'), '%access' => url('admin/access'))); } break; case 'admin/modules#description': $output = t('Display <a href="%phpinfo" target="_blank">PHP Information</a> in the administration section formatted according to your theme design.', array('%phpinfo' => 'http://www.php.net/phpinfo')); break; } return $output; } /** * Implementation of hook_perm(). */ function phpinfo_perm() { return array('view phpinfo'); } /** * Implementation of hook_menu(). */ function phpinfo_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array('path' => 'admin/phpinfo', 'title' => t('phpinfo'), 'callback' => 'phpinfo_page', 'access' => user_access('view phpinfo')); } return $items; } /** * Display the phpinfo() page. */ function phpinfo_page() { // Capture the phpInfo output. ob_start(); phpinfo(); $output = ob_get_contents(); ob_end_clean(); // Extract the BODY part. preg_match_all('#<body[^>]*>(.*)</body>#siU', $output, $phpinfo); $phpinfo = $phpinfo[1][0]; // Remove all, but some HTML Tags. $allowedTags = '<h1><h2><h3><hr><ul><ol><li><b><i><u>'. '<a><pre><blockquote><img><div><span><p><br>'. '<table><tr><td><th><thead><tbody><tfoot>'; $phpinfo = strip_tags($phpinfo, $allowedTags); // Alter some HTML/CSS related attributes. $replacements = array( array('# (style|class)=["\'](.*?)["\']#si', ''), array('#<hr(.*?)>#si', '<hr size="1" width="600" />'), array('#<img(.*?)>#si', '<img style="float:right; border:0px;"\1>'), array('#<td(.*?)>(.*?)</td>#si', '<td\1 align="left"><div>\2</div></td>'), array('#cellpadding="(.*?)"#si', 'cellpadding="2"'), array('#cellspacing="(.*?)"#si', ''), array('#<table(.*?)>#si', '<table\1 cellspacing="1" style="margin-left:auto;margin-right:auto;">'), array('#<tr(.*?)>#si', '<tr\1 class="even">') ); for ($i=0; $i<count($replacements); $i++) { $phpinfo = preg_replace($replacements[$i][0], $replacements[$i][1], $phpinfo); } $phpinfo = '<div style="text-align:center;">'. $phpinfo .'</div>'; return $phpinfo; } --- NEW FILE: INSTALL.txt --- $Id: INSTALL.txt,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : phpinfo Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** INSTALLATION: 1. Create the folder 'modules/phpinfo' 2. Copy all modules files, keeping directory structure, to the folder 'modules/phpinfo' 3. Enable the phpinfo module in 'admin/modules' 4. You're done. Your PHP Information is available at: admin/phpinfo ******************************************************************** GRANTING ACCESS: If the need arises, you can grant access to view your PHP Information to other users by going to admin/access Permission is labeled 'view phpinfo'. ******************************************************************** OPTIONAL: If you have installed the controlpanel module, you may want to check the contrib folder included with this module. It contains a couple of images that you could use instead of the default one. Please, consult the controlpanel module docs for further information on where to place this images. Note: As you'll soon notice, graphics are not my best, though. ;-) ******************************************************************** --- NEW FILE: LICENSE.txt --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. --- NEW FILE: README.txt --- $Id: README.txt,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : phpinfo Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** DESCRIPTION: The phpinfo module allows you to view the phpinfo() report in the administration section of your drupal site, formatted according to your theme design. This is something that might come handy when you need to check the currently active PHP configuration that affects your drupal site operation. By default, only site adminstrators have access to view PHP information, but it can be granted to others (view phpinfo) from the admin/access. ******************************************************************** INSTALLATION: see the INSTALL.txt file in this directory. ******************************************************************** |
From: <php...@li...> - 2006-06-03 16:12:35
|
Update of /cvsroot/phpmix/drupal/modules/pathchecker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6821/pathchecker Added Files: INSTALL.txt LICENSE.txt README.txt pathchecker.module Log Message: Initial import. --- NEW FILE: INSTALL.txt --- $Id: INSTALL.txt,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : pathchecker Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** INSTALLATION: 1. Create the folder 'modules/pathchecker' 2. Copy all modules files, keeping directory structure, to the folder 'modules/pathchecker' 3. Enable the pathchecker module in 'admin/modules' 4. You're done. ******************************************************************** Please, see the file README.txt for further information. --- NEW FILE: LICENSE.txt --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. --- NEW FILE: README.txt --- $Id: README.txt,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ ******************************************************************** D R U P A L M O D U L E ******************************************************************** Name : pathchecker Author: markus_petrux [ http://www.phpmix.org ] Drupal: 4.7 ******************************************************************** DESCRIPTION: The Path Checker module provides an additional report that allows administrators to easily check for broken path aliases. ******************************************************************** INSTALLATION: Please, see the file INSTALL.txt in this directory. ******************************************************************** --- NEW FILE: pathchecker.module --- <?php // $Id: pathchecker.module,v 1.1 2006/06/03 16:12:30 markus_petrux Exp $ /** * Implementation of hook_help(). */ function pathchecker_help($section) { if ($section == 'admin/modules#description') { return t('Allows administrators to easily check for broken path aliases.'); } if ($section == 'admin/help#pathchecker') { return t('<p>The <em>Path Checker</em> module provides an <a href="%admin-pathchecker">additional report</a> that allows administrators to easily check for broken path aliases.</p> <p>For further information, please consult the <a href="%help-path">documentation of the path module</a>.</p>', array('%admin-pathchecker' => url('admin/pathchecker'), '%help-path' => url('admin/help/path'))); } else if (preg_match('#admin/pathchecker(/(.*))*#', $section, $match)) { return t('<p>This page allows you to easily check if your custom paths actually work. For further information, please consult the documentation of the Drupal path module.'); } } /** * Implementation of hook_menu(). */ function pathchecker_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array('path' => 'admin/pathchecker', 'title' => t('url aliases (checker)'), 'callback' => 'pathchecker_admin', 'access' => user_access('administer url aliases')); $items[] = array('path' => 'admin/pathchecker/all', 'title' => t('All'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/pathchecker/broken', 'title' => t('Broken'), 'type' => MENU_LOCAL_TASK, 'weight' => -9); $items[] = array('path' => 'admin/pathchecker/doubt', 'title' => t('In doubt'), 'type' => MENU_LOCAL_TASK, 'weight' => -8); $items[] = array('path' => 'admin/pathchecker/unknown', 'title' => t('Unknown'), 'type' => MENU_LOCAL_TASK, 'weight' => -7); } return $items; } /** * Implementation of hook_settings(). */ function pathchecker_settings() { $form = array(); $form['general'] = array( '#type' => 'fieldset', '#title' => t('General settings'), ); $form['general']['pathchecker_records_per_page'] = array( '#type' => 'select', '#title' => t('Records per page'), '#default_value' => variable_get('pathchecker_records_per_page', 50), '#options' => drupal_map_assoc(array(10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200)), '#description' => t('<p>Enter the number of records per page used in the <a href="%admin-pathchecker">pathchecker report</a>.</p>', array('%admin-pathchecker' => url('admin/pathchecker'))) ); $form['general']['pathchecker_known_paths'] = array( '#type' => 'textarea', '#title' => t('Known paths'), '#default_value' => variable_get('pathchecker_known_paths', 'node'), '#rows' => 10, '#description' => t('<p>Use this option to enter paths that are otherwise displayed as \'Unknown\' in the <a href="%admin-pathchecker">pathchecker report</a>, but are really known to work for you. These paths are not easy to check automatically, hence this workaround ;-)</p><p>Please, enter paths in separate lines. Note that each line is evaluated as a regular expressions to match the destination of path records.</p>', array('%admin-pathchecker' => url('admin/pathchecker'))) ); return $form; } /** * Menu callback; presents an overview of all URL aliases. */ function pathchecker_admin($op = 'all') { $records_per_page = ($op == 'all' ? variable_get('pathchecker_records_per_page', 50) : 0); $sql = 'SELECT * FROM {url_alias}'; $header = array( array('data' => t('Alias'), 'field' => 'dst', 'sort' => 'asc'), array('data' => t('System'), 'field' => 'src'), array('data' => t('Status')), array('data' => t('Operations'), 'colspan' => '2') ); if ($records_per_page > 0) { $sql .= tablesort_sql($header); $result = pager_query($sql, $records_per_page); } else { $result = db_query($sql); } $known_paths = preg_split("/\r?\n|\r/", variable_get('pathchecker_known_paths', 'node')); $known_paths_count = count($known_paths); $destination = drupal_get_destination(); while ($data = db_fetch_object($result)) { if (preg_match('#^node/([0-9]+)(.*)$#', $data->src, $match)) { $status = (db_result(db_query("SELECT nid FROM {node} WHERE nid = %d", $match[1])) ? t('Ok') : t('Broken')); if ($status == t('Ok') && !empty($match[2])) { $status = t('In doubt'); } } else if (preg_match('#^user/([0-9]+)(.*)$#', $data->src, $match)) { $status = (db_result(db_query("SELECT uid FROM {users} WHERE uid = %d", $match[1])) ? t('Ok') : t('Broken')); if ($status == t('Ok') && !empty($match[2])) { if ($match[2] == '/track' && module_exist('tracker')) { } else { $status = t('In doubt'); } } } else if (preg_match('#^taxonomy/term/([0-9]+)(.*)$#', $data->src, $match)) { $status = (db_result(db_query("SELECT tid FROM {term_data} WHERE tid = %d", $match[1])) ? t('Ok') : t('Broken')); if ($status == t('Ok') && !empty($match[2])) { $status = t('In doubt'); } } else { $status = t('Unknown'); } if ($status != t('Ok') && $known_paths_count > 0) { foreach ($known_paths as $known_path) { if (preg_match('#^'. $known_path .'$#', $data->src)) { $status = t('Ok'); break; } } } if (($op == 'broken' && $status != t('Broken')) || ($op == 'doubt' && $status != t('In doubt')) || ($op == 'unknown' && $status != t('Unknown'))) { continue; } $rows[] = array( '<a href="'. base_path() . $data->dst .'">'. $data->dst .'</a>', '<a href="'. base_path() . $data->src .'">'. $data->src .'</a>', array('data' => $status, 'align' => 'center'), array('data' => l(t('edit'), "admin/path/edit/$data->pid", array(), $destination), 'align' => 'center'), array('data' => l(t('delete'), "admin/path/delete/$data->pid", array(), $destination), 'align' => 'center') ); } if (!$rows) { $message = ($op == 'all' ? t('No URL aliases available.') : t('No URL aliases found matching the selected criteria.')); $rows[] = array(array('data' => $message, 'colspan' => '5')); } $output = theme('table', $header, $rows); if ($records_per_page > 0) { $output .= theme('pager', NULL, $records_per_page, 0); } return $output; } |
From: <php...@li...> - 2006-06-03 16:12:34
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel/48x48 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6821/phpinfo/contrib/controlpanel/48x48 Added Files: admin_phpinfo.png Log Message: Initial import. --- NEW FILE: admin_phpinfo.png --- (This appears to be a binary file; contents omitted.) |
From: <php...@li...> - 2006-06-03 16:12:34
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel/36x36 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6821/phpinfo/contrib/controlpanel/36x36 Added Files: admin_phpinfo.png Log Message: Initial import. --- NEW FILE: admin_phpinfo.png --- (This appears to be a binary file; contents omitted.) |
From: <php...@li...> - 2006-06-03 16:10:55
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel/48x48 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5805/48x48 Log Message: Directory /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel/48x48 added to the repository |
From: <php...@li...> - 2006-06-03 16:10:38
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel/36x36 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5768/36x36 Log Message: Directory /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel/36x36 added to the repository |
From: <php...@li...> - 2006-06-03 16:10:19
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5708/controlpanel Log Message: Directory /cvsroot/phpmix/drupal/modules/phpinfo/contrib/controlpanel added to the repository |
From: <php...@li...> - 2006-06-03 16:09:49
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo/contrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5206/contrib Log Message: Directory /cvsroot/phpmix/drupal/modules/phpinfo/contrib added to the repository |
From: <php...@li...> - 2006-06-03 16:09:16
|
Update of /cvsroot/phpmix/drupal/modules/smtp_checker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5120/smtp_checker Log Message: Directory /cvsroot/phpmix/drupal/modules/smtp_checker added to the repository |
From: <php...@li...> - 2006-06-03 16:08:58
|
Update of /cvsroot/phpmix/drupal/modules/session_protection In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4749/session_protection Log Message: Directory /cvsroot/phpmix/drupal/modules/session_protection added to the repository |
From: <php...@li...> - 2006-06-03 16:08:45
|
Update of /cvsroot/phpmix/drupal/modules/phpinfo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4674/phpinfo Log Message: Directory /cvsroot/phpmix/drupal/modules/phpinfo added to the repository |
From: <php...@li...> - 2006-06-03 16:08:35
|
Update of /cvsroot/phpmix/drupal/modules/pathchecker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4625/pathchecker Log Message: Directory /cvsroot/phpmix/drupal/modules/pathchecker added to the repository |
From: <php...@li...> - 2006-06-03 16:03:09
|
Update of /cvsroot/phpmix/drupal/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1931/modules Log Message: Directory /cvsroot/phpmix/drupal/modules added to the repository |
From: <php...@li...> - 2006-06-03 16:01:55
|
Update of /cvsroot/phpmix/drupal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1163 Modified Files: readme.txt Log Message: Initial import. |
Update of /cvsroot/phpmix/php_experiments/dynamic_signatures In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28392/dynamic_signatures Removed Files: .htaccess random_images_signature.png random_signature.png readme.txt sample_db_signature.png sample_signature.png Log Message: Removing relocated stuff. --- sample_db_signature.png DELETED --- --- random_images_signature.png DELETED --- --- .htaccess DELETED --- --- sample_signature.png DELETED --- --- random_signature.png DELETED --- --- readme.txt DELETED --- |