-
-
Save ProjectCleverWeb/a2c72764892f66d580d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _define($name,$default_value,$development_value=NULL){ | |
$name = (string) $name; | |
if(defined($name)){ | |
trigger_error('Previously Defined Constant: '.$name, E_USER_WARNING); | |
return FALSE; | |
} | |
else{ | |
if((ENVIROMENT == 'PRODUCTION') || (ENVIROMENT == 'DEVELOPMENT') || is_null($development_value)){ | |
define($name,$default_value); | |
} | |
else{ | |
define($name,$development_value); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment