Subversion Repositories Applications.papyrus

Rev

Rev 320 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 320 Rev 767
Line 30... Line 30...
30
// |                                                                       |
30
// |                                                                       |
31
// +-----------------------------------------------------------------------+
31
// +-----------------------------------------------------------------------+
32
// | Author: Richard Heyes <richard at php net>                            |
32
// | Author: Richard Heyes <richard at php net>                            |
33
// +-----------------------------------------------------------------------+
33
// +-----------------------------------------------------------------------+
34
//
34
//
35
// $Id: URL.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
35
// $Id: URL.php,v 1.2 2006-03-13 21:00:48 ddelon Exp $
36
//
36
//
37
// Net_URL Class
37
// Net_URL Class
Line 38... Line 38...
38
 
38
 
39
class Net_URL
39
class Net_URL
Line 134... Line 134...
134
        $this->anchor      = '';
134
        $this->anchor      = '';
Line 135... Line 135...
135
 
135
 
136
        // Only use defaults if not an absolute URL given
136
        // Only use defaults if not an absolute URL given
Line 137... Line 137...
137
        if (!preg_match('/^[a-z0-9]+:\/\//i', $url)) {
137
        if (!preg_match('/^[a-z0-9]+:\/\//i', $url)) {
-
 
138
 
Line 138... Line 139...
138
 
139
            $this->protocol    =  'http';
139
            $this->protocol    = (@$HTTP_SERVER_VARS['HTTPS'] == 'on' ? 'https' : 'http');
140
            
140
 
141
 
141
            /**
142
            /**