ImgURL是一个简单、纯粹的图床程序,让个人图床多一个选择。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
743 B

<?php
/**
* ImgURL升级类
*
* @package upgrade
* @author xiaoz
* @link https://imgurl.org/
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Upgrade extends CI_Controller{
//构造函数
public function __construct(){
parent::__construct();
//加载辅助类
$this->load->library('basic');
$this->basic->is_login(TRUE);
//加载模型
$this->load->model('query','',TRUE);
}
public function v22_to_v23(){
//升级数据库操作
$result = $this->query->to23();
if($result){
echo '升级完毕,请关闭此页面!';
}
else{
echo '升级失败,未知错误!';
}
}
}