Changeset 391


Ignore:
Timestamp:
Nov 19, 2011 3:55:18 PM (12 years ago)
Author:
anonymous
Message:

Granular raiseMsg for Uploads. Turn off autocomplete for password fields.

Location:
branches/1.1dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/Upload.inc.php

    r310 r391  
    374374                        // Is an array, but just one value. Pull it out.
    375375                        $file_name = trim($custom_file_name[0]);
    376                         raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__);
     376                        if ($this->display_messages) {
     377                            raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__);
     378                        }
    377379                        logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__);
    378380                    } else if (!is_array($custom_file_name) && '' != trim($custom_file_name)) {
    379381                        // Valid custom file name.
    380382                        $file_name = $custom_file_name;
    381                         raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__);
     383                        if ($this->display_messages) {
     384                            raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__);
     385                        }
    382386                        logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__);
    383387                    } else {
  • branches/1.1dev/templates/adm_login_form.ihtml

    r185 r391  
    1 <form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>">
     1<form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" class="sc-form" autocomplete="off">
    22<?php printHiddenSession() ?>
    33<table border="0" cellspacing="0" cellpadding="4">
     
    88    <tr>
    99        <td class="formlabel" align="right" valign="top"><?php echo _("Password"); ?></td>
    10         <td valign="top"><input type="password" class="forminputtext" size="25" name="password" value="<?php echo oTxt($frm['password']); ?>"></td>
     10        <td valign="top"><input type="password" class="forminputtext" size="25" name="password" value="" autocomplete="off"></td>
    1111    </tr>
    1212    <tr>
Note: See TracChangeset for help on using the changeset viewer.