Ver Mensaje Individual
  #16 (permalink)  
Antiguo 23/07/2007, 15:00
Avatar de merolhack
merolhack
 
Fecha de Ingreso: junio-2006
Ubicación: México
Mensajes: 1.242
Antigüedad: 17 años, 10 meses
Puntos: 16
Re: Noticias + comentarios...

Oye pero tu pagina no esta hecha en PHP?
Bueno, yo digo que mejor edites tu index.php y lo modifiques con tal de que quede como esto:

Código PHP:
<?PHP

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  Path to the CuteNews directory (to make the includng easyer)

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

$path ".";



/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  This is a fix if register_globals is turned off

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

if(!$PHP_SELF){

    if(
$HTTP_POST_VARS)     {extract($HTTP_POST_VARSEXTR_PREFIX_SAME"post_");}

    if(
$HTTP_GET_VARS)      {extract($HTTP_GET_VARSEXTR_PREFIX_SAME"get_");}

    if(
$HTTP_COOKIE_VARS)    {extract($HTTP_COOKIE_VARSEXTR_PREFIX_SAME"cookie_");}

    if(
$HTTP_ENV_VARS)         {extract($HTTP_ENV_VARSEXTR_PREFIX_SAME"env_");}

}

if(
$PHP_SELF == ""){ $PHP_SELF $HTTP_SERVER_VARS[PHP_SELF]; }



?>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<?PHP

if($_GET["id"]){

if(
$_GET["archive"])

$file file('cutenews-e/data/archives/'.$_GET["archive"].'.news.arch');

else 
$file file('cutenews-e/data/news.txt');

foreach(
$file as $key => $news){

$news_arr explode('|'$news);

if(
$news_arr[0] == $_GET["id"])

echo
'<title>'.$news_arr[2].'</title>';

}

}

else echo
'<title>Cutenews-e 2.8</title>';

?>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">

<style type="text/css">

<!--

.Estilo1 {

    font-size: 10px;

    font-family: Verdana, Arial, Helvetica, sans-serif;

    color: #FFFFFF;

}

body,td,th {

    font-family: Verdana, Arial, Helvetica, sans-serif;

    font-size: 11px;

    color: #666666;

}

