#1022 - Отображение картинок в редакторе страниц

parent d4119a2c
......@@ -2,6 +2,12 @@
session_start();
mb_internal_encoding('UTF-8');
date_default_timezone_set('Europe/Rome');
$params = require(__DIR__ . '/../../../config/params-local.php');
// $application = new yii\web\Application($config);
// $application->run();
//------------------------------------------------------------------------------
// DON'T COPY THIS VARIABLES IN FOLDERS config.php FILES
//------------------------------------------------------------------------------
......@@ -20,12 +26,8 @@ date_default_timezone_set('Europe/Rome');
// | | | |- responsivefilemanager
// | | | | |- plugin.min.js
$base_url =
// Get HTTP/HTTPS
((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http').
'://'.
// Get domain portion
$_SERVER['HTTP_HOST']; // DON'T TOUCH (base url (only domain) of site (without final /)).
// Get domain portion
$base_url = $params['frontUrl']; // DON'T TOUCH (base url (only domain) of site (without final /)).
$upload_dir = '/uploads/source/'; // path from base_url to base of upload folder (with start and final /)
$current_path = '../../../frontend/web/uploads/source/'; // relative path from filemanager folder to upload folder (with final /)
//thumbs folder can't put inside upload folder
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment