Hackhell Forum´una Hosgeldiniz.
Bu Foruma yaptiğiniz ilk ziyaretiniz ise, Lütfen öncelikle Yardim kriterlerini okuyunuz.
Forumumuzda bilgi alisverisinde bulunabilmeniz için öncelikle Kayit olmalisiniz. Üye olmayanlar Forumumuzdan hiçbir sekilde aktivite uygulayamaz, Mesaj yazamaz, Konu açamaz, Eklenti indiremez. Forumumuzu tam anlamiyla kullanmak için Üye olabilirsiniz.. Üye olmak için tiklayin.
Eğer install yaptıktan sonra hack çalışmazsa Aşağıdaki editlemeleri yapın...
member.php dosyasında alttakini bulun;
PHP- Kodu:
$userperms = cache_permissions($userinfo, false);
hemen altına aşağıdakini ekleyin;
PHP- Kodu:
//####################################
//Webpage and Guestbook Addon - v1.0.4
//For vBulletin version 3.0.x
//####################################
//Required to force userid in a DEFINE. For some weird reason $userid sometimes changes value
if($u) {
DEFINE("GBUSERID", $u);
} elseif($userid) {
DEFINE("GBUSERID", $userid);
} else {
//Do something, but not sure what yet...
}
//THIS FILE CONTROLS COLORS AND LANGUAGE
require_once("./webgbset.php");
//Required for permissions check
require_once('./includes/functions_misc.php');
//WEBPAGE
//Quick edit feature for admins
if ($_POST['do'] == 'quickedit' && $permissions['adminpermissions']) {
//Update hits
$updsql = mysql_query("UPDATE user_webpage SET hits = $row[hits]+1 WHERE userid = $row[userid]");
} //End check if content exist
} //End while
} //End of Webpage-script
else
{ //Usergroup not allowed to use webpage, turn it off
$webpage['webpage_onoff'] = "off";
$wghtml['webpagewidth'] = "100%";
}
// *************************************************************
// PROCESS THE MESSAGE AND INSERT IT INTO THE DATABASE
$errors = array(); // catches errors
$recipients = array(); // people that $bbuserinfo has put into the recipient box
$notfound = array(); // people from the recipient box that are not found in the db
$checkedusers = array(); // people from the recipient box that were found in the db
$sendto = array(); // people that will actually receive this message
$tostring = array(); // the array of users who will appear in the pmtext record
// check for valid users
$pm['recipients'] = vbstrtolower(trim($pm['recipients']));
// query recipients
$checkusers = $DB_site->query("
SELECT user.*, usertextfield.*
FROM " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
WHERE username='" . implode('\' OR username=\'', $recipients) . "'
ORDER BY user.username
");
// build array of checked users
while ($checkuser = $DB_site->fetch_array($checkusers))
{
$checkuser = array_merge($checkuser, convert_bits_to_array($checkuser['options'], $_USEROPTIONS));
$arrkey = vbstrtolower($checkuser['username']);
$perms = fetch_permissions(0, $checkuser['userid'], $checkuser);
if ($perms['pmquota'] < 1) // can't use pms
{
if ($checkuser['options'] & $_USEROPTIONS['receivepm'])
{ // This will cause the 'can't receive pms' error below to be triggered
$checkuser['options'] -= $_USEROPTIONS['receivepm'];
}
}
$checkedusers["$arrkey"] = $checkuser;
}
// run through recipients to check if we can insert the message
foreach ($checkedusers AS $username => $user)
{
if (!($user['options'] & $_USEROPTIONS['receivepm']))
{
// recipient has private messaging disabled
eval('$errors[] = "' . fetch_phrase('pmrecipturnedoff', PHRASETYPEID_ERROR) . '";');
}
else
{
// don't allow a tachy user to sends pms to anyone other than himself
if (in_coventry($bbuserinfo['userid'], true) AND $user['userid'] != $bbuserinfo['userid'])
{
$tostring["$user[userid]"] = $user['username'];
continue;
}
else if (strpos(" $user[ignorelist] ", " $bbuserinfo[userid] ") !== false)
{
// recipient is ignoring sender
if ($permissions['adminpermissions'] & CANCONTROLPANEL)
{
$sendto["$username"] = true;
$tostring["$user[userid]"] = $user['username'];
}
else
{
// bbuser is being ignored by recipient - do not send, but do not error
$tostring["$user[userid]"] = $user['username'];
continue;
}
}
else
{
cache_permissions($user, false);
if ($user['permissions'] < 1)
{
// recipient has no pm permission
eval('$errors[] = "' . fetch_phrase('pmusernotallowed', PHRASETYPEID_ERROR) . '";');
}
else
{
if ($user['pmtotal'] >= $user['permissions']['pmquota'])
{
// recipient is over their pm quota, what access do they have?
if ($permissions['adminpermissions'] & CANCONTROLPANEL)
{
$sendto["$username"] = true;
$tostring["$user[userid]"] = $user['username'];
}
else if ($user['usergroupid'] != 3 AND $user['usergroupid'] != 4)
{
$touserinfo = &$user;
&nb