mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the Limesurvey 1.91+ branch of queXS in to the trunk
This commit is contained in:
4
include/limesurvey/admin/scripts/kcfinder/tpl/.htaccess
Normal file
4
include/limesurvey/admin/scripts/kcfinder/tpl/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
<Files *>
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
||||
@@ -0,0 +1,2 @@
|
||||
<link href="css.php" rel="stylesheet" type="text/css" />
|
||||
<link href="themes/<?php echo $this->config['theme'] ?>/style.css" rel="stylesheet" type="text/css" />
|
||||
@@ -0,0 +1,42 @@
|
||||
<script src="js/jquery.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.rightClick.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.drag.js" type="text/javascript"></script>
|
||||
<script src="js/helper.js" type="text/javascript"></script>
|
||||
<script src="js/browser/joiner.php" type="text/javascript"></script>
|
||||
<script src="js_localize.php?lng=<?php echo $this->lang ?>" type="text/javascript"></script>
|
||||
<?php IF (isset($this->opener['TinyMCE']) && $this->opener['TinyMCE']): ?>
|
||||
<script src="<?php echo $this->config['_tinyMCEPath'] ?>/tiny_mce_popup.js" type="text/javascript"></script>
|
||||
<?php ENDIF ?>
|
||||
<?php IF (file_exists("themes/{$this->config['theme']}/init.js")): ?>
|
||||
<script src="themes/<?php echo $this->config['theme'] ?>/init.js" type="text/javascript"></script>
|
||||
<?php ENDIF ?>
|
||||
<script type="text/javascript">
|
||||
browser.support.chromeFrame = <?php echo (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), " chromeframe") !== false) ? "true" : "false" ?>;
|
||||
browser.support.zip = <?php echo (class_exists('ZipArchive') && !$this->config['denyZipDownload']) ? "true" : "false" ?>;
|
||||
browser.lang = "<?php echo text::jsValue($this->lang) ?>";
|
||||
browser.type = "<?php echo text::jsValue($this->type) ?>";
|
||||
browser.theme = "<?php echo text::jsValue($this->config['theme']) ?>";
|
||||
browser.readonly = <?php echo $this->config['readonly'] ? "true" : "false" ?>;
|
||||
browser.dir = "<?php echo text::jsValue($this->session['dir']) ?>";
|
||||
browser.uploadURL = "<?php echo text::jsValue($this->config['uploadURL']) ?>";
|
||||
browser.thumbsURL = browser.uploadURL + "/<?php echo text::jsValue($this->config['thumbsDir']) ?>";
|
||||
<?php IF (isset($this->get['opener']) && strlen($this->get['opener'])): ?>
|
||||
browser.opener.name = "<?php echo text::jsValue($this->get['opener']) ?>";
|
||||
<?php ENDIF ?>
|
||||
<?php IF (isset($this->opener['CKEditor']['funcNum']) && $this->opener['CKEditor']['funcNum']): ?>
|
||||
browser.opener.CKEditor = {};
|
||||
browser.opener.CKEditor.funcNum = <?php echo $this->opener['CKEditor']['funcNum'] ?>;
|
||||
<?php ENDIF ?>
|
||||
<?php IF (isset($this->opener['TinyMCE']) && $this->opener['TinyMCE']): ?>
|
||||
browser.opener.TinyMCE = true;
|
||||
<?php ENDIF ?>
|
||||
_.kuki.domain = "<?php echo text::jsValue($this->config['cookieDomain']) ?>";
|
||||
_.kuki.path = "<?php echo text::jsValue($this->config['cookiePath']) ?>";
|
||||
_.kuki.prefix = "<?php echo text::jsValue($this->config['cookiePrefix']) ?>";
|
||||
$(document).ready(function() {
|
||||
browser.resize();
|
||||
browser.init();
|
||||
$('#all').css('visibility', 'visible');
|
||||
});
|
||||
$(window).resize(browser.resize);
|
||||
</script>
|
||||
@@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>KCFinder: /<?php echo $this->session['dir'] ?></title>
|
||||
<?php INCLUDE "tpl/tpl__css.php" ?>
|
||||
<?php INCLUDE "tpl/tpl__javascript.php" ?>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
$('body').noContext();
|
||||
</script>
|
||||
<div id="resizer"></div>
|
||||
<div id="shadow"></div>
|
||||
<div id="dialog"></div>
|
||||
<div id="clipboard"></div>
|
||||
<div id="all">
|
||||
<div id="left">
|
||||
<div id="folders"></div>
|
||||
</div>
|
||||
<div id="right">
|
||||
<div id="toolbar">
|
||||
<div>
|
||||
<a href="kcact:upload"><?php echo $this->label("Upload") ?></a>
|
||||
<a href="kcact:refresh"><?php echo $this->label("Refresh") ?></a>
|
||||
<a href="kcact:settings"><?php echo $this->label("Settings") ?></a>
|
||||
<a href="kcact:maximize"><?php echo $this->label("Maximize") ?></a>
|
||||
<a href="kcact:about"><?php echo $this->label("About") ?></a>
|
||||
<div id="loading"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="settings">
|
||||
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend><?php echo $this->label("View:") ?></legend>
|
||||
<table summary="view" id="view"><tr>
|
||||
<th><input id="viewThumbs" type="radio" name="view" value="thumbs" /></th>
|
||||
<td><label for="viewThumbs"> <?php echo $this->label("Thumbnails") ?></label> </td>
|
||||
<th><input id="viewList" type="radio" name="view" value="list" /></th>
|
||||
<td><label for="viewList"> <?php echo $this->label("List") ?></label></td>
|
||||
</tr></table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend><?php echo $this->label("Show:") ?></legend>
|
||||
<table summary="show" id="show"><tr>
|
||||
<th><input id="showName" type="checkbox" name="name" /></th>
|
||||
<td><label for="showName"> <?php echo $this->label("Name") ?></label> </td>
|
||||
<th><input id="showSize" type="checkbox" name="size" /></th>
|
||||
<td><label for="showSize"> <?php echo $this->label("Size") ?></label> </td>
|
||||
<th><input id="showTime" type="checkbox" name="time" /></th>
|
||||
<td><label for="showTime"> <?php echo $this->label("Date") ?></label></td>
|
||||
</tr></table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<fieldset>
|
||||
<legend><?php echo $this->label("Order by:") ?></legend>
|
||||
<table summary="order" id="order"><tr>
|
||||
<th><input id="sortName" type="radio" name="sort" value="name" /></th>
|
||||
<td><label for="sortName"> <?php echo $this->label("Name") ?></label> </td>
|
||||
<th><input id="sortType" type="radio" name="sort" value="type" /></th>
|
||||
<td><label for="sortType"> <?php echo $this->label("Type") ?></label> </td>
|
||||
<th><input id="sortSize" type="radio" name="sort" value="size" /></th>
|
||||
<td><label for="sortSize"> <?php echo $this->label("Size") ?></label> </td>
|
||||
<th><input id="sortTime" type="radio" name="sort" value="date" /></th>
|
||||
<td><label for="sortTime"> <?php echo $this->label("Date") ?></label> </td>
|
||||
<th><input id="sortOrder" type="checkbox" name="desc" /></th>
|
||||
<td><label for="sortOrder"> <?php echo $this->label("Descending") ?></label></td>
|
||||
</tr></table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="files">
|
||||
<div id="content"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="status"><span id="fileinfo"> </span></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<root>
|
||||
<files dirWritable="<?php echo $dirWritable ? "yes" : "no" ?>">
|
||||
<?php FOREACH ($files as $file): ?>
|
||||
<file size="<?php echo $file['size'] ?>" mtime="<?php echo $file['mtime'] ?>" date="<?php echo $file['date'] ?>" readable="<?php echo $file['readable'] ? "yes" : "no" ?>" writable="<?php echo $file['writable'] ? "yes" : "no" ?>" bigIcon="<?php echo $file['bigIcon'] ? "yes" : "no" ?>" smallIcon="<?php echo $file['smallIcon'] ? "yes" : "no" ?>" thumb="<?php echo $file['thumb'] ? "yes" : "no" ?>" smallThumb="<?php echo $file['smallThumb'] ? "yes" : "no" ?>">
|
||||
<name><?php echo text::xmlData($file['name']) ?></name>
|
||||
</file>
|
||||
<?php ENDFOREACH ?>
|
||||
</files>
|
||||
</root>
|
||||
@@ -0,0 +1,2 @@
|
||||
<root>
|
||||
</root>
|
||||
@@ -0,0 +1,9 @@
|
||||
<root>
|
||||
<?php IF (is_array($message)): ?>
|
||||
<?php FOREACH ($message as $msg): ?>
|
||||
<error><?php echo text::xmlData($msg) ?></error>
|
||||
<?php ENDFOREACH ?>
|
||||
<?PHP ELSE: ?>
|
||||
<error><?php echo text::xmlData($message) ?></error>
|
||||
<?PHP ENDIF ?>
|
||||
</root>
|
||||
@@ -0,0 +1,7 @@
|
||||
<root>
|
||||
<?php FOREACH ($dirs as $dir): ?>
|
||||
<dir readable="<?php echo $dir['readable'] ? "yes" : "no" ?>" writable="<?php echo $dir['writable'] ? "yes" : "no" ?>" removable="<?php echo $dir['removable'] ? "yes" : "no" ?>" hasDirs="<?php echo $dir['hasDirs'] ? "yes" : "no" ?>">
|
||||
<name><?php echo text::xmlData($dir['name']) ?></name>
|
||||
</dir>
|
||||
<?php ENDFOREACH ?>
|
||||
</root>
|
||||
12
include/limesurvey/admin/scripts/kcfinder/tpl/tpl_init.php
Normal file
12
include/limesurvey/admin/scripts/kcfinder/tpl/tpl_init.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<root>
|
||||
<tree>
|
||||
<?php echo $tree ?>
|
||||
</tree>
|
||||
<files dirWritable="<?php echo $dirWritable ? "yes" : "no" ?>">
|
||||
<?php FOREACH ($files as $file): ?>
|
||||
<file size="<?php echo $file['size'] ?>" mtime="<?php echo $file['mtime'] ?>" date="<?php echo $file['date'] ?>" readable="<?php echo $file['readable'] ? "yes" : "no" ?>" writable="<?php echo $file['writable'] ? "yes" : "no" ?>" bigIcon="<?php echo $file['bigIcon'] ? "yes" : "no" ?>" smallIcon="<?php echo $file['smallIcon'] ? "yes" : "no" ?>" thumb="<?php echo $file['thumb'] ? "yes" : "no" ?>" smallThumb="<?php echo $file['smallThumb'] ? "yes" : "no" ?>">
|
||||
<name><?php echo text::xmlData($file['name']) ?></name>
|
||||
</file>
|
||||
<?php ENDFOREACH ?>
|
||||
</files>
|
||||
</root>
|
||||
@@ -0,0 +1,3 @@
|
||||
<root>
|
||||
<name><?php echo text::xmlData($name) ?></name>
|
||||
</root>
|
||||
Reference in New Issue
Block a user