oaooaPicHome beta1
This commit is contained in:
14
dzz/pichome/upload.php
Normal file
14
dzz/pichome/upload.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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();
|
||||
Reference in New Issue
Block a user