Browse Source

php - add '3' addresses to address only pages

master
kanoi 9 years ago
parent
commit
9c0adf9e15
  1. 3
      pool/address.php
  2. 3
      pool/worker.php

3
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;

3
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;

Loading…
Cancel
Save