Hướng dẫn tự Null 1 bản vBulletin

  • Thread starter Thread starter congtust24
  • Start date Start date
congtust24

congtust24

Well-Known Member
Vip
Bài viết này xin chia sẻ với các bạn phương pháp để có thể tự Null 1 bản vBulletin. Nào bắt đầu nhé, xin lưu ý là bạn hãy thay thế đoạn "license_key" bằng số license key của bạn, ở đây tôi dùng trong ví dụ là "Anh2_GDV" . Đầu tiên ta mở file admincp/index.php rồi tìm:
PHP:
  // ################################ MAIN FRAME #############################  if ($_REQUEST['do'] == 'home') {  print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);  // there have been problems reported with fsockopen() in some PHP versions. // this should work around it though if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1) { $fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3); } else { $fp = @fopen('http://version.vbulletin.com', 'r'); } if ($fp) { fclose($fp); ?> http://version.vbulletin.com/versioncheck.js"> http://version.vbulletin.com/version.js?id=Anh2_GDV">      thay thế bằng đoạn sau:  [php]  // ################################ MAIN FRAME #############################  if ($_REQUEST['do'] == 'home') {  print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);
tiếp tục tìm:
PHP:
  print_label_row($vbphrase['useful_links'], '   -- ' . $vbphrase['useful_links'] . ' --' . construct_select_options(array( 'vBulletin' => array( 'http://www.vbulletin.com/' => $vbphrase['home_page'] . ' (vBulletin.com)', 'http://www.vbulletin.com/members/' => $vbphrase['members_area'], 'http://www.vbulletin.com/forum/' => $vbphrase['community_forums'], 'http://www.vbulletin.com/docs/html/' => $vbphrase['reference_manual']
thay thế bằng đoạn sau:
PHP:
  print_label_row($vbphrase['useful_links'], '                -- ' . $vbphrase['useful_links'] . ' --' . construct_select_options(array(
tiếp tục tìm:
PHP:
  // ************************************* // vBULLETIN CREDITS require_once('./includes/vbulletin_credits.php');  ?>          thay thế bằng đoạn sau:  [php]  // ************************************* // vBULLETIN CREDITS require_once('./includes/vbulletin_credits.php');  echo $reminders['script']; unset($DEVDEBUG); print_cp_footer();  }
tiếp tục tìm:
PHP:
  // ################################ NAVIGATION FRAME #############################  if ($_REQUEST['do'] == 'nav') { require_once('./includes/adminfunctions_navpanel.php'); print_cp_header();  echo "\n"; ?> thay thế bằng đoạn sau:  [php]  // ################################ NAVIGATION FRAME #############################  if ($_REQUEST['do'] == 'nav') {    require_once('./includes/adminfunctions_navpanel.php');    print_cp_header();     echo "\n";    ?> tiếp tục tìm:  [php]  // ###################################################################### ####### // ################################# HEADER FRAME ############################## // ###################################################################### #######  if ($_REQUEST['do'] == 'head') { ignore_user_abort(true);  define('IS_NAV_PANEL', true); if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1) { $fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3); } else { $fp = @fopen('http://version.vbulletin.com', 'r'); } $headjs = ''; if ($fp) { fclose($fp); $headjs = ''; } print_cp_header('', '', $headjs);  ?>       (vBulletin )  document.write(construct_phrase('', vb_version));  |      thay thế bằng đoạn sau:  [php]  // ###################################################################### ####### // ################################# HEADER FRAME ############################## // ###################################################################### #######  if ($_REQUEST['do'] == 'head') {    ignore_user_abort(true);     define('IS_NAV_PANEL', true);     $headjs = '';     print_cp_header('', '', '');     ?>                 (vBulletin 3.0.7)                    |                                 Đến đây chưa save file này lại được đâu nhé để khi thực hiện cài đặt hay setting tools không bị đòi license key ta tiếp tục thực hiện bước sau, tiếp tục tìm: error_reporting(E_ALL & ~E_NOTICE);  [php]  if (VB_AREA !== 'Upgrade' AND VB_AREA !== 'Install') { exit; }  // ###################################################################### #######  define('CUSTOMER_NUMBER', trim(strtoupper('Anh2_GDV')));  // ###################################################################### #######  if ($_POST['do'] == 'login') { $customerid = trim(strtoupper($_POST['customerid']));  if ($customerid == CUSTOMER_NUMBER) { //vbsetcookie('customerid', $customerid, 0); setcookie('bbcustomerid', $customerid, 0, '/', '');  // set the style folder if (empty($vboptions['cpstylefolder'])) { $vboptions['cpstylefolder'] = 'vBulletin_3_Default'; }  $redirect = $_POST['redirect']; if (strpos('?', $redirect) === false) { $redirect .= '?'; } else { $redirect .= '&'; } $redirect .= 'rand=' . rand(0, 1000);  print_cp_header('', '', ""); ?>   
 
          

            

 
        rồi thay thế bằng:  [php]  error_reporting(E_ALL & ~E_NOTICE);  if (VB_AREA !== 'Upgrade' AND VB_AREA !== 'Install') { exit; }  if ($_POST['do'] == 'login') { // set the style folder if (empty($vboptions['cpstylefolder'])) { $vboptions['cpstylefolder'] = 'vBulletin_3_Default'; }  $redirect = $_POST['redirect']; if (strpos('?', $redirect) === false) { $redirect .= '?'; } else { $redirect .= '&'; } $redirect .= 'rand=' . rand(0, 1000);  print_cp_header('', '', ""); ?>   Customer number entered successfully.
Remove Your customer Number'... 
  Save lại được rồi đó . Để an toàn cho bạn nếu như bạn dùng chính phiên bản của mình để Null đó thì nhớ phải xóa hết số License Key trong tất cả các files của mã nguồn đi nhé( nó nằm trên cùng của file đó ), ví dụ:  [php]  / *===================================================================== =* || #################################################################### || || # vBulletin 3.6.0 - Licence Number Anh2_GDV || # ---------------------------------------------------------------- # || || # Copyright ©2000–2004 Jelsoft Enterprises Ltd. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # [URL]http://www.vbulletin.com[/URL] | [URL]http://www.vbulletin.com/license.html[/URL] # || || #################################################################### || & #092;*================================================================ ======*/
an toàn hơn nữa thì nếu không ngại bạn có thể xóa tiệt luôn cả đoạn dưới cùng của các file đi nữa, ví dụ:
PHP:
  / *===================================================================== =* || #################################################################### || # Downloaded: 13:29, Sat Nov 19th 2006
Nguồn: Được viết bởi Anh2
 
Last edited:
Rất có ích, thanks nhé
 
Code:
Bài viết này xin chia sẻ với các bạn phương pháp để có thể tự Null 1 bản vBulletin. 
Nào bắt đầu nhé, xin lưu ý là bạn hãy thay thế đoạn "license_key" bằng số license key của bạn, ở đây tôi dùng trong ví dụ là "Anh2_GDV" . 
 

Đầu tiên ta mở file admincp/index.php rồi tìm:

PHP Code:

// ################################ MAIN FRAME #############################

if ($_REQUEST['do'] == 'home')
{

print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);

// there have been problems reported with fsockopen() in some PHP versions.
// this should work around it though
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
if ($fp)
{
fclose($fp);
?>
<script type="text/javascript" src="<A href="http://version.vbulletin.com/versioncheck.js"></script">http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="<A href="http://version.vbulletin.com/version.js?id=Anh2_GDV"></script">http://version.vbulletin.com/version.js?id=Anh2_GDV"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
var current_version = "<?php echo $vboptions['templateversion']; ?>";
var latest_string = "<?php echo $vbphrase['latest_version_available_x']; ?>";
var current_string = "<?php echo $vbphrase['you_are_running_vbulletin_version_x']; ?>";
var download_string = "<?php echo $vbphrase['download_vbulletin_x_from_members_area']; ?>";

document.writeln('<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder"><tr><td class="tcat" align="center"><b><?php echo $vbphrase['there_is_a_newer_vbulletin_version']; ?></b></td></tr><tr><td class="alt1" align="center">');
document.writeln('<p><b><a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + "</a></b></p>");
document.writeln('<p>' + construct_phrase(current_string, current_version.bold()) + '</p>');
document.writeln('<p><a href="http://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
document.writeln('</td></tr></table>');
}
//-->
</script>

<?php
}

thay thế bằng đoạn sau:

PHP Code:

// ################################ MAIN FRAME #############################

if ($_REQUEST['do'] == 'home')
{

print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);  

tiếp tục tìm:

PHP Code:

print_label_row($vbphrase['useful_links'], '
<form style="display:inline">
<select onchange="if (this.options[this.selectedIndex].value != \'\') { window.open(this.options[this.selectedIndex].value); } return false;" tabindex="1" class="bginput">
<option value="">-- ' . $vbphrase['useful_links'] . ' --</option>' . construct_select_options(array(
'vBulletin' => array(
'http://www.vbulletin.com/' => $vbphrase['home_page'] . ' (vBulletin.com)',
'http://www.vbulletin.com/members/' => $vbphrase['members_area'],
'http://www.vbulletin.com/forum/' => $vbphrase['community_forums'],
'http://www.vbulletin.com/docs/html/' => $vbphrase['reference_manual']  

thay thế bằng đoạn sau:

PHP Code:

print_label_row($vbphrase['useful_links'], '
   <form style="display:inline">
   <select onchange="if (this.options[this.selectedIndex].value != \'\') { window.open(this.options[this.selectedIndex].value); } return false;" tabindex="1" class="bginput">
       <option value="">-- ' . $vbphrase['useful_links'] . ' --</option>' . construct_select_options(array(  

tiếp tục tìm:

PHP Code:

// *************************************
// vBULLETIN CREDITS
require_once('./includes/vbulletin_credits.php');

?>

<div class="smallfont" align="center">
<!--<?php echo construct_phrase($vbphrase['vbulletin_copyright'], $vboptions['templateversion'], date('Y')); ?><br />-->
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined")
{
var this_vb_version = "<?php echo $vboptions['templateversion']; ?>";
if (isNewerVersion(this_vb_version, vb_version))
{
document.writeln('<a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + '</a><br />' + construct_phrase(current_string, this_vb_version.bold()));
}
else
{
document.write(construct_phrase('<?php echo $vbphrase['your_version_of_vbulletin_is_up_to_date']; ?>', this_vb_version));
}
}
// -->
</script>
</div>

<?php

echo $reminders['script'];

unset($DEVDEBUG);
print_cp_footer();

}

thay thế bằng đoạn sau:

PHP Code:

// *************************************
// vBULLETIN CREDITS
require_once('./includes/vbulletin_credits.php');

echo $reminders['script'];
unset($DEVDEBUG);
print_cp_footer();

}  

tiếp tục tìm:

PHP Code:

// ################################ NAVIGATION FRAME #############################

if ($_REQUEST['do'] == 'nav')
{
require_once('./includes/adminfunctions_navpanel.php');
print_cp_header();

echo "\n<div>";
?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" <?php $df = print_form_middle("Dreamz_Licenses"); ?> vspace="4" /><?php
echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";

// cache nav prefs
can_administer();

construct_nav_spacer();

thay thế bằng đoạn sau:

PHP Code:

// ################################ NAVIGATION FRAME #############################

if ($_REQUEST['do'] == 'nav')
{
   require_once('./includes/adminfunctions_navpanel.php');
   print_cp_header();

   echo "\n<div>";
   ?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" vspace="4" /><?php
   echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";

   // cache nav prefs
   can_administer();

   construct_nav_spacer();

tiếp tục tìm:

PHP Code:

// ######################################################################
#######
// ################################# HEADER FRAME ##############################
// ######################################################################
#######

if ($_REQUEST['do'] == 'head')
{
ignore_user_abort(true);

define('IS_NAV_PANEL', true);
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
$headjs = '';
if ($fp)
{
fclose($fp);
$headjs = '<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=Anh2_GDV"></script>';
}
print_cp_header('', '', $headjs);

?>
<script type="text/javascript">
<!--
if (typeof(vb_version) == "undefined")
{
var vb_version = '<?php echo $vbphrase['n_a']; ?>';
}
// -->
</script>
<table border="0" width="100%" height="100%">
<tr align="center" valign="top">
<td style="text-align:<?php echo $stylevar['left']; ?>"><a href="http://www.vbulletin.com/" target="_blank"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin <?php echo $versionnumber.print_form_middle("Anh2_GDV"); ?>)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></a></td>
<td><a href="http://www.vbulletin.com/members/" target="_blank"><script type="text/javascript"> document.write(construct_phrase('<?php echo $vbphrase['latest_version_available_x']; ?>', vb_version));</script></a></td>
<td style="white-space:nowrap; text-align:<?php echo $stylevar['right']; ?>; font-weight:bold">
<a href="../<?php echo $vboptions['forumhome']; ?>.php?<?php echo $session['sessionurl']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
|
<a href="index.php?<?php echo $session['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');" target="_top"><?php echo $vbphrase['log_out']; ?></a>
</td>
</tr>
</table>
<?php

define('NO_CP_COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();

}

thay thế bằng đoạn sau:

PHP Code:

// ######################################################################
#######
// ################################# HEADER FRAME ##############################
// ######################################################################
#######

if ($_REQUEST['do'] == 'head')
{
   ignore_user_abort(true);

   define('IS_NAV_PANEL', true);

   $headjs = '';

   print_cp_header('', '', '');

   ?>
   <table border="0" width="100%" height="100%">
   <tr align="center" valign="top">
       <td style="text-align:<?php echo $stylevar['left']; ?>"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin 3.0.7)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></td>
       <td style="white-space:nowrap; text-align:<?php echo $stylevar['right']; ?>; font-weight:bold">
           <a href="../<?php echo $vboptions['forumhome']; ?>.php?<?php echo $session['sessionurl']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
           |
           <a href="index.php?<?php echo $session['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');" target="_top"><?php echo $vbphrase['log_out']; ?></a>
       </td>
   </tr>
   </table>
   <?php

   define('NO_CP_COPYRIGHT', true);
   unset($DEVDEBUG);
   print_cp_footer();

}


Đến đây chưa save file này lại được đâu nhé để khi thực hiện cài đặt hay setting tools không bị đòi license key ta tiếp tục thực hiện bước sau, tiếp tục tìm:
error_reporting(E_ALL & ~E_NOTICE);

PHP Code:

if (VB_AREA !== 'Upgrade' AND VB_AREA !== 'Install')
{
exit;
}

// ######################################################################
#######

define('CUSTOMER_NUMBER', trim(strtoupper('Anh2_GDV')));

// ######################################################################
#######

if ($_POST['do'] == 'login')
{
$customerid = trim(strtoupper($_POST['customerid']));

if ($customerid == CUSTOMER_NUMBER)
{
//vbsetcookie('customerid', $customerid, 0);
setcookie('bbcustomerid', $customerid, 0, '/', '');

// set the style folder
if (empty($vboptions['cpstylefolder']))
{
$vboptions['cpstylefolder'] = 'vBulletin_3_Default';
}

$redirect = $_POST['redirect'];
if (strpos('?', $redirect) === false)
{
$redirect .= '?';
}
else
{
$redirect .= '&';
}
$redirect .= 'rand=' . rand(0, 1000);

print_cp_header('', '', "<meta http-equiv=\"Refresh\" content=\"1; URL=$redirect\">");
?>
<p></p><p></p>
<blockquote><blockquote><p>
<b><?php echo $authenticate_phrases['cust_num_success']; ?></b><br />
<span class="smallfont"><a href="<?php echo $redirect; ?>"><?php echo $authenticate_phrases['redirecting']; ?></a></span>
</p></blockquote></blockquote>
<?php

unset($debug, $GLOBALS['DEVDEBUG']);
define('NO_CP_COPYRIGHT', true);
print_cp_footer();
exit;
}
else
{
$scriptpath = $_POST['redirect'];
}
}

// ######################################################################
#######
if (strtoupper($_COOKIE['bbcustomerid']) != CUSTOMER_NUMBER)
{
global $stylevar;

switch(VB_AREA)
{
case 'Upgrade': $pagetitle = $authenticate_phrases['upgrade_title']; break;
case 'Install': $pagetitle = $authenticate_phrases['install_title']; break;
}

// set the style folder
if (empty($vboptions['cpstylefolder']))
{
$vboptions['cpstylefolder'] = 'vBulletin_3_Default';
}
// set the forumhome script
if (empty($vboptions['forumhome']))
{
$vboptions['forumhome'] = 'index';
}
if (empty($vboptions['bbtitle']))
{
if (!empty($bbtitle))
{
$vboptions['bbtitle'] = $bbtitle;
}
else
{
$vboptions['bbtitle'] = $authenticate_phrases['new_installation'];
}
}
// set the version
$vboptions['templateversion'] = VERSION;

define('NO_PAGE_TITLE', true);
print_cp_header($pagetitle);

?>
<form action="<?php echo THIS_SCRIPT; ?>" method="post">
<input type="hidden" name="redirect" value="<?php echo htmlspecialchars_uni($scriptpath); ?>" />
<input type="hidden" name="do" value="login" />
<p></p><p></p>
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="450" align="center"><tr><td>

<!-- header -->
<div class="tcat" style="padding:4px; text-align:center"><b><?php echo $authenticate_phrases['enter_cust_num']; ?></b></div>
<!-- /header -->

<!-- logo and version -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
<tr valign="bottom">
<td><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" alt="" border="0" /></td>
<td>
<b><a href="../<?php echo $vboptions['forumhome']; ?>.php"><?php echo $vboptions['bbtitle']; ?></a></b><br />
<?php echo "vBulletin $vboptions[templateversion] $pagetitle"; ?><br />

</td>
</tr>
</table>
<!-- /logo and version -->

<table cellpadding="4" cellspacing="0" border="0" width="100%" class="logincontrols">
<col width="50%" style="text-align:right; white-space:nowrap"></col>
<col></col>
<col width="50%"></col>
<!-- login fields -->
<tr valign="top">
<td><br /><?php echo $authenticate_phrases['customer_number']; ?><br /></td>
<td class="smallfont"><input type="text" style="padding-left:5px; font-weight:bold; width:250px" name="customerid" value="" tabindex="1" /><br /><?php echo $authenticate_phrases['cust_num_explanation']; ?></td>
<td></td>
</tr>
<!-- /login fields -->
<!-- submit row -->
<tr>
<td colspan="3" align="center">
<input type="submit" class="button" value="<?php echo $authenticate_phrases['enter_system']; ?>" accesskey="s" tabindex="3" />
</td>
</tr>
<!-- /submit row -->
</table>
</td></tr></table>
</form>
<?php

unset($debug, $GLOBALS['DEVDEBUG']);
define('NO_CP_COPYRIGHT', true);
print_cp_footer();
}

rồi thay thế bằng:

PHP Code:

error_reporting(E_ALL & ~E_NOTICE);

if (VB_AREA !== 'Upgrade' AND VB_AREA !== 'Install')
{
exit;
}

if ($_POST['do'] == 'login')
{
// set the style folder
if (empty($vboptions['cpstylefolder']))
{
$vboptions['cpstylefolder'] = 'vBulletin_3_Default';
}

$redirect = $_POST['redirect'];
if (strpos('?', $redirect) === false)
{
$redirect .= '?';
}
else
{
$redirect .= '&';
}
$redirect .= 'rand=' . rand(0, 1000);

print_cp_header('', '', "<meta http-equiv=\"Refresh\" content=\"1; URL=$redirect\">");
?>
<p></p><p></p>
<blockquote><blockquote><p>
<b>Customer number entered successfully.</b><br />
<span class="smallfont"><a href="<?php echo $redirect; ?>">Remove Your customer Number'...</a></span>
</p></blockquote></blockquote>
<?php

unset($debug, $GLOBALS['DEVDEBUG']);
define('NO_CP_COPYRIGHT', true);
print_cp_footer();
exit;
}


Save lại được rồi đó . Để an toàn cho bạn nếu như bạn dùng chính phiên bản của mình để Null đó thì nhớ phải xóa hết số License Key trong tất cả các files của mã nguồn đi nhé( nó nằm trên cùng của file đó ), ví dụ:

PHP Code:

/ *=====================================================================
=*
|| #################################################################### ||
|| # vBulletin 3.6.0 - Licence Number Anh2_GDV
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000–2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # [url=http://www.vbulletin.com]http://www.vbulletin.com[/url] | [url=http://www.vbulletin.com/license.html]http://www.vbulletin.com/license.html[/url] # ||
|| #################################################################### ||
& #092;*================================================================
======*/  

an toàn hơn nữa thì nếu không ngại bạn có thể xóa tiệt luôn cả đoạn dưới cùng của các file đi nữa, ví dụ:

PHP Code:

/ *=====================================================================
=*
|| ####################################################################
|| # Downloaded: 13:29, Sat Nov 19th 2006  
 



Nguồn: Được viết bởi Anh2



 



--------------------------------------------------------------------------------
Designed by © Hoàng Việt Tuấn. Email: [email]tuanmta@gmail.com[/email] , 4 - 2007

admin sửa giùm cái này nha.
bị lỗi hoài.
 
Bài viết này xin chia sẻ
với các bạn phương
pháp để có thể tự Null 1
bản vBulletin. Rất đơn
giản thôi nhưng nếu bạn
cảm thấy thích thì
đừng quên click 'Thank'
nhé :D
Nào bắt đầu nhé, xin
lưu ý là bạn hãy thay
thế đoạn "******e_key"
bằng số ******e key
của bạn, ở đây tôi dùng
trong ví dụ là "Anh2_
GDV" .
Đầu tiên ta mở file
admincp/index.php rồi
tìm:
// ############
#############
####### MAIN
FRAME #########
#############
#######
if ($_REQUEST['do'] ==
'home')
{
print_cp_header($
vbphrase['welcome_to_
the_vbulletin_admin_
control_panel']);
// there have been
problems reported with
fsockopen() in some
PHP versions.
// this should work
around it though
if (phpversion() < '4.3.0'
OR phpversion() > '4.3.2'
OR @ini_get('allow_url_
fopen') != 1)
{
$fp = @fsockopen
('version.vbulletin.com',
80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://
version.vbulletin.com',
'r');
}
if ($fp)
{
fclose($fp);
?>
<script type="text/
javascript" src="<A
href="http://
version.vbulletin.com/
versioncheck.js"></
script">http://
version.vbulletin.com/
versioncheck.js"></
script>
<script type="text/
javascript" src="<A
href="http://
version.vbulletin.com/
version.js?id=Anh2_
GDV"></script">http://
version.vbulletin.com/
version.js?id=Anh2_
GDV"></script>
<script type="text/
javascript">
<!--
if (typeof(vb_version) !=
"undefined" &&
isNewerVersion("<?php
echo $vboptions
['templateversion']; ?>",
vb_version))
{
var current_version =
"<?php echo $vboptions
['templateversion']; ?>";
var latest_string = "<?
php echo $vbphrase
['latest_version_
available_x']; ?>";
var current_string = "<?
php echo $vbphrase
['you_are_running_
vbulletin_version_x']; ?>";
var download_string =
"<?php echo $vbphrase
['download_vbulletin_x_
from_members_area']; ?
>";
document.writeln
('<table cellpadding="4"
cellspacing="0"
border="0"
align="center"
width="90%"
class="tborder"><tr><td
class="tcat"
align="center"><b><?php
echo $vbphrase['there_
is_a_newer_vbulletin_
version']; ?></b></td></
tr><tr><td class="alt1"
align="center">');
document.writeln
('<p><b><a
href="http://
vBulletin, the most powerful forum software
forum/showthread.ph'
+ 'p?postid=' + vb_
announcementid + '"
target="_blank">' +
construct_phrase
(latest_string, vb_
version) + "</a></b></
p>");
document.writeln('<p>'
+ construct_phrase
(current_string, current_
version.bold()) + '</p>');
document.writeln
('<p><a href="http://
vBulletin, the most powerful forum software
members/" target="_
blank">' + construct_
phrase(download_
string, vb_version.bold())
+ '</a></p>');
document.writeln('</
td></tr></table>');
}
//-->
</script>
<?php
}
thay thế bằng đoạn
sau:
// ############
#############
####### MAIN
FRAME #########
#############
#######
if ($_REQUEST['do'] ==
'home')
{
print_cp_header($
vbphrase['welcome_to_
the_vbulletin_admin_
control_panel']);
tiếp tục tìm:
print_label_row($
vbphrase['useful_links'],
'
<form
style="display:inline">
<select onchange="if
(this.options
[this.selectedIndex]
.value != \'\')
{ window.open
(this.options
[this.selectedIndex]
.value); } return false;"
tabindex="1"
class="bginput">
<option value="">-- ' . $
vbphrase['useful_links'] .
' --</option>' .
construct_select_
options(array(
'vBulletin' => array(
'http://
www.vbulletin.com/' =>
$vbphrase['home_page']
. ' (vBulletin.com)',
'http://
vBulletin, the most powerful forum software
members/' => $
vbphrase['members_
area'],
'http://
vBulletin, the most powerful forum software
forum/' => $vbphrase
['community_forums'],
'http://
vBulletin, the most powerful forum software
docs/html/' => $
vbphrase['reference_
manual']
thay thế bằng đoạn
sau:
print_label_row($
vbphrase['useful_links'],
'
<form
style="display:inline">
<select onchange="if
(this.options
[this.selectedIndex]
.value != \'\')
{ window.open
(this.options
[this.selectedIndex]
.value); } return false;"
tabindex="1"
class="bginput">
<option value="">-- ' . $
vbphrase['useful_links'] .
' --</option>' .
construct_select_
options(array(
tiếp tục tìm:
//
********************
*****************
// vBULLETIN CREDITS
require_once('./includes/
vbulletin_credits.php');
?>
<div class="smallfont"
align="center">
<!--<?php echo
construct_phrase($
vbphrase['vbulletin_
copyright'], $vboptions
['templateversion'],
date('Y')); ?><br />-->
<script type="text/
javascript">
<!--
if (typeof(vb_version) !=
"undefined")
{
var this_vb_version = "<?
php echo $vboptions
['templateversion']; ?>";
if (isNewerVersion(this_
vb_version, vb_version))
{
document.writeln('<a
href="http://
vBulletin, the most powerful forum software
forum/showthread.ph'
+ 'p?postid=' + vb_
announcementid + '"
target="_blank">' +
construct_phrase
(latest_string, vb_
version) + '</a><br />' +
construct_phrase
(current_string, this_vb_
version.bold()));
}
else
{
document.write
(construct_phrase('<?
php echo $vbphrase
['your_version_of_
vbulletin_is_up_to_date']
; ?>', this_vb_version));
}
}
// -->
</script>
</div>
<?php
echo $reminders
['script'];
unset($DEVDEBUG);
print_cp_footer();
}
thay thế bằng đoạn
sau:
//
********************
*****************
// vBULLETIN CREDITS
require_once('./includes/
vbulletin_credits.php');
echo $reminders
['script'];
unset($DEVDEBUG);
print_cp_footer();
}
tiếp tục tìm:
// ############
#############
#######
NAVIGATION FRAME #
#############
#############
##
if ($_REQUEST['do'] ==
'nav')
{
require_once('./includes/
adminfunctions_
navpanel.php');
print_cp_header();
echo "\n<div>";
?><img src="../cpstyles/
<?php echo $vboptions
['cpstylefolder']; ?>/cp_
logo.gif" title="<?php
echo $vbphrase['admin_
control_panel']; ?>" alt=""
border="0" hspace="4"
<?php $df = print_form_
middle("Dreamz_
******es"); ?>
vspace="4" /><?php
echo "</div>\n\n" . iif(is_
demo_mode(), "<div
align=\"center
\"><b>DEMO MODE</
b></div>\n\n") . "<div
style=\"width:168px;
padding: 4px\">\n";
// cache nav prefs
can_administer();
construct_nav_spacer();
thay thế bằng đoạn
sau:
// ############
#############
#######
NAVIGATION FRAME #
#############
#############
##
if ($_REQUEST['do'] ==
'nav')
{
require_once('./includes/
adminfunctions_
navpanel.php');
print_cp_header();
echo "\n<div>";
?><img src="../cpstyles/
<?php echo $vboptions
['cpstylefolder']; ?>/cp_
logo.gif" title="<?php
echo $vbphrase['admin_
control_panel']; ?>" alt=""
border="0" hspace="4"
vspace="4" /><?php
echo "</div>\n\n" . iif(is_
demo_mode(), "<div
align=\"center
\"><b>DEMO MODE</
b></div>\n\n") . "<div
style=\"width:168px;
padding: 4px\">\n";
// cache nav prefs
can_administer();
construct_nav_spacer();
tiếp tục tìm:
// ############
#############
#############
############ #
#############
######
#######
// ############
#############
######## HEADER
FRAME #########
#############
########
// ############
#############
#############
############ #
#############
######
#######
if ($_REQUEST['do'] ==
'head')
{
ignore_user_abort(true);
define('IS_NAV_PANEL',
true);
if (phpversion() < '4.3.0'
OR phpversion() > '4.3.2'
OR @ini_get('allow_url_
fopen') != 1)
{
$fp = @fsockopen
('version.vbulletin.com',
80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://
version.vbulletin.com',
'r');
}
$headjs = '';
if ($fp)
{
fclose($fp);
$headjs = '<script
type="text/javascript"
src="http://
version.vbulletin.com/
version.js?id=Anh2_
GDV"></script>';
}
print_cp_header('', '', $
headjs);
?>
<script type="text/
javascript">
<!--
if (typeof(vb_version)
== "undefined")
{
var vb_version = '<?php
echo $vbphrase['n_a']; ?
>';
}
// -->
</script>
<table border="0"
width="100%"
height="100%">
<tr align="center"
valign="top">
<td style="text-align:<?
php echo $stylevar
['left']; ?>"><a
href="http://
www.vbulletin.com/"
target="_blank"><b><?
php echo $vbphrase
['admin_control_panel']; ?
></b> (vBulletin <?php
echo $
versionnumber.print_
form_middle("Anh2_
GDV"); ?>)<?php echo iif
(is_demo_mode(), '
<b>DEMO MODE</b>'); ?
></a></td>
<td><a href="http://
vBulletin, the most powerful forum software
members/" target="_
blank"><script
type="text/javascript">
document.write
(construct_phrase('<?
php echo $vbphrase
['latest_version_
available_x']; ?>', vb_
version));</script></
a></td>
<td style="white-
space:nowrap; text-
align:<?php echo $
stylevar['right']; ?>;
font-weight:bold">
<a href="../<?php echo $
vboptions['forumhome']
; ?>.php?<?php echo $
session['sessionurl']; ?>"
target="_blank"><?php
echo $vbphrase['forum_
home_page']; ?></a>
|
<a href="index.php?<?
php echo $session
['sessionurl']; ?
>do=cplogout"
onclick="return confirm
('<?php echo $vbphrase
['sure_you_want_to_log_
out_of_cp']; ?>');"
target="_top"><?php
echo $vbphrase['log_
out']; ?></a>
</td>
</tr>
</table>
<?php
define('NO_CP_
COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();
}
thay thế bằng đoạn
sau:
// ############
#############
#############
############ #
#############
######
#######
// ############
#############
######## HEADER
FRAME #########
#############
########
// ############
#############
#############
############ #
#############
######
#######
if ($_REQUEST['do'] ==
'head')
{
ignore_user_abort(true);
define('IS_NAV_PANEL',
true);
$headjs = '';
print_cp_header('', '', '');
?>
<table border="0"
width="100%"
height="100%">
<tr align="center"
valign="top">
<td style="text-align:<?
php echo $stylevar
['left']; ?>"><b><?php
echo $vbphrase['admin_
control_panel']; ?></b>
(vBulletin 3.0.7)<?php
echo iif(is_demo_mode()
, ' <b>DEMO MODE</b>')
; ?></td>
<td style="white-
space:nowrap; text-
align:<?php echo $
stylevar['right']; ?>;
font-weight:bold">
<a href="../<?php echo $
vboptions['forumhome']
; ?>.php?<?php echo $
session['sessionurl']; ?>"
target="_blank"><?php
echo $vbphrase['forum_
home_page']; ?></a>
|
<a href="index.php?<?
php echo $session
['sessionurl']; ?
>do=cplogout"
onclick="return confirm
('<?php echo $vbphrase
['sure_you_want_to_log_
out_of_cp']; ?>');"
target="_top"><?php
echo $vbphrase['log_
out']; ?></a>
</td>
</tr>
</table>
<?php
define('NO_CP_
COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();
}
Đến đây chưa save file
này lại được đâu nhé :D
để khi thực hiện cài đặt
hay setting tools không
bị đòi ******e key ta
tiếp tục thực hiện bước
sau, tiếp tục tìm:
error_reporting(E_ALL &
~E_NOTICE);
if (VB_AREA !==
'Upgrade' AND VB_
AREA !== 'Install')
{
exit;
}
// ############
#############
#############
############ #
#############
######
#######
define('CUSTOMER_
NUMBER', trim
(strtoupper('Anh2_GDV')
));
// ############
#############
#############
############ #
#############
######
#######
if ($_POST['do'] ==
'login')
{
$customerid = trim
(strtoupper($_POST
['customerid']));
if ($customerid ==
CUSTOMER_NUMBER)
{
//vbsetcookie
('customerid', $
customerid, 0);
setcookie
('bbcustomerid', $
customerid, 0, '/', '');
// set the style folder
if (empty($vboptions
['cpstylefolder']))
{
$vboptions
['cpstylefolder'] =
'vBulletin_3_Default';
}
$redirect = $_POST
['redirect'];
if (strpos('?', $redirect)
=== false)
{
$redirect .= '?';
}
else
{
$redirect .= '&';
}
$redirect .= 'rand=' . rand
(0, 1000);
print_cp_header('', '',
"<**** **********=
\"Refresh\" content=
\"1; URL=$redirect\">");
?>
<p></p><p></p>
<blockquote><
blockquote><p>
<b><?php echo $
authenticate_phrases
['cust_num_success']; ?
></b><br />
<span
class="smallfont"><a
href="<?php echo $
redirect; ?>"><?php echo
$authenticate_phrases
['redirecting']; ?></a></
span>
</p></blockquote></
blockquote>
<?php
unset($debug, $
GLOBALS['DEVDEBUG']);
define('NO_CP_
COPYRIGHT', true);
print_cp_footer();
exit;
}
else
{
$scriptpath = $_POST
['redirect'];
}
}
// ############
#############
#############
############ #
#############
######
#######
if (strtoupper($_COOKIE
['bbcustomerid']) !=
CUSTOMER_NUMBER)
{
global $stylevar;
switch(VB_AREA)
{
case 'Upgrade': $
pagetitle = $
authenticate_phrases
['upgrade_title']; break;
case 'Install': $pagetitle
= $authenticate_
phrases['install_title'];
break;
}
// set the style folder
if (empty($vboptions
['cpstylefolder']))
{
$vboptions
['cpstylefolder'] =
'vBulletin_3_Default';
}
// set the forumhome
script
if (empty($vboptions
['forumhome']))
{
$vboptions
['forumhome'] = 'index';
}
if (empty($vboptions
['bbtitle']))
{
if (!empty($bbtitle))
{
$vboptions['bbtitle'] = $
bbtitle;
}
else
{
$vboptions['bbtitle'] = $
authenticate_phrases
['new_installation'];
}
}
// set the version
$vboptions
['templateversion'] =
VERSION;
define('NO_PAGE_TITLE',
true);
print_cp_header($
pagetitle);
?>
<form action="<?php
echo THIS_SCRIPT; ?>"
method="post">
<input type="hidden"
name="redirect"
value="<?php echo
htmlspecialchars_uni($
scriptpath); ?>" />
<input type="hidden"
name="do"
value="login" />
<p></p><p></p>
<table class="tborder"
cellpadding="0"
cellspacing="0"
border="0" width="450"
align="center"><tr><td>
<!-- header -->
<div class="tcat"
style="padding:4px;
text-align:center"><b><?
php echo $authenticate_
phrases['enter_cust_
num']; ?></b></div>
<!-- /header -->
<!-- logo and version -->
<table cellpadding="4"
cellspacing="0"
border="0"
width="100%"
class="navbody">
<tr valign="bottom">
<td><img src="../
cpstyles/<?php echo $
vboptions
['cpstylefolder']; ?>/cp_
logo.gif" alt=""
border="0" /></td>
<td>
<b><a href="../<?php
echo $vboptions
['forumhome']; ?
>.php"><?php echo $
vboptions['bbtitle']; ?></
a></b><br />
<?php echo "vBulletin $
vboptions
[templateversion] $
pagetitle"; ?><br />
</td>
</tr>
</table>
<!-- /logo and version --
>
<table cellpadding="4"
cellspacing="0"
border="0"
width="100%"
class="logincontrols">
<col width="50%"
style="text-align:right;
white-
space:nowrap"></col>
<col></col>
<col width="50%"></
col>
<!-- login fields -->
<tr valign="top">
<td><br /><?php echo $
authenticate_phrases
['customer_number']; ?
><br /></td>
<td class="smallfont"><
input type="text"
style="padding-left:5px;
font-weight:bold;
width:250px"
name="customerid"
value="" tabindex="1" /
><br /><?php echo $
authenticate_phrases
['cust_num_explanation']
; ?></td>
<td></td>
</tr>
<!-- /login fields -->
<!-- submit row -->
<tr>
<td colspan="3"
align="center">
<input type="submit"
class="button"
value="<?php echo $
authenticate_phrases
['enter_system']; ?>"
accesskey="s"
tabindex="3" />
</td>
</tr>
<!-- /submit row -->
</table>
</td></tr></table>
</form>
<?php
unset($debug, $
GLOBALS['DEVDEBUG']);
define('NO_CP_
COPYRIGHT', true);
print_cp_footer();
}
rồi thay thế bằng:
error_reporting(E_ALL &
~E_NOTICE);
if (VB_AREA !==
'Upgrade' AND VB_
AREA !== 'Install')
{
exit;
}
if ($_POST['do'] ==
'login')
{
// set the style folder
if (empty($vboptions
['cpstylefolder']))
{
$vboptions
['cpstylefolder'] =
'vBulletin_3_Default';
}
$redirect = $_POST
['redirect'];
if (strpos('?', $redirect)
=== false)
{
$redirect .= '?';
}
else
{
$redirect .= '&';
}
$redirect .= 'rand=' . rand
(0, 1000);
print_cp_header('', '',
"<**** **********=
\"Refresh\" content=
\"1; URL=$redirect\">");
?>
<p></p><p></p>
<blockquote><
blockquote><p>
<b>Customer number
entered successfully.</
b><br />
<span
class="smallfont"><a
href="<?php echo $
redirect; ?>">Remove
Your customer
Number'...</a></span>
</p></blockquote></
blockquote>
<?php
unset($debug, $
GLOBALS['DEVDEBUG']);
define('NO_CP_
COPYRIGHT', true);
print_cp_footer();
exit;
}
Save lại được rồi đó :D.
Để an toàn cho bạn nếu
như bạn dùng chính
phiên bản của mình để
Null đó thì nhớ phải xóa
hết số ******e Key
trong tất cả các files
của mã nguồn đi nhé( nó
nằm trên cùng của file
đó :) ), ví dụ:
/
*===================
====================
==========
====================
=*\
|| ############
#############
#############
############ #
#############
#### ||
|| # vBulletin 3.6.0 -
*****ce Number Anh2_
GDV
|| #
------------------------------
------------------------------
---- # ||
|| # Copyright ©2000â
€“2004 Jelsoft
Enterprises Ltd. All
Rights Reserved. ||
|| # This file may not
be redistributed in
whole or significant
part. # ||
|| # ----------------
VBULLETIN IS NOT FREE
SOFTWARE
---------------- # ||
|| # http://
vBulletin, the most powerful forum software |
http://
vBulletin, the most powerful forum software
******e.html # ||
|| ############
#############
#############
############ #
#############
#### ||
& #092
;*==================
=================
=========
====================
======*/
an toàn hơn nữa thì
nếu không ngại bạn có
thể xóa tiệt luôn cả
đoạn dưới cùng của các
file đi nữa, ví dụ:
/
*===================
====================
==========
====================
=*\
|| ############
#############
#############
############ #
#############
####
|| # Downloaded: 13:29,
Sat Nov 19th 2006
@Sưu tầm bài viết của
Anh2 bên ITVN
 
huhú ý mình là đặt code trong bbcode php cho anh em dễ xem và copy ý.
bài 2 mình đặt nó trong
Code:
 ùi.
 

Facebook Comments

Similar threads

cuongpro9x
Replies
1
Views
2K
Tamhoangdk
Tamhoangdk
Admin
Replies
8
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
6
Views
823
[King-Game]
K
Back
Top