Changeset 1097293
- Timestamp:
- 02/23/2015 03:27:58 PM (11 years ago)
- Location:
- wpsc-support-tickets
- Files:
-
- 134 added
- 3 edited
-
tags/4.9.47 (added)
-
tags/4.9.47/css (added)
-
tags/4.9.47/css/custom-theme (added)
-
tags/4.9.47/css/custom-theme/images (added)
-
tags/4.9.47/css/custom-theme/images/animated-overlay.gif (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_diagonals-small_25_000000_40x40.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_0_222222_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_0_888888_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_100_222222_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_100_bf0500_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_100_e7d100_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_100_f2f2f2_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_100_fff_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_100_ffffff_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_30_cccccc_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_44_444444_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_50_5c5c5c_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_55_f0fe95_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_65_f5f5f5_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_75_EFEFEF_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_75_ebebeb_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_40_ffc73d_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_75_a3a3a3_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-hard_20_0972a5_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-hard_75_ebebeb_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-hard_75_f7f7f7_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-soft_33_003147_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-soft_35_222222_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-soft_44_444444_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_highlight-soft_80_eeeeee_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-bg_inset-soft_95_ffbab8_1x100.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_0393cb_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_212121_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_222222_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_2e1616_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_2e83ff_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_363636_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_454545_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_4b8e0b_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_888888_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_a41313_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_a83300_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_cccccc_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/4.9.47/css/custom-theme/images/ui-icons_ffffff_256x240.png (added)
-
tags/4.9.47/css/custom-theme/jquery-ui-1.10.3.custom.css (added)
-
tags/4.9.47/images (added)
-
tags/4.9.47/images/120x120_logo.png (added)
-
tags/4.9.47/images/Add.png (added)
-
tags/4.9.47/images/Chat.png (added)
-
tags/4.9.47/images/Discussion.png (added)
-
tags/4.9.47/images/accept.png (added)
-
tags/4.9.47/images/bug_report.png (added)
-
tags/4.9.47/images/controller.png (added)
-
tags/4.9.47/images/delete.png (added)
-
tags/4.9.47/images/feature_request.png (added)
-
tags/4.9.47/images/info.png (added)
-
tags/4.9.47/images/loading.gif (added)
-
tags/4.9.47/images/logo.png (added)
-
tags/4.9.47/images/logo_pro.png (added)
-
tags/4.9.47/images/page_edit.png (added)
-
tags/4.9.47/images/page_white_text.png (added)
-
tags/4.9.47/images/pencil.png (added)
-
tags/4.9.47/images/sort.png (added)
-
tags/4.9.47/images/stop.png (added)
-
tags/4.9.47/js (added)
-
tags/4.9.47/js/html2canvas.min.js (added)
-
tags/4.9.47/js/jquery.jeditable.mini.js (added)
-
tags/4.9.47/js/jspdf.min.js (added)
-
tags/4.9.47/js/nicedit (added)
-
tags/4.9.47/js/nicedit/nicEdit.js (added)
-
tags/4.9.47/js/nicedit/nicEditorIcons.gif (added)
-
tags/4.9.47/js/swfobject.js (added)
-
tags/4.9.47/js/wpsc-support-tickets.js (added)
-
tags/4.9.47/languages (added)
-
tags/4.9.47/languages/wpsc-support-tickets-ar_AR.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-ar_AR.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-cs_CZ.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-cs_CZ.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-de_DE.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-de_DE.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-es_ES.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-es_ES.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-fa_IR.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-fa_IR.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-fi_FI.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-fi_FI.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-fr_FR.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-fr_FR.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-he_IL.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-he_IL.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-it_IT.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-it_IT.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-nb_NO.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-nb_NO.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-nl_NL.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-nl_NL.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-pt_BR.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-pt_BR.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-ro_RO.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-ro_RO.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-ru_RU.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-ru_RU.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-sr_RS.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-sr_RS.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets-sv_SE.mo (added)
-
tags/4.9.47/languages/wpsc-support-tickets-sv_SE.po (added)
-
tags/4.9.47/languages/wpsc-support-tickets.pot (added)
-
tags/4.9.47/nbproject (added)
-
tags/4.9.47/nbproject/private (added)
-
tags/4.9.47/nbproject/private/config.properties (added)
-
tags/4.9.47/nbproject/private/private.properties (added)
-
tags/4.9.47/nbproject/private/private.xml (added)
-
tags/4.9.47/nbproject/project.properties (added)
-
tags/4.9.47/nbproject/project.xml (added)
-
tags/4.9.47/php (added)
-
tags/4.9.47/php/adminajax.php (added)
-
tags/4.9.47/php/publicajax.php (added)
-
tags/4.9.47/readme.txt (added)
-
tags/4.9.47/screenshot-1.png (added)
-
tags/4.9.47/screenshot-2.png (added)
-
tags/4.9.47/screenshot-3.jpg (added)
-
tags/4.9.47/screenshot-4.jpg (added)
-
tags/4.9.47/screenshot-5.png (added)
-
tags/4.9.47/screenshot-6.png (added)
-
tags/4.9.47/wpsc-support-tickets.php (added)
-
trunk/nbproject/private/private.xml (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpsc-support-tickets.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsc-support-tickets/trunk/nbproject/private/private.xml
r1089125 r1097293 4 4 <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> 5 5 <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> 6 <group> 7 <file>file:/D:/PORTABLES/EasyPHP-5.3.3/www/wordpress2/wp-content/plugins/wpsc-support-tickets/wpsc-support-tickets.php</file> 8 <file>file:/D:/PORTABLES/EasyPHP-5.3.3/www/wordpress2/wp-content/plugins/wpsc-support-tickets/php/publicajax.php</file> 9 <file>file:/D:/PORTABLES/EasyPHP-5.3.3/www/wordpress2/wp-content/plugins/wpsc-support-tickets/readme.txt</file> 10 </group> 6 <group/> 11 7 </open-files> 12 8 </project-private> -
wpsc-support-tickets/trunk/readme.txt
r1089125 r1097293 5 5 Requires at least: 3.5.0 6 6 Tested up to: 4.2 7 Stable tag: 4.9.4 67 Stable tag: 4.9.47 8 8 9 9 == Description == … … 109 109 * Added: the ability for users to reply by email 110 110 * Added: the ability to search through ticket content (backend always, frontend on public guest enabled blogs.) 111 * Updated: Added randomized addition to filenames & updated the file upload presentation (added 4.9.29 if you turn on beta testing) 111 * Updated: Added randomized addition to filenames & updated the file upload presentation (added in 4.9.29 as beta feature, went live for all in 4.9.33) 112 113 = 4.9.47 = 114 * Added: A bunch of new CC options added 115 * Updated: Changed the description of email address over-ride setting so that it accurately described the feature 112 116 113 117 = 4.9.46 = -
wpsc-support-tickets/trunk/wpsc-support-tickets.php
r1089125 r1097293 4 4 Plugin URI: http://indiedevbundle.com/app/idb-ultimate-wordpress-bundle/#idbsupporttickets 5 5 Description: An open source help desk and support ticket system for Wordpress using jQuery. Easy to use for both users & admins. 6 Version: 4.9.4 66 Version: 4.9.47 7 7 Author: IndieDevBundle.com 8 8 Author URI: URI: http://indiedevbundle.com/app/idb-ultimate-wordpress-bundle/#idbsupporttickets … … 97 97 * @param string $headers 98 98 */ 99 function wpscSupportTickets_mail($to, $subject, $message, $headers='' ) {99 function wpscSupportTickets_mail($to, $subject, $message, $headers='', $cc=null) { 100 100 $devOptions = get_option('wpscSupportTicketsAdminOptions'); 101 101 if($devOptions['disable_all_emails']=='false') { … … 110 110 111 111 $headers .= 'From: ' . $devOptions['email'] . "\r\n" . 112 'Reply-To: ' . $devOptions['email'] . "\r\n" . 113 'X-Mailer: PHP/' . phpversion(); 112 'Reply-To: ' . $devOptions['email'] . "\r\n"; 113 114 if($cc != null) { 115 $headers .= "CC: " . $cc . "\r\n"; 116 } 117 118 $headers .= 'X-Mailer: PHP/' . phpversion(); 114 119 wp_mail($to, $subject, $message, $headers); 115 120 } … … 433 438 'show_advanced_options' => 'false', 434 439 'converted_departments_phase2' => 'false', 435 'custom_new_ticket_button_text' => __('Create a New Ticket', 'wpsc-support-tickets') 440 'custom_new_ticket_button_text' => __('Create a New Ticket', 'wpsc-support-tickets'), 441 'cc_all_new_tickets' => 'false', 442 'cc_all_new_tickets_to_email' => get_bloginfo('admin_email'), 443 'cc_all_user_replies' => 'false', 444 'cc_all_user_replies_to_email' => get_bloginfo('admin_email'), 445 'cc_all_admin_replies' => 'false', 446 'cc_all_admin_replies_to_email' => get_bloginfo('admin_email') 436 447 ); 437 448 … … 598 609 } 599 610 611 if(isset($_POST['cc_all_new_tickets'])) { 612 $devOptions['cc_all_new_tickets'] = esc_sql($_POST['cc_all_new_tickets']); 613 } 614 if(isset($_POST['cc_all_new_tickets_to_email'])) { 615 $devOptions['cc_all_new_tickets_to_email'] = esc_sql($_POST['cc_all_new_tickets_to_email']); 616 } 617 if(isset($_POST['cc_all_user_replies'])) { 618 $devOptions['cc_all_user_replies'] = esc_sql($_POST['cc_all_user_replies']); 619 } 620 if(isset($_POST['cc_all_user_replies_to_email'])) { 621 $devOptions['cc_all_user_replies_to_email'] = esc_sql($_POST['cc_all_user_replies_to_email']); 622 } 623 if(isset($_POST['cc_all_admin_replies'])) { 624 $devOptions['cc_all_admin_replies'] = esc_sql($_POST['cc_all_admin_replies']); 625 } 626 if(isset($_POST['cc_all_admin_replies_to_email'])) { 627 $devOptions['cc_all_admin_replies_to_email'] = esc_sql($_POST['cc_all_admin_replies_to_email']); 628 } 629 600 630 update_option($this->adminOptionsName, $devOptions); 601 631 … … 866 896 867 897 if ($devOptions['show_advanced_options'] == 'true') { 898 899 echo ' 900 <div style="padding:5px;border:1px dotted black;"> 901 <p><strong>' , __('CC All New Tickets?', 'wpsc-support-tickets') , ':</strong> ' , __('Set this to true if you want to CC the below email address on all new tickets.', 'wpsc-support-tickets') , ' <br /> 902 <select name="cc_all_new_tickets"> 903 '; 904 905 $pagesY[0] = 'true'; 906 $pagesY[1] = 'false'; 907 foreach ($pagesY as $pagg) { 908 $option = '<option value="' . $pagg . '"'; 909 if ($pagg === $devOptions['cc_all_new_tickets']) { 910 $option .= ' selected="selected"'; 911 } 912 $option .='>'; 913 $option .= $pagg; 914 $option .= '</option>'; 915 echo $option; 916 } 917 918 echo ' 919 </select> 920 </p> 921 <strong>' , __('Email Address to CC on New Tickets', 'wpsc-support-tickets') , '</strong> ' , __('When enabled, the email address to CC on new tickets.', 'wpsc-support-tickets') , '<br /><input name="cc_all_new_tickets_to_email" value="' , $devOptions['cc_all_new_tickets_to_email'] , '" style="width:95%;" /> 922 <br /><br /> 923 '; 924 925 926 echo ' 927 <p><strong>' , __('CC All User Replies?', 'wpsc-support-tickets') , ':</strong> ' , __('Set this to true if you want to CC the below email address on all user replies to tickets.', 'wpsc-support-tickets') , ' <br /> 928 <select name="cc_all_user_replies"> 929 '; 930 931 $pagesY[0] = 'true'; 932 $pagesY[1] = 'false'; 933 foreach ($pagesY as $pagg) { 934 $option = '<option value="' . $pagg . '"'; 935 if ($pagg === $devOptions['cc_all_user_replies']) { 936 $option .= ' selected="selected"'; 937 } 938 $option .='>'; 939 $option .= $pagg; 940 $option .= '</option>'; 941 echo $option; 942 } 943 944 echo ' 945 </select> 946 </p> 947 <strong>' , __('Email Address to CC on All User Replies', 'wpsc-support-tickets') , '</strong> ' , __('When enabled, the email address to CC on new user replies.', 'wpsc-support-tickets') , '<br /><input name="cc_all_user_replies_to_email" value="' , $devOptions['cc_all_user_replies_to_email'] , '" style="width:95%;" /> 948 <br /><br /> 949 '; 950 951 952 953 echo ' 954 <p><strong>' , __('CC All Admin Replies?', 'wpsc-support-tickets') , ':</strong> ' , __('Set this to true if you want to CC the below email address on all admin replies to tickets.', 'wpsc-support-tickets') , ' <br /> 955 <select name="cc_all_admin_replies"> 956 '; 957 958 $pagesY[0] = 'true'; 959 $pagesY[1] = 'false'; 960 foreach ($pagesY as $pagg) { 961 $option = '<option value="' . $pagg . '"'; 962 if ($pagg === $devOptions['cc_all_admin_replies']) { 963 $option .= ' selected="selected"'; 964 } 965 $option .='>'; 966 $option .= $pagg; 967 $option .= '</option>'; 968 echo $option; 969 } 970 971 echo ' 972 </select> 973 </p> 974 <strong>' , __('Email Address to CC on All Admin Replies', 'wpsc-support-tickets') , '</strong> ' , __('When enabled, the email address to CC on new admin replies.', 'wpsc-support-tickets') , '<br /><input name="cc_all_admin_replies_to_email" value="' , $devOptions['cc_all_admin_replies_to_email'] , '" style="width:95%;" /> 975 <br /><br /> 976 </div> 977 <br /><br /> 978 '; 979 980 981 868 982 echo ' 869 983 <p style="padding:5px;border:1px dotted black;"> … … 890 1004 <br /> 891 1005 <strong>' , __('Override Name Sent From', 'wpsc-support-tickets') ,'</strong> ', __('The name of the admin email sender, such as "Business Name Support Team", or whatever is appropriate for your situation.', 'wpsc-support-tickets') ,'<br /><input name="email_name" value="' , $devOptions['email_name'] , '" style="width:95%;" /><br /><br /> 892 <strong>' , __('Override Email Sent From', 'wpsc-support-tickets') ,'</strong> ', __('The name of the admin email sender, such as "Business Name Support Team", or whatever is appropriate for your situation.', 'wpsc-support-tickets') ,'<br /><input name="overrides_email" value="' , $devOptions['overrides_email'] , '" style="width:95%;" /><br /><br />1006 <strong>' , __('Override Email Sent From', 'wpsc-support-tickets') ,'</strong> ', __('The email address that all outgoing emails will appear to be sent from.', 'wpsc-support-tickets') ,'<br /><input name="overrides_email" value="' , $devOptions['overrides_email'] , '" style="width:95%;" /><br /><br /> 893 1007 </p>'; 894 1008 } … … 2926 3040 2927 3041 if($devOptions['disable_all_emails']=='false') { // If we're sending out emails 3042 $cc = null; 3043 if($devOptions['cc_all_new_tickets'] == 'true') { 3044 $cc = $devOptions['cc_all_new_tickets_to_email']; 3045 } 3046 2928 3047 $to = $wpscst_email; // Send this to the ticket creator 2929 3048 if($devOptions['allow_html']=='true') { … … 2943 3062 $message .= $cleaned_message; 2944 3063 } 2945 $headers = ''; 2946 2947 wpscSupportTickets_mail($to, $subject, $message, $headers);3064 3065 3066 wpscSupportTickets_mail($to, $subject, $message, null, $cc); 2948 3067 2949 3068 … … 3026 3145 3027 3146 if (session_id() == "") {@session_start();}; 3147 3148 $is_an_admin_reply = false; 3028 3149 3029 3150 if ( current_user_can('manage_wpsct_support_tickets')) { // admin edits such as closing tickets should happen here first: 3151 $is_an_admin_reply = true; 3030 3152 if(@isset($_POST['wpscst_status']) && @isset($_POST['wpscst_department']) && is_numeric($_POST['wpscst_edit_primkey'])) { 3031 3153 $wpscst_department = intval($_POST['wpscst_department']); … … 3225 3347 if($devOptions['disable_all_emails']=='false') { // If emails are turned on 3226 3348 if (@isset($_POST['wpsctnoemail']) && $_POST['wpsctnoemail'] == 'on' && $results[0]['email'] != $wpscst_email) { 3349 $cc = null; 3350 if($devOptions['cc_all_user_replies'] == 'true' && !$is_an_admin_reply) { 3351 $cc = $devOptions['cc_all_user_replies_to_email']; 3352 } 3353 3227 3354 $to = $results[0]['email']; // Send this to the original ticket creator 3228 3355 if($devOptions['allow_html']=='true') { … … 3243 3370 } 3244 3371 3245 wpscSupportTickets_mail($to, $subject, $message );3372 wpscSupportTickets_mail($to, $subject, $message, null, $cc); 3246 3373 } 3247 3374 3248 3375 if( $devOptions['email']!=$results[0]['email']) { 3376 $cc = null; 3377 if($devOptions['cc_all_admin_replies'] == 'true' && $is_an_admin_reply) { 3378 $cc = $devOptions['cc_all_admin_replies']; 3379 } 3380 3249 3381 $to = $devOptions['email']; // Send this to the admin 3250 3382 if($devOptions['allow_html']=='true') { … … 3268 3400 } 3269 3401 3270 wpscSupportTickets_mail($to, $subject, $message );3402 wpscSupportTickets_mail($to, $subject, $message, null, $cc); 3271 3403 } 3272 3404
Note: See TracChangeset
for help on using the changeset viewer.