mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
$mechs = array('LOGIN', 'PLAIN', 'CRAM_MD5');
|
||||
|
||||
foreach ($mechs as $mech) {
|
||||
if (!defined($mech)) {
|
||||
define($mech, $mech);
|
||||
} elseif (constant($mech) != $mech) {
|
||||
trigger_error(sprintf("Constant %s already defined, can't proceed", $mech), E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user