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:
checkDefaultPassword [line 261]
string checkDefaultPassword(
)
|
|
Check for accounts that still use the default password NOTE: If one of our users is also using "password" as their password, this test will also detect that, as it checks all accounts.
Tags:
checkInstallDir [line 219]
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:
doHeadRequest [line 72]
int doHeadRequest(
string $url, string &$errmsg)
|
|
Send an HTTP HEAD request for the given URL
Tags:
Parameters
| string |
$url |
URL to request |
| string |
&$errmsg |
error message, if any (on return) |
doTest [line 192]
string doTest(
string $baseurl, string $urltocheck, string $what)
|
|
Perform a test
Tags:
Parameters
| string |
$baseurl |
the site's base URL |
| string |
$urltocheck |
relative URL to check |
| string |
$what |
explanatory text: what is being checked |
interpretResult [line 140]
string interpretResult(
int $retcode, string $msg)
|
|
Give an interpretation of the test result
Tags:
Parameters
| int |
$retcode |
HTTP response code of the test |
| string |
$msg |
file or directory that was checked |
makeTempfile [line 170]
boolean makeTempfile(
string $file)
|
|
Create a temporary file
Tags:
Parameters
| string |
$file |
full path of the file to create |
urlToCheck [line 94]
Determine the site's base URL to check
Tags:
|