- dirname: documentation ( source)
- str_replace: documentation ( source)
- explode: documentation ( source)
- header: documentation ( source)
<?php
require_once(dirname(__FILE__).'/core.class.php');
$core = new core();
if(isset($_GET['update']))
{
if(!empty($_GET['update']))
{
$args = explode(',',$_GET['update']);
$core->update($args);
}
else
{
$core->update();
}
}
elseif(isset($_GET['get']))
{
if(!empty($_GET['get']))
{
$core->update($_GET['get']);
header("Location: ".str_replace('index.php','',$_SERVER['PHP_SELF'])."cache/".$_GET['get'].".png");
}
else
{
}
}
elseif(isset($_GET['author']))
{
echo "Created by <a href='http://vk.com/ak1998'>Kachalov Alexey</a>(<a href='http://vk.com/kcraft'>KachalovCRAFT NET</a>)";
die;
}
elseif(isset($_GET['ver']))
{
echo "v2.1";
die;
}
?>