📄 version_upgrade.php
字号:
<?php/*+--------------------------------------------------------------------------| Invision Power Board v2.1.5| ========================================| by Matthew Mecham| (c) 2001 - 2004 Invision Power Services| | ========================================| Web: | Time: Wed, 01 Mar 2006 19:11:35 GMT| Release: | Email: | Licence Info: +---------------------------------------------------------------------------|| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2| > Script written by Matt Mecham| > Date started: 23rd April 2004| > "So what, pop is dead - it's no great loss. So many facelifts, it's face flew off"+--------------------------------------------------------------------------*/if ( ! defined( 'IN_IPB' ) ){ print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit();}class version_upgrade{ var $this_version = '20003'; var $upgrade_from = '20002'; var $first_step = '更新模板。'; var $md5_check = ''; var $base_url = ''; var $mod_to_run = ''; /*-------------------------------------------------------------------------*/ // CONSTRUCTOR /*-------------------------------------------------------------------------*/ function version_upgrade() { } function version_process() { $this->md5_check = $this->ipsclass->return_md5_check(); $this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}"; if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) ) { $tmp = array_shift( $this->ipsclass->modules_to_run ); $this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run ); } if ( ! $this->mod_to_run ) { $this->mod_to_run = '无'; } } /*-------------------------------------------------------------------------*/ // Auto run.. /*-------------------------------------------------------------------------*/ function auto_run() { //-------------------------------- // What are we doing? //-------------------------------- switch( $this->ipsclass->input['workact'] ) { default: $this->upgrade_intro(); break; } } /*-------------------------------------------------------------------------*/ // INTRO /*-------------------------------------------------------------------------*/ function upgrade_intro() { $this->ipsclass->template->content .= " <div class='tableborder'> <div class='maintitle'>欢迎来到 IPB 升级系统</div> <div class='tdrow1' style='padding:6px'>升级程序将把您的论坛从 <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> 升级到 <b>{$this->ipsclass->versions[$this->this_version]}</b> <br /><br />第一步为 {$this->first_step} <br /><br /> <div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&act=done'>处理...</a></span></div> </div> </div> <br /> <div align='center'>剩余升级模块: {$this->mod_to_run}</div> "; $this->ipsclass->template->output(); } } ?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -