عرض مشاركة واحدة
قديم 28-12-06, 12:55 PM   #1
شـــــاعر

 











 

وحيد الجزيرة غير متواجد حالياً

وحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really niceوحيد الجزيرة is just really nice

افتراضي هاك منع العضو من التسجيل بعضويتين حيث يكتشف الآي بي

سوف نقوم بالتعديل على 1 ملف وهو :-
1- register.php
ونقوم بإضافة 1 تمبلت باسم :-
error_ipregistered

وطريقة التركيب سهله جداً إليك الطريقة :-
~~~~~~~~~~~~~~~~~~~~~~~

ادخل ملف register.php الموجود تحت مجلد المنتدى

ابحث عن الكود التالي :-
~~~~~~~~~~~~~~

eval(print_standard_error('error_alreadyregistered '));
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

أسفل منه أضف التالي :-
~~~~~~~~~~~~~~

// IP Address check
$keys = array('ipaddress');
foreach ($keys as $key) {
$result= mysql_query("SELECT * FROM adminlog WHERE ipaddress='$ipaddress'");
if(mysql_num_rows($result) != 0) {
$session[$key] = (mysql_result($result,0,$key));
eval('print_output("' . fetch_template('error_ipregistered') . '");');
exit;
}
}
// IP Address check

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

اعمل تمبلت جديد باسم error_ipregistered وضع به الكود التالي :-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta **********="Pragma" content="no-cache" />
<meta **********="Expires" content="-1" />
<meta **********="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
$headinclude
</head>

<body>
$header
$navbar
<center>
<table width="50%" border="1" bgcolor="E1E4F2">
<tr>
<td>
عذراً. أنت مسّجل لدينا بعضوية أخرى .. وعنوان الآي بي الخاص بك هو $ipaddress لا يمكنك التّسجيل بعضويتين في المنتدى . إذا كنت تعاني من مشكلة اتصل بـ <a href="mailto:webmaster@yourname.com ">إدارة المنتدى</a>

</div>
</td>
</tr>
</table>
</center>
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->

$footer

</body>
</html>

~~~~~~~~~~~~~~~~~~~~~~~

احفظ التغيرات التي أجريتها على تمبلت error_ipregistered




التوقيع :
    رد مع اقتباس