Esempio n. 1
0
<!DOCTYPE html>
<html <?php 
echo Q_Response::htmlAttributes();
?>
>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<?php 
echo Q_Response::metas(true, "\n\t");
?>
	<meta name="HandheldFriendly" content="True" />
	<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0<?php 
if (Q_Request::platform() == 'android') {
    ?>
, target-densitydpi=medium-dpi<?php 
}
?>
" />
	<meta name="mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-title" content="Groups">
	<meta name="mobile-web-app-capable" content="yes">
	<?php 
if (Q_Request::platform() !== 'android') {
    ?>
	<link rel="apple-touch-icon-precomposed" sizes="76x76" href="<?php 
    echo Q_Html::themedUrl('img/icon/76.png');
    ?>
" />
	<link rel="apple-touch-icon-precomposed" sizes="120x120" href="<?php 
Esempio n. 2
0
<?php

include "Q.inc.php";
$ms = ceil(Q::milliseconds());
$htmlAttributes = Q_Response::htmlAttributes();
$baseUrl = Q_Request::baseUrl();
echo <<<EOT


\t<!DOCTYPE html>
\t<html {$htmlAttributes}>
\t<head>
\t\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\t\t<title>Fast loading page</title>
\t\t<link rel="shortcut icon" href="{$baseUrl}/favicon.ico" type="image/x-icon">
\t</head>
\t<body>

\t\t<h1>Even Faster Loading Page</h1>
\t\t<p>
\t\t\tThis is a naked PHP script that includes the Qbix Platform as a library, like this:
\t\t</p>
\t\t<pre>
\t\t\t&lt;?php include ("Q.inc.php") ?&gt;
\t\t</pre>
\t\t<p>
\t\t\tIn this scenario, the entire Qbix environment is ready to go in <strong>{$ms} milliseconds</strong>!
\t\t</p>
\t\t<p>
\t\t\tTry refreshing this page, and it will probably load even faster.
\t\t</p>