[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> ip_allow_deny.lib.php (sommaire)

This library is used with the server IP allow/deny host authentication feature

Poids: 190 lignes (5 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 3 fonctions

  PMA_getIp()
  PMA_ipMaskTest()
  PMA_allowDeny()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

PMA_getIp()   X-Ref
Gets the "true" IP address of the current user

return: string   the ip of the user

PMA_ipMaskTest($testRange, $ipToTest)   X-Ref
Based on IP Pattern Matcher
Originally by J.Adams <jna@retina.net>
Found on <http://www.php.net/manual/en/function.ip2long.php>
Modified by Robbat2 <robbat2@users.sourceforge.net>

Matches:
xxx.xxx.xxx.xxx        (exact)
xxx.xxx.xxx.[yyy-zzz]  (range)
xxx.xxx.xxx.xxx/nn     (CIDR)

Does not match:
xxx.xxx.xxx.xx[yyy-zzz]  (range, partial octets not supported)

param: string   string of IP range to match
param: string   string of IP to test against range
return: boolean    always true

PMA_allowDeny($type)   X-Ref
Runs through IP Allow/Deny rules the use of it below for more information

param: string 'allow' | 'deny' type of rule to match
return: bool   Matched a rule ?



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics