Ejemplo n.º 1
0
<?php

require_once __DIR__ . '/../includes/includes.php';
if (isset($_POST['message'])) {
    $result = curl_put($_POST['message']);
}
if (isset($_POST['message2']) && isset($_POST['message3'])) {
    $result = curl_put($_POST['message2'] . $_POST['message3']);
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>PhantomBot</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../font-awesome/css/font-awesome.min.css" />
        <link rel="stylesheet" type="text/css" href="../css/main.css" />

        <script type="text/javascript" src="../js/jquery-1.11.3.min.js"></script>
        <script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
    </head>
    <body>
        <div class="container">
            <div class="col-lg">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-usd"></i>&nbsp;&nbsp; Bet System
						<form action="" method="post" style="float:right;margin-top: -4px;margin-right: -8px;">
Ejemplo n.º 2
0
<?php

require_once __DIR__ . '/../includes/includes.php';
if (isset($_POST['message'])) {
    $result = curl_put($_POST['message']);
}
if (isset($_POST['message2']) && isset($_POST['message3'])) {
    $result = curl_put($_POST['message2'] . $_POST['message3']);
}
if (isset($_GET['skipsong']) && $_GET['skipsong'] == "yes") {
    $result = curl_put("!skipsong");
    die;
}
?>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8" />
        <title>PhantomBot</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../font-awesome/css/font-awesome.min.css" />
        <link rel="stylesheet" type="text/css" href="../css/main.css" />
        <link rel="stylesheet" type="text/css" href="../css/youtube.css" />

        <script type="text/javascript" src="../js/jquery-1.11.3.min.js"></script>
Ejemplo n.º 3
0
				<div class="submit-loader" id="submit_loader">
					<img src="http://tahoe-gateway.cryto.net:3719/download/VVJJOkNISzpuMzRqdGlhb3gycGxxbnZjZm5hM3k1NzdyYTpsbDRvNzc1Z2FsYjVmdzVqd3Q2ems0aGQ0bGd2ZXMzZHl1YXRkZHVwa2p0YXFnbmdtMmlxOjM6NjoxMDgxOQ==/loader-wide.gif"><br>
					<strong>Submitting press release... (this may take a while!)</strong>
				</div>
			</form>
			<?php 
        } elseif ($var_id == "submit") {
            // Stage 2: Processing the upload and press release.
            $recaptcha = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
            if ($recaptcha->is_valid) {
                $error = false;
                if (isset($_FILES['file']) && $_FILES['file']['error'] == 0) {
                    $file_uploaded = true;
                    if (ends_with($_FILES['file']['name'], ".jpg") || ends_with($_FILES['file']['name'], ".jpeg") || ends_with($_FILES['file']['name'], ".png") || ends_with($_FILES['file']['name'], ".gif")) {
                        if ($_FILES['file']['size'] <= 20000000) {
                            $upload_result = curl_put("{$tahoe_server}/uri", $_FILES['file']['tmp_name']);
                            if ($upload_result !== false) {
                                $upload_b64 = urlsafe_b64encode($upload_result);
                                $upload_url = "/download/{$upload_b64}/{$_FILES['file']['name']}";
                            }
                        } else {
                            $error = true;
                            $var_code = ANONNEWS_ERROR_TOO_LARGE;
                            // Upload filesize error
                            require "module.error.php";
                        }
                    } else {
                        $error = true;
                        $var_code = ANONNEWS_ERROR_INCORRECT_FORMAT;
                        // Upload file format error
                        require "module.error.php";