From bf89e2396281f68339174835849c3c29cce4b1c3 Mon Sep 17 00:00:00 2001 From: wnoisephx Date: Wed, 26 Oct 2016 09:49:34 -0400 Subject: [PATCH] Release .7.0 Fixes all known issues with php7+ --- include/classes/tzn_generic.php | 10 +++++----- include/config.php | 4 ++-- user_list.php | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/classes/tzn_generic.php b/include/classes/tzn_generic.php index 52f2d08..006bbce 100644 --- a/include/classes/tzn_generic.php +++ b/include/classes/tzn_generic.php @@ -720,11 +720,11 @@ function set($key,$value) } } - function setUid($value) { - if (preg_match('/^[0-9a-zA-Z]*$/',$value)) { - $this->id = $value; - } - } + function setUid($value) { + if (preg_match('/^[0-9a-zA-Z]*$/',$value)) { + $this->id = $value; + } + } function getReg($value,$regexp) { if (preg_match($regexp,$value)) { diff --git a/include/config.php b/include/config.php index 80434c6..7ea2e8c 100644 --- a/include/config.php +++ b/include/config.php @@ -75,8 +75,8 @@ // === TASKFREAK CUSTOMIZATION ================================ -define('FRK_VERSION','0.6.4'); -define('FRK_VERSION_RELEASE','2010-06-27'); +define('FRK_VERSION','0.7.0'); +define('FRK_VERSION_RELEASE','2016-10-26'); define('FRK_MYSQL_VERSION_GT_4_1',FALSE); diff --git a/user_list.php b/user_list.php index d75616c..14caa70 100644 --- a/user_list.php +++ b/user_list.php @@ -84,11 +84,11 @@ ."OR username LIKE '$hParam')"); } -if ($sCountry = Tzn::getReg($_REQUEST['country'],'^[A-Z]+$')) { +if ($sCountry = Tzn::getReg($_REQUEST['country'],'/^[A-Z]+$/')) { $objItemList->addWhere("member.countryId='".$sCountry."'"); } -if ($sState = Tzn::getReg($_REQUEST['state'],'^[A-Z]+$')) { +if ($sState = Tzn::getReg($_REQUEST['state'],'/^[A-Z]+$/')) { $objItemList->addWhere("member.stateCode='".$sState."'"); }