Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Procedural File: sectest.php

Source Location: /public_html/admin/sectest.php



Page Details:

This script does a few quick and simple checks to ensure that you have installed Geeklog in a (relatively) secure fashion. It also gives tips on how to fix issues.



Includes:

require_once('auth.inc.php') [line 48]
Security check to ensure user even belongs on this page

require_once('../lib-common.php') [line 43]
Geeklog common function library







checkDefaultPassword [line 251]

string checkDefaultPassword( )

Check if the Admin account is still using the default password



Tags:

return:  text explaining the result of the test


[ Top ]



checkInstallDir [line 213]

string checkInstallDir( )

Check for the existence of the install directory NOTE: This test used to be part of the "Get Bent" block in lib-custom.php



Tags:

return:  text explaining the result of the test


[ Top ]



doHeadRequest [line 70]

int doHeadRequest( string $url, string &$errmsg)

Send an HTTP HEAD request for the given URL



Tags:

return:  HTTP response code or 777 on error


Parameters

string   $url   URL to request
string   &$errmsg   error message, if any (on return)
[ Top ]



doTest [line 188]

string doTest( string $baseurl, string $urltocheck, string $what)

Perform a test



Tags:

return:  test result as a list item


Parameters

string   $baseurl   the site's base URL
string   $urltocheck   relative URL to check
string   $what   explanatory text: what is being checked
[ Top ]



interpretResult [line 138]

string interpretResult( int $retcode, string $msg)

Give an interpretation of the test result



Tags:

return:  text explaining the result of the test


Parameters

int   $retcode   HTTP response code of the test
string   $msg   file or directory that was checked
[ Top ]



makeTempfile [line 167]

boolean makeTempfile( string $file)

Create a temporary file



Tags:

return:  true: success; false: file creation failed


Parameters

string   $file   full path of the file to create
[ Top ]



urlToCheck [line 93]

string urlToCheck( )

Determine the site's base URL to check



Tags:

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


[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:54:14 +0000 by phpDocumentor 1.4.3