mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Only allow from CLI #907
This commit is contained in:
parent
7671503562
commit
cf08c1aba4
|
@ -6,6 +6,10 @@
|
||||||
*/
|
*/
|
||||||
define('SNAPPYMAIL_PUBLIC_DIR', '/usr/local/CyberCP/public/snappymail');
|
define('SNAPPYMAIL_PUBLIC_DIR', '/usr/local/CyberCP/public/snappymail');
|
||||||
|
|
||||||
|
if (PHP_SAPI !== 'cli' && false === stripos(php_sapi_name(), 'cli')) {
|
||||||
|
exit('not cli');
|
||||||
|
}
|
||||||
|
|
||||||
chdir(SNAPPYMAIL_PUBLIC_DIR);
|
chdir(SNAPPYMAIL_PUBLIC_DIR);
|
||||||
|
|
||||||
spl_autoload_register(function($sClassName){
|
spl_autoload_register(function($sClassName){
|
||||||
|
|
Loading…
Reference in a new issue