Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 2 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2 Revision 270
Zeile 195... Zeile 195...
195
 
195
 
196
        public function index()
196
        public function index()
Zeile 197... Zeile 197...
197
        {
197
        {
-
 
198
 
198
 
199
        }
199
        }
200
 
200
        //
201
        //
201
        public function create()
202
        public function create()
202
        {
203
        {
Zeile 218... Zeile 219...
218
            $this->delete( $this->options['print_response'] );
219
            $this->delete( $this->options['print_response'] );
219
        }
220
        }
Zeile 220... Zeile 221...
220
 
221
 
221
        protected function get_full_url(): string
222
        protected function get_full_url(): string
-
 
223
        {
-
 
224
            if ( php_sapi_name() != "cli" )
222
        {
225
            {
223
            $https = !empty( $_SERVER['HTTPS'] ) && strcasecmp( $_SERVER['HTTPS'], 'on' ) === 0 ||
226
                $https = !empty( $_SERVER['HTTPS'] ) && strcasecmp( $_SERVER['HTTPS'], 'on' ) === 0 ||
224
                !empty( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
227
                    !empty( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
225
                strcasecmp( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https' ) === 0;
228
                    strcasecmp( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https' ) === 0;
226
            return
229
                return
227
                ( $https ? 'https://' : 'http://' ) .
230
                    ( $https ? 'https://' : 'http://' ) .
228
                ( !empty( $_SERVER['REMOTE_USER'] ) ? $_SERVER['REMOTE_USER'] . '@' : '' ) .
231
                    ( !empty( $_SERVER['REMOTE_USER'] ) ? $_SERVER['REMOTE_USER'] . '@' : '' ) .
229
                ( $_SERVER['HTTP_HOST'] ?? ( $_SERVER['SERVER_NAME'] .
232
                    ( $_SERVER['HTTP_HOST'] ?? ( $_SERVER['SERVER_NAME'] .
230
                    ( $https && $_SERVER['SERVER_PORT'] === 443 ||
233
                        ( $https && $_SERVER['SERVER_PORT'] === 443 ||
231
                    $_SERVER['SERVER_PORT'] === 80 ? '' : ':' . $_SERVER['SERVER_PORT'] ) ) ) .
234
                        $_SERVER['SERVER_PORT'] === 80 ? '' : ':' . $_SERVER['SERVER_PORT'] ) ) ) .
-
 
235
                    substr( $_SERVER['SCRIPT_NAME'], 0, strrpos( $_SERVER['SCRIPT_NAME'], '/' ) );
232
                substr( $_SERVER['SCRIPT_NAME'], 0, strrpos( $_SERVER['SCRIPT_NAME'], '/' ) );
236
            }
Zeile 233... Zeile 237...
233
        }
237
        }
234
 
238
 
235
        protected function get_user_id()
239
        protected function get_user_id()