Changeset 3172020
- Timestamp:
- 10/19/2024 03:39:56 PM (17 months ago)
- Location:
- simple-file-list
- Files:
-
- 132 added
- 5 edited
-
tags/6.1.13 (added)
-
tags/6.1.13/Simple-File-List.pdf (added)
-
tags/6.1.13/css (added)
-
tags/6.1.13/css/admin5.css (added)
-
tags/6.1.13/css/index.html (added)
-
tags/6.1.13/css/styles-flex.css (added)
-
tags/6.1.13/css/styles-table.css (added)
-
tags/6.1.13/css/styles-theme-dark.css (added)
-
tags/6.1.13/css/styles-theme-light.css (added)
-
tags/6.1.13/css/styles-tiles.css (added)
-
tags/6.1.13/css/styles-upload-form.css (added)
-
tags/6.1.13/css/styles-upload-theme-light.css (added)
-
tags/6.1.13/css/styles.css (added)
-
tags/6.1.13/ee-admin-page.php (added)
-
tags/6.1.13/ee-list-display.php (added)
-
tags/6.1.13/ee-simple-file-list.php (added)
-
tags/6.1.13/images (added)
-
tags/6.1.13/images/Mitchell-Bennis-Head-Shot.jpg (added)
-
tags/6.1.13/images/SFL-Pro-Admin-List.jpg (added)
-
tags/6.1.13/images/icon-128x128.png (added)
-
tags/6.1.13/images/icon-256x256.png (added)
-
tags/6.1.13/images/index.html (added)
-
tags/6.1.13/images/sending.gif (added)
-
tags/6.1.13/images/thumbnails (added)
-
tags/6.1.13/images/thumbnails/!default.svg (added)
-
tags/6.1.13/images/thumbnails/!default_image.jpg (added)
-
tags/6.1.13/images/thumbnails/!default_pdf.jpg (added)
-
tags/6.1.13/images/thumbnails/!default_video.jpg (added)
-
tags/6.1.13/images/thumbnails/3gp.svg (added)
-
tags/6.1.13/images/thumbnails/ai.svg (added)
-
tags/6.1.13/images/thumbnails/aif.svg (added)
-
tags/6.1.13/images/thumbnails/aiff.svg (added)
-
tags/6.1.13/images/thumbnails/apk.svg (added)
-
tags/6.1.13/images/thumbnails/avi.svg (added)
-
tags/6.1.13/images/thumbnails/bmp.svg (added)
-
tags/6.1.13/images/thumbnails/cr2.svg (added)
-
tags/6.1.13/images/thumbnails/dmg.svg (added)
-
tags/6.1.13/images/thumbnails/doc.svg (added)
-
tags/6.1.13/images/thumbnails/docx.svg (added)
-
tags/6.1.13/images/thumbnails/eps.svg (added)
-
tags/6.1.13/images/thumbnails/flv.svg (added)
-
tags/6.1.13/images/thumbnails/folder.svg (added)
-
tags/6.1.13/images/thumbnails/gz.svg (added)
-
tags/6.1.13/images/thumbnails/indd.svg (added)
-
tags/6.1.13/images/thumbnails/iso.svg (added)
-
tags/6.1.13/images/thumbnails/jpeg.svg (added)
-
tags/6.1.13/images/thumbnails/jpg.svg (added)
-
tags/6.1.13/images/thumbnails/m4v.svg (added)
-
tags/6.1.13/images/thumbnails/midi.svg (added)
-
tags/6.1.13/images/thumbnails/mov.svg (added)
-
tags/6.1.13/images/thumbnails/mp3.svg (added)
-
tags/6.1.13/images/thumbnails/mp4.svg (added)
-
tags/6.1.13/images/thumbnails/mpeg.svg (added)
-
tags/6.1.13/images/thumbnails/mpg.svg (added)
-
tags/6.1.13/images/thumbnails/pdf.svg (added)
-
tags/6.1.13/images/thumbnails/png.svg (added)
-
tags/6.1.13/images/thumbnails/pps.svg (added)
-
tags/6.1.13/images/thumbnails/ppsx.svg (added)
-
tags/6.1.13/images/thumbnails/ppt.svg (added)
-
tags/6.1.13/images/thumbnails/pptx.svg (added)
-
tags/6.1.13/images/thumbnails/psd.svg (added)
-
tags/6.1.13/images/thumbnails/tar.svg (added)
-
tags/6.1.13/images/thumbnails/tgz.svg (added)
-
tags/6.1.13/images/thumbnails/tif.svg (added)
-
tags/6.1.13/images/thumbnails/tiff.svg (added)
-
tags/6.1.13/images/thumbnails/txt.svg (added)
-
tags/6.1.13/images/thumbnails/wav.svg (added)
-
tags/6.1.13/images/thumbnails/wma.svg (added)
-
tags/6.1.13/images/thumbnails/wmv.svg (added)
-
tags/6.1.13/images/thumbnails/xls.svg (added)
-
tags/6.1.13/images/thumbnails/xlsx.svg (added)
-
tags/6.1.13/images/thumbnails/zip.svg (added)
-
tags/6.1.13/includes (added)
-
tags/6.1.13/includes/ee-admin-footer.php (added)
-
tags/6.1.13/includes/ee-admin-header.php (added)
-
tags/6.1.13/includes/ee-class.php (added)
-
tags/6.1.13/includes/ee-email-settings.php (added)
-
tags/6.1.13/includes/ee-extension-settings.php (added)
-
tags/6.1.13/includes/ee-functions.php (added)
-
tags/6.1.13/includes/ee-get-pro.php (added)
-
tags/6.1.13/includes/ee-index-template.html (added)
-
tags/6.1.13/includes/ee-list-display-flex.php (added)
-
tags/6.1.13/includes/ee-list-display-table.php (added)
-
tags/6.1.13/includes/ee-list-display-tiles.php (added)
-
tags/6.1.13/includes/ee-list-settings.php (added)
-
tags/6.1.13/includes/ee-plugin-author.php (added)
-
tags/6.1.13/includes/ee-plugin-extension-SFL-PRO.php (added)
-
tags/6.1.13/includes/ee-plugin-extension-SFLM.php (added)
-
tags/6.1.13/includes/ee-upload-settings.php (added)
-
tags/6.1.13/includes/index.html (added)
-
tags/6.1.13/includes/sending.gif (added)
-
tags/6.1.13/index.html (added)
-
tags/6.1.13/js (added)
-
tags/6.1.13/js/ee-back.js (added)
-
tags/6.1.13/js/ee-edit-file.js (added)
-
tags/6.1.13/js/ee-footer.js (added)
-
tags/6.1.13/js/ee-head.js (added)
-
tags/6.1.13/js/index.html (added)
-
tags/6.1.13/languages (added)
-
tags/6.1.13/languages/ee-simple-file-list-cs_CZ.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-cs_CZ.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-da_DK.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-da_DK.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-de_DE.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-de_DE.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-es_ES.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-es_ES.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-es_MX.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-es_MX.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-fr_BE.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-fr_BE.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-fr_CA.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-fr_CA.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-fr_FR.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-fr_FR.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-it_IT.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-it_IT.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-nl_NL.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-nl_NL.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-pt_BR.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-pt_BR.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-pt_PT.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-pt_PT.po (added)
-
tags/6.1.13/languages/ee-simple-file-list-sv_SE.mo (added)
-
tags/6.1.13/languages/ee-simple-file-list-sv_SE.po (added)
-
tags/6.1.13/languages/ee-simple-file-list.pot (added)
-
tags/6.1.13/languages/index.html (added)
-
tags/6.1.13/readme.txt (added)
-
tags/6.1.13/security.txt (added)
-
tags/6.1.13/uploader (added)
-
tags/6.1.13/uploader/ee-class-uploads.php (added)
-
tags/6.1.13/uploader/ee-uploader.js (added)
-
trunk/ee-admin-page.php (modified) (3 diffs)
-
trunk/ee-simple-file-list.php (modified) (2 diffs)
-
trunk/includes/ee-class.php (modified) (1 diff)
-
trunk/includes/ee-email-settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-file-list/trunk/ee-admin-page.php
r2885779 r3172020 27 27 28 28 // Get the new tab's query string value. We will only use values to display tabs that we are expecting. 29 if( isset( $_GET[ 'tab' ] ) ) { $active_tab = esc_js(sanitize_text_field($_GET[ 'tab' ])); } else { $active_tab = 'file_list'; } 29 if( isset( $_GET['tab'] ) ) { 30 $active_tab = sanitize_text_field( $_GET['tab'] ); // Sanitize input 31 } else { 32 $active_tab = 'file_list'; // Default tab 33 } 30 34 31 35 $eeOutput .= ' … … 36 40 // File List 37 41 $eeOutput .= ' 38 39 42 <span class="nav-tab-wrapper-left"> 40 41 <a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=file_list" class="nav-tab '; 42 if($active_tab == 'file_list') {$eeOutput .= ' eeActiveTab '; } 43 $active_tab == 'file_list' ? 'nav-tab-active' : ''; 44 $eeOutput .= $active_tab . '">' . __('File List', 'ee-simple-file-list') . '</a>'; 45 43 <a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=file_list" class="nav-tab ' . ($active_tab == 'file_list' ? 'nav-tab-active eeActiveTab' : '') . '">' . __('File List', 'ee-simple-file-list') . '</a>'; 46 44 47 45 // Settings 48 $eeOutput .= ' 49 <a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=settings" class="nav-tab '; 50 if($active_tab == 'settings') {$eeOutput .= ' eeActiveTab '; } 51 $active_tab == 'settings' ? 'nav-tab-active' : ''; 52 $eeOutput .= $active_tab . '">' . __('List Settings', 'ee-simple-file-list') . '</a> 53 54 <a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=pro" class="nav-tab '; 55 if($active_tab == 'pro') {$eeOutput .= ' eeActiveTab '; } 56 $active_tab == 'pro' ? 'nav-tab-active' : ''; 57 $eeOutput .= $active_tab . '">' . __('Upgrade Version', 'ee-simple-file-list') . '</a> 58 59 60 </span> 61 <span class="nav-tab-wrapper-right"> 62 63 64 <a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=author" class="nav-tab '; 65 if($active_tab == 'author') {$eeOutput .= ' eeActiveTab '; } 66 $active_tab == 'author' ? 'nav-tab-active' : ''; 67 $eeOutput .= $active_tab . '">' . __('Author', 'ee-simple-file-list') . '</a>'; 68 69 // Link to Support Form 70 $eeOutput .= ' 71 <a href="https://simplefilelist.com/get-support/" class="nav-tab" target="_blank">' . __('Get Help', 'ee-simple-file-list') . ' →</a> 72 73 </span> 74 75 </h2>'; // END Main Tabs 46 $eeOutput .= ' 47 <a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=settings" class="nav-tab ' . ($active_tab == 'settings' ? 'nav-tab-active eeActiveTab' : '') . '">' . __('List Settings', 'ee-simple-file-list') . '</a>'; 48 49 // Pro Upgrade 50 $eeOutput .= ' 51 <a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=pro" class="nav-tab ' . ($active_tab == 'pro' ? 'nav-tab-active eeActiveTab' : '') . '">' . __('Upgrade Version', 'ee-simple-file-list') . '</a> 52 </span>'; 53 54 // Right Tabs ------- 55 $eeOutput .= ' 56 <span class="nav-tab-wrapper-right"> 57 <a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=author" class="nav-tab ' . ($active_tab == 'author' ? 'nav-tab-active eeActiveTab' : '') . '">' . __('Author', 'ee-simple-file-list') . '</a>'; 58 59 // Link to Support Form 60 $eeOutput .= ' 61 <a href="https://simplefilelist.com/get-support/" class="nav-tab" target="_blank">' . __('Get Help', 'ee-simple-file-list') . ' →</a> 62 </span> 63 </h2>'; 64 // END Main Tabs 65 76 66 77 67 … … 168 158 169 159 // Sub Tabs 170 if( isset( $_GET[ 'subtab' ] ) ) { $active_subtab = esc_js(sanitize_text_field($_GET['subtab'])); } else { $active_subtab = 'list_settings'; } 171 172 $eeOutput .= ' 173 174 <h2 class="nav-tab-wrapper"> 175 <div class="ee-nav-sub-tabs">'; 160 if( isset( $_GET['subtab'] ) ) { 161 $active_subtab = sanitize_text_field( $_GET['subtab'] ); // Sanitize input 162 } else { 163 $active_subtab = 'list_settings'; // Default subtab 164 } 165 166 $eeOutput .= ' 167 <h2 class="nav-tab-wrapper"> 168 <div class="ee-nav-sub-tabs">'; 176 169 177 170 // List Settings 178 $eeOutput .= '<a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=settings&subtab=list_settings" class="nav-tab '; 179 if($active_subtab == 'list_settings') {$eeOutput .= ' eeActiveTab ';} 180 $active_subtab == 'list_settings' ? 'nav-tab-active' : ''; 181 $eeOutput .= $active_subtab . '">' . __('File List Settings', 'ee-simple-file-list') . '</a>'; 182 183 // Uploader Settings 184 $eeOutput .= '<a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=settings&subtab=uploader_settings" class="nav-tab '; 185 if($active_subtab == 'uploader_settings') {$eeOutput .= ' eeActiveTab ';} 186 $active_subtab == 'uploader_settings' ? 'nav-tab-active' : ''; 187 $eeOutput .= $active_subtab . '">' . __('File Upload Settings', 'ee-simple-file-list') . '</a>'; 188 189 // Notifications Settings 190 $eeOutput .= '<a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=settings&subtab=email_settings" class="nav-tab '; 191 if($active_subtab == 'email_settings') {$eeOutput .= ' eeActiveTab ';} 192 $active_subtab == 'email_settings' ? 'nav-tab-active' : ''; 193 $eeOutput .= $active_subtab . '">' . __('Notification Settings', 'ee-simple-file-list') . '</a>'; 194 195 // Extension Settings (Coming Soon) 196 $eeOutput .= '<a href="?page=' . eeSFL_BASE_PluginSlug . '&tab=settings&subtab=extension_settings" class="nav-tab '; 197 if($active_subtab == 'extension_settings') {$eeOutput .= ' eeActiveTab ';} 198 $active_subtab == 'extension_settings' ? 'nav-tab-active' : ''; 199 $eeOutput .= $active_subtab . '">' . __('Extension Settings', 'ee-simple-file-list') . '</a>'; 200 201 // END Subtabs 171 $eeOutput .= '<a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=settings&subtab=list_settings" class="nav-tab ' . ($active_subtab == 'list_settings' ? 'nav-tab-active' : '') . '">' . __('File List Settings', 'ee-simple-file-list') . '</a>'; 172 173 // Uploader Settings 174 $eeOutput .= '<a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=settings&subtab=uploader_settings" class="nav-tab ' . ($active_subtab == 'uploader_settings' ? 'nav-tab-active' : '') . '">' . __('File Upload Settings', 'ee-simple-file-list') . '</a>'; 175 176 // Notifications Settings 177 $eeOutput .= '<a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=settings&subtab=email_settings" class="nav-tab ' . ($active_subtab == 'email_settings' ? 'nav-tab-active' : '') . '">' . __('Notification Settings', 'ee-simple-file-list') . '</a>'; 178 179 // Extension Settings (Coming Soon) 180 $eeOutput .= '<a href="?page=' . esc_attr(eeSFL_BASE_PluginSlug) . '&tab=settings&subtab=extension_settings" class="nav-tab ' . ($active_subtab == 'extension_settings' ? 'nav-tab-active' : '') . '">' . __('Extension Settings', 'ee-simple-file-list') . '</a>'; 181 182 // End Subtabs 183 202 184 $eeOutput .= ' 203 185 -
simple-file-list/trunk/ee-simple-file-list.php
r3012120 r3172020 9 9 Description: A Basic File List Manager with File Uploader 10 10 Author: Mitchell Bennis 11 Version: 6.1.1 111 Version: 6.1.13 12 12 Author URI: http://simplefilelist.com 13 13 License: GPLv2 or later … … 20 20 // CONSTANTS 21 21 define('eeSFL_BASE_DevMode', FALSE); 22 define('eeSFL_BASE_Version', '6.1.1 1'); // Plugin version22 define('eeSFL_BASE_Version', '6.1.13'); // Plugin version 23 23 define('eeSFL_BASE_PluginName', 'Simple File List'); 24 24 define('eeSFL_BASE_PluginSlug', 'ee-simple-file-list'); -
simple-file-list/trunk/includes/ee-class.php
r3012120 r3172020 1581 1581 1582 1582 1583 // Get the current URL 1583 // Get the current URL securely 1584 1584 public function eeSFL_GetThisURL($eeIncludeQuery = TRUE) { 1585 1586 // Find what is contained in the address bar? 1587 // Example: https://mywebsite.com/wordpress/wp-admin/admin.php?page=ee-simple-file-list-pro&eeFolder=WTEA_Curriculum&eeListID=1&ee=1 1588 1585 1589 1586 $eeProtocol = ''; $eeHost = ''; $eeSubFolder = ''; $eeArguments = ''; 1590 1587 1591 1588 // If HTTP_HOST is empty, use site_url() 1592 1589 if( empty($_SERVER['HTTP_HOST']) ) { 1593 1594 $eeHost = site_url(); // This will contain the path to the WP core files, plus slash1595 1590 1591 $eeHost = esc_url( site_url() ); // This will contain the path to the WP core files, plus slash 1592 1596 1593 if( strpos($_SERVER['REQUEST_URI'], '?') !== FALSE ) { 1597 $eeArray = explode('?', $_SERVER['REQUEST_URI']); 1598 if(!empty($eeArray[1])) { $eeArguments = $eeArray[1]; } 1599 } 1600 1594 $eeArray = explode('?', sanitize_text_field($_SERVER['REQUEST_URI'])); // Sanitize input 1595 if(!empty($eeArray[1])) { 1596 $eeArguments = sanitize_text_field($eeArray[1]); // Sanitize query string arguments 1597 } 1598 } 1599 1601 1600 } else { 1602 1601 1603 1602 $eeProtocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://"; // Protocol 1604 $eeHost = $_SERVER['HTTP_HOST']; //Host1605 1606 // Get folder path 1603 $eeHost = sanitize_text_field($_SERVER['HTTP_HOST']); // Sanitize Host 1604 1605 // Get folder path and sanitize the URI 1607 1606 if( strpos($_SERVER['REQUEST_URI'], '?') !== false ) { 1608 1609 $eeArray = explode('?', $_SERVER['REQUEST_URI']); 1610 if(!empty($eeArray[0])) { $eeSubFolder = $eeArray[0]; } 1611 if(!empty($eeArray[1])) { $eeArguments = $eeArray[1]; } 1612 1607 1608 $eeArray = explode('?', sanitize_text_field($_SERVER['REQUEST_URI'])); // Sanitize input 1609 if(!empty($eeArray[0])) { 1610 $eeSubFolder = sanitize_text_field($eeArray[0]); // Sanitize path 1611 } 1612 if(!empty($eeArray[1])) { 1613 $eeArguments = sanitize_text_field($eeArray[1]); // Sanitize query string arguments 1614 } 1615 1613 1616 } else { 1614 $eeSubFolder = $_SERVER['REQUEST_URI']; // Just a folder path or a single slash1615 } 1616 } 1617 1617 $eeSubFolder = sanitize_text_field($_SERVER['REQUEST_URI']); // Sanitize the folder path 1618 } 1619 } 1620 1618 1621 // Reassemble the URL 1619 1622 $eeURL = $eeProtocol . $eeHost . $eeSubFolder; 1620 1623 1621 1624 // Re-Add the Query if Needed 1622 if($eeIncludeQuery === TRUE ) {1625 if($eeIncludeQuery === TRUE && !empty($eeArguments)) { 1623 1626 $eeURL .= '?' . $eeArguments; 1624 $eeURL = remove_query_arg('eeReScan', $eeURL); // Don't want this 1625 } 1626 1627 return $eeURL; 1628 } 1627 $eeURL = esc_url( remove_query_arg('eeReScan', $eeURL) ); // Ensure the URL is escaped and sanitized 1628 } 1629 1630 return esc_url( $eeURL ); // Return safely escaped URL 1631 } 1632 1629 1633 1630 1634 -
simple-file-list/trunk/includes/ee-email-settings.php
r2885195 r3172020 61 61 $eeOutput .= ' 62 62 63 <form action="' . admin_url() . '?page=' . eeSFL_BASE_PluginSlug . '&tab=settings&subtab=email_settings" method="post" id="eeSFL_Settings">63 <form action="' . $eeURL . '" method="post" id="eeSFL_Settings"> 64 64 <input type="hidden" name="eePost" value="TRUE" />'; 65 65 $eeOutput .= wp_nonce_field( 'ee-simple-file-list-settings', 'ee-simple-file-list-settings-nonce', TRUE, FALSE); -
simple-file-list/trunk/readme.txt
r3120765 r3172020 2 2 Contributors: eemitch 3 3 Donate link: http://simplefilelist.com 4 Tags: file list, file sharing, upload files, exchange files, manage files4 Tags: file list, file sharing, file upload form, upload files, exchange files, host files, zip files, dropbox, ftp 5 5 Requires at least: 5.0 6 Requires PHP: 7 .47 Tested up to: 6. 68 Stable tag: 6.1.1 16 Requires PHP: 7 7 Tested up to: 6.4 8 Stable tag: 6.1.13 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 225 225 == Upgrade Notice == 226 226 227 * 6.1.1 1 - Improvements227 * 6.1.13 - Security Fixes 228 228 229 229 … … 236 236 237 237 == Changelog == 238 239 = 6.1.13 = 240 * Security Fix for a reflecte cross-site scripting (XSS) issue 241 * Security improvements to back-end navigation tabs. 238 242 239 243 = 6.1.11 =
Note: See TracChangeset
for help on using the changeset viewer.