'; GS.uploads = '<?php echo tsl($SITEURL) . getRelPath(GSDATAUPLOADPATH); ?> '; var uploadSession = '<?php echo $SESSIONHASH; ?> '; var uploadPath = '<?php echo isset($_GET['path']) ? $_GET['path'] : ""; ?> '; var maxFileSize = '<?php echo toBytesShorthand(getMaxUploadSize(), 'M'); ?> '; <?php if (isset($_COOKIE['gs_editor_theme'])) { // $editor_theme = var_out($_COOKIE['gs_editor_theme']); $editor_theme = var_out($_COOKIE['gs_editor_theme']); echo "// codemirror editortheme\n"; echo ' var editorTheme = "' . $editor_theme . "\";\n"; } if (getDef('GSAUTOSAVE', true)) { echo "\t\t// edit autosave\n"; echo ' var GSAUTOSAVEPERIOD = ' . getDef('GSAUTOSAVE') . ";\n"; } else { echo " var GSAUTOSAVEPERIOD = false;\n";
<?php if (!defined('IN_GS')) { die('you cannot load this page directly.'); } /** * Sidebar Files Template * * @package GetSimple */ $path = isset($_GET['path']) ? $_GET['path'] : ""; $fileSizeLimitMB = toBytesShorthand(getMaxUploadSize(), 'M', true); ?> <ul class="snav"> <li id="sb_upload"<?php if (!isset($_GET['i'])) { echo 'class="last_sb"'; } ?> ><a href="upload.php" <?php check_menu('upload'); ?> ><?php i18n('FILE_MANAGEMENT'); ?> </a></li> <?php if (isset($_GET['i']) && $_GET['i'] != '') { ?> <li id="sb_image" class="last_sb"><a href="#" class="current"><?php