![]() |
Показаны 10 сообщений на этой странице |
Форум сетевых администраторов (http://netadmin.ws/forum/index.php)
- VB флейм (http://netadmin.ws/forum/forumdisplay.php?forumid=67)
-- Vbulletin v3.0.0 (http://netadmin.ws/forum/showthread.php?threadid=5005)
Vbulletin v3.0.0
Привет,
В сети не давно нашел сабж. Кто хочет может проверить (я вышлю), так как я полазил по php скриптам вроде бы VB3 версия, единственое, что не верится что в VB3 используют стиль для VB2.8.
Как написано в инструкции сам скрипт от группы iMAGiNE.
Жду Ответов.
С Уважением,
Алекс.
alex007
спорим те бан будет? тиль баллы хотябы
уже таких тем навалом. Ð_то не нуленый VB 2.8
__________________
КУКУ, врушка 
quote:
Первоначальное сообщение от Ferz
alex007
спорим те бан будет? тиль баллы хотябыуже таких тем навалом. Ð_то не нуленый VB 2.8
<?php
error_reporting(7);
$oldversion = "2.2.9";
$newversion = "3.0.0";
$thisscript = "upgrade23.php";
$scriptnumber = 23;
// allow script to work with registerglobals off
if ( function_exists('ini_get') ) {
$onoff = ini_get('register_globals');
} else {
$onoff = get_cfg_var('register_globals');
}
if ($onoff != 1) {
@extract($HTTP_SERVER_VARS, EXTR_SKIP);
@extract($HTTP_COOKIE_VARS, EXTR_SKIP);
@extract($HTTP_POST_FILES, EXTR_SKIP);
@extract($HTTP_POST_VARS, EXTR_SKIP);
@extract($HTTP_GET_VARS, EXTR_SKIP);
@extract($HTTP_ENV_VARS, EXTR_SKIP);
}
function gotonext($extra="") {
global $step,$thisscript;
$nextstep = $step+1;
echo "<p><a href=\"$thisscript?step=$nextstep\">Continue with the upgrade --></a> $extra</p>\n";
}
function createupgradelist($startat,$stopat,$comma="") {
if ($startat<=$stopat) {
return $comma."upgrade$startat.php".createupgradelist($startat+1,$stopat,", ");
}
}
if (function_exists("set_time_limit")==1 and get_cfg_var("safe_mode")==0) {
@set_time_limit(1200);
}
// ###################### Start init #######################
unset($dbservertype);
//load config
require('./config.php');
// init db **********************
// load db class
$dbservertype = strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname='vBulletin';
$DB_site->appshortname='vBulletin (forum)';
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();
$dbpassword="";
$DB_site->password="";
// end init db
?>
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3018.900" name=GENERATOR></HEAD>
<link rel="stylesheet" href="../cp.css">
<title>vBulletin <?php echo $oldversion ?> to <?php echo $newversion ?> Upgrade script</title>
</HEAD>
<BODY>
<table width="100%" bgcolor="#3F3849" cellpadding="2" cellspacing="0" border="0"><tr><td>
<table width="100%" bgcolor="#524A5A" cellpadding="3" cellspacing="0" border="0"><tr>
<td><a href="http://vbulletin.com/forum" target="_blank"><img src="cp_logo.gif" width="160" height="49" border="0" alt="Click here to visit the vBulletin support forums"></a></td>
<td width="100%" align="center">
<p><font size="2" color="#F7DE00"><b>vBulletin <?php echo $oldversion ?> to <?php echo $newversion ?> Upgrade Script</b></font></p>
<p><font size="1" color="#F7DE00"><b>(Note: Please be patient as some parts of this may take some time.)</b></font></p>
</td></tr></table></td></tr></table>
<br>
<?php
if (!$step) {
$step = 1;
}
// ******************* STEP 1 *******************
if ($step==1) {
if (!$confirm) {
// load options
$optionstemp=$DB_site->query_first("SELECT template FROM template WHERE title='options'");
eval($optionstemp[template]);
if ( $templateversion != $oldversion ) {
?><p>Warning: you are currently running version <?php echo $templateversion; ?> and this script upgrades from version <?php echo $oldversion; ?>. If you are sure you want to continue, please click <a href="upgrade<?php echo $scriptnumber; ?>.php?confirm=1">here</a> otherwise please consult the upgrade instructions.</p></body></html>
<?php
die();
}
}
?>
<p>This script will upgrade you from vBulletin <?php echo $oldversion ?> to vBulletin <?php echo $newversion ?>. If you are upgrading from a version other than <?php echo $oldversion ?>, please run previous upgrade scripts first.</p>
<ul>
<li>Installing a new version: run <i>install.php</i><br><br>
<li>Upgrading from vBulletin 2.0.3 or before: please visit <a href="http://www.vbulletin.com/members/upgrade.html"><a href="http://www.vbulletin.com/members/upgrade.html" target="_blank">http://www.vbulletin.com/members/upgrade.html</a></a>
<li>Upgrading from vBulletin 2.2.0: run <i><? echo createupgradelist(14,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.1: run <i><? echo createupgradelist(15,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.2: run <i><? echo createupgradelist(16,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.3: run <i><? echo createupgradelist(17,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.4: run <i><? echo createupgradelist(18,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.5: run <i><? echo createupgradelist(19,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.6: run <i><? echo createupgradelist(20,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.7: run <i><? echo createupgradelist(21,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.8: run <i><? echo createupgradelist(22,$scriptnumber); ?></i>
<li>Upgrading from vBulletin 2.2.9: run <i><? echo createupgradelist(23,$scriptnumber); ?></i>
</ul>
<p></p>
<p><b>Before Runing this script You MUST upload the new files : <?php echo $oldversion ?> to vBulletin <?php echo $newversion ?>. If you are upgrading from a version other than <?php echo $oldversion ?>, please run previous upgrade scripts first.</b></p>
<li>members.php</i>
<li>members2.php</i>
<li>poll.php</i>
<li>private.php</i>
<li>search.php</i>
<?php
gotonext();
}
// ******************* STEP 2 *******************
if ($step==2) {
echo "<b>Modifying index on adminutil table ...</b> ";
$DB_site->reporterror=0;
$DB_site->query("ALTER IGNORE TABLE adminutil DROP INDEX title, ADD PRIMARY KEY (title);");
$DB_site->reporterror=1;
echo "Done!<p>\n";
gotonext();
}
// ******************* STEP 3 *******************
if ($step==3) {
echo "<b>Importing new templates ....</b>";
$path="./vbulletin.style";
if(file_exists($path)==0) {
$styletext="";
} else {
$filesize=filesize($path);
$filenum=fopen($path,"r");
$styletext=fread($filenum,$filesize);
fclose($filenum);
}
if ($styletext=="") {
echo "<p>Please ensure that the vbulletin.style file exists in the current directory and then reload this current page.</p>";
exit;
}
$DB_site->query("DELETE FROM template WHERE templatesetid=-1 AND title<>'options'");
$DB_site->query("DELETE FROM replacement WHERE replacementsetid=-1");
$stylebits=explode("|||",$styletext);
list($devnul,$styleversion)=each($stylebits);
list($devnul,$style[title])=each($stylebits);
list($devnul,$replacementset[title])=each($stylebi
ts);
list($devnul,$templateset[title])=each($stylebits)
;
// check to see if we are installing a master template set or just a custom style set
// installing a master!!
$style[styleid]=-1;
$style[userselect]=0;
$style[replacementsetid]=-1;
$style[templatesetid]=-1;
// get number of replacements and templates
list($devnull,$numreplacements)=each($stylebits);
list($devnull,$numtemplates)=each($stylebits);
$counter=0;
while ($counter++<$numreplacements) {
list($devnull,$findword)=each($stylebits);
list($devnull,$replaceword)=each($stylebits);
if (trim($findword)!="") {
$DB_site->query("INSERT INTO replacement (replacementsetid,findword,replaceword) VALUES ($style[replacementsetid],'".addslashes($findword)."','".addslashes($replaceword)."')");
}
}
$counter=0;
while ($counter++<$numtemplates) {
list($devnull,$title)=each($stylebits);
list($devnull,$template)=each($stylebits);
if (trim($title)!="") {
$DB_site->query("INSERT INTO template (templatesetid,title,template) VALUES ($style[templatesetid],'".addslashes($title)."','".addslashes($template)."')");
}
}
echo "Done!<p>\n";
gotonext();
}
// ******************* STEP 4 *******************
if ($step==4) {
// update version
echo "Updating version number .... ";
$DB_site->query("UPDATE setting SET value='$newversion' WHERE varname='templateversion'");
$template="";
$settings=$DB_site->query("SELECT varname,value FROM setting");
while ($setting=$DB_site->fetch_array($settings)) {
$template.="\$$setting[varname] = \"".addslashes(str_replace("\"","\\"",$setting[value]))."\";\n";
}
$DB_site->query("UPDATE template SET template='$template' WHERE title='options'");
echo "Done!\n";
echo "<p>Upgrade to $newversion completed successfully! <br>Please delete the following files if you uploaded them: install.php, and all files that begin with 'upgrade'";
echo "<p>Thank you for using vBulletin.";
}
?>
</body>
</html>

и что? а ты не думал, что они просто скопировали какой нить upgrade21.php на upgrade23.php и заменили первые 4 строки?
$oldversion = "2.2.9";
$newversion = "3.0.0";
$thisscript = "upgrade23.php";
$scriptnumber = 23;
вот эти....
Хотя мож и правда 3.0 тока кому он нужен без стиля?
Вообщем незнаю, но скорее всего он действительно 2.2.8.....
__________________
КУКУ, врушка 
alex007
фигня, 2.2.8 чистой воды
__________________
http://www.compware.ru - сайт о разгоне
Alone
Извеняюсь тогда...
да у меня самого эта фигня была от iMAGiNE
я тоже повелся на это как лох, думал 3.0.0 нашел, а оказалось 2.2.8
__________________
С уважением, Фантом
.:: FiRELiGHT Team ::.
Скрипты не просить, не дам
RL Forum - Аdmin
PCForum.ru - Super Moderator
fantom
и не ты один на это повёлся
:-))
я рад что не я один полся на это :-))
__________________
С уважением, Фантом
.:: FiRELiGHT Team ::.
Скрипты не просить, не дам
RL Forum - Аdmin
PCForum.ru - Super Moderator
круто вы 2.2.9 на 2.2.8 проапгрейдили!!! 
__________________
yMC.ru - хомяк музыканта
| Формат времени GMT. Текущее время 11:21. | Показаны 10 сообщений на этой странице |
Powered by: vBulletin Version 2.2.4
Copyright © Jelsoft Enterprises Limited 2000, 2001.