foreveralone

foreveralone Git Source Tree


Root/web/system/vendor/is_cli.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
 
 
function is_cli()
{
    if( defined('STDIN') )
    {
        return true;
    }
 
    if( empty($_SERVER['REMOTE_ADDR']) and !isset($_SERVER['HTTP_USER_AGENT']) and count($_SERVER['argv']) > 0)
    {
        return true;
    }
 
    return false;
}

Archive Download this file

Branches

Tags

Number of commits:
Page rendered in 0.08410s using 11 queries.