Exemplo n.º 1
0
 public static function getOnChange()
 {
     # TODO: Use GWF_DOMAIN?
     if (isset($_SERVER['HTTP_HOST']) === false) {
         return '';
     }
     $current_url = htmlspecialchars(GWF_Session::getCurrentURL(), ENT_QUOTES);
     $url = Common::getProtocol() . '://' . $_SERVER['HTTP_HOST'] . '/';
     return 'window.location = \'' . $url . '\'+this.value+\'' . $current_url . '\'; return true;';
 }