First commit

This commit is contained in:
2025-02-28 08:45:43 +01:00
commit 1f4e772600
1122 changed files with 74621 additions and 0 deletions

View File

@ -0,0 +1,92 @@
<?php global $tx, $csrfSession; ?>
<!--utf-8 marker: äöü -->
<?php
if(@$_POST['fb_viewSelect'])
{
csrfProtection();
$_SESSION['fb_view'] = $_POST['fb_viewSelect'];
}
echo '<form method="post" action="#">
<input type="hidden" name="csrf_token" value="' . $_SESSION[$csrfSession] . '">
<select name="fb_viewSelect" style="float: right; width: 160px; background: #fff; border: 2px solid #c60; padding: 2px; margin: 6px 3px 0 0;" onchange="this.form.submit()">
<option value="list" style="padding: 0 6px;"';
if(@$_SESSION['fb_view'] == 'list')
{
echo ' selected="selected"';
}
echo '>' . $tx['filebrowser']['view_list'] . '</option>
<option value="miniatur" style="padding: 0 6px;"';
if((@$_SESSION['fb_view'] == 'miniatur' || !isset($_SESSION['fb_view'])))
{
echo ' selected="selected"';
}
echo '>' . $tx['filebrowser']['view_thumbs'] . '</option>
</select>
<noscript><input type="submit" value="Submit" /></noscript>
</form>
<div style="clear: both;"></div>';
?>
<table style="width: 100%;">
<tr>
<td style="width: 20%; min-width: 280px; vertical-align: top;">
<div id="CMSimpleFileBrowserMenu">
<div id="folders">
%FOLDERS%
</div>
</div>
</td>
<td style="vertical-align: top;">
<div id="CMSimpleFileBrowser" style="padding: 0 10px!important;">
<div id="subfolders">
<div style="clear: both; margin: 0 0 10px 0;">
<p>
<?php echo '<b>' . $tx['filetype']['folder'] . ': &nbsp; <span style="white-space: nowrap; color: #c00; font-family: courier new, monospace; font-size: 16px;">' . $_SERVER['SERVER_NAME'] . str_replace($_SESSION['subsite_folder_link'],'',$_SESSION['fb_sn']) . '</span></b> <span style="white-space: nowrap; font-family: courier new, monospace; font-size: 16px;">' . str_replace($_SESSION['subsite_folder'],'',$this->currentDirectory) . '</span>'; ?>
</p>
<b><a href="javascript:void();" onClick="window.showcmsimplefbForm('cmsimplefbCreateDir');"><?php echo '=> ' . $this->translate('create_folder'); ?></a></b>
</div>
<fieldset id="cmsimplefbCreateDir" class="cmsimplefbform">
<legend><?php echo $this->translate('create_subfolder_in', $this->currentDirectory); ?> <a href="javascript:window.closecmsimplefbForm('cmsimplefbCreateDir');"><b>[ x ]</b></a></legend>
<div style="padding: 14px 10px;">
<form method="POST" action="">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION[$csrfSession];?>">
<input type="text" style="max-width: 240px;" name="createFolder" size="30" />
<input type="submit" class="submit" value="<?php echo $this->translate('create_folder'); ?>" />
</form>
</div>
</fieldset>
%SUBFOLDERS%
</div>
<hr />
<div id="files">
<div style="font-weight: 700; margin-bottom: 12px;">
<?php echo $this->translate('files');?> &nbsp; <a href="javascript:window.showcmsimplefbForm('cmsimplefbUploadFile');"> =&gt; <?php echo $this->translate('upload_file'); ?></a>
</div>
<fieldset id="cmsimplefbUploadFile" class="cmsimplefbform">
<legend><?php echo $this->translate('upload_file_to', $this->currentDirectory); ?> <a href="javascript:window.closecmsimplefbForm('cmsimplefbUploadFile');"><b>[ x ]</b></a></legend>
<div style="padding: 4px 10px;">
<form method="POST" action="" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION[$csrfSession];?>">
<p><input type="file" name="fbupload" style="float: left;" /></p><br />
<input type="hidden" name="upload" value="upload" />
<p><input type="submit" class="submit" value="<?php echo $this->translate('upload_file'); ?>" /></p>
</form>
</div>
</fieldset>
<p style="font-size: 14px;"><?php echo $this->translate('files_rename');?></p>
%MESSAGE%
%FILES%
</div>
</div>
</td>
</tr>
</table>
<div style="clear:both;"></div>

View File

