[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/admin/ -> sectest.php (sommaire)

(pas de description)

Poids: 343 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 public_html/admin/auth.inc.php
 public_html/lib-common.php

Définit 7 fonctions

  doHeadRequest()
  urlToCheck()
  interpretResult()
  makeTempfile()
  doTest()
  checkInstallDir()
  checkDefaultPassword()

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

doHeadRequest($url, &$errmsg)   X-Ref
Send an HTTP HEAD request for the given URL

param: string  $url        URL to request
param: string  $errmsg     error message, if any (on return)
return: int                 HTTP response code or 777 on error

urlToCheck()   X-Ref
Determine the site's base URL to check

return: string      site URL or empty string (= nothing to check)

interpretResult($retcode, $msg)   X-Ref
Give an interpretation of the test result

param: int     $retcode    HTTP response code of the test
param: string  $msg        file or directory that was checked
return: string              text explaining the result of the test

makeTempfile($file)   X-Ref
Create a temporary file

param: string  $file   full path of the file to create
return: boolean         true: success; false: file creation failed

doTest($baseurl, $urltocheck, $what)   X-Ref
Perform a test

param: string  $baseurl        the site's base URL
param: string  $urltocheck     relative URL to check
param: string  $what           explanatory text: what is being checked
return: string                  test result as a list item

checkInstallDir()   X-Ref
Check for the existence of the install directory

return: string      text explaining the result of the test

checkDefaultPassword()   X-Ref
Check for accounts that still use the default password

return: string      text explaining the result of the test



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics