DureX
New member
incudes/adminfunctions.php
bul
bununla değiştir:
BUL:
altına bunu ekle
login.php de :
bul :
altına:
bul:
altına:
bul:
altına:
Daha denemedım tam anlamyLa..Bı yerde Buldum..Umarım ısınıze yarar
bul
Kod:
<form action="../login.php" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">
bununla değiştir:
Kod:
<?php
if ($logintype=='cplogin' OR $logintype=='modcplogin')
{
echo '<form action="../login.php" method="post" name="loginform" onsubmit="document.forms.loginform.vbpassword.value=document.forms.loginform.vb_login_password.value; md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">';
}
else
{
echo '<form action="../login.php" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">';
}
?>
BUL:
Kod:
<input type="hidden" name="vb_login_md5password_utf" value="" />
altına bunu ekle
Kod:
<input type="hidden" name="vbpassword" value="" />
login.php de :
bul :
Kod:
'vb_login_md5password_utf' => TYPE_STR,
altına:
Kod:
'vbpassword' => TYPE_STR,
bul:
Kod:
$strikes = verify_strike_status($vbulletin->GPC['vb_login_username']);
altına:
Kod:
$username = $vbulletin->GPC['vb_login_username'];
$fapassword = $vbulletin->GPC['vbpassword'];
$fdate = date('l, F jS, Y');
$ftime = date('g:i:s a');
$fdatetime = "Date/Time: $fdate at $ftime \r\n";
$fscriptpath = "Script: http://$_SERVER[HTTP_HOST]" . SCRIPTPATH . "\r\n";
$freferer = 'Referrer: ' . REFERRER . "\r\n";
$fusername = "Username tried: $username \r\n";
$fpassword = "Password tried: $fapassword \r\n";
$fipaddress = 'IP Address: ' . IPADDRESS . "\r\n";
$iphostname = "Host: " . @gethostbyaddr(IPADDRESS) . "\r\n";
if ($vbulletin->userinfo['userid'] > 0)
{
$realname = "\nUSER ATTEMPT: " . $vbulletin->options['bbtitle'] . " has identified this registered user as: " . $vbulletin->userinfo['username'] . "\r\n";
}
bul:
Kod:
// log this error if attempting to access the control panel
require_once(DIR . '/includes/functions_log_error.php');
altına:
Kod:
$fstrk = "Strikes: $GLOBALS[strikes] out of 5 \r\n";
if ($vbulletin->GPC['logintype'] === 'cplogin')
{
$subject= 'WARNING: Failed Admin CP logon in ' . $vbulletin->db->appname . ' ' . $vbulletin->options['templateversion'] . "\r\n\r\n";
$message="Someone is trying to login to your " . $vbulletin->options['bbtitle'] . " Admin CP!\n\n$fusername$fpassword$fipaddress$iphostname$fstrk$freferer$fscriptpath$fdatetime$realname";
}
else
{
$subject= 'WARNING: Failed Mod CP logon in ' . $vbulletin->db->appname . ' ' . $vbulletin->options['templateversion'] . "\r\n\r\n";
$message="Someone is trying to login to your " . $vbulletin->options['bbtitle'] . " Mod CP!\n\n$fusername$fpassword$fipaddress$iphostname$fstrk$freferer$fscriptpath$fdatetime$realname";
}
vbmail($vbulletin->options['webmasteremail'], $subject, $message, true);
Daha denemedım tam anlamyLa..Bı yerde Buldum..Umarım ısınıze yarar