Ejemplo n.º 1
0
<?php

// load60posts.php
header("Content-Type: text/plain");
include '../jodel.class.php';
// Setting Position to Frankfurt / Germany
$position = array(50.1183, 8.7011, 'Frankfurt am Main', 'DE');
// Creating random udid
$udid = hash('sha256', microtime());
// Creating Jodel Instance
$jodel = new Jodel($udid, $position);
// Make getPosts()-Call
$aPosts = $jodel->getPosts()->posts;
// Skip those loaded posts
$jodel->skip(30);
// Load next 30 posts
$aPosts2 = $jodel->getPosts()->posts;
// Merge both arrays
$aResult = array_merge($aPosts, $aPosts2);
// Print Results
print_r($aResult);
Ejemplo n.º 2
0
<?php

// replay42 // Dec. 2nd, 2015
// postbooster.php
// Post Booster
// + + + NOTE + + +
// Currently not sure if it's working
// + + + NOTE + + +
include 'jodel.class.php';
if (isset($_GET['amount'])) {
    $amount = intval($_GET['amount']);
} else {
    $amount = 5;
}
if (!isset($_GET['postid'])) {
    die("Missing get-parameter postid");
} else {
    $postid = $_GET['postid'];
}
for ($i = 0; $i < $amount; $i++) {
    $jodel = new Jodel('');
    $jodel->upVote($postid);
    sleep(1);
}
echo "Post boosted " . $amount . " times.";
Ejemplo n.º 3
0
<?php

// showkarma.php
header("Content-Type: text/plain");
include '../jodel.class.php';
// Setting Position to Frankfurt / Germany
$position = array(50.1183, 8.7011, 'Frankfurt am Main', 'DE');
// Creating fixed udid so that we have only one "account"
$udid = hash('sha256', 'december2015');
// Creating Jodel Instance
$jodel = new Jodel($udid, $position);
// Make getKarma()-Call
$sKarma = $jodel->getKarma();
// Print Results
print_r($sKarma);
Ejemplo n.º 4
0
<?php

// showposts.php
header("Content-Type: text/plain");
include '../jodel.class.php';
// Setting Position to Frankfurt / Germany
$position = array(50.1183, 8.7011, 'Frankfurt am Main', 'DE');
// Creating random udid
$udid = hash('sha256', microtime());
// Creating Jodel Instance
$jodel = new Jodel($udid, $position);
// Make getPosts()-Call
$aPosts = $jodel->getPosts();
// Print Results
print_r($aPosts);