©

ACTIVE BLOG IS WEEKDA-Y

asteriodscollide:
“(by Clemens Fantur)
”

asteriodscollide:

(by Clemens Fantur)

54 notes - 30 November, 2012

Reblogged from - Goldfish

Source - flickr.com

  1. myrestlessness reblogged this from birazseniozledimmm
  2. crystal--seas reblogged this from birazseniozledimmm
  3. girlsbravo reblogged this from oceaangroen
  4. rebellionlie-ss reblogged this from te4cup
  5. kushthecat reblogged this from te4cup
  6. u-r-b-a-n-a-s reblogged this from te4cup
  7. headbangingirl reblogged this from oceaangroen
  8. canyoureallyseethroughmenow reblogged this from birazseniozledimmm
  9. birazseniozledimmm reblogged this from cloudsofcinnamon-blog
  10. conti-nuity reblogged this from te4cup
  11. foreverateenagewasteland reblogged this from evapor4ted-blog
  12. the-youth-zone-blog reblogged this from perdidita
  13. enc4rter reblogged this from perdidita
  14. lauoffthewall reblogged this from evapor4ted-blog
  15. abluedecember reblogged this from te4cup
  16. pure-essentie reblogged this from te4cup
  17. tablefor0ne reblogged this from te4cup
  18. getout-live reblogged this from evapor4ted-blog
  19. pielazul reblogged this from evapor4ted-blog
  20. evapor4ted-blog reblogged this from te4cup
  21. akaasiapuu reblogged this from te4cup
  22. te4cup reblogged this from li0nhe4rt
  23. li0nhe4rt reblogged this from oceaangroen
  24. onedayyoullbeback reblogged this from oceaangroen
  25. pulchre-simplex-blog reblogged this from oceaangroen
  26. silverflamess reblogged this from oceaangroen
  27. oceaangroen posted this
require('JSON.php'); function curl_get_file_contents($URL) { $c = curl_init(); curl_setopt($c, CURLOPT_HTTPHEADER, array('Pragma: no-cache')); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, $URL); $contents = curl_exec($c); curl_close($c); if ($contents) return $contents; else return FALSE; } // Authorization info $tumblr_url = "http://mytumblr.tumblr.com" $tumblr_email = 'mymail@mydomain.com'; $tumblr_password = 'mypassword'; $str = curl_get_file_contents("$tumblr_url/api/read/json"); $str = substr($str, 22); $str = substr($str, 0, strlen($str)-2); $s = new Services_JSON(SERVICES_JSON_IN_STR); $o = $s->decode($str); $name = 'posts-total'; $total = $o->$name; print "TOTAL posts to delete: $total\n"; // Send the POST request (with cURL) $c = curl_init('http://www.tumblr.com/api/delete'); $count = 0; while ($count < $total) { foreach ($o->posts as $post) { $id = $post->id; // Prepare POST request $request_data = "email=$tumblr_email&password=$tumblr_password&post-id=$id"; curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_HTTPHEADER, array('Pragma: no-cache')); curl_setopt($c, CURLOPT_POSTFIELDS, $request_data); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($c); $status = curl_getinfo($c, CURLINFO_HTTP_CODE); // Check for success if ($status == 200) { echo "Deleted post $id\n"; $count += 1; } else if ($status == 403) { echo "Bad email or password\n"; exit; } else { echo "Error: $result\n"; } } $str = curl_get_file_contents("$tumblr/api/read/json?num=20"); $str = substr($str, 22); $str = substr($str, 0, strlen($str)-2); $o = $s->decode($str); if (empty($o)) { die('An error has ocurred'); } print "Waiting 10 seconds before continuing. Total deleted = $count\n"; sleep(10); } /* close the session */ curl_close($c); Text