Commit 8763da12 authored by zhz's avatar zhz

goods

parent 5077f5a1
...@@ -8,6 +8,15 @@ ...@@ -8,6 +8,15 @@
</head> </head>
<body> <body>
<div> <div>
<?php
$str = $commonInfo['goods_youku_url'];
if($str) {
preg_match('/<iframe((?!src).)*src[\s]*=[\s]*[\'"](?<src>[^\'"]*)[\'"]/i',$str,$match);
if($match) {
echo "<iframe height=auto width=100% src='{$match['src']}' frameborder=0 'allowfullscreen'></iframe>";
}
}
?>
<?php echo $commonInfo['goods_body']; ?> <?php echo $commonInfo['goods_body']; ?>
</div> </div>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment