? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/config/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/config/module.config.php

<?php
/**
 * @Author: Cel Ticó Petit
 * @Contact: cel@cenics.net
 * @Company: Cencis s.c.p.
 */

/*

CREATE TABLE IF NOT EXISTS `qu-plupload` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_parent` int(11) NOT NULL,
  `model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tmp_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `error` int(255) NOT NULL,
  `size` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

*/

return array(

    'controllers' => array(
        'invokables' => array(
            'QuPlupload' => 'QuPlupload\Controller\PluploadController',
        ),
    ),
    'router' => array(
        'routes' => array(
            'quplupload' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/quplupload',
                    'defaults' => array(
                        'controller' => 'QuPlupload',
                        'action'     => 'index',
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'upload' => array(
                        'type'    => 'segment',
                        'options' => array(
                            'route' => '/upload[/:id][/:model]',
                            'constraints' => array(
                                'action'     => 'upload',
                                'id'        => '[0-9]+',
                            ),
                            'defaults' => array(
                                'controller' => 'QuPlupload',
                                'action'     => 'upload',
                            ),
                        ),
                    ),
                    'dump' => array(
                        'type'    => 'segment',
                        'options' => array(
                            'route' => '/load[/:id][/:model]',
                            'constraints' => array(
                                'action'  => 'load',
                                'id'      => '[0-9]+',
                                'model'   => '[a-zA-Z][a-zA-Z0-9_.-]*',
                            ),
                            'defaults' => array(
                                'controller' => 'QuPlupload',
                                'action'     => 'load',
                            ),
                        ),
                    ),
                    'remove' => array(
                        'type'    => 'segment',
                        'options' => array(
                            'route' => '/remove[/:id][/:id_parent][/:model]',
                            'constraints' => array(
                                'action'     => 'remove',
                                'id'         => '[0-9]+',
                                'id_parent'  => '[0-9]+',
                                'model'      => '[a-zA-Z][a-zA-Z0-9_.-]*',
                            ),
                            'defaults' => array(
                                'controller' => 'QuPlupload',
                                'action'     => 'remove',
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),

    'view_manager' => array(
        'template_path_stack' => array(
            __DIR__ . '/../view',
        ),
    ),

    'service_manager' => array(
        'aliases' => array(
            'plupload_adapter' => 'Zend\Db\Adapter\Adapter',
        ),
    ),
    'QuConfig'=>array(

        // Config Plupload
        'QuPlupload'=>array(

            'tableName'          => 'qu-plupload',
            'UrlUpload'          => '/quplupload/upload',
            'UrlRemove'          => '/quplupload/remove',
            'UrlLoad'            => '/quplupload/load',
            'DirUpload'          => '/uploads/files/plupload',
             //Module
            'DirUploadAbsolute'  =>  dirname(dirname(dirname(__DIR__)))  . '/web/uploads/files/plupload',
             //Vendor
             //'DirUploadAbsolute'  =>  dirname(dirname(dirname(dirname(__DIR__))))  . '/public/uploads/files/plupload',
            'DirJs'              => 'js/plugins/plupload',
            'Resize'             => array('1200','900'), //$width, $height
            'ThumbResize'        => array(

                /* Properties  GdThumb Class Definition

                public function resize ($maxWidth = 0, $maxHeight = 0)
                public function adaptiveResize ($width, $height)
                public function resizePercent ($percent = 0)
                public function cropFromCenter ($cropWidth, $cropHeight = null)
                public function crop ($startX, $startY, $cropWidth, $cropHeight)

                */

                'xl' => array('resize','1170','420'),
                'l'  => array('resize','600','550'),
                'm'  => array('resize','500','418'),
                's'  => array('adaptiveResize','30','20'),

            ),
            /**
             * @package unfinished
             * @todo finish config parameters Plupload
             */
        ),
    ),

);

T1KUS90T
  root-grov@210.1.60.28:~$