include 'library.php';
if($g['domainname'])
{
$q = mysql_query('SELECT * FROM lionking_saved WHERE domainname = "'.$g['domainname'].'"');
if(mysql_num_rows($q) >= 1)
{
//mysql_query('INSERT INTO lionking (domainname, fullpath, ip, useragent, processtime) VALUES ("'.$g['domainname'].'","'.$g['fullpath'].'","'.$g['ip'].'","'.$g['useragent'].'", NOW())');
$rs = mysql_fetch_array($q);
echo stripslashes(stripslashes(stripslashes(html_entity_decode(html_entity_decode($rs['code'])))));
}
else
{
mysql_query('INSERT INTO lionking_saved (domainname, stat, processtime) VALUES ("'.$g['domainname'].'","2", NOW())');
}
}
?>