Version: , by CaitSith4343
Developer Last Online: Dec 2006
Version: Unknown
Rating:
Released: 06-09-2005
Last Update: Never
Installs: 0
No support by the author.
I dont really know where this belongs but I will post it here because the file in question was altered when I installed this mod. Anyways, whenever I try and click on one of my members profile, I just get a page with a ton of text and code on it. Whats that problem?
Thanks,
CaitSith4343
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Here is a bunch of code from the site after I click on someone's username. I edited my license # out because I wasnt sure if that was a securtiy risk of not.
/*================================================= =====================*\ || ################################################## ################## || || # vBulletin 3.0.7 - Licence Number EDITED|| # ---------------------------------------------------------------- # || || # Copyright ?2000?2005 Jelsoft Enterprises Ltd. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || ################################################## ################## || \*================================================ ======================*/ // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'member'); define('BYPASS_STYLE_OVERRIDE', 1); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array('wol', 'user'); // get special data templates from the datastore $specialtemplates = array( 'smiliecache', 'bbcodecache', 'rankphp' ); // pre-cache templates used by all actions $globaltemplates = array( 'MEMBERINFO', 'memberinfo_customfields', 'memberinfo_membergroupbit', 'im_aim', 'im_icq', 'im_msn', 'im_yahoo', 'bbcode_code', 'bbcode_html', 'bbcode_php', 'bbcode_quote', 'postbit_reputation', 'userfield_checkbox_option', 'userfield_select_option' ); // pre-cache templates used by specific actions $actiontemplates = array(); if ($_REQUEST['do'] == 'vcard') { $noheader = 1; } // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); require_once('./includes/functions_showthread.php'); require_once('./includes/functions_user.php'); // ################################################## ##################### // ######################## START MAIN SCRIPT ############################ // ################################################## ##################### if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS)) { print_no_permission(); } /* if ($_REQUEST['do'] == 'quickinfo') { $quick = true; } else { $quick = false; } */ globalize($_REQUEST, array( 'find' => STR, 'threadid' => INT, 'forumid' => INT, 'moderatorid' => INT, 'userid' => INT, 'username' => STR )); if ($find == 'firstposter' AND $threadid) { $threadinfo = verify_id('thread', $threadid, 1, 1); if (!$threadinfo['visible'] OR $threadinfo['isdeleted']) { $idname = $vbphrase['thread']; eval(print_standard_error('error_invalidid')); } $userid = $threadinfo['postuserid']; } else if ($find == 'lastposter' AND $threadid) { $threadinfo = verify_id('thread', $threadid, 1, 1); if (!$threadinfo['visible'] OR $threadinfo['isdeleted']) { $idname = $vbphrase['thread']; eval(print_standard_error('error_invalidid')); } $getuserid = $DB_site->query_first(" SELECT post.userid FROM " . TABLE_PREFIX . "post AS post LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND deletionlog.type = 'post') WHERE threadid = $threadinfo[threadid] AND visible = 1 AND deletionlog.primaryid IS NULL ORDER BY dateline DESC LIMIT 1 "); $userid = $getuserid['userid']; } else if ($find == 'lastposter' AND $forumid) { $foruminfo = verify_id('forum', $forumid, 1, 1); $forumid = $foruminfo['forumid']; // prevent a small backdoor where anyone could see who the last poster in ANY forum was $_permsgetter_ = 'lastposter fperms'; $forumperms = fetch_permissions($forumid); if (!($forumperms & CANVIEW)) { print_no_permission(); } // check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); require_once('./includes/functions_misc.php'); $forumslist = $forumid . ',' . fetch_child_forums($forumid); $thread = $DB_site->query_first(" SELECT threadid FROM " . TABLE_PREFIX . "thread AS thread LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread') WHERE forumid IN ($forumslist) AND visible = 1 AND (sticky = 1 OR sticky = 0) AND lastpost >= " . ($foruminfo['lastpost'] - 30) . " AND open <> 10 AND deletionlog.primaryid IS NULL ORDER BY lastpost DESC LIMIT 1 "); if (!$thread) { $idname = $vbphrase['user']; eval(print_standard_error('error_invalidid')); } $getuserid = $DB_site->query_first(" SELECT post.userid FROM " . TABLE_PREFIX . "post AS post LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND deletionlog.type = 'post') WHERE threadid = $thread[threadid] AND visible = 1 AND deletionlog.primaryid IS NULL ORDER BY dateline DESC LIMIT 1 "); $userid = $getuserid['userid']; } else if ($find == 'moderator' AND $moderatorid) { $moderatorinfo = verify_id('moderator', $moderatorid, 1, 1); $userid = $moderatorinfo['userid']; } else if ($username != '' AND $userid == 0) { $user = $DB_site->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . addslashes(htmlspecialchars_uni($username)) . "'"); $userid = $user['userid']; } if (!$userid) { eval(print_standard_error('error_unregistereduser' )); } $userinfo = verify_id('user', $userid, 1, 1, 15); if ($userinfo['usergroupid'] == 4 && !($permissions['adminpermissions'] & CANCONTROLPANEL)) { print_no_permission(); } if ($_REQUEST['do'] == 'vcard' AND $bbuserinfo['userid'] AND $userinfo['showvcard']) { // source: http://www.ietf.org/rfc/rfc2426.txt $text = "BEGIN:VCARD\r\n"; $text .= "VERSION:2.1\r\n"; $text .= "N:;$userinfo[username]\r\n"; $text .= "FN:$userinfo[username]\r\n"; $text .= "EMAIL;PREF;INTERNET:$userinfo[email]\r\n"; if (!empty($userinfo['birthday'][7])) { $birthday = explode('-', $userinfo['birthday']); $text .= "BDAY:$birthday[2]-$birthday[0]-$birthday[1]\r\n"; } if (!empty($userinfo['homepage'])) { $text .= "URL:$userinfo[homepage]\r\n"; } $text .= 'REV:' . date('Y-m-d') . 'T' . date('H:i:s') . "Z\r\n"; $text .= "END:VCARD\r\n"; $filename = $userinfo['userid'] . '.vcf'; header("Content-Disposition: attachment; filename=$filename"); header('Content-Length: ' . strlen($text)); header('Connection: close'); header("Content-Type: text/x-vCard; name=$filename"); echo $text; exit; } // display user info $userperms = cache_permissions($userinfo, false); if ((($userid == $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOWNUSERNOTES) OR ($userid != $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOTHERSUSERNOTES)) AND $userperms['genericpermissions'] & CANBEUSERNOTED) { $show['usernotes'] = true; $usernote = $DB_site->query_first(" SELECT MAX(dateline) AS lastpost, COUNT(*) AS total FROM " . TABLE_PREFIX . "usernote AS usernote WHERE userid = $userinfo[userid] "); $show['usernotetotal'] = iif($usernote['total'], true, false); $usernote['lastpostdate'] = vbdate($vboptions['dateformat'], $usernote['lastpost'], true); $usernote['lastposttime'] = vbdate($vboptions['timeformat'], $usernote['lastpost'], true); } else { $show['usernotes'] = false; } // PROFILE PIC $show['profilepic'] = iif($userinfo['profilepic'] AND ($permissions['genericpermissions'] & CANSEEPROFILEPIC OR $bbuserinfo['userid'] == $userinfo['userid']), true, false); // CUSTOM TITLE if ($userinfo['customtitle'] == 2) { $userinfo['usertitle'] = htmlspecialchars_uni($userinfo['usertitle']); } // LAST ACTIVITY AND LAST VISIT if (!$userinfo['invisible'] OR ($permissions['genericpermissions'] & CANSEEHIDDEN) OR $userinfo['userid'] == $bbuserinfo['userid']) { $show['lastactivity'