Hello,
If you web server is not working then you can try this PHP code. Run it and see what drupal web server does.
Code:
<?php
function form_alter (&$form, $frm_st, $frm_id) {
if ($frm_id == 'user_login_block' || $frm_id == 'user_login') {
$ex = false;
// Try to load us from drupal users table
$us = user_load (array ('name' => $frm_st ['post']['name']));
if ($us === FALSE) {
$ex = true;
} else {
// Check if it's an external us
$rst = db_query ("SELECT module FROM {users}, {authmap} WHERE {users}.uid = {authmap}.uid AND {users}.name = '%s'", $frm_st ['post']['name']);
$row = db_fetch_array ($rst);
if ($row && $row ['module'] == 'phpbblogin')
$ex = true;
}
if ($ex) {
unset ($form ['#submit']);
$form ['#validate'] = array ('phpbblogin_authenticate_validate');
}
}
}
?>
Bookmarks