Beispiel #1
0
$smarty->assign('error', $error);
$smarty->display(dirname(__FILE__) . DIRECTORY_SEPARATOR . "layout/pages_header.tpl");
require dirname(__FILE__) . DIRECTORY_SEPARATOR . "layout/pages_system.php";
$smarty->display(dirname(__FILE__) . DIRECTORY_SEPARATOR . "layout/pages_footer.tpl");
flush_headers();
// ####################### START AUTOMATIC UPGRADE PROCESSES ########################
// Oopsi, most of people don't have enough money to buy original script
// If they had, I bet they would definitely purchase original softwares
// This one is for poor people like that...
// But only to test this, before buy. They must buy to use it in a commercial
// environment. Read SEF terms statement for more info...
// Social Engine Forum (www.socialengineforum.com)
if ($do == "step3") {
    // Oopsi, no updates for nulled version from ArrowChat official site for your own security
    echo '<script type="text/javascript">document.getElementById(\'authenticating\').innerHTML = "Oops... You are usig a nulled version downloaded from <a href=\'http://www.socialengineforum.com\' target=\'_blank\'>Social Engine Forum</a>, therefor you shouldn\'t contact ArrowChat official site for your own security. Sorry!";</script>';
    flush_headers();
}
/*
if ($do == "step3") 
{
	// Authenticate that the user has an active subscription
	echo '<script type="text/javascript">document.getElementById(\'authenticating\').innerHTML = "Authenticating...";</script>';
	flush_headers();
	
	$fp = @fopen("http://www.arrowchat.com/validate.php?u=" . get_var('validate_username') . "&p=" . get_var('validate_password'), "r");
	if ($fp) 
	{
		$validation = @fread($fp, 99); 
		$validation_pieces = explode(":", $validation);
		
		if ($validation_pieces[0] == "1") 
function exit_with()
{
    $params = func_get_args();
    if (is_equal(3, count($params))) {
        $response = response_($params[0], $params[1], $params[2]);
    } elseif (is_equal(1, count($params))) {
        $response = $params[0];
    } else {
        $response = '';
    }
    $response = valid_response($response);
    $response = prepare_external_response($response);
    flush_http_status($response['status_code']);
    flush_headers($response['headers']);
    echo $response['body'];
    exit;
}
Beispiel #3
0
function flush($status_code, $headers, $body)
{
    flush_status_line($status_code);
    flush_headers($headers);
    flush_body($body);
}