".$title."\n");
if(strpos($url, 'libary.php') !== false)
{
if(isset($_GET["game"]))
{
$game = htmlspecialchars($_GET["game"], ENT_QUOTES);
$game = str_replace("/", "",$game);
$game = str_replace(".", "",$game);
$game = str_replace("*", "",$game);
$title = getTitle($game);
$description = $title . " - ";
$description .= getDesc($game)." - ";
$description .= " - PSMReborn #1 place for all PSM Content";
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
}
else
{
$description .= "PlayStation Mobile Game/App Library - PSMReborn #1 place for all PSM Content";
}
}
else if(strpos($url, 'devtools.php') !== false)
{
$description .= "PlayStation Mobile Development Tools";
if(isset($_GET["type"]))
{
$type = htmlspecialchars($_GET["type"], ENT_QUOTES);
$type = str_replace("/", "",$type);
$type = str_replace(".", "",$type);
$type = str_replace("*", "",$type);
$description .= " - ".$type."/";
}
$description .= " - PSMReborn #1 place for all PSM Content";
}
else
{
$description = "PSMReborn is the largest archive of PlayStation Mobile content on the internet containing Games, SDK's, Source Code, and Unity for PSM exporters.";
}
$descsocial = str_replace("
", PHP_EOL, $description);
$descsocial = str_replace("
", PHP_EOL, $descsocial);
$descsocial = str_replace("
", PHP_EOL, $descsocial);
$descsocial = str_replace("
", PHP_EOL, $descsocial);
$descsocial = str_replace('"', '\\"', $descsocial);
/*
* Write metadata
*/
echo('');
echo('');
echo('');
echo('');
/*
* Default Image
*/
if($image == "")
{
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/img/logo.png';
}
/*
* Social Media
*/
echo('');
echo('');
echo('');
echo('');
echo('');
echo('');
?>