Aquí tienes el código de show_news.php ^^ <?PHP
// ESTE SCRIP (CUTENEWS) ha sido traducido por
WWW.SUPROPIA.COM, líderes en Internet.
// Supropia.com se dedica a la venta de HOSTING y DISEÑO GRAFICO.
// Esperamos que el sistema que hemos denominado, en español, SUPERNEWS pueda servirle
// de gran ayuda a la comunidad de habla ESPAÑOLA
// GRACIAS POR SEGUIR APOSTANDO AL SOFTWARE LIBRE !!!
www.supropia.com// Administrador: Jorge Hernán Garrote
error_reporting (E_ALL ^ E_NOTICE);
$cutepath = __FILE__;
$cutepath = preg_replace( "'\\\show_news\.php'", "", $cutepath);
$cutepath = preg_replace( "'/show_news\.php'", "", $cutepath);
require_once("$cutepath/inc/functions.inc.php");
require_once("$cutepath/data/config.php");
//----------------------------------
// COMPROBAR SI INCLUDE ESTA SIENDO BIEN UTILIZADO
//----------------------------------
if($HTTP_SERVER_VARS["HTTP_ACCEPT"] or $HTTP_SERVER_VARS["HTTP_ACCEPT_CHARSET"] or $HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"] or $HTTP_SERVER_VARS["HTTP_CONNECTION"]){ /* do nothing */ }
elseif(eregi("show_news.php", $PHP_SELF)){
die("<h4>SuperNEWS ha detectado que usted esta incluye el archivo show_news.php usando una URL en este archivo.<br>
Esto es incorrecto, usted debe incluir el archivo show_news usando la RUTA (PATH)</h4><br>Ejemplo:<br>
esto es <font color=red>INCORRECTO</font> : <?PHP include(\"http://susitioweb.com/supernews/show_news.php\"); ?><br>
esto es <font color=green>CORRECTO</font>: <?PHP include(\"supernews/show_news.php\"); ?><br>
<br><BR>// <font size=2>si usted piensa que este mensaje no debe ser visualizado deberá abrir el archivo show_news.php y suprimirlo desde allí</font>");
}
//----------------------------------
// End of the check
//----------------------------------
if(!isset($subaction) or $subaction == ""){ $subaction = $POST["subaction"]; }
if(!isset($template) or $template == "" or strtolower($template) == "default"){ require_once("$cutepath/data/Default.tpl"); }
else{
if(file_exists("$cutepath/data/${template}.tpl")){ require_once("$cutepath/data/${template}.tpl"); }
else{ die("Error!<br>el template <b>".htmlspecialchars($template)."</b> no existe, comprobar si el nombre del template esta bien escrito, recuerde que debe respetar minúsculas y para los nombres de templates"); }
}
// Prepare requested categories
if(eregi("[a-z]", $category)){
die("<b>Error</b>!<br>SuperNEWS ha detectado que se usa el nombre de la categoría \$category = \"$category\"; pero usted debe llamar a las categorías por su identificador (número) <b>ID</b>. En síntesis, usted debe utilizar el número de la categoría y no el nombre.<br>
Ejemplo:<br><blockquote><?PHP<br>\$category = \"1\";<br>include(\"ruta/show_news.php\");<br>?></blockquote>");
}
$category = preg_replace("/ /", "", $category);
$tmp_cats_arr = explode(",", $category);
foreach($tmp_cats_arr as $key=>$value){
if($value != ""){ $requested_cats[$value] = TRUE; }
}
if($archive == ""){
$news_file = "$cutepath/data/news.txt";
$comm_file = "$cutepath/data/comments.txt";
}else{
$news_file = "$cutepath/data/archives/$archive.news.arch";
$comm_file = "$cutepath/data/archives/$archive.comments.arch";
}
$allow_add_comment = FALSE;
$allow_full_story = FALSE;
$allow_active_news = FALSE;
$allow_comments = FALSE;
//<<<------------ Detarime what user want to do
if( $CN_HALT != TRUE and $static != TRUE and ($subaction == "showcomments" or $subaction == "showfull" or $subaction == "addcomment") and ((!isset($category) or $category == "") or $requested_cats[$ucat] == TRUE) ){
if($subaction == "addcomment"){ $allow_add_comment = TRUE; $allow_comments = TRUE; }
if($subaction == "showcomments") $allow_comments = TRUE;
if(($subaction == "showcomments" or $allow_comments == TRUE) and $config_show_full_with_comments == "yes") $allow_full_story = TRUE;
if($subaction == "showfull") $allow_full_story = TRUE;
if($subaction == "showfull" and $config_show_comments_with_full == "yes") $allow_comments = TRUE;
}
else{
if($config_reverse_active == "yes"){ $reverse = TRUE; }
$allow_active_news = TRUE;
}
//----------->>> Detarime what user want to do
require("$cutepath/inc/shows.inc.php");
if($_GET['archive'] and $_GET['archive'] != ''){ $archive = $_GET['archive']; } // stupid fix ?
unset($static, $template, $requested_cats, $category, $catid, $cat,$reverse, $in_use, $archives_arr, $number, $no_prev, $no_next, $i, $showed, $prev, $used_archives);
?>
<!-- News Powered by CuteNews:
http://cutephp.com/ -->