body {    background-color: #e1e1e1;}



a:link {color: #003399;    text-decoration: none;}

a:visited {    text-decoration: none; color: #00309C;}

a:hover {text-decoration: underline; color: #FF0000;}

a:active {text-decoration: none; color: #00309C;

}

 A.clase1:visited {color:#FFFFFF; font-size: 14px; font-family:Verdana, Arial; font-weight: bold; text-decoration: none;}

    A.clase1:active {color:#FFFFFF; font-size: 14px; font-family:Verdana, Arial; font-weight: bold; text-decoration: none;}

    A.clase1:link {color:#FFFFFF; font-size: 14px; font-family:Verdana, Arial; font-weight: bold; text-decoration: none;}

    A.clase1:hover {color:#00ff00; font-size: 14px; font-family:Verdana, Arial; font-weight: bold;}

.Estilo2 {color: #00ff00; font-weight: bold; font-size:14px; }

.Estilo3 { color: #FFFFFF;    font-weight: bold;}

-->

</style>



</head>

<body bgcolor="#ffffff">



<!--Comienso funcion [POP] ¡¡¡NO TOCAR O ALTERAR!!!, necesario para agrandar las imagenes de cutenews-e-->

<script language="JavaScript" type="text/javascript">

<!--

function showPic(picname,popwid,pophei)

{

if (!popwid || !pophei) {

popwid = 560;

pophei = 500;

}



window.open('cutenews-e/popup_images.php?show=' + picname,'picture','width=' + popwid + ',height=' + pophei + ',resizable=yes,scrollbars=yes');

}

// -->

</script>

<!--Final funcion [POP] ¡¡¡NO TOCAR O ALTERAR!!!-->



<a name="inicio"></a>

<table width="85%" border="0" align="center">

  <tr>

    <td colspan="3" bgcolor="#005329" height="90"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="+4">Cutenews-e 2.8</font><br><br>

    <marquee><strong><font color="#FFFFFF"> Las noticias, comentarios y textos en esta pagina no son reales, están para comprobar como funciona el gestor de noticias Cutenews-e2.8. </font></strong> </marquee>  

    

    </td>

  

  </tr>

  <tr>

    <td height="593" valign="top" bgcolor="#005329" align="center">

    <table width="100%" border="0">

    <tr> <td width="100%" bgcolor="#004891" valign="top">

    <a href="index.php"><font color="#FFFFFF" face="Verdana, Arial" size="3" style="font-weight:bolder; ">Pagina principal</font></a><br>

    <hr noshade color="#00FF00" width="100%">

    <a href="../../?categoria=1" class="clase1">Categoria 1</a><br>

    <a href="../../?categoria=2" class="clase1">Categoria 2</font></a><br>

    <a href="../../?categoria=3" class="clase1">Categoria 3</a><br>

    <a href="../../?do=archives" class="clase1">Archivos</a><br>

    <a href="../../?do=search" class="clase1">Buscar</a><br>

    <hr noshade color="#00FF00" width="100%">

    </td></tr>

    

    

          <tr>

            <td bgcolor="#009933" align="center"><span class="Estilo3">Ultimas Noticias </span></td>

          </tr>

          <tr>

            <td bgcolor="#e1e1e1"><SCRIPT language=javascript src="http://mytoypage.net/cutenews-e/remote_headlines.php?number=5"></SCRIPT></td>

          </tr>

         <tr>

            <td width="100%"><div align="center"></div></td>

        </tr> 

      </table>

      

      

      <table width="100%"  border="0">

    <tr>

    <td bgcolor="#FFFFFF" align="center" width="100%"><span class="Estilo2">Estaticas</span></td>

  </tr>

  <tr>

    <td bgcolor="#FFFFFF" width="100%"></div><?PHP include("cutenews-e/stats.php"); ?></div>

    

    

    

    </td>

  </tr>

  <tr>

  <td class="Estilo3" width="100%"><div align="center">NOTICIAS POR CATEGORIAS</div></td>

  </tr>

    <tr>

    <td bgcolor="#FFFFFF" width="100%" align="center"><div>

    <?PHP error_reporting (E_ALL E_NOTICE); include("cutenews-e/show_count_category.php"); ?> </div>

    





</td>

  </tr>

  <tr>

  <td class="Estilo3" width="100%"><div align="center">ULTIMOS COMENTARIOS</div></td>

  </tr>

  <tr>

    <td bgcolor="#FFFFFF" width="100%"><div align="left"> 

      <?PHP include("cutenews-e/latest_comments.php"); ?>

</div></td>

  </tr>

  <tr>

    <td bgcolor="#FFFFFF"></td>

  </tr>

  

</table>

    </td>

    <td width="721" rowspan="2" valign="top">



<table width="100%"  border="0" cellpadding="6" cellspacing="10" bgcolor="#FFFFFF">

  <tr>

    <td>

    



    <?PHP

    

if(!$do){ $do $HTTP_GET_VARS['go']; }

if(
$do == "search" or $dosearch == "yes"){ $template "default"; include("cutenews-e/search.php"); }

elseif(
$do == "archives"){ $template "default"; include("cutenews-e/show_archives.php"); }

elseif(
$categoria== "1"){ $template "default"$category "1"$number "6"; include("cutenews-e/show_news.php"); }

elseif(
$categoria== "2"){  $template "default"$category "2"$number "6"; include("cutenews-e/show_news.php"); }

elseif(
$categoria== "3"){ $template "default"$category "3"$number "6"; include("cutenews-e/show_news.php"); }

else{ 
$number ="6"$template "default"; include("cutenews-e/show_news.php"); }



?>





</td>

  </tr>

</table>





    

    </td>

  </tr>

  <tr>

    <td width="241" bgcolor="#005329" valign="top">&nbsp;    </td>

</tr>

</table>

<table width="75%"  border="0" align="center">

  <tr>  

    <td width="65%">&nbsp;</td>  

  </tr>

  <tr>   

    <td><div align="center"><strong><a href="#inicio"><em>Arriba</em></a></strong></div></td>

 

  </tr>

</table>

<table width="100%"  border="0">

  <tr>

    <td width="100%" height="15">

    <br>

    <center> Desarrollado por: <a href="http://neohazard.net/foro/index.php/" target="_blank">Neohazard.net</a> y <a href="http://cutephp.com/" target="_blank">cutephp</a> </center></td>

  </tr>

</table>



</body>

</html>