Changeset 570804
- Timestamp:
- 07/11/2012 06:41:47 PM (14 years ago)
- Location:
- sp-client-document-manager/trunk
- Files:
-
- 5 edited
-
admin/projects.php (modified) (4 diffs)
-
ajax.php (modified) (5 diffs)
-
cu.php (modified) (2 diffs)
-
functions.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sp-client-document-manager/trunk/admin/projects.php
r558083 r570804 14 14 15 15 if($_GET['id'] != ""){ 16 echo 1; 16 17 $r = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."sp_cu_project where id = '".$_GET['id']."' ", ARRAY_A); 17 18 … … 20 21 21 22 22 $users = $wpdb->get_results("SELECT * FROM ".$wpdb-> prefix."users order by display_name ", ARRAY_A);23 $users = $wpdb->get_results("SELECT * FROM ".$wpdb->base_prefix."users order by display_name ", ARRAY_A); 23 24 24 $userselect .='<select name="uid">';25 if($_GET['id'] != ""){26 $user = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."users where id = ".$r[0]['uid']." ", ARRAY_A);27 25 28 $userselect .= '<option selected value="'.$r[0]['uid'].'">'.stripslashes($user[0]['display_name']).'</option>'; 29 } 30 for($i=0; $i<count($users ); $i++){ 31 $userselect .= '<option value="'.$users[$i]['ID'].'">'.$users[$i]['display_name'].'</option>'; 32 } 33 $userselect .= '</select>'; 26 34 27 35 28 … … 45 38 <tr> 46 39 <td>'.__("User:","sp-cdm").'</td> 47 <td>'.$userselect.'</td> 40 <td>'; 41 42 wp_dropdown_users(array('name' => 'uid', 'selected' => $r[0]['uid'])); 43 echo '</td> 48 44 </tr> 49 45 <tr> … … 112 108 ".$wpdb->prefix."sp_cu_project.uid, 113 109 ".$wpdb->prefix."sp_cu_project.id AS projectID, 114 ".$wpdb-> prefix."users.ID,115 ".$wpdb-> prefix."users.user_nicename110 ".$wpdb->base_prefix."users.ID, 111 ".$wpdb->base_prefix."users.user_nicename 116 112 117 113 118 114 FROM ".$wpdb->prefix."sp_cu_project 119 LEFT JOIN ".$wpdb-> prefix."users ON ".$wpdb->prefix."sp_cu_project.uid = ".$wpdb->prefix."users.ID115 LEFT JOIN ".$wpdb->base_prefix."users ON ".$wpdb->prefix."sp_cu_project.uid = ".$wpdb->base_prefix."users.ID 120 116 order by ".$wpdb->prefix."sp_cu_project.name", ARRAY_A); 121 122 123 124 117 125 118 echo '<h2>'.__("Projects","sp-cdm").'</h2>'.sp_client_upload_nav_menu().''; 126 119 -
sp-client-document-manager/trunk/ajax.php
r566964 r570804 3 3 4 4 global $wpdb; 5 5 $upload_dir = wp_upload_dir(); 6 6 7 7 … … 52 52 53 53 if(in_array(strtolower($ext), $images_arr)){ 54 $img = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/sp-client-document-manager/classes/thumb.php?src= '.get_bloginfo('wpurl').'/wp-content/uploads/sp-client-document-manager/'.$r[0]['uid'].'/'.$r[0]['file'].'&w=250&h=250">';54 $img = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/sp-client-document-manager/classes/thumb.php?src=/wp-content/uploads/sp-client-document-manager/'.$r[0]['uid'].'/'.$r[0]['file'].'&w=250&h=250">'; 55 55 56 56 }elseif($ext == 'xls' or $ext == 'xlsx'){ … … 219 219 220 220 if(in_array(strtolower($ext), $images_arr)){ 221 $img = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/sp-client-document-manager/classes/thumb.php?src= '.get_bloginfo('wpurl').'/wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'.$r[$i]['file'].'&w=80&h=80">';221 $img = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/sp-client-document-manager/classes/thumb.php?src=/wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'.$r[$i]['file'].'&w=80&h=80">'; 222 222 223 223 }elseif($ext == 'xls' or $ext == 'xlsx'){ … … 340 340 $return_file = "".preg_replace('/[^\w\d_ -]/si', '',stripslashes($r_project[0]['name'])).".zip"; 341 341 $zip = new Zip(); 342 343 344 $dir = ''.ABSPATH.'wp-content/uploads/sp-client-document-manager/'.$r_project[0]['uid'].'/'; 345 $path = '../../../wp-content/uploads/sp-client-document-manager/'.$r_project[0]['uid'].'/'; 342 346 //@unlink($dir.$return_file); 343 347 344 348 for($i=0; $i<count($r); $i++){ 345 349 346 $dir = ''.ABSPATH.'wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'; 347 $path = '../../../wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'; 350 348 351 $zip->addFile(file_get_contents($dir.$r[$i]['file']), $r[$i]['file'] , filectime($dir.$r[$i]['file'])); 349 352 … … 417 420 418 421 419 $attachment_links .= '<a href="' . get_bloginfo('wpurl') . '/wp-content/uploads/sp-client-document-manager/'.$ _POST['user_id'].'/'.$r[$i]['file'].'">'.$name.'</a><br>';420 $attachment_array[$i] = ''.WP_CONTENT_DIR .'/uploads/sp-client-document-manager/'.$ _POST['user_id'].'/'.$r[$i]['file'].'';422 $attachment_links .= '<a href="' . get_bloginfo('wpurl') . '/wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'.$r[$i]['file'].'">'.$name.'</a><br>'; 423 $attachment_array[$i] = ''.WP_CONTENT_DIR .'/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'.$r[$i]['file'].''; 421 424 } 422 425 -
sp-client-document-manager/trunk/cu.php
r566964 r570804 5 5 Description: A WordPress plug-in that allows your business to manage client files securely. 6 6 Author: Smarty 7 Version: 1.1. 77 Version: 1.1.8 8 8 Author URI: http://smartypantsplugins.com 9 9 */ 10 10 11 11 global $sp_client_upload; 12 $sp_client_upload = "1.1. 7";12 $sp_client_upload = "1.1.8"; 13 13 14 14 load_plugin_textdomain( 'sp-cdm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); … … 19 19 ini_set('max_input_time', 300); 20 20 ini_set('max_execution_time', 300); 21 21 22 22 add_action('admin_menu', 'sp_client_upload_menu'); 23 23 -
sp-client-document-manager/trunk/functions.php
r566964 r570804 427 427 428 428 if(in_array(strtolower($ext), $images_arr)){ 429 $img = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/sp-client-document-manager/classes/thumb.php?src= '.get_bloginfo('wpurl').'/wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'.$r[$i]['file'].'&w=80&h=80">';429 $img = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/sp-client-document-manager/classes/thumb.php?src=/wp-content/uploads/sp-client-document-manager/'.$r[$i]['uid'].'/'.$r[$i]['file'].'&w=80&h=80">'; 430 430 431 431 }elseif($ext == 'xls' or $ext == 'xlsx'){ -
sp-client-document-manager/trunk/readme.txt
r566964 r570804 5 5 Requires at least: 2.0.2 6 6 Tested up to: 3.4.0 7 Stable tag: 1.1. 77 Stable tag: 1.1.8 8 8 9 9 A WordPress plug-in that allows your business to manage client files and projects to assign to vendors,manufacturers sub-contractors. … … 20 20 http://smartypantsplugins.com/sp-client-document-manager/ 21 21 22 Current Languages 23 24 * English 25 * French 26 * German 22 Now works with WordPress Multi Site! 27 23 28 24 Client Side Features … … 66 62 * File versioning system, don't lose old versions 67 63 For more information check out the plugin page http://smartypantsplugins.com/sp-client-document-manager/ 64 65 Current Languages 66 67 * English 68 * French 69 * German 68 70 69 71 == Installation == … … 130 132 * Added the ability for admins to form groups which allows group members to share all files and projects! Premium only 131 133 134 = 1.1.8 = 135 * Works with WordPress multsite 136 132 137 == Upgrade Notice == 133 138
Note: See TracChangeset
for help on using the changeset viewer.