Ver Mensaje Individual
  #11 (permalink)  
Antiguo 25/11/2009, 07:02
Avatar de destor77
destor77
 
Fecha de Ingreso: noviembre-2004
Ubicación: Gálvez, Santa Fe, Argentina
Mensajes: 2.654
Antigüedad: 19 años, 5 meses
Puntos: 43
Respuesta: Logueo en código phpnuke

en el archivo header.php tenes esto:
Código php:
Ver original
  1. <?php
  2.  
  3. /************************************************************************/
  4. /* PHP-NUKE: Advanced Content Management System                         */
  5. /* ============================================                         */
  6. /*                                                                      */
  7. /* Copyright (c) 2002 by Francisco Burzi                                */
  8. /* http://phpnuke.org                                                   */
  9. /*                                                                      */
  10. /* This program is free software. You can redistribute it and/or modify */
  11. /* it under the terms of the GNU General Public License as published by */
  12. /* the Free Software Foundation; either version 2 of the License.       */
  13. /************************************************************************/
  14. /* NUKE ET: Modificaci� del PHP-Nuke                                   */
  15. /* ==================================                                   */
  16. /*                                                                      */
  17. /* Modificaciones y creaciones exclusivas de la ET creadas por Truzone  */
  18. /*                                                                      */
  19. /* Copyright (c) 2004 por Truzone                                       */
  20. /* http://www.truzone.org                                               */
  21. /************************************************************************/
  22.  
  23. if(!defined('NUKE_ET')) {
  24.     Header("Location: error.php?op=e403");
  25.     die();
  26. }
  27.  
  28. require_once("mainfile.php");
  29.  
  30. global $google_tap, $name, $prefix, $db;
  31.  
  32. if($google_tap==1){
  33.     ob_start();
  34. }
  35.  
  36. ##################################################
  37. # Include some common header for HTML generation #
  38. ##################################################
  39.  
  40. $header = 1;
  41.  
  42. function head() {
  43.     global $slogan, $sitename, $module_name, $home, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle, $precarga, $charset;
  44.     $ThemeSel = get_theme();
  45.     include("themes/$ThemeSel/theme.php");
  46.     echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
  47.     echo "<html>\n";
  48.     echo "<head>\n";
  49.     echo "<title>$sitename $pagetitle</title>\n";
  50.     include("includes/meta.php");
  51.     include("includes/javascript.php");
  52.      if(file_exists("modules/$module_name/javascript.php")){
  53.      include("modules/$module_name/javascript.php");
  54.      }
  55.     if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
  56.      echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
  57.     }
  58.  
  59.  
  60.     echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
  61.     echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
  62.     include("includes/my_header.php");
  63.     echo "\n\n\n</head>\n\n";
  64.     themeheader();
  65. }
  66.  
  67.  
  68. global $home,$act_nuke,$admin,$prefix,$user_prefix,$cookie,$user,$db,$guardar_estats;
  69.  
  70. if(($act_nuke==0) AND (!is_admin($admin))){
  71. Header("Location: error.php?op=off");
  72. die();
  73. }
  74.  
  75.  
  76. online();
  77.  
  78. head();
  79.  
  80. if($guardar_estats=='1'){
  81.  
  82. include("includes/counter.php");
  83. }else{
  84. global $ora, $oral, $user, $cookie, $admin, $prefix, $db, $nukeurl, $REMOTE_ADDR, $HTTP_SERVER_VARS, $HTTP_USER_AGENT;
  85. }
  86.  
  87. if(is_user($user)){
  88.     cookiedecode($user);
  89.     $resul = $db->sql_query("select * from ".$prefix."_mens_privados where estado='1' and enviado_a='$cookie[0]'");
  90.     $num = $db->sql_numrows($resul);
  91.     $num = intval($num);
  92.         if($num >= 1){
  93.         echo "<center><table width=\"90%\" bgcolor='red'><tr><td align='center'>"
  94.         . "<h3>Tienes un nuevo mensaje privado, para acceder a tu bandeja de "
  95.         . "entrada click <a href=\"modules.php?name=Mensajes_Privados\">aqui</a></h3>"
  96.         . "</td></tr></table></center>";
  97.         $db->sql_query("update ".$prefix."_mens_privados set estado='5' where estado='1' and enviado_a='$cookie[0]'");
  98.         }
  99. }
  100. if ($home == 1) {
  101.     message_box();
  102.     blocks(Center);
  103. }
  104.  
  105. ?>

antes de esta linea :
Código php:
Ver original
  1. if(is_user($user)){

agrega esto:
Código php:
Ver original
  1. $user="nombredeusuario";

si sigue sin salir revisa el index.php del you_account como funciona. Más pistas no te puedo dar, por lo menos gratis jejeje