

<?php
// EDIT THIS HERE
$fn_directory = 'news;
include $fn_directory . '/common.php';
$show_category = isset ($_GET['show_category']) ? (int)$_GET['show_category'] : 0;
if ( $show_category <= 0 )
{
ob_start();
$category_file = file ($fn_directory . 'categories.php');
array_shift ($category_file);
$categories = array();
echo '<ul>';
foreach ( $category_file as $category )
{
$data = get_line_data ('categories', $category);
echo '<li><a href="?' . $_SERVER['QUERY_STRING'] . '&show_category=' . $data['category_id'] . '">' . $data['name'] . '</a></li>';
}
echo '</ul>';
ob_end_flush();
}
else
{
$fn_category = $show_category;
include $fn_directory . '/news.php';
}
?>
// EDIT THIS HERE
$fn_directory = 'news;
$fn_directory = 'news';$fn_directory = 'news';
<?php
// EDIT THIS HERE
$fn_directory = '/home/clear/public_html/news';
include $fn_directory . 'common.php';
$show_category = isset ($_GET['show_category']) ? (int)$_GET['show_category'] : 0;
if ( $show_category <= 0 )
{
ob_start();
$category_file = file ($fn_directory . 'categories.php');
array_shift ($category_file);
$categories = array();
echo '<ul>';
foreach ( $category_file as $category )
{
$data = get_line_data ('categories', $category);
echo '<li><a href="?' . $_SERVER['QUERY_STRING'] . '&show_category=' . $data['category_id'] . '">' . $data['name'] . '</a></li>';
}
echo '</ul>';
ob_end_flush();
}
else
{
$fn_category = $show_category;
include $fn_directory . '/news.php';
}
?>
include $fn_directory . 'common.php';include $fn_directory . '/common.php';
<?php
// EDIT THIS HERE
$fn_directory = '/home/clear/public_html/news';
include $fn_directory . '/common.php';
ob_start();
$category_file = file ($fn_directory . '/categories.php');
array_shift ($category_file);
$categories = array();
echo '<ul>';
foreach ( $category_file as $category )
{
$data = get_line_data ('categories', $category);
echo '<li><a href="?&show_category=' . $data['category_id'] . '">' . $data['name'] . '</a></li>';
}
echo '</ul>';
ob_end_flush();
?><?php
include 'cats.php';
?><?php
$show_category = isset ($_GET['show_category']) ? (int)$_GET['show_category'] : 1;
$fn_category = $show_category;
include 'news/news.php';
?>$show_category = isset ($_GET['show_category']) ? (int)$_GET['show_category'] : 1;

Users browsing this forum: No registered users and 1 guest