summaryrefslogtreecommitdiffstats
path: root/postload.php
blob: 281c4f795fd77a4add21bb02d2c974d9853823fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
include_once(dirname(__FILE__).'/app/app.php');

function unhtmlspecialchars( $string ) {
    $string = str_replace ( '&amp;', '&', $string );
    $string = str_replace ( '&#039;', '\'', $string );
    $string = str_replace ( '&quot;', '\"', $string );
    $string = str_replace ( '&lt;', '<', $string );
    $string = str_replace ( '&gt;', '>', $string );
   
    return $string;
}

$Planet->addPerson(
    new PlanetPerson(
        '',
        unhtmlspecialchars($_GET['url']),
        ''
    )
);

//Load feeds
$Planet->download(1);
header("Content-type: image/png");
readfile(dirname(__FILE__)."/custom/img/feed.png");
die();