TASK-232 Change encryt with URL_KEY and Deprecate encryptlink
This commit is contained in:
@@ -36,17 +36,11 @@ class XmlFormFieldToolButton extends XmlFormField
|
||||
public function render($value = null, $paramDummy2 = null)
|
||||
{
|
||||
$url = $this->file;
|
||||
if ($this->home === "methods") {
|
||||
$url = G::encryptlink(SYS_URI . $url);
|
||||
}
|
||||
if ($this->home === "public_html") {
|
||||
$url = '/' . $url;
|
||||
}
|
||||
$urlAlt = $this->fileAlt;
|
||||
if ($this->fileAlt !== '') {
|
||||
if ($this->home === "methods") {
|
||||
$urlAlt = G::encryptlink(SYS_URI . $urlAlt);
|
||||
}
|
||||
if ($this->home === "public_html") {
|
||||
$urlAlt = '/' . $urlAlt;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
*/
|
||||
|
||||
// URL Key
|
||||
define("URL_KEY", 'c0l0s40pt1mu59r1m3' );
|
||||
define('URL_KEY', config('app.key'));
|
||||
|
||||
// Other definitions
|
||||
define('TIMEOUT_RESPONSE', 100 ); //web service timeout
|
||||
|
||||
@@ -112,8 +112,6 @@ set_include_path(
|
||||
* Global definitions
|
||||
*/
|
||||
|
||||
// URL Key
|
||||
define("URL_KEY", 'c0l0s40pt1mu59r1m3');
|
||||
|
||||
// Application settings
|
||||
define('TIMEOUT_RESPONSE', 100); //web service timeout in seconds
|
||||
@@ -330,7 +328,6 @@ if (!file_exists(PATH_HTML . 'index.html')) { // if not, create it from template
|
||||
)));
|
||||
}
|
||||
|
||||
|
||||
define('SYS_URI', '/sys' . SYS_TEMP . '/' . SYS_LANG . '/' . SYS_SKIN . '/');
|
||||
|
||||
// defining the serverConf singleton
|
||||
@@ -367,6 +364,9 @@ ini_set('date.timezone', TIME_ZONE); //Set Time Zone
|
||||
|
||||
date_default_timezone_set(TIME_ZONE);
|
||||
|
||||
// URL Key
|
||||
define('URL_KEY', config('app.key'));
|
||||
|
||||
config(['app.timezone' => TIME_ZONE]);
|
||||
|
||||
// Load Language Translation
|
||||
|
||||
Reference in New Issue
Block a user