close× Call Us +49 (1805) 01 29 59

Thread Author: 8eww
Thread ID: 113
Thread Info
Es gibt 5 Beiträge zu diesem Thema, und es wurde 2683 mal angesehen.
 Thema drucken
profile.php ..... datenbank auslesen geht nicht
8eww
habe mir ne eigene profile.php gemacht die wunderbar geht nun wollte ich die auf meine andere seite machen und es geht ne wirklich ..... das geb.tag wird ne ausgelesen sondern als 0 dargestellt und auch die kontakt infos werden ne ausgelesen ....

hier mal der code

Code

<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";

//////////////////////USER ONLINE OFFLINE FARBE 1 ANFANG//////////////////////

$status = 1 ;

//////////////////////USER ONLINE OFFLINE FARBE 1 ENDE//////////////////////

//////////////////////URL ERWEITERUNG 1 ANFANG//////////////////////
if (isset($statistik) && isNum($statistik)) {
   $lookup = $statistik;
} elseif (isset($kontakt) && isNum($kontakt)) {
   $lookup = $kontakt;
}

if (isset($lookup)) {
   if (!isset($lookup) || !isNum($lookup)) fallback("index.php");

//////////////////////URL ERWEITERUNG  ENDE//////////////////////

//////////////////////BeziehungsMOD ANFANG//////////////////////
//////////////////////BeziehungsMOD ENDE//////////////////////

//////////////////////USER ONLINE OFFLINE FARBE 2 ANFANG//////////////////////   
   $lastseen = time() - $data['user_lastvisit'];
   if($lastseen < 10) {
      $lastseen = "#00CC00";
   } else {
      $lastseen = "#FF0000";
   }
//////////////////////USER ONLINE OFFLINE FARBE 2 ENDE//////////////////////

//////////////////////Profil Counter ANFANG//////////////////////
//////////////////////Profil Counter ENDE//////////////////////

opentable($locale['420']);

//////////////////////HAUPTTEIL PROFIL ANFANG//////////////////////

echo "<table align='center' cellpadding='0' cellspacing='0' width='600' class='tbl-border'>

<tr>
<td align='center' width=150 height=150 rowspan='5' class='tbl1'>\n";

   echo ($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'>" : $locale['u046'])."</td>
<td width=100 class='tbl1' style='white-space:nowrap'><small>Nick:</small></td>
<td class='tbl1'>\n";
if ($status == 1){
   echo "<font color='$lastseen'><b>".$data['user_name']."</b></font>\n";
} else {
   echo "<b>".$data['user_name']."</b>\n";
}
echo"</td>
</tr>
<tr>
<td width=100 class='tbl1' style='white-space:nowrap'><small>Geburtstag:</small></td>
<td class='tbl1'>";
   if ($data['user_birthdate'] != "0000-00-00") {
      $months = explode("|", $locale['months']);
      $user_birthdate = explode("-", $data['user_birthdate']);
      echo $months[number_format($user_birthdate['1'])]." ".number_format($user_birthdate['2'])." ".$user_birthdate['0'];
   } else {
      echo $locale['u048'];
   }
   echo "</td>
</tr>
<tr>
<td width=100 class='tbl1' style='white-space:nowrap'><small>Status</small></td>
<td class='tbl1'><b></b></td>
</tr>
</tr>
</table>\n";
tablebreak();
tablebreak();
tablebreak();
tablebreak();
tablebreak();
tablebreak();
tablebreak();

// TABSANSICHT
echo "<table align='center' width=600 cellpadding='0' cellspacing='0' class='tbl-border'>
<tr>
   <td width=200 class='".(isset($lookup) ? "tbl1" : "tbl2")."' align='center'><a href='".FUSION_SELF."?lookup=".$data['user_id']."' title='Übersicht'>Übersicht</a></td>
   <td width=200 class='".(isset($statistik) ? "tbl1" : "tbl1")."' align='center'><a href='".FUSION_SELF."?statistik=".$data['user_id']."' title='Statistik'>Statistik</a></td>
   <td width=200 class='".(isset($kontakt) ? "tbl1" : "tbl1")."' align='center'><a href='".FUSION_SELF."?kontakt=".$data['user_id']."' title='Kontakt'>Kontakt</a></td>
</tr>
</table>";
// TABSANSICHT

tablebreak();
tablebreak();
tablebreak();
tablebreak();
tablebreak();

//////////////////////HAUPTTEIL PROFIL ENDE//////////////////////

//////////////////////URL ERWEITERUNG 2 ANFANG//////////////////////

   if (!isset($statistik) && !isset($kontakt) && isset($lookup) && isNum($lookup)) {

//////////////////////URL ERWEITERUNG 2 ENDE//////////////////////

//////////////////////ERWEITERTE PROFILFELDER//////////////////////
//////////////////////ERWEITERTE PROFILFELDER//////////////////////
      
//////////////////////Kontakt ANFANG//////////////////////


   } elseif (isset($kontakt) && isNum($kontakt)) {
      echo "<table width=\"600\" border=\"0\">
      <tr>
         <td width=50></td>
         <td>".$locale['u011']."</td>
         <td>".($data['user_icq'] ? $data['user_icq'] : $locale['u048'])."</td>
         <td width=50></td>
         <td>Nachicht:</td>
         <td  class='tbl1'>\n";
         if (iMEMBER && $data['user_id'] != $userdata['user_id']) {
         echo "<a href='messages.php?msg_send=".$data['user_id']."' title='".$locale['u060']."'>senden</a>\n";
      }
      echo "</td>
      </tr>
      <tr><td></td></tr>
      <tr>
         <td width=50></td>
         <td>".$locale['u012']."</td>
         <td>".($data['user_msn'] ? $data['user_msn'] : $locale['u048'])."</td>
         <td width=50></td>
         <td>Email:</td>
         <td  class='tbl1'>\n";
         if ($data['user_hide_email'] != "1" || iADMIN) {
         echo "<a href='mailto:".str_replace("@","&#64;",$data['user_email'])."' title='".str_replace("@","&#64;",$data['user_email'])."'>".$data['user_email']."</a>\n";
      }
      echo "</td>
      </tr>
      <tr><td></td></tr>
      <tr>
         <td width=50></td>
         <td>".$locale['u013']."</td>
         <td>".($data['user_yahoo'] ? $data['user_yahoo'] : $locale['u048'])."</td>
         <td width=50></td>
         <td>Web:</td>
         <td  class='tbl1'>\n";
         if ($data['user_web']) {
         $urlprefix = !strstr($data['user_web'], "http://") ? "http://" : "";
         echo "<a href='".$urlprefix.$data['user_web']."' title='".$urlprefix.$data['user_web']."' target='_blank'>".$data['user_web']."</a>\n";
      }
         echo"</td>
      </tr>
      <tr><td></td></tr>
      <tr>
         <td width=50></td>
         <td>".$locale['u021']."</td>
         <td>".($data['user_aim'] ? $data['user_aim'] : $locale['u048'])."</td>
      </tr>
   </table>";

//////////////////////Kontakt ENDE//////////////////////

//////////////////////Statistik ANFANG//////////////////////

   } elseif (isset($statistik) && isNum($statistik)) {
      echo "<table width=\"600\" border=\"0\">
      <tr>
         <td witdh=50></td>
         <td width=200>Profilaufrufe:</td>
         <td class='tbl1' width=300></td>
      </tr>
      <tr>
         <td witdh=50></td>
         <td width=200>zuletzt Online:</td>
         <td class='tbl1' width=300>".($data['user_lastvisit'] != 0 ? showdate("shortdate", $data['user_lastvisit']) : $locale['u049'])."</td>
      </tr>
      <tr>
         <td witdh=50></td>
         <td width=200>Mitglied seit:</td>
         <td class='tbl1' width=300>".showdate("shortdate", $data['user_joined'])."</td>
      </tr>
      <tr>
         <td witdh=50></td>
         <td width=200>Shoutbox Beiträge</td>
         <td class='tbl1' width=300>".number_format(dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'"))."</td>   
      </tr>
      <tr>
         <td witdh=50></td>
         <td width=200>Forum Beiträge</td>
         <td class='tbl1' width=300>".number_format(dbcount("(comment_id)", "comments", "comment_name='".$data['user_id']."'"))."</td>   
      </tr>
      <tr>
         <td witdh=50></td>
         <td width=200>Kommentare</td>
         <td class='tbl1' width=300>".number_format($data['user_posts'])."</td>   
      </tr>
   </table>";

//////////////////////Statistik ENDE//////////////////////


   }
} else {
   redirect(BASEDIR."index.php");
}

