<?php
if(isset($_GET["image"])){
$image=$_GET["image"];
$meta_image_fb = '<meta property="og:image" content="'.$image.'" />';
$meta_image_tw = '<meta name="twitter:image" content="'.$image.'" />';
}
if(isset($_GET["description"])){
$description=$_GET["description"];
}
if(isset($_GET["title"])){
$title=$_GET["title"];
$meta_title = '<meta property="og:title" content="'.$title.'" />';
$meta_title = '<meta name="twitter:title" content="'.$title.'" />';
}
if(isset($_GET["type"])){
$type=$_GET["type"];
$meta_type_fb = '<meta property="og:type" content="'.$type.'" />';
}
if(isset($_GET["url"])){
$url=$_GET["url"];
$meta_url_fb = '<meta property="og:url" content="'.$url.'" />';
$meta_url_tw = '<meta name="twitter:url" content="'.$url.'" />';
}
if(isset($_GET["video"])){
$video=$_GET["video"];
$meta_video_fb = '<meta property="og:video" content="'.$video.'" /><meta property="og:video:type" content="video/mp4" /><meta property="og:video:width" content="487" />';
$meta_video_tw = '<meta name="twitter:player" content="'.$video.'" />';
}
if(isset($_GET["card"])){
$card=$_GET["card"];
$meta_card_tw = '<meta name="twitter:card" content="'.$card.'" />';
}
?>
<!DOCTYPE html>
<html>
<head>
<!-- 这段是移动端需要的meta设置,如果是pc请按需要做相关修改 -->
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=yes" name="">
<?php echo isset($image)?$meta_image_fb:'' ?>
<?php echo isset($url)?$meta_url_fb:'' ?>
<?php echo isset($video)?$meta_video_fb:'' ?>
<?php echo isset($title)?$meta_title_fb:'' ?>
<?php echo isset($type)?$meta_type_fb:'' ?>
<meta property="og:description" content="<?php echo isset($description)?$description:'' ?>" />
<?php echo isset($image)?$meta_image_tw:'' ?>
<?php echo isset($url)?$meta_url_tw:'' ?>
<?php echo isset($video)?$meta_video_tw:'' ?>
<?php echo isset($title)?$meta_title_tw:'' ?>
<?php echo isset($card)?$meta_card_tw:'<meta name="twitter:card" content="summary" />' ?>
<meta name="twitter:site:id" content="">
<meta name="twitter:title" content="<?php echo isset($title)?$title:'' ?>">
<meta name="twitter:site" content="">
<meta name="twitter:description" content="<?php echo isset($description)?$description:'' ?>" />
<meta name="description" content="<?php echo isset($description)?$description:'' ?>">
<title><?php echo isset($title)?$title:'' ?></title>
<script type="text/javascript">
window.location.href="http://www.eaxmple.com/xxx.html";
</script>
</head>
<body></body>
</html>