function preparaQuery($p_query)
{
    debugInfo($p_query, $_REQUEST['p_debug'] == 'S');
    $result = mysql_query($p_query);
    if (!$result) {
        die("Invalid query: " . mysql_error());
        return 0;
    } else {
        return $result;
    }
}
示例#2
0
function notImplemented()
{
    logMe("notImplemented()\n");
    logMe(debugInfo());
    header('HTTP/1.1 501 Not Implemented');
    header('Content-Type: text/plain; charset=UTF-8');
    die('Not Implemented!');
}
示例#3
0
        $sql = "INSERT INTO " . AUCTION_IPN_LOG . " (auction_ipn_log_date, auction_ipn_log_status,FK_auction_offer_id )\r\n                          VALUES ('" . time() . "', '" . $lang['ipn_log_confirmation_received'] . "',0)";
        if (!($result = $db->sql_query($sql))) {
            message_die(GENERAL_ERROR, "Couldn't log ipn.", "", __LINE__, __FILE__, $sql);
        }
    } elseif (!strcmp($response, "INVALID")) {
        // Log action
        $sql = "INSERT INTO " . AUCTION_IPN_LOG . " (auction_ipn_log_date, auction_ipn_log_status)\r\n                          VALUES ('" . time() . "', '" . $lang['ipn_log_invalid'] . "')";
        if (!($result = $db->sql_query($sql))) {
            message_die(GENERAL_ERROR, "Couldn't log ipn.", "", __LINE__, __FILE__, $sql);
        }
    } else {
        // Just incase something serious should happen!
    }
}
if ($debugger) {
    debugInfo();
}
#########################################################
#     Inernal Functions : variableAudit & debugInfo     #
#########################################################
// Function: variableAudit
// Easy LOCAL to IPN variable comparison
// Returns 1 for match or 0 for mismatch
function variableAudit($v, $c)
{
    global $_PAYPAL;
    if (!strcasecmp($_PAYPAL[$v], $c)) {
        return 1;
    } else {
        return 0;
    }
示例#4
0
		<!--<span class="error"><?php 
echo $letterErr;
?>
</span>-->
	</form>

	<?php 
if (isset($_SESSION['gameover'])) {
    echo '<h1 class="error">' . $_SESSION['gameover'] . '</h1>';
}
?>
	
	<br>
	<table>
		<?php 
echo buildTrsHtml();
?>
		
	</table>
	
	<!-- uncommand to get debug infos -->
	<!--<br><br>
	<p class="error" >	Debug: <br> 
	<?php 
echo "Guesse count: " . count($_SESSION['guesses']) . "<br>";
echo "Guesses: " . debugInfo();
?>
	</p>-->
</body>
</html>