本文整理汇总了PHP中urlbasesito函数的典型用法代码示例。如果您正苦于以下问题:PHP urlbasesito函数的具体用法?PHP urlbasesito怎么用?PHP urlbasesito使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了urlbasesito函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_start
<?php
require '../Functions/mysql_fun.php';
require '../Functions/page_builder.php';
require '../Functions/urlLab.php';
session_start();
$absurl = urlbasesito();
if (empty($_SESSION['user'])) {
header("Location: {$absurl}/error.php");
} else {
$id = $_GET['id'];
$id = mysql_escape_string($id);
$conn = sql_conn();
$query = "SELECT f.CodAuto, f.IdFonte, f.Nome, f.Descrizione, f.Time\n\t\t\tFROM Fonti f\n\t\t\tWHERE f.CodAuto='{$id}'";
$req = mysql_query($query, $conn) or fail("Query fallita: " . mysql_error($conn));
$row = mysql_fetch_row($req);
if ($row[0] == $id) {
$title = "Dettaglio Fonte - {$row['1']}";
startpage_builder($title);
echo <<<END
\t\t\t<div id="content">
\t\t\t\t<h2>Dettaglio - {$row['1']}</h2>
\t\t\t\t<dl class="widget">
END;
$heads = array('', 'IdFonte:', 'Nome:', 'Descrizione:');
for ($i = 1; $i < 4; $i++) {
echo <<<END
\t\t\t\t\t<dt class="widget-title">{$heads[$i]}</dt>
END;
示例2: endpage_builder
function endpage_builder()
{
$absurl = urlbasesito();
echo <<<END
\t\t\t<div id="push"></div>
\t\t</div>
END;
if ($_SERVER['PHP_SELF'] != "{$absurl}/index.php" && !empty($_SESSION['user'])) {
echo <<<END
\t\t<footer class="site-footer footer-color-pers" role="contentinfo">
\t\t\t<div class="site-info">
\t\t\t\t<p>Pragma</p>
\t\t\t</div>
\t\t</footer>
\t\t<p id="backTop" class="back-top">
\t\t\t<a rel="nofollow" class="back-top-a-color-pers" href="#top"></a>
\t\t</p>
\t\t<script type="text/javascript" src="{$absurl}/script.js"></script>
END;
}
echo <<<END
\t</body>
</html>
END;
}