Gets a server variable

@param string $key The name of the post variable to retrieve

@return string The value of the post variable
192861
public function server(string $key): string
    {
        if (array_key_exists($key, $this->server)) {
            return $this->server[$key];
        }

        return '';
    }
558643
public function get(string $key)
    {
        if (array_key_exists($key, $this->get)) {
            return $this->get[$key];
        }

        return '';
    }
186531
public function getConfigVariable(string $key)
    {
        if ($key === '' || $key === null) {
            return null;
        }

        if (!isset($this->setting[$key])) {
            return null;
        }

        return $this->setting[$key];
    }
1003905
public static function post($key = ""){
		
		if($key){
			$v = self::getRequest()->post($key);
		}else{
			$v = self::getRequest()->post();
		}
		return $v;
	}
878002
public function getHashClientName($key)
    {
        if (1 == $this->getServerCount()) {
            return $this->defaultName;
        }

        $count  = intval(sprintf('%u', crc32($key)));
        return $this->hashArray[$count % sizeof($this->serverArray)];
    }
74589
public static function param($key = ''){
		if($key){
			$get = self::get();
			$post = self::post();
			if(isset($post[$key])){
				return $post[$key] ;
			}else if(isset($get[$key])){
				return $get[$key] ;
			}else{
				return "";
			}
		}else{
			$get = self::get();
			$post = self::post();
			return array_merge($get,$post);
		}
	}
117885
protected function getServerParam($key, $default = null)
    {
        if (isset($this->server[$key])) {
            return $this->server[$key];
        }

        return $default;
    }
1034619
private function searchServeVal($key)
    {
        $ex = ServerVal::where('var_name', $key)->first();
        if(count($ex)){
            $expire = $ex->expire;
            $rec = ServerVal::where('var_name', $key)
                            ->where('var_up_time', '>', (time() - $expire))
                            ->first();
            if(count($rec)){
                return $rec->var_value;
            }else{
                return $rec;
            }
            
        }else{
            return $ex;
        }

    }
1082503
public function getHeader($key)
    {
        $key = str_replace('-', '_', strtoupper($key));

        if ($this->hasHeader($key)) {
            return $_SERVER[$key];
        }

        if ($this->hasHeader('HTTP_'.$key)) {
            return $_SERVER['HTTP_'.$key];
        }

        return null;
    }
325999
public function get_variables( $key )
	{
		if ( ! empty( $this->variables[ $key ] ) ) {
			return $this->variables[ $key ];
		} else {
			return null;
		}
	}
560964
public function post(string $key)
    {
        if (array_key_exists($key, $this->post)) {
            return $this->post[$key];
        }

        return '';
    }
1322257
public function get(string $key)
    {
        $hash =  self::findFirst([
            'conditions' => "{$this->settingsKey} = ?0 and key = ?1",
            'bind' => [$this->getSettingsKey(), $key]
        ]);

        if ($hash) {
            return $hash->value;
        }

        return null;
    }
411377
public function getServer($key = null, $default = null) {
        if (null === $key) {
            return $this->SERVER;
        }

        return (isset($this->SERVER[$key])) ? $this->SERVER[$key] : $default;
    }
289899
public function server( $key = null, $default = null ) {
		return func_num_args() === 0 ? $_SERVER : $this->app->utility->array_get( $_SERVER, strtoupper( $key ), $default );
	}
1278768
public static function &get($key)
    {
        self::startIf();
        if (isset($_SESSION[$key])) {
            return $_SESSION[$key];
        } else {
            $val = null;
            return $val;
        }
    }
1058243
public function server( $key, $default = null ) {
		if ( !isset( $this->SERVER[strtoupper( $key )] ) ) 
		{
			return $default;
		}
		return $this->SERVER[strtoupper( $key )];
	}
289073
public function getServer($key, $default = null)
    {
        return isset($this->server[$key]) ? $this->server[$key] : $default;
    }