closetable();

require_once "side_right.php";
require_once "footer.php";
?>


link wo es geht
testuser 123456


link wo es nicht geht
testuser 123456
Bearbeitet von 8eww am 16.10.2008 00000010 11:56
 
SC-Ad-Bot
 
Gr@n@dE
Klingt logisch wenn der Zugriff verweigert wird das es nicht geht Wink
Gruß Ralf
__________________________________
KEIN Support per Mail, ICQ oder PN !
 
8eww
wie meinst du das der zugriff wird verweigert ???? es ist auch das problem das wenn icch übers admin menü nen user hinzufüge das der de user id 1 bekommt .....
 
Gr@n@dE
Da wo steht "link wo es nicht geht" da bekomme ich die Fehlermeldung Zugriff verweigert.

Den Fehler den du mit den User hinzufügen hast sagt mir schon das du deine User Tabelle höchstwahrscheinlich abschmieren lassen. Denn sowas ist geht nicht ohne Fehler Wink
Gruß Ralf
__________________________________
KEIN Support per Mail, ICQ oder PN !
 
8eww
so auf der url geht es ne:

http://8eweltwunder.8e.funpic.de/test...stsite_v6/

testuser 123456


sobald ich die original profile.php wieder drinne hab geht es auch wieder .... woran liegt das nur

so ich ahbe grade meine variante rein gemacht bevor ralf die mir bearbeite hatte

meine variante:download

ralf seine(bei der geht es ne: download
Bearbeitet von 8eww am 16.10.2008 00000010 12:32
 
Springe ins Forum:
Heiseclan