minor update

This commit is contained in:
espie 2008-10-25 17:04:48 +00:00
parent d018b364dd
commit c099eb03fb
3 changed files with 14 additions and 14 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.4 2008/07/26 13:35:33 espie Exp $
# $OpenBSD: Makefile,v 1.5 2008/10/25 17:04:48 espie Exp $
COMMENT = test site as another user
CATEGORIES = devel
DISTNAME = masquerade-5.x-1.2
PKGNAME = drupal5-masquerade-1.2
DISTNAME = masquerade-5.x-1.3
PKGNAME = drupal5-masquerade-1.3
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (drupal5/masquerade-5.x-1.2.tar.gz) = sYOBC0qL0AAmKF2haKLvAw==
RMD160 (drupal5/masquerade-5.x-1.2.tar.gz) = NDeQ6MDSqw4wmKyVM5pGRxaTozY=
SHA1 (drupal5/masquerade-5.x-1.2.tar.gz) = 038hn62dtfVAfkW/HnhlLMhHSyM=
SHA256 (drupal5/masquerade-5.x-1.2.tar.gz) = VZVfkuQBf/W95GeFvGU5kO/aEQq5cLs7uZ4LD+cyhiU=
SIZE (drupal5/masquerade-5.x-1.2.tar.gz) = 10433
MD5 (drupal5/masquerade-5.x-1.3.tar.gz) = HU37TkYxIyCncSj1nytBKQ==
RMD160 (drupal5/masquerade-5.x-1.3.tar.gz) = ud6vdmaB8vQzvTW1DemiOyXnJZg=
SHA1 (drupal5/masquerade-5.x-1.3.tar.gz) = oFEdg8GNng7oLGN9lzFZymQKkBo=
SHA256 (drupal5/masquerade-5.x-1.3.tar.gz) = nGov2GdaUzEQRwbX1B+4AAsHpAhzGYLAD6rj34yuDxU=
SIZE (drupal5/masquerade-5.x-1.3.tar.gz) = 10473

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-masquerade_module,v 1.2 2008/07/26 13:35:33 espie Exp $
--- masquerade.module.orig Fri Jul 11 22:33:03 2008
+++ masquerade.module Sat Jul 26 15:30:28 2008
@@ -266,14 +266,23 @@ function masquerade_block_1($record) {
$OpenBSD: patch-masquerade_module,v 1.3 2008/10/25 17:04:48 espie Exp $
--- masquerade.module.orig Thu Sep 25 14:09:34 2008
+++ masquerade.module Sat Oct 25 19:01:27 2008
@@ -267,14 +267,23 @@ function masquerade_block_1($record) {
* Masquerade block form validation. Implementation of hook_validate().
*/
function masquerade_block_1_validate($form_id, $form_value) {
@ -27,7 +27,7 @@ $OpenBSD: patch-masquerade_module,v 1.2 2008/07/26 13:35:33 espie Exp $
if (!$masq_user) {
form_set_error('masquerade_user_field', t('User %masq_as does not exist. Please enter a valid username.', array('%masq_as' => $form_value['masquerade_user_field'])));
}
@@ -289,15 +298,16 @@ function masquerade_block_1_validate($form_id, $form_v
@@ -290,15 +299,16 @@ function masquerade_block_1_validate($form_id, $form_v
* Masquerade block form submission. Implementation of hook_submit().
*/
function masquerade_block_1_submit($form_id, $form_values) {
@ -47,7 +47,7 @@ $OpenBSD: patch-masquerade_module,v 1.2 2008/07/26 13:35:33 espie Exp $
masquerade_switch_user($masq_user->uid);
}
@@ -309,6 +319,12 @@ function masquerade_autocomplete($string) {
@@ -310,6 +320,12 @@ function masquerade_autocomplete($string) {
$result = db_query_range("SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER('%s%%')", $string, 0, 10);
while ($user = db_fetch_object($result)) {
$matches[$user->name] = check_plain($user->name);