Файл: Source/pages/show.php
Строк: 56
<?php
/*
* Script name: Points4Prize
* Author: Soft Projects
* Date created: 15/07/2015
*/
$title = str_replace(" ", "", $_GET['p']);
$title = sprintf("%s", mysql_real_escape_string($title));
?>
<?php
require_once 'inc/header.php';
?>
<body class="no-slider">
<!-- <body class="has-top-menu"> -->
<!-- BEGIN #slider-imgs -->
<div id="slider-imgs">
<div class="featured-img-box">
<div id="featured-img-1" class="featured-img"></div>
<div id="featured-img-2" class="featured-img invisible"></div>
<div id="featured-img-3" class="featured-img invisible"></div>
<div id="featured-img-4" class="featured-img invisible"></div>
</div>
<!-- END #slider-imgs -->
</div>
<!-- BEGIN #top-layer -->
<div id="top-layer">
<div id="header-top">
<?php
require_once 'inc/header_top.php';
?>
</div>
<section id="content">
<header id="header">
<div id="menu-bottom">
<?php
require_once 'inc/menu_bottom.php';
?>
</div>
<div class="wrapper">
<div class="header-breadcrumbs">
<?php require_once 'inc/stats.php'; ?>
<ul>
<li><a href="index.php">Home</a></li>
<li><?php echo $title; ?> </li>
</ul>
</div>
</div>
</header>
<div id="main-box" class="full-width">
<div id="main">
<div class="signup-panel">
<div class="left" style="width:666px;">
<h2><span><?php echo $title; ?></span></h2>
<div class="content-padding">
<div style="padding:10px; width:570px; max-height:550px; overflow:auto;">
<?php
if (!isset($_GET['p']) or strlen($_GET['p']) < 3 or strlen($_GET['p']) > 20 and ! eregi("[^a-zA-Z0-9_.-]", $_GET['p'])) {
echo "<div class='alert alert-danger'>The requested page is not found.</div>";
} else {
$info = mysql_query("SELECT * FROM `pages` WHERE `title`= '$title' ORDER BY id DESC LIMIT 1");
$row = mysql_fetch_array($info);
if (empty($row)) {
echo "<div class='alert alert-danger'>The requested page is not found.</div>";
} else {
echo html_entity_decode($row['content']);
}
}
?>
</div>
</div>
<div class="clear-float"></div>
</div>
<div class="right" style="width:245px;">
<div class="content-padding">
<div class="form-split-about">
<?php
//include ads
include("inc/ads250.php");
?>
</div>
</div>
</div>
<div class="clear-float"></div>
</div>
<div class="clear-float"></div>
</div>
</div>
</div>
<?php
require_once 'inc/footer.php';
?>