Ejemplo n.º 1
0
function apache_request_path_()
{
    if (!apache_is_rewrite_engine_on_()) {
        return default_request_path_();
    }
    return apache_request_path_helper_(server_var_('REQUEST_URI'), uri_path_(server_var_('PHP_SELF')));
}
Ejemplo n.º 2
0
 * your option) any later version.
 *
 * Inertia is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * To read the license please visit http://www.gnu.org/copyleft/gpl.html
 *
 *
 *-------10--------20--------30--------40--------50--------60---------72
 */
define('INERTIA_SCHEME', uri_scheme_(server_var_('HTTPS')));
define('INERTIA_HOST', uri_host_(server_var_('HTTP_HOST')));
define('INERTIA_PORT', uri_port_(server_var_('HTTP_HOST')));
define('INERTIA_PATH', uri_path_(server_var_('PHP_SELF')));
define('INERTIA_ABSOLUTE_BASE_URI', uri_absolute_base_(INERTIA_SCHEME, INERTIA_HOST, INERTIA_PORT, INERTIA_PATH));
define('INERTIA_RELATIVE_BASE_URI', uri_relative_base_(INERTIA_PATH));
function uri_scheme_($https)
{
    $ssl = !is_null($https) and is_equal_('on', $https);
    $scheme = $ssl ? 'https' : 'http';
    return $scheme;
}
function uri_host_($http_host)
{
    if (str_contains_(':', $http_host)) {
        $host = array_shift(explode(':', $http_host));
    } else {
        $host = $http_host;
    }