Refactor file manager key handling in article, banner, and producer edit templates; remove unnecessary .DS_Store files
This commit is contained in:
@@ -74,7 +74,7 @@ ob_start();
|
|||||||
'value' => htmlspecialchars( $this -> article['languages'][ $lg['id'] ]['main_image'] ),
|
'value' => htmlspecialchars( $this -> article['languages'][ $lg['id'] ]['main_image'] ),
|
||||||
'icon_content' => 'przeglądaj',
|
'icon_content' => 'przeglądaj',
|
||||||
'inline' => true,
|
'inline' => true,
|
||||||
'icon_js' => "window.open ( '/libraries/filemanager-9.14.2/dialog.php?type=1&popup=1&field_id=main_image_" . $lg['id'] . "&akey=c3cb2537d25c0efc9e573d059d79c3b8', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
|
'icon_js' => "window.open ( '/libraries/filemanager-9.14.2/dialog.php?type=1&popup=1&field_id=main_image_" . $lg['id'] . "&akey=" . $rfmAkeyJS . "', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
|
||||||
] );
|
] );
|
||||||
?>
|
?>
|
||||||
<?= \Html::textarea(
|
<?= \Html::textarea(
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
\S::set_session( 'admin', true );
|
\S::set_session( 'admin', true );
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
|
$_SESSION['rfm_akey'] = bin2hex(random_bytes(16));
|
||||||
|
$_SESSION['rfm_akey_expires'] = time() + 20*60;
|
||||||
|
$_SESSION['can_use_rfm'] = true;
|
||||||
|
$rfmAkeyJS = $_SESSION['rfm_akey'];
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -80,7 +85,7 @@ ob_start();
|
|||||||
'id' => 'src_' . $lg['id'],
|
'id' => 'src_' . $lg['id'],
|
||||||
'value' => $this -> banner['languages'][ $lg['id'] ]['src'],
|
'value' => $this -> banner['languages'][ $lg['id'] ]['src'],
|
||||||
'icon_content' => 'przeglądaj',
|
'icon_content' => 'przeglądaj',
|
||||||
'icon_js' => "window.open ( 'http://" . $_SERVER['SERVER_NAME'] . "/libraries/filemanager-9.14.2/dialog.php?type=1&popup=1&field_id=src_" . $lg['id'] . "&akey=c3cb2537d25c0efc9e573d059d79c3b8', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
|
'icon_js' => "window.open ( 'http://" . $_SERVER['SERVER_NAME'] . "/libraries/filemanager-9.14.2/dialog.php?type=1&popup=1&field_id=src_" . $lg['id'] . "&akey=" . $rfmAkeyJS . "', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
<script type="text/javascript" src="/libraries/framework/vendor/plugins/ckeditor/adapters/jquery.js"></script>
|
<script type="text/javascript" src="/libraries/framework/vendor/plugins/ckeditor/adapters/jquery.js"></script>
|
||||||
<?
|
<?
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
|
$_SESSION['rfm_akey'] = bin2hex(random_bytes(16));
|
||||||
|
$_SESSION['rfm_akey_expires'] = time() + 20*60;
|
||||||
|
$_SESSION['can_use_rfm'] = true;
|
||||||
|
$rfmAkeyJS = $_SESSION['rfm_akey'];
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
?>
|
?>
|
||||||
<div id="settings-tabs">
|
<div id="settings-tabs">
|
||||||
@@ -30,7 +36,7 @@ ob_start();
|
|||||||
'id' => 'img',
|
'id' => 'img',
|
||||||
'value' => $this -> producer['img'],
|
'value' => $this -> producer['img'],
|
||||||
'icon_content' => 'przeglądaj',
|
'icon_content' => 'przeglądaj',
|
||||||
'icon_js' => "window.open ( 'http://" . $_SERVER['SERVER_NAME'] . "/libraries/filemanager-9.14.2/dialog.php?type=1&popup=1&field_id=img&akey=c3cb2537d25c0efc9e573d059d79c3b8', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
|
'icon_js' => "window.open ( 'http://" . $_SERVER['SERVER_NAME'] . "/libraries/filemanager-9.14.2/dialog.php?type=1&popup=1&field_id=img&akey=" . $rfmAkeyJS . "', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
|
||||||
] );
|
] );
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
BIN
autoload/.DS_Store
vendored
BIN
autoload/.DS_Store
vendored
Binary file not shown.
BIN
autoload/front/.DS_Store
vendored
BIN
autoload/front/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user