mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Only allow from CLI #907
This commit is contained in:
parent
7671503562
commit
cf08c1aba4
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,10 @@
|
|||
*/
|
||||
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);
|
||||
|
||||
spl_autoload_register(function($sClassName){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue