Commit 6e2149a9 authored by Shakarim Sapa's avatar Shakarim Sapa

Merge remote-tracking branch 'origin/master'

parents 3163b90e 1e3bf8d0
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
session_start(); session_start();
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
date_default_timezone_set('Europe/Rome'); 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 // DON'T COPY THIS VARIABLES IN FOLDERS config.php FILES
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
...@@ -20,12 +26,8 @@ date_default_timezone_set('Europe/Rome'); ...@@ -20,12 +26,8 @@ date_default_timezone_set('Europe/Rome');
// | | | |- responsivefilemanager // | | | |- responsivefilemanager
// | | | | |- plugin.min.js // | | | | |- plugin.min.js
$base_url = // Get domain portion
// Get HTTP/HTTPS $base_url = $params['frontUrl']; // DON'T TOUCH (base url (only domain) of site (without final /)).
((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 /)).
$upload_dir = '/uploads/source/'; // path from base_url to base of upload folder (with start and 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 /) $current_path = '../../../frontend/web/uploads/source/'; // relative path from filemanager folder to upload folder (with final /)
//thumbs folder can't put inside upload folder //thumbs folder can't put inside upload folder
......
<?php <?php
return [ return [
'frontUrl' => 'http://task-on.com'
]; ];
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