[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/net/http/ -> subdomains.class.php (sommaire)

(pas de description)

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

Définit 1 class

Subdomains:: (7 méthodes):
  getSubdomainInfoFromRequest()
  isSubdomainUrl()
  getSubdomainsEnabled()
  getAvailableDomains()
  isDomainAvailable()
  isValidDomainName()
  domainNameExists()


Classe: Subdomains  - X-Ref

\ingroup Net_HTTP

encapsulates most of the logic needed to extract info about
the subdomain, given a subdomain url
getSubdomainInfoFromRequest()   X-Ref
returns an array with two positions: $array["username"] and $array["blogname"] as
extracted from the request. This method is static

return: an associative array

isSubdomainUrl( $url = null )   X-Ref
returns true if a given url is using a subdomain or not. It works by comparing
the url with "base_url" from the plog_config table. If they match, then the incoming
url is *not* using subdomains. Otherwise, it will return true

param: url If null, use $_SERVER["HTTP_HOST"]
return: true if the given url is subdomained or not

getSubdomainsEnabled()   X-Ref
Returns true if subdomains are enabled in one way or another in the configuration

return: True if enabled or false otherwise

getAvailableDomains()   X-Ref
Returns an array with the list of available domains

return: True if successful or false otherwise

isDomainAvailable( $domain )   X-Ref
Returns true if the given domain name is one of the available ones

param: domain The domain name we'd like to check
return: True if successful or false otherwise

isValidDomainName( $domain )   X-Ref
Returns true if the given subdomain name is valid (i.e. complies with the domain naming restrictions)

param: domain The name we'd like to check
return: True if successful or false otherwise

domainNameExists( $domain, $ignoreBlogId=0 )   X-Ref
Returns true if the domain is unique or false otherwise

param: domain
return: true if successful and false otherwise



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