includes/functions.php
changeset 1219 2b13cd6b4f95
parent 1206 50f6c144ec68
child 1223 7dca925b0209
equal deleted inserted replaced
1214:edd52b2933a4 1219:2b13cd6b4f95
  2737   if ( is_valid_ip($pid_ip_check) )
  2737   if ( is_valid_ip($pid_ip_check) )
  2738   {
  2738   {
  2739     return $page_id;
  2739     return $page_id;
  2740   }
  2740   }
  2741 
  2741 
  2742   preg_match_all('/\.[A-Fa-f0-9][A-Fa-f0-9]/', $page_id, $matches);
  2742   preg_match_all('/\.[a-f0-9][a-f0-9]/', $page_id, $matches);
  2743 
  2743 
  2744   foreach ( $matches[0] as $id => $char )
  2744   foreach ( $matches[0] as $id => $char )
  2745   {
  2745   {
  2746     $char = substr($char, 1);
  2746     $char = substr($char, 1);
  2747     $char = strtolower($char);
  2747     $char = strtolower($char);