<?php$ID = abs((int) $_GET['ID']);$q = $db->query("SELECT * FROM dd_users WHERE userid='{$ID}'");if(!$db->num_rows($q)){ echo 'No user exists with that username and ID.'; exit;}$ir = $db->fetch_row($q);echo '<table width="80%" border="0" align="center"> <tr> <td>Username</th> <td>'.$ir['username'].'</td> </tr> <tr> <td>Plays</td> <td>'.$ir['plays'].'</td> </tr> <tr> <td></td> <td><a href="'.$domain.'/index.php?action=messages&case=compose&ID='.$ir['userid'].'">Message User</a></td> </tr> </table>';?>
case 'search': include ('pages/search.php'); break;
case 'viewprofile': include ('pages/viewprofile.php'); break;
<a href="#">View Profile</a>
<a href="'.$domain.'/profile/'.$ir['userid'].'-'.$ir['username'].'.html">View Profile</a>
RewriteRule ^profile/([^/]*)-([^/]*)\.html$ /index.php?action=viewprofile&ID=$1&name=$2 [L]
<?phpfunction writebody() {global $db, $domain, $sitename, $domain, $template, $gamesfolder, $thumbsfolder, $limitboxgames, $seo_on, $blogentriesshown, $enabledcode_on, $comments_on, $directorypath, $autoapprovecomments, $gamesonpage, $abovegames, $belowgames, $showwebsitelimit, $supportemail, $showblog, $blogentriesshown, $blogcharactersshown, $blogcommentpermissions, $blogcommentsshown, $blogfollowtags, $blogcharactersrss, $usrdata, $userid;}$ID = abs((int) $_GET['ID']);$q = $db->query("SELECT * FROM dd_users WHERE userid='{$ID}'");if(!$db->num_rows($q)){ echo 'No user exists with that username and ID.'; exit;}$ir = $db->fetch_row($q);echo '<table width="89%" align="center"> <tr> <td colspan=\'4\' class=\'header\'>Profile</td> </tr><tr> <td>Username</td> <td>'.$ir['username'].'</td> </tr> <tr> <td>Plays</td> <td>'.$ir['plays'].'</td> </tr> <tr> <td></td> <td><a href="'.$domain.'/index.php?action=messages&case=compose&ID='.$ir['userid'].'">Message User</a></td> </tr> </table>';?>
case 'viewprofile': include ('templates/'.$template.'/viewprofile.php'); break;
Anyone able to help with this?
<?phpfunction writebody() {global $db, $domain, $sitename, $domain, $template, $gamesfolder, $thumbsfolder, $limitboxgames, $seo_on, $blogentriesshown, $enabledcode_on, $comments_on, $directorypath, $autoapprovecomments, $gamesonpage, $abovegames, $belowgames, $showwebsitelimit, $supportemail, $showblog, $blogentriesshown, $blogcharactersshown, $blogcommentpermissions, $blogcommentsshown, $blogfollowtags, $blogcharactersrss, $usrdata, $userid;$ID = abs((int) $_GET['ID']);$q = $db->query("SELECT * FROM dd_users WHERE userid='{$ID}'");if(!$db->num_rows($q)){ echo 'No user exists with that username and ID.'; exit;}$userid = $usrdata['userid'];$ir = $db->query(sprintf('SELECT * FROM dd_users WHERE userid=\'%u\'', $userid));$r2 = $db->fetch_row($ir);$username = $r2['username'];$email = $r2['email'];$plays = $r2['plays'];$newsletter = $r2['newsletter'];$aim = $r2['aim'];$icq = $r2['icq'];$msn = $r2['msn'];$yim = $r2['yim'];$location = $r2['location'];$job = $r2['job'];$website = $r2['website'];$link1 = $r2['link1'];$link2 = $r2['link2'];$link3 = $r2['link3'];$link4 = $r2['link4'];$link5 = $r2['link5'];$link6 = $r2['link6'];$link7 = $r2['link7'];$link8 = $r2['link8'];$sex = $r2['sex'];$interests = $r2['interests'];$bio = $r2['bio'];$avatar = $r2['avatar'];$avatarfile = $r2['avatarfile'];$ir = $db->fetch_row($q);if ( $newsletter == "yes" ) { $nsel = "selected" ; } ;if ( $sex == "m" ) { $msel = "selected" ; } ;if ( $sex == "f" ) { $fsel = "selected" ; } ;if ($avatar == "1" ) { $avatarfileurl = '<img src=\''.$domain.'/avatars/'.$avatarfile.'\' height=\'100\' width=\'100\'>'; } else { $avatarfileurl = '<img src=\''.$domain.'/avatars/default.jpg\' height=\'100\' width=\'100\'>'; }; echo ' <table width="89%" align="center" class=\'content\'> <tr> <td colspan=\'4\' class=\'header\'>Profile</td> </tr><tr> <td colspan=\'4\' class=\'content\' style=\'padding:3px;\'>'.$avatarfileurl.' </td></tr><tr> <td>Username</td> <td>'.$ir['username'].'</td> </tr> <tr> <td>Plays</td> <td>'.$ir['plays'].'</td> </tr> <tr> <td>Website</td> <td>'.$ir['website'].'</td> </tr> <tr> <td>Sex</td> <td>'.$ir['sex'].'</td> </tr> <tr> <td>Interests</td> <td>'.$ir['interests'].'</td> </tr> <tr> <td>Bio</td> <td>'.$ir['bio'].'</td> </tr> <tr> <td></td> <form action=\''.$domain.'/index.php?action=messages&case=compose\' method=\'POST\'> <tr> <td class=\'content\' colspan=\'2\' align=\'center\'><input type=\'submit\' name=\'submit\' class=\'loginstyle\' value=\'Message User\'></td> </tr> </form> </tr> </table>';}?>
Warning: include() [function.include]: Failed opening '/includes/counter.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a7508917/public_html/templates/default/footer.php on line 59