/*
* Name: HyperBook Guestbook Administration
* Author: Thomas R. Pasawicz
* Creation Date: April 15, 2001
* Version: 1.30 (released Feburary 16, 2006)
* Function: Allows administrator to configure guestbook and edit/delete entries.
* (c) 2001-2006 Thomas R. Pasawicz (webmaster@diamond-back.com)
*
*/
/******************************************************************************
* FUNCTIONS
*****************************************************************************/
include("database_functions.php"); # Load Core Database Functions
/*
*
* Function: Cook Raw Data
*
*/
function cook ($textin) {
$textin = str_replace("\\", "", $textin);
$text1 = htmlspecialchars($textin);
$textout = addslashes($text1);
return $textout;
} # End of function - Cook Raw Data
/*
*
* Function: Display Script Execution Time
*
*/
function displayexectime($displaycolor) {
global $scriptstarttime, $availabletime;
$timeparts = explode(" ", $scriptstarttime);
$starttime = $timeparts[1] . substr($timeparts[0],1);
$timeparts = explode(" ", microtime());
$endtime = $timeparts[1] . substr($timeparts[0],1);
if ($starttime !="" AND $endtime !="") { # If times are available, display the elapsed time.
if (is_numeric($starttime) AND is_numeric($endtime)) { # Now make certain they are numeric.
$elapsedtime = $endtime - $starttime;
$elapsedtime = round($elapsedtime, 6);
print "
|
if ($headertag != "") { print "$headertag\n \n"; } } # End of function - Display Header /* * * Function: Display Footer Menu * */ function displayfootermenu() { global $bordercolor, $tablecolor, $barcolor, $textcolor, $bartextcolor; ?>
} # End of function - Display Footer Menu /* * * Function: Display Footer * */ function displayfooter($displaymenu) { global $bordercolor, $tablecolor, $barcolor, $textcolor, $bartextcolor, $version; # IMPORTANT: Please do not edit the information in the footer tag below. # Changing or removing the guestbook name or copyright will void your license to use this software. if ($displaymenu == "true") { displayfootermenu(); } ?>
|
|
|
|
|
|
|
|
if ($headertag != "") { print "$headertag\n \n"; } ?> if ($confirm != "") { confirmmsg($confirm); } ?>
|
|
|
|
|
|
|
|
|
|
|
if ($record_ipaddress != "") { print "IP Address: $record_ipaddress"; } if ($record_remotehost != "") { print " Remote Host: $record_remotehost"; } if ($record_uid != "") { print " UID: $record_uid"; } ?> |
edit | delete |
|
\n";
print "
|
|
|
- echo $lang[21] ?> - |
echo $lang[39] ?> |
|
|
|