1 Star 4 Fork 1

白菜酱 / BigView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
upload.php 617 Bytes
一键复制 编辑 原始数据 按行查看 历史
白菜酱 提交于 2014-08-22 16:41 . open to public
<?php
if (!defined("IN_ACE") || !($aceman->is_login())) die("Forbidden.");
if (!isset($_GET['filetype']) || !isset($_FILES['ace_file'])) die("Forbidden.");
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>提示</title>
<?php
if ($_GET['filetype'] == "file") {
$aceman->upload($_FILES['ace_file']);
}
else if ($_GET['filetype'] == "chart") {
if (!isset($_POST['ace_filename']) || !isset($_POST['ace_desc'])) die("Forbidden.");
$aceman->upload_chart($_POST['ace_filename'], $_POST['ace_desc'], $_FILES['ace_file']['tmp_name'], $_FILES['ace_file']['size']);
}
alertAndBack("上传成功!");
?>
PHP
1
https://gitee.com/xm1994/BigView.git
git@gitee.com:xm1994/BigView.git
xm1994
BigView
BigView
master

搜索帮助