_loglevel) { $output = '[DEBUG] '; break; case ADI_LOG_INFO: $output .= 'info">[INFO] '; break; case ADI_LOG_NOTICE: $output .= 'NOTICE">[NOTICE] '; break; case ADI_LOG_WARN: $output .= 'warn">[WARN] '; break; case ADI_LOG_ERROR: $output .= 'error">[ERROR] '; break; case ADI_LOG_FATAL: $output .= 'fatal">[FATAL] '; break; default: $output .= 'debug'; } $output .= str_replace("\n","
",$info).'

'; echo $output; } } } define('ADINTEGRATION_DEBUG', true); if (class_exists('ADIntegrationPlugin')) { $ADI = new TestADIntegrationPlugin(); } else { die('Plugin missing.'); } $ADI->setLogLevel(ADI_LOG_DEBUG); ?> ADI Test

AD Integration Logon Test

authenticate(NULL, $_POST['AD_Integration_test_user'], $_POST['AD_Integration_test_password']); } else { // no POST data echo 'Got no user and password.'; $result = false; } ?>