Exemplo n.º 1
0
 public static function run()
 {
     $updateFile = iPATH . 'update.' . self::$release . '.php';
     if (iFS::ex($updateFile)) {
         require $updateFile;
         $msg = '执行升级程序<iCMS>';
         $msg .= updatePatch();
         $msg .= '升级顺利完成!<iCMS>删除升级程序!';
         iFS::del($updateFile);
     } else {
         $msg = '升级顺利完成!';
     }
     return $msg;
 }
Exemplo n.º 2
0
 function run($fp)
 {
     $fp = iPATH . $fp;
     if (FS::exists($fp)) {
         include $fp;
         $msg = '执行升级程序<icms>';
         $msg .= updatePatch();
         $msg .= '升级顺利完成!<icms>删除升级程序!';
         FS::del($fp);
     }
     return $msg;
 }