[home] [feedback] [contact]  Looking for IC Test software? contact us.

Feedback

= $records) $start -= $pageEntries; $pageFrom = (int) ($start / $pageEntries / 10) * 10; $pageTo = $pageFrom + 10; if($pageTo > $records / $pageEntries) $pageTo = $records / $pageEntries; if($start) { ?> = 10) { ?> | | |
' . mysql_error() . ''; else $table_exists = true; } else if($create == 'no') echo '
Operation cancelled.
'; else { echo '
'; echo '
'; echo "Table $tbl_name doesn't exist. Create it now?   "; echo 'yes   '; echo 'no'; echo '
'; } } else $table_exists = true; if($table_exists) { if($admin && $admin != $_SESSION['gb_admin']) $error = $msg['wrongPass']; else if($_SESSION['gb_admin'] && $_SESSION['gb_admin'] == $adminPass && $delete) { $sql = "DELETE FROM $tbl_name WHERE $fld_id='$delete'"; if(!mysql_query($sql)) $error = mysql_error(); } else if($sign == 2) { if(!$gbSubject || !$gbText || !$gbRating || empty($gbRating)) $error = $msg['required']; else if(checkSpam($gbID, $tstamp, $gbName, $gbEMail, $gbSubject, $gbText, $gbSignature)) $error = $msg['noSpam']; else { if(!get_magic_quotes_gpc()) { $gbName = addslashes($gbName); $gbEMail = addslashes($gbEMail); $gbSubject = addslashes($gbSubject); $gbText = addslashes($gbText); } $timestamp = date('YmdHis', time() - 60 * 60); $sql = "SELECT $fld_id FROM $tbl_name WHERE $fld_timestamp>$timestamp AND $fld_name='$gbName' "; $sql .= "AND $fld_email='$gbEMail' AND $fld_subject='$gbSubject' AND $fld_text='$gbText' LIMIT 1"; $result = mysql_query($sql); if(mysql_num_rows($result) > 0) { $sign = 0; $start = ($messageOrder == 'ASC') ? -1 : 0; } else { $timestamp = date('YmdHis'); $ipaddr = getIP(); $sql = "INSERT INTO $tbl_name ($fld_id, $fld_timestamp, $fld_name, $fld_email, $fld_subject, $fld_text, $fld_rating, $fld_ip) "; $sql .= "VALUES ('', '$timestamp', '$gbName', '$gbEMail', '$gbSubject', '$gbText', '$gbRating', '$ipaddr')"; //$dbcon = mysql_connect($db_server, $db_user, $db_pass); //mysql_select_db($db_name, $dbcon) $result = mysql_query($sql); if(!$result) { $error = mysql_error(); } else { $sign = 0; $start = ($messageOrder == 'ASC') ? -1 : 0; //echo $sql."
"; if ($maxEntries > 0) { $sql = "SELECT $fld_id FROM $tbl_name ORDER BY $fld_timestamp DESC LIMIT $maxEntries, 1"; if($result = mysql_query($sql)) { if(mysql_num_rows($result)) { if($id = mysql_result($result, $fld_id)) { $sql = "DELETE FROM $tbl_name WHERE $fld_id<=$id"; if(!mysql_query($sql)) $error = mysql_error(); } } } } if(preg_match($valid_mail, $mailNotify)) { $text = $msg['date'] . ": $timestamp\n"; $text .= $msg['name'] . ": $gbName\n"; $text .= $msg['eMail'] . ": $gbEMail\n\n"; $text .= "$gbSubject\n\n$gbText"; $headers = "Return-Path: <$mailNotify>\n"; $headers .= "From: $bookTitle <$mailNotify>\n"; $headers .= "X-Sender: <$mailNotify>\n"; $headers .= "X-Mailer: PHP " . phpversion(); @mail($mailNotify, $msg['new'], stripslashes($text), $headers); } } } } } if($error) { ?>
:
:
:
:
: 5
4
3
2
1
0
:
 « 
HTML:   URLs:   UBBs:

  
'; } $img_old = $img; } ?>
')" value="">  
0) { ?>
5) $rating = 5; ?>
)">
: 
:  ' . $email . ')'; else echo " ($email)"; } ?>
:  <? echo $rating; ?>
: 
: 
 
No messages.
')" value="">  

Support our free software by clicking ads below.
- THANK YOU -



[home] [feedback] [contact]

©2002-2022 All rights reserved worldwide by www.dheone.com