From 9c0adf9e15bc038d925e88648de06c7b7bbd46ed Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 5 Sep 2015 03:20:03 +1000 Subject: [PATCH] php - add '3' addresses to address only pages --- pool/address.php | 3 ++- pool/worker.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pool/address.php b/pool/address.php index 625f08fb..01c840cd 100644 --- a/pool/address.php +++ b/pool/address.php @@ -8,7 +8,8 @@ include_once('param.php'); function go() { $a = getparam('a', true); - if (substr($a, 0, 1) != '1') + $f = substr($a, 0, 1); + if ($f != '1' and $f != '3') return; if (strlen($a) < 24) return; diff --git a/pool/worker.php b/pool/worker.php index dc7ef16c..5cc393cf 100644 --- a/pool/worker.php +++ b/pool/worker.php @@ -8,7 +8,8 @@ include_once('param.php'); function go() { $a = getparam('a', true); - if (substr($a, 0, 1) != '1') + $f = substr($a, 0, 1); + if ($f != '1' and $f != '3') return; if (preg_match('/^[a-zA-Z0-9]{24,}[\._]?[a-zA-Z0-9\._]*$/', $a) === false) return;