Files
Pichome/dzz/pichome/upload.php
2021-09-17 10:56:51 +08:00

14 lines
533 B
PHP

<?php
/**
* Created by PhpStorm.
* User: a
* Date: 2017/12/26
* Time: 11:38
*/
if (!defined('IN_OAOOA')) {
exit('Access Denied');
}
include libfile ( 'class/uploadhandler' );
$options = array ( 'accept_file_types' => '/\.(gif|jpe?g|png)$/i' , 'upload_dir' => $_G[ 'setting' ][ 'attachdir' ] . 'cache/' , 'upload_url' => $_G[ 'setting' ][ 'attachurl' ] . 'cache/' , 'max_file_size' => 2 * 1024 * 1024 , 'thumbnail' => array ( 'max-width' => 256 , 'max-height' =>256 ) );
$upload_handler = new uploadhandler( $options );
exit();