Thread: Miscellaneous Hacks - vMail - Verify Mail before registration.
View Single Post
  #311  
Old 06 May 2008, 17:16
gabrielt gabrielt is offline
 
Join Date: Apr 2007
Another bug.

Hi there,

Just found another bug.

On plugin called NLP vMail - Functions, function vB_version, where is a "=" should be a "==", marked in red below.

function vB_version($_ver)
{// GET current vBulletin version.
if(empty($_ver)){return false;}
require_once('./includes/version_vbulletin.php');
//include('./includes/version_vbulletin.php');
$_current = explode('.', FILE_VERSION_VBULLETIN);
if($_current[1] == $_ver)
{
return true;
}else{
return false;
}
}

Also this function loads vBulletin version number from version_vbulletin.php file, which isn't the correct way to do this. This file is empty! So you need to edit and change this file to:

<?php

define('FILE_VERSION_VBULLETIN', '3.7.0');

?>

I asked vBulletin team about this file and they replied this:
http://www.vbulletin.com/forum/showthread.php?p=1556890

The developer should then correct this code!

I hope to have helped other people using this great mod.

Cheers,
Gabriel.
Reply With Quote