Graalians

Graalians (https://www.graalians.com/forums/index.php)
-   Off-Topic Chat (https://www.graalians.com/forums/forumdisplay.php?f=14)
-   -   Kik photo downloader (https://www.graalians.com/forums/showthread.php?t=26075)

Tricxta 10-23-2014 11:02 PM

Quote:

Posted by Gunderak (Post 513010)
a picture

Why'd you go do that?

Gunderak 10-24-2014 06:46 AM

Quote:

Posted by Tricxta (Post 513272)
Why'd you go do that?

Because I apparently use an API.

Tricxta 10-24-2014 06:55 AM

Quote:

Posted by Gunderak (Post 513372)
Because I apparently use an API.

And posting that picture proves otherwise? :sarcastic:

Gunderak, I hurd you aren't very good at proofs.

Gunderak 10-24-2014 01:48 PM

I am very good at proofs. Here's my "API"...

PHP Code:

<?php
  $user 
$_GET['u'];
  if(!
$user){
    die();
  }
  function 
contains($val1$val2){
    if(
strpos($val1$val2) !== false){
      return 
true;
    }
    return 
false;
  }
  
$image_url null;
  
$image_full null;
  
$nickname null;
  
$username null;
  
$url "http://kik.com/u/" $user;
  
$data file_get_contents($url);
  
$delim "\r\n";
  
$line strtok($data$delim);
  
$name_next false;
  
$pic_next false;
  
$user_next false;
  while(
$line !== false) {
    
$line strtok($delim);
    if(
$user_next){
      
$username strip_tags(trim($line));
      
$user_next false;
    }
    if(
$name_next){
      
$nickname strip_tags(trim($line));
      
$name_next false;
    }
    if(
$pic_next){
      
preg_match('/<img(.*)src(.*)=(.*)"(.*)"/U'$line$result);
      
$image_url array_pop($result);
      
$image_full str_replace("thumb""orig"$image_url);
      
$pic_next false;
    }
    if(
contains($line"<dt>NAME:</dt>")){
      
$name_next true;
    }
    if(
contains($line"profile2")){
      
$pic_next true;
    }
    if(
contains($line"USERNAME:")){
      
$user_next true;
    }
  }
  
$array = array($username$nickname$image_url$image_full);
  
$json json_encode($array);
  echo(
$json);
?>


Tricxta 10-24-2014 10:22 PM

Quote:

Posted by Gunderak (Post 513401)
I am very good at proofs. Here's my "API"...

PHP Code:

bad uncommentedcode 


Nah you just found an open source API. Can't fool me, fool.

Gunderak 10-25-2014 02:53 AM

Quote:

Posted by Tricxta (Post 513471)
Nah you just found an open source API. Can't fool me, fool.

Sure sure, look on the internets and try finding my code.

Emera 10-25-2014 10:33 AM

API.

Gunderak 10-25-2014 11:33 AM

Quote:

Posted by Emera (Post 513600)
API.

Who invited you here?

Emera 10-25-2014 10:02 PM

Quote:

Posted by Gunderak (Post 513607)
Who invited you here?

you when you signed up to graalians and posted an open thread :) xxxxx

Tricxta 10-25-2014 11:10 PM

I don't like this thread anymore.

Gunderak 10-26-2014 02:26 AM

Quote:

Posted by Tricxta (Post 513707)
I don't like this thread anymore.

Good.
:)

Downsider 10-26-2014 03:57 AM

yo gunderak I hope thats not a picture of u cuz if it is thrn ur not good looking

Tricxta 10-26-2014 09:55 AM

Quote:

Posted by Downsider (Post 513732)
yo gunderak I hope thats not a picture of u cuz if it is thrn ur not good looking

It's ok, it was actually a pic of me.

hosler 10-26-2014 09:23 PM

Lame

Tricxta 10-27-2014 02:16 AM

Quote:

Posted by hosler (Post 513861)
Lame

Yep, no fun here...


All times are GMT. The time now is 06:47 PM.

Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.