You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
全新版本 2.0
This commit is contained in:
5062
libs/class.upload.php
Normal file
5062
libs/class.upload.php
Normal file
File diff suppressed because it is too large
Load Diff
42
libs/footer.php
Normal file
42
libs/footer.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
// jsqrcode获取当前网址并赋值给id=text的value
|
||||
document.getElementById("text").value = window.location.href;
|
||||
|
||||
var qrcode = new QRCode(document.getElementById("qrcode"), {
|
||||
width: 150,
|
||||
height: 150
|
||||
});
|
||||
function makeCode() {
|
||||
var elText = document.getElementById("text");
|
||||
|
||||
if (!elText.value) {
|
||||
alert("Input a text");
|
||||
elText.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
qrcode.makeCode(elText.value);
|
||||
}
|
||||
makeCode();
|
||||
|
||||
$("#text").on("blur",
|
||||
function() {
|
||||
makeCode();
|
||||
}).on("keydown",
|
||||
function(e) {
|
||||
if (e.keyCode == 13) {
|
||||
makeCode();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script src="./public/static/hm.js"></script>
|
||||
<footer class="text-muted small col-md-12" style="text-align: center">
|
||||
'.showAD('bot').'
|
||||
<hr />
|
||||
Copyright © 2018-'. date('Y').' EasyImage Powered By <code><a href="https://www.545141.com/easyimage.html" target="_blank">icret</a></code> Verson: '.$config['Version'].@$qqgroup.'
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
';
|
||||
135
libs/function.php
Normal file
135
libs/function.php
Normal file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
require __DIR__.'/../config.php';
|
||||
|
||||
// 判断GIF图片是否为动态
|
||||
function isAnimatedGif($filename) {
|
||||
$fp = fopen($filename, 'rb');
|
||||
$filecontent = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
return strpos($filecontent, chr(0x21) . chr(0xff) . chr(0x0b) . 'NETSCAPE2.0') === FALSE ? 0 : 1;
|
||||
}
|
||||
|
||||
// 校验登录
|
||||
function checkLogin() {
|
||||
global $config;
|
||||
if (!empty( $_POST['password'] ) ) {
|
||||
if ( $_POST['password'] == $config['password'] ) {
|
||||
$psw = $_POST['password'];
|
||||
setcookie('admin',$psw);
|
||||
echo '<code>登录成功</code>';
|
||||
}else{
|
||||
echo '<code>密码错误</code>';
|
||||
exit( include __DIR__ . '/login.php' );
|
||||
}
|
||||
} elseif (!empty( $_COOKIE['admin'] ) ) {
|
||||
if ( $_COOKIE['admin'] == $config['password'] ) {
|
||||
|
||||
}
|
||||
} else {
|
||||
echo '<code>请登录</code>';
|
||||
header('loction:login.php');
|
||||
exit(include __DIR__.'/login.php');
|
||||
}
|
||||
}
|
||||
|
||||
// 仅允许登录后上传
|
||||
function mustLogin(){
|
||||
global $config;
|
||||
if ($config['mustLogin']){
|
||||
checkLogin();
|
||||
}
|
||||
}
|
||||
|
||||
// 检查配置文件中目录是否存在是否可写
|
||||
function config_path(){
|
||||
global $config;
|
||||
$real_path = APP_ROOT.$config['path'];
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777,true);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
//创建年目录
|
||||
$real_path = $config['path'].date('Y');
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
// 创建月目录
|
||||
$real_path = $real_path.'/'.date('m');
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
return $real_path.'/';
|
||||
}
|
||||
|
||||
// 设置广告
|
||||
function showAD($where) {
|
||||
global $config;
|
||||
switch ($where){
|
||||
case 'top':
|
||||
if ($config['ad_top']){
|
||||
include (APP_ROOT.'/public/static/ad_top.html');
|
||||
}
|
||||
break;
|
||||
case 'bot':
|
||||
if ($config['ad_bot']){
|
||||
include (APP_ROOT.'/public/static/ad_bot.html');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
echo '广告函数出错';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 设置一键CDN
|
||||
function static_cdn(){
|
||||
global $config;
|
||||
if ($config['static_cdn']){
|
||||
// 开启CDN
|
||||
return '
|
||||
<link href="https://cdn.bootcss.com/zui/1.8.1/css/zui.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.bootcss.com/zui/1.8.1/lib/uploader/zui.uploader.min.css" rel="stylesheet">
|
||||
|
||||
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js?v3.3.1"></script>
|
||||
<script src="https://cdn.bootcss.com/zui/1.8.1/js/zui.min.js?v1.8.1"></script>
|
||||
<script src="https://cdn.bootcss.com/zui/1.8.1/lib/uploader/zui.uploader.min.js?v1.8.1"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/icret/easyImages@1.5.3/static/qrcode.min.js?v1"></script>
|
||||
';
|
||||
|
||||
}else{
|
||||
// 本地文件
|
||||
return '
|
||||
<link href="../public/static/zui/css/zui.min.css?v1.8.1" rel="stylesheet">
|
||||
<link href="../public/static/zui/lib/uploader/zui.uploader.min.css?v1.8.1" rel="stylesheet">
|
||||
|
||||
<script src="../public/static/jquery.min.js?v3.3.1"></script>
|
||||
<script src="../public/static/zui/js/zui.min.js?v1.8.1"></script>
|
||||
<script src="../public/static/zui/lib/uploader/zui.uploader.min.js?v1.8.1"></script>
|
||||
<script src="../public/static/qrcode.min.js?v1.0"></script>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
||||
// 开启管理
|
||||
function tinyfilemanager(){
|
||||
global $config;
|
||||
if(!$config['tinyfilemanager']){
|
||||
header('Location: '.$config['domain'].'?not_open_manager');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// 异域上传
|
||||
function crossdomain(){
|
||||
global $config;
|
||||
if($config['crossdomain']){
|
||||
return $config['CDomains'];
|
||||
}
|
||||
}
|
||||
|
||||
//$qqgroup = ' <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="EasyImage 简单图床" title="EasyImage 简单图床"></a>';
|
||||
38
libs/header.php
Normal file
38
libs/header.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
require_once __DIR__.'/function.php';
|
||||
echo '
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>'.$config['title'].'</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="keywords" content="'.$config['keywords'].'" />
|
||||
<meta name="description" content="'.$config['description'].'" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
'.static_cdn().'
|
||||
<style>
|
||||
.uploader-files{
|
||||
min-height:160px;
|
||||
border-style:dashed;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="container">
|
||||
'.showAD('top').'
|
||||
<div class="md-lg-12 header-dividing">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="index.php">首页</a></li>
|
||||
<li><a href="https://github.com/icret/easyImages2.0" target="_blank">GitHub<span class="label label-badge label-success"></span></a></li>
|
||||
<li><a href="public/data/tinyfilemanager.php" target="_blank">管理<span class="label label-badge label-success"></span></a></li>
|
||||
<li><a class="dropdown-toggle hidden-xs" data-toggle="dropdown" href="#">二维码<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<input id="text" type="hidden" value=""/>
|
||||
<li id="qrcode" style="width:100%;">扫描二维码使用手机上传</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 顶部导航栏END -->
|
||||
';
|
||||
88
libs/lang/class.upload.xx_XX.php
Normal file
88
libs/lang/class.upload.xx_XX.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.xx_XX.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) xxxxxx 200x. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified xx/xx/200x |
|
||||
// | Email xxx@xxx.xxx |
|
||||
// | Web http://www.xxxx.xxx |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | This program is free software; you can redistribute it and/or modify |
|
||||
// | it under the terms of the GNU General Public License version 2 as |
|
||||
// | published by the Free Software Foundation. |
|
||||
// | |
|
||||
// | This program is distributed in the hope that it will be useful, |
|
||||
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
// | GNU General Public License for more details. |
|
||||
// | |
|
||||
// | You should have received a copy of the GNU General Public License |
|
||||
// | along with this program; if not, write to the |
|
||||
// | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
|
||||
// | Boston, MA 02111-1307 USA |
|
||||
// | |
|
||||
// | Please give credit on sites that use class.upload and submit changes |
|
||||
// | of the script so other people can use them as well. |
|
||||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* Class upload xxxxxx translation
|
||||
*
|
||||
* @version 0.28
|
||||
* @author xxxxxxxx (xxx@xxx.xxx)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright xxxxxxxx
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = 'File error. Please try again.';
|
||||
$translation['local_file_missing'] = 'Local file doesn\'t exist.';
|
||||
$translation['local_file_not_readable'] = 'Local file is not readable.';
|
||||
$translation['uploaded_too_big_ini'] = 'File upload error (the uploaded file exceeds the upload_max_filesize directive in php.ini).';
|
||||
$translation['uploaded_too_big_html'] = 'File upload error (the uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form).';
|
||||
$translation['uploaded_partial'] = 'File upload error (the uploaded file was only partially uploaded).';
|
||||
$translation['uploaded_missing'] = 'File upload error (no file was uploaded).';
|
||||
$translation['uploaded_no_tmp_dir'] = 'File upload error (missing a temporary folder).';
|
||||
$translation['uploaded_cant_write'] = 'File upload error (failed to write file to disk).';
|
||||
$translation['uploaded_err_extension'] = 'File upload error (file upload stopped by extension).';
|
||||
$translation['uploaded_unknown'] = 'File upload error (unknown error code).';
|
||||
$translation['try_again'] = 'File upload error. Please try again.';
|
||||
$translation['file_too_big'] = 'File too big.';
|
||||
$translation['no_mime'] = 'MIME type can\'t be detected.';
|
||||
$translation['incorrect_file'] = 'Incorrect type of file.';
|
||||
$translation['image_too_wide'] = 'Image too wide.';
|
||||
$translation['image_too_narrow'] = 'Image too narrow.';
|
||||
$translation['image_too_high'] = 'Image too high.';
|
||||
$translation['image_too_short'] = 'Image too short.';
|
||||
$translation['ratio_too_high'] = 'Image ratio too high (image too wide).';
|
||||
$translation['ratio_too_low'] = 'Image ratio too low (image too high).';
|
||||
$translation['too_many_pixels'] = 'Image has too many pixels.';
|
||||
$translation['not_enough_pixels'] = 'Image has not enough pixels.';
|
||||
$translation['file_not_uploaded'] = 'File not uploaded. Can\'t carry on a process.';
|
||||
$translation['already_exists'] = '%s already exists. Please change the file name.';
|
||||
$translation['temp_file_missing'] = 'No correct temp source file. Can\'t carry on a process.';
|
||||
$translation['source_missing'] = 'No correct uploaded source file. Can\'t carry on a process.';
|
||||
$translation['destination_dir'] = 'Destination directory can\'t be created. Can\'t carry on a process.';
|
||||
$translation['destination_dir_missing'] = 'Destination directory doesn\'t exist. Can\'t carry on a process.';
|
||||
$translation['destination_path_not_dir'] = 'Destination path is not a directory. Can\'t carry on a process.';
|
||||
$translation['destination_dir_write'] = 'Destination directory can\'t be made writeable. Can\'t carry on a process.';
|
||||
$translation['destination_path_write'] = 'Destination path is not a writeable. Can\'t carry on a process.';
|
||||
$translation['temp_file'] = 'Can\'t create the temporary file. Can\'t carry on a process.';
|
||||
$translation['source_not_readable'] = 'Source file is not readable. Can\'t carry on a process.';
|
||||
$translation['no_create_support'] = 'No create from %s support.';
|
||||
$translation['create_error'] = 'Error in creating %s image from source.';
|
||||
$translation['source_invalid'] = 'Can\'t read image source. Not an image?.';
|
||||
$translation['gd_missing'] = 'GD doesn\'t seem to be present.';
|
||||
$translation['watermark_no_create_support'] = 'No create from %s support, can\'t read watermark.';
|
||||
$translation['watermark_create_error'] = 'No %s read support, can\'t create watermark.';
|
||||
$translation['watermark_invalid'] = 'Unknown image format, can\'t read watermark.';
|
||||
$translation['file_create'] = 'No %s create support.';
|
||||
$translation['no_conversion_type'] = 'No conversion type defined.';
|
||||
$translation['copy_failed'] = 'Error copying file on the server. copy() failed.';
|
||||
$translation['reading_failed'] = 'Error reading the file.';
|
||||
|
||||
?>
|
||||
86
libs/lang/class.upload.zh_CN.gb-2312.php
Normal file
86
libs/lang/class.upload.zh_CN.gb-2312.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.zh_CN.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) caoshiwei 2008. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified 09/29/2008 |
|
||||
// | Email caoshiwei@gmail.com |
|
||||
// | Web http://www.hfut.edu.cn |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | This program is free software; you can redistribute it and/or modify |
|
||||
// | it under the terms of the GNU General Public License version 2 as |
|
||||
// | published by the Free Software Foundation. |
|
||||
// | |
|
||||
// | This program is distributed in the hope that it will be useful, |
|
||||
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
// | GNU General Public License for more details. |
|
||||
// | |
|
||||
// | You should have received a copy of the GNU General Public License |
|
||||
// | along with this program; if not, write to the |
|
||||
// | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
|
||||
// | Boston, MA 02111-1307 USA |
|
||||
// | |
|
||||
// | Please give credit on sites that use class.upload and submit changes |
|
||||
// | of the script so other people can use them as well. |
|
||||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* Class upload Chinese translation
|
||||
*
|
||||
* @version 0.25
|
||||
* @codepage gb-2312
|
||||
* @author Shiwei Cao (caoshiwei@gmail.com)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright Shiwei Cao
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = '<27>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD>';
|
||||
$translation['local_file_missing'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD>';
|
||||
$translation['local_file_not_readable'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ɶ<EFBFBD><C9B6>';
|
||||
$translation['uploaded_too_big_ini'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>php.ini<6E><69>upload_max_filesize<7A><65><EFBFBD>õĴ<C3B5>С)<29><>';
|
||||
$translation['uploaded_too_big_html'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>HTML <20><><EFBFBD><EFBFBD><EFBFBD>õĴ<C3B5>С)<29><>';
|
||||
$translation['uploaded_partial'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ֶ<EFBFBD>ʧ)<29><>';
|
||||
$translation['uploaded_missing'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4>ļ<EFBFBD><C4BC><EFBFBD>ʧ)<29><>';
|
||||
$translation['uploaded_unknown'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (δ֪<CEB4><D6AA><EFBFBD><EFBFBD>).';
|
||||
$translation['try_again'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD>';
|
||||
$translation['file_too_big'] = '<27>ļ<EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['no_mime'] = 'δ֪<CEB4>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>͡<EFBFBD>';
|
||||
$translation['incorrect_file'] = '<27><><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʽ<EFBFBD><CABD>';
|
||||
$translation['image_too_wide'] = 'ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['image_too_narrow'] = 'ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫С<CCAB><D0A1>';
|
||||
$translation['image_too_high'] = 'ͼƬ<CDBC>߶<EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['image_too_short'] = 'ͼƬ<CDBC>߶<EFBFBD>̫С<CCAB><D0A1>';
|
||||
$translation['ratio_too_high'] = 'ͼƬ<CDBC><C6AC>/<2F>߱<EFBFBD><DFB1><EFBFBD>̫<EFBFBD><CCAB>(ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫<EFBFBD><CCAB>)<29><>';
|
||||
$translation['ratio_too_low'] = 'ͼƬ<CDBC><C6AC>/<2F>߱<EFBFBD><DFB1><EFBFBD>̫<EFBFBD><CCAB>(ͼƬ<CDBC>߶<EFBFBD>̫<EFBFBD><CCAB>).';
|
||||
$translation['too_many_pixels'] = 'ͼƬλ<C6AC><CEBB>̫<EFBFBD>ߡ<EFBFBD>';
|
||||
$translation['not_enough_pixels'] = 'ͼƬλ<C6AC><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['file_not_uploaded'] = '<27>ļ<EFBFBD>δ<EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['already_exists'] = '%s <20>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['temp_file_missing'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ʱ)Դ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['source_missing'] = '<27><><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir'] = 'Ŀ<><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir_missing'] = 'Ŀ<><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_path_not_dir'] = 'Ŀ¼·<C2BC><C2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir_write'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>д<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_path_write'] = 'Ŀ¼·<C2BC><C2B7><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['temp_file'] = '<27><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['source_not_readable'] = 'Դ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['no_create_support'] = '%s <20><>֧<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>';
|
||||
$translation['create_error'] = '<27><>Դ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD> %s ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>';
|
||||
$translation['source_invalid'] = '<27><EFBFBD><DEB7><EFBFBD>ȡԭʼͼƬ<CDBC><C6AC>ȷ<EFBFBD><C8B7><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>ͼƬ<CDBC>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['gd_missing'] = 'GD <20><><EFBFBD><EFBFBD><F1B2BBBF><EFBFBD>ʹ<EFBFBD>á<EFBFBD>';
|
||||
$translation['watermark_no_create_support'] = '%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>, <20><><EFBFBD>ܶ<EFBFBD>ȡˮӡ<CBAE>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['watermark_create_error'] = '%s <20><>֧<EFBFBD>ֶ<EFBFBD>, <20><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD>ˮӡ<CBAE><D3A1>';
|
||||
$translation['watermark_invalid'] = 'δ֪<CEB4>ļ<EFBFBD><C4BC><EFBFBD>ʽ, <20><EFBFBD><DEB7><EFBFBD>ȡˮӡ<CBAE>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['file_create'] = '%s <20><>֧<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['no_conversion_type'] = 'δ<><CEB4><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['copy_failed'] = '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><CFB8><EFBFBD><EFBFBD>ļ<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD> copy() <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>.';
|
||||
$translation['reading_failed'] = '<27><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>';
|
||||
|
||||
?>
|
||||
85
libs/lang/class.upload.zh_CN.php
Normal file
85
libs/lang/class.upload.zh_CN.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.zh_CN.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) caoshiwei 2008. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified 09/29/2008 |
|
||||
// | Email caoshiwei@gmail.com |
|
||||
// | Web http://www.hfut.edu.cn |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | This program is free software; you can redistribute it and/or modify |
|
||||
// | it under the terms of the GNU General Public License version 2 as |
|
||||
// | published by the Free Software Foundation. |
|
||||
// | |
|
||||
// | This program is distributed in the hope that it will be useful, |
|
||||
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
// | GNU General Public License for more details. |
|
||||
// | |
|
||||
// | You should have received a copy of the GNU General Public License |
|
||||
// | along with this program; if not, write to the |
|
||||
// | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
|
||||
// | Boston, MA 02111-1307 USA |
|
||||
// | |
|
||||
// | Please give credit on sites that use class.upload and submit changes |
|
||||
// | of the script so other people can use them as well. |
|
||||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* Class upload Chinese translation
|
||||
*
|
||||
* @version 0.25
|
||||
* @author Shiwei Cao (caoshiwei@gmail.com)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright Shiwei Cao
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = '文件错误,请重试。';
|
||||
$translation['local_file_missing'] = '本地文件不存在。';
|
||||
$translation['local_file_not_readable'] = '本地文件不可读。';
|
||||
$translation['uploaded_too_big_ini'] = '文件上件出错 (上传的文件大小超过了php.ini中upload_max_filesize设置的大小)。';
|
||||
$translation['uploaded_too_big_html'] = '文件上件出错 (上传的文件大小超过了HTML 表单设置的大小)。';
|
||||
$translation['uploaded_partial'] = '文件上件出错 (上传的文件部分丢失)。';
|
||||
$translation['uploaded_missing'] = '文件上件出错 (上传文件丢失)。';
|
||||
$translation['uploaded_unknown'] = '文件上件出错 (未知错误).';
|
||||
$translation['try_again'] = '文件上件出错。 请重试。';
|
||||
$translation['file_too_big'] = '文件太大。';
|
||||
$translation['no_mime'] = '未知文件类型。';
|
||||
$translation['incorrect_file'] = '不正确的文件格式。';
|
||||
$translation['image_too_wide'] = '图片宽度太大。';
|
||||
$translation['image_too_narrow'] = '图片宽度太小。';
|
||||
$translation['image_too_high'] = '图片高度太大。';
|
||||
$translation['image_too_short'] = '图片高度太小。';
|
||||
$translation['ratio_too_high'] = '图片宽/高比率太高(图片宽度太大)。';
|
||||
$translation['ratio_too_low'] = '图片宽/高比率太低(图片高度太大).';
|
||||
$translation['too_many_pixels'] = '图片位数太高。';
|
||||
$translation['not_enough_pixels'] = '图片位数不够';
|
||||
$translation['file_not_uploaded'] = '文件未上传,不能进行处理。';
|
||||
$translation['already_exists'] = '%s 已经存在,请更换文件名。';
|
||||
$translation['temp_file_missing'] = '处理的(临时)源文件不正确,不能进行处理。';
|
||||
$translation['source_missing'] = '已上传的文件丢失,不能进行处理。';
|
||||
$translation['destination_dir'] = '目标文件目录不能被创建,不能进行处理。';
|
||||
$translation['destination_dir_missing'] = '目标文件目录不存在,不能进行处理。';
|
||||
$translation['destination_path_not_dir'] = '目录路径不是一个有效的目录,不能进行处理。';
|
||||
$translation['destination_dir_write'] = '不能让目标文件目录设置为可写的,不能进行处理。';
|
||||
$translation['destination_path_write'] = '目录路径是不可以写的,不能进行处理。';
|
||||
$translation['temp_file'] = '不能创建临时文件,不能进行处理。';
|
||||
$translation['source_not_readable'] = '源文件不可以读,不能进行处理。';
|
||||
$translation['no_create_support'] = '%s 不支持创建';
|
||||
$translation['create_error'] = '从源文件创建 %s 图片过程中出错。';
|
||||
$translation['source_invalid'] = '无法读取原始图片,确认是不是正确的图片文件?';
|
||||
$translation['gd_missing'] = 'GD 好像不可以使用。';
|
||||
$translation['watermark_no_create_support'] = '%s 创建不支持, 不能读取水印文件。';
|
||||
$translation['watermark_create_error'] = '%s 不支持读, 不能创建水印。';
|
||||
$translation['watermark_invalid'] = '未知文件格式, 无法读取水印文件。';
|
||||
$translation['file_create'] = '%s 不支持创建。';
|
||||
$translation['no_conversion_type'] = '未定义转换类型';
|
||||
$translation['copy_failed'] = '在服务器上复制文件时出错。 copy() 操作失败.';
|
||||
$translation['reading_failed'] = '读取过程中出错。';
|
||||
|
||||
?>
|
||||
14
libs/login.php
Normal file
14
libs/login.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require_once __DIR__.'/header.php';
|
||||
echo '
|
||||
<div class="col-md-12" style="margin: 40px;">
|
||||
<form class="form-inline col-md-6 col-md-offset-3" action="../index.php" method="post">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputInviteCode3">密码</label>
|
||||
<input type="password" name="password" class="form-control" placeholder="请输入登录密码">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">登录</button>
|
||||
</form>
|
||||
</div>
|
||||
';
|
||||
include_once __DIR__.'/footer.php';
|
||||
Reference in New Issue
Block a user