@ -0,0 +1,101 @@
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Filebrowser</title>
<link rel="stylesheet" href="../../css/core.css" type="text/css">
<style>body {padding: 0; margin: 0; overflow: auto;}</style>
%SCRIPT%
<script type="text/javascript" src="./js/filebrowser.js"></script>
</head>
<body>
<!--utf-8 marker: äöü -->
<?php
@session_start();
include('../../cmsimple/languages/' . $_SESSION['fb_sl'] . '.php');
if(@$_POST['fb_viewSelect'])
{
$_SESSION['fb_view'] = $_POST['fb_viewSelect'];
}
echo '<form method="post" action="#">
<input type="hidden" name="csrf_token" value="' . $_SESSION['csrf_token' . $_SESSION['fb_snForCsrf']] . '">
<select name="fb_viewSelect" style="float: right; width: 160px; border: 2px solid #c60; padding: 2px; margin: 6px 3px 0 0;" onchange="this.form.submit()">
<option value="list" style="padding: 0 6px;"';
if(@$_SESSION['fb_view'] == 'list')
{
echo ' selected="selected"';
}
echo '>' . $tx['filebrowser']['view_list'] . '</option>
<option value="miniatur" style="padding: 0 6px;"';
if((@$_SESSION['fb_view'] == 'miniatur' || !isset($_SESSION['fb_view'])))
{
echo ' selected="selected"';
}
echo '>' . $tx['filebrowser']['view_thumbs'] . '</option>
</select>
<noscript><input type="submit" value="Submit"></noscript>
</form>
<div style="clear: both;"></div>';
?>
<div style="position: absolute; width: 100%; height: 90%; overflow: scroll; border: 0px solid #080;">
<div id="CMSimpleFileBrowserMenu">
<?php echo $tx['filetype']['folder'] . ': &nbsp; <span style="white-space: nowrap; color: #c00; font-family: courier new, monospace; font-size: 12px;">' . $_SERVER['SERVER_NAME'] . str_replace($_SESSION['subsite_folder_link'],'',$_SESSION['fb_sn']) . '</span> <span style="white-space: nowrap; font-family: courier new, monospace; font-size: 12px;">' . str_replace($_SESSION['subsite_folder'],'',$this->currentDirectory) . '</span>'; ?><br>
<a href="#" onClick="window.showcmsimplefbForm('cmsimplefbCreateDir');"><?php echo $this->translate('create_folder'); ?></a> |
<a href="#" onClick="window.showcmsimplefbForm('cmsimplefbUploadFile');"><?php echo $this->translate('upload_file'); ?></a>
<fieldset id="cmsimplefbUploadFile" class="cmsimplefbform">
<legend><?php echo $this->translate('upload_file_to', $this->currentDirectory); ?> <a href="#" onClick="window.closecmsimplefbForm('cmsimplefbUploadFile');">[x]</a></legend>
<div style="padding: 20px 30px;">
<form method="POST" action="" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token' . $_SESSION['fb_snForCsrf']];?>">
<input type="file" name="fbupload">
<input type="hidden" name="upload" value="upload">
<input type="submit" class="submit" value="<?php echo $this->translate('upload_file'); ?>">
</form>
</div>
</fieldset>
<fieldset id="cmsimplefbCreateDir" class="cmsimplefbform">
<legend><?php echo $this->translate('create_subfolder_in', $this->currentDirectory); ?> <a href="#" onClick="window.closecmsimplefbForm('cmsimplefbCreateDir');">[x]</a></legend>
<div style="padding: 20px 30px;">
<form method="POST" action="">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token' . $_SESSION['fb_snForCsrf']];?>">
<input type="text" name="createFolder" size="30">
<input type="submit" class="submit" value="<?php echo $this->translate('create_folder'); ?>">
</form>
</div>
</fieldset>
</div>
<div id="CMSimpleFileBrowser">
<table style="width: 100%;">
<tr>
<td style="width: 20%; min-width: 200px; vertical-align: top;">
<div id="folders" style="width: 100%; overflow: hidden;">
%FOLDERS%
</div>
</td>
<td style="vertical-align: top;">
<div id="files" style="overflow: auto; z-index: 3; font-weight: 300; padding: 0 6px 100px 16px;">
<span class="cmsimplefb_files"><?php echo $this->translate('files');?></span><br>
%MESSAGE%
%FILES%
</div>
</td>
</tr>
</table>
<div style="clear:both;"></div>
</div>
</div>
</body>
</html>