autoupdate.inc.php
来自「创建虚拟磁盘。用户可以创建磁盘」· PHP 代码 · 共 37 行
PHP
37 行
<?php
##
# Project: PHPDisk
# This is NOT a freeware, use is subject to license terms.
#
# Site: http://www.phpdisk.com
#
# $Id: autoupdate.inc.php 214 2009-03-05 07:51:44Z along $
#
# Copyright (C) 2008-2009 PHPDisk Team. All Rights Reserved.
#
##
require_once "../includes/commons.inc.php";
phpdisk_admin();
switch($action){
case 'getnews':
$file = @fopen("http://www.phpdisk.com/mini_index.php", "r");
echo $file ? 'true' : 'false';
@fclose($file);
break;
case 'upgrade':
default:
$file = @fopen("http://www.phpdisk.com/last_version.php", "r");
if($file){
while (!feof($file)) {
$line = fgets($file, 20);
}
}
@fclose($file);
echo trim($line);
}
include PHPDISK_ROOT."./includes/footer.inc.php";
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?