From 9cdafc95549945ff503916f8ab9689841fc2ae6c Mon Sep 17 00:00:00 2001 From: TimZ99 Date: Fri, 8 Feb 2019 16:29:47 +0100 Subject: [PATCH] Updated useragent to Github URL --- src/includes/functions.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/includes/functions.inc.php b/src/includes/functions.inc.php index e3ea0e54..770d0111 100644 --- a/src/includes/functions.inc.php +++ b/src/includes/functions.inc.php @@ -392,7 +392,7 @@ function psm_curl_get($href, $header = false, $body = true, $timeout = null, $ad } if ($add_agent) { - curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; phpservermon/'.PSM_VERSION.'; +http://www.phpservermonitor.org)'); + curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; phpservermon/'.PSM_VERSION.'; +https://github.com/phpservermon/phpservermon)'); } $result = curl_exec($ch); @@ -744,6 +744,7 @@ function psm_no_cache() { * @return string * @author Pavel Laupe Dvorak */ +// TODO change to working function function psm_password_encrypt($key, $password) { if (empty($password)) { @@ -754,6 +755,7 @@ function psm_password_encrypt($key, $password) throw new \InvalidArgumentException('invalid_encryption_key'); } + // TODO rewrite $iv = mcrypt_create_iv( mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM