Changeset 3232922
- Timestamp:
- 01/31/2025 09:04:02 PM (14 months ago)
- Location:
- stafflist/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
stafflist.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stafflist/trunk/readme.txt
r3218014 r3232922 103 103 104 104 == Changelog == 105 = 3.2.4 = 106 * Security updates recommended by Colin Xu (thank you); 107 105 108 = 3.2.2 = 106 109 * Tested on WordPress 6.7.1; -
stafflist/trunk/stafflist.php
r3218000 r3232922 4 4 Plugin URI: http://wordpress.org/plugins/stafflist/ 5 5 Description: A super simplified staff directory tool 6 Version: 3.2. 26 Version: 3.2.4 7 7 Author: era404 8 8 Author URI: http://www.era404.com … … 156 156 $import_details = false; 157 157 if(!empty($_FILES) && 0!=$_FILES['importfile']['size']){ 158 check_admin_referer('import_stafflist'); //below 158 159 $uploads = wp_upload_dir(); 159 160 $ext = checkDatafile($_FILES['importfile']); 160 161 $temp = $uploads['basedir'] . "/temp.{$ext}"; 161 162 if(!in_array($_FILES['importfile']['type'], $spreadsheet_formats)){ 162 showResults("Only CSV, XLS, XLSX imports are currently supported. This filetype was: {$_FILES['importfile']['type']}.",1);163 showResults("Only CSV, XLS, XLSX imports are currently supported.",1); 163 164 } else { 164 165 if(!move_uploaded_file($_FILES['importfile']['tmp_name'], $temp)) { … … 176 177 $temp = $uploads['basedir'] . "/temp.{$ext}"; 177 178 if(!file_exists($temp)){ 178 showResults("Your datafile ({$temp})could not be found. Check your site's directory permissions.", 1);179 showResults("Your datafile could not be found. Check your site's directory permissions.", 1); 179 180 } else { 180 181 list($added,$notadded) = stafflistImport(readCSVintoArray($temp),true); … … 283 284 </div> 284 285 "; 285 286 286 287 /*********************************************************************************** 287 288 * Directory … … 364 365 //are there nonstandard columns? 365 366 if(!empty($import_details[1])) { 366 echo "<tr><td>Non-standard Columns:</td><td><span>".367 implode("</span><span>",$import_details[1])."</span></td>";367 echo "<tr><td>Non-standard Columns:</td><td><span>". 368 implode("</span><span>",$import_details[1])."</span></td>"; 368 369 } 369 370 echo " </tr> … … 418 419 </tr> 419 420 </tbody> 420 421 </table> 421 " . //https://developer.wordpress.org/apis/security/nonces/ 422 wp_nonce_field( 'import_stafflist' ) . 423 "</table> 422 424 </form>"; 423 425 $cols = $wpdb->get_results( "SELECT id,name,active FROM {$staffmetadb}
Note: See TracChangeset
for help on using the changeset viewer.