#2290 - New is_cli function
| Identifier | #2290 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | New is_cli function |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core |
| Description | We have this pattern copy and pasted in our code a lot:
((php_function_allowed('php_sapi_name')) && (php_sapi_name() == 'cli') && (cms_srv('REMOTE_ADDR') == '')); Move this to a proper function, as the code is a bit complex. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments