예제 #1
0
<?php

require_once "../lib.php";
if (!empty($_GET['src'])) {
    $title = $_GET['src'];
} else {
    $title = "";
}
if (isBase64Encoded($title)) {
    $title = base64_decode($title);
}
$width = 480;
if (!empty($_GET['h'])) {
    $width = intval($_GET['h']);
}
if (!empty($_GET['w'])) {
    $width = intval($_GET['w']);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=<?php 
echo $width;
?>
, initial-scale=1, user-scalable=yes" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <title><?php 
echo entifyQuotes(strip_tags($title));
?>
function getParams($_getParams = "", $_allowed = null)
{
    foreach ($_GET as $key => $value) {
        if ($key != "template" && !($_allowed != null && !isset($_allowed[$key]))) {
            if (isBase64Encoded($value, true)) {
                $value = !($_allowed != null && !$_allowed[$key]) ? base64UrlEncode(base64UrlDecode($value)) : base64UrlEncode($value);
                $_getParams .= (strlen($_getParams) == 0 ? $_getParams : "&") . urlencode($key) . "=" . $value;
            }
        }
    }
    return $_getParams;
}