<html> <head> <title>My Two Cents Test page</title> <?php require_once 'mtc.class.php'; $MTC = new MTC(); $MTC->audio = true; //$MTC->notify = '*****@*****.**'; $MTC->init('my page'); ?> </head> <body> My usual HTML page <hr /> <p><?php echo $MTC->comment_count(); ?> comment(s) will follow.</p> <hr /> <?php $MTC->comments(); ?> <hr /> <p>Add your comment</p>
} } return $string; } /** * Simple XOR decryption * * @author Dustin Schneider * @link http://www.phpbuilder.com/tips/item.php?id=68 */ function x_Decrypt($string, $key) { for ($i = 0; $i < strlen($string); $i++) { for ($j = 0; $j < strlen($key); $j++) { $string[$i] = $key[$j] ^ $string[$i]; } } return $string; } } /** * Main */ if ($_REQUEST['MTC']['do'] == 'captcha') { $mtc = new MTC(); $mtc->captcha_image(); } elseif ($_REQUEST['MTC']['do'] == 'audio') { $mtc = new MTC(); $mtc->captcha_audio(); } //Setup VIM: ex: et ts=4 enc=utf-8 :