Exemplo n.º 1
0
 public function __construct()
 {
     if (!WF_Auth::isLogin()) {
         $this->code = 403;
         $this->mess = '登陆已过期,请重新登陆';
         $this->show();
     }
     if (!WF_Auth::isAllow()) {
         $this->code = 403;
         $this->mess = 'Request api not auth';
         $this->show();
     }
     $act = 'on_' . WF_ACTION_NAME;
     if (!method_exists($this, $act)) {
         $this->code = 300;
         $this->mess = 'Request api not found';
         $this->show();
     }
     $this->FileFS = new WF_FileFS();
     $this->init();
     $this->{$act}();
 }
Exemplo n.º 2
0
<?php

// +----------------------------------------------------------------------
// | Copyright (C) 2015 AdminSheng.Com
// +----------------------------------------------------------------------
// | Author:   站长之声
// +----------------------------------------------------------------------
require './config.php';
if (!WF_Auth::isLogin()) {
    redirect('login.php?act=in');
    exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <meta name="renderer" content="webkit">
    <title> 文件上传组件</title>

    <script src="static/js/jquery-1.7.2.min.js"></script>
    <script src="static/plupload/plupload.min.js"></script>
     <!-- <script src="static/plupload/plupload.js"></script>
    <script src="static/plupload/plupload.flash.js"></script>
    <script src="static/plupload/plupload.html4.js"></script>
    <script src="static/plupload/plupload.html5.js"></script> -->

    <link rel="stylesheet" href="static/plupload/jquery.plupload.queue/jquery.plupload.queue.css" />
    <script src="static/plupload/jquery.plupload.queue/jquery.plupload.queue.min.js"></script>

    <script src="static/js/webftp.core.js"></script>
Exemplo n.º 3
0
<body id="body">
<div id="loading">正在加载...</div>

<div id="header">
	<h1 id="logo">
		<a target="_blank" href="http://www.adminsheng.com">站长附件上传下载管理系统</a>
	</h1>
</div>

<div id="main">
	<div class="top"></div>

	<div class="col-sub">
		<ul id="main-menu">
		  	<?php 
if (WF_Auth::isAdmin() && is_dir('./admin')) {
    ?>
		  		<li id="help8">
		  			<span>
		  				<i class="icon"></i>
		  				<a target="_blank" href="./admin/">管理中心</a>
		  			</span>
		  		</li>
		  	<?php 
}
?>
		  	<li id="help1">
		  		<span>
		  			<i class="icon"></i>
		  			<a href="javascript:void(0);" onclick="app.nfs.pathinfo();">目录详情</a>
		  		</span>
Exemplo n.º 4
0
// +----------------------------------------------------------------------
// | Copyright (C) 2015 AdminSheng.Com
// +----------------------------------------------------------------------
// | Author:   站长之声
// +----------------------------------------------------------------------
require './config.php';
if (isset($_GET['act'])) {
    switch ($_GET['act']) {
        case 'login_check':
            WF_Auth::loginCheck();
            break;
        case 'resetpasswd':
            WF_Auth::updateUserPassword();
            break;
        case 'out':
            WF_Auth::loginOut();
            break;
        case 'in':
            break;
        default:
            exit(WF_Session::get('login_error'));
    }
}
//
$uhash = $_SESSION['wf_uhash'] = rand(1000, 9999);
$error = wf_gpc('wf_error', 'S');
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit">