Esempio n. 1
0
 function surrogafy()
 {
     $label = $this->get_label();
     $this->set_label();
     $url = $this->get_url();
     $this->set_label($label);
     #$this->determine_locked();
     if ($this->locked) {
         return $url;
     }
     # || $this->get_proto().$this->get_fieldreq(2,$this->get_userpass()).$this->get_servername().$this->get_path().$this->get_file()==THIS_SCRIPT) return $url;
     if (ENCRYPT_URLS && !$this->locked) {
         $url = proxenc($url);
     }
     #$url=THIS_SCRIPT.'?='.(!ENCRYPT_URLS?urlencode($url):$url).(!empty($label)?"#$label":null); # urlencoded
     $url = THIS_SCRIPT . "?={$url}" . (!empty($label) ? "#{$label}" : null);
     return $url;
 }
Esempio n. 2
0
 function surrogafy()
 {
     global $OPTIONS;
     $label = $this->get_label();
     $this->set_label();
     $url = $this->get_url();
     $this->set_label($label);
     #$this->determine_locked();
     if ($this->locked) {
         return $url;
     }
     if ($OPTIONS['ENCRYPT_URLS'] && !$this->locked) {
         $url = proxenc($url);
     }
     $url = THIS_SCRIPT . "?={$url}" . (!empty($label) ? "#{$label}" : null);
     return $url;
 }