$allow_guests = true;
include('core.php');
include('includes/session.php');
$body_id = "news";
$pageid = "4";
//$id = FilterText($_GET['id']);
//yaya
if(FilterText($_GET['id'])){
$news_id = FilterText($_GET['id']);
$main_sql = mysql_query("SELECT * FROM cms_news WHERE num = '".$news_id."'") or die(mysql_error());
$article_exists = mysql_num_rows($main_sql);
if($article_exists == "1"){
$news = mysql_fetch_assoc($main_sql);
$pagename = "News - " . stripslashes($news['title']);
$archive = "0";
} else {
$pagename = "Articolo inesistente!";
$archive = "1";
}
} else {
$pagename = "News";
$archive = "1";
}
include('templates/community/subheader.php');
include('templates/community/header.php');
?>
function FilterNew($str, $news_id)
{
$str = str_replace("à", "à",($str));
$str = str_replace('\r\n', '', ($str));
$str = str_replace('\"', '', ($str));
$str = str_replace("è", "è",($str));
$str = str_replace("ì", "ì",($str));
$str = str_replace("ò", "ò",($str));
$str = str_replace("ù", "ù",($str));
return $str;
}
?>
News
if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }
L'articolo non esiste: clicca su un Articolo esistente!
include('templates/community/footer.php');
?>
include('core.php');
include('includes/session.php');
$body_id = "news";
$pageid = "4";
//$id = FilterText($_GET['id']);
//yaya
if(FilterText($_GET['id'])){
$news_id = FilterText($_GET['id']);
$main_sql = mysql_query("SELECT * FROM cms_news WHERE num = '".$news_id."'") or die(mysql_error());
$article_exists = mysql_num_rows($main_sql);
if($article_exists == "1"){
$news = mysql_fetch_assoc($main_sql);
$pagename = "News - " . stripslashes($news['title']);
$archive = "0";
} else {
$pagename = "Articolo inesistente!";
$archive = "1";
}
} else {
$pagename = "News";
$archive = "1";
}
include('templates/community/subheader.php');
include('templates/community/header.php');
?>
function FilterNew($str, $news_id)
{
$str = str_replace("à", "à",($str));
$str = str_replace('\r\n', '', ($str));
$str = str_replace('\"', '', ($str));
$str = str_replace("è", "è",($str));
$str = str_replace("ì", "ì",($str));
$str = str_replace("ò", "ò",($str));
$str = str_replace("ù", "ù",($str));
return $str;
}
?>
News
Tutte le News
$get_sub_archive = mysql_query("SELECT num, title, date FROM cms_news ORDER BY num DESC LIMIT 50");
$count = mysql_num_rows($get_sub_archive);
if($count > 0){
while ($row = mysql_fetch_array($get_sub_archive, MYSQL_NUM)) {
printf("- [You must be registered and logged in to see this link.] » ", $row[0], HoloText($row[1]));
}
} else {
echo "
No headlines to display yet.";
}
?>
Articolo inesistente
L'articolo non esiste: clicca su un Articolo esistente!
include('templates/community/footer.php');
?>