Changeset 1119633
- Timestamp:
- 03/24/2015 01:03:44 PM (11 years ago)
- Location:
- key4ce-osticket-bridge
- Files:
-
- 104 added
- 18 edited
-
tags/1.2.8/admin (added)
-
tags/1.2.8/admin/admin_create_ticket.php (added)
-
tags/1.2.8/admin/adminticketmail.php (added)
-
tags/1.2.8/admin/db-settings.php (added)
-
tags/1.2.8/admin/header_nav.php (added)
-
tags/1.2.8/admin/header_nav_ticket.php (added)
-
tags/1.2.8/admin/index.php (added)
-
tags/1.2.8/admin/ost-config.php (added)
-
tags/1.2.8/admin/ost-emailtemp.php (added)
-
tags/1.2.8/admin/ost-postreplymail.php (added)
-
tags/1.2.8/admin/ost-settings.php (added)
-
tags/1.2.8/admin/ost-tickets.php (added)
-
tags/1.2.8/admin/ost-ticketview.php (added)
-
tags/1.2.8/admin/search.php (added)
-
tags/1.2.8/css (added)
-
tags/1.2.8/css/admin-style.css (added)
-
tags/1.2.8/css/index.php (added)
-
tags/1.2.8/css/jquery.autocomplete.css (added)
-
tags/1.2.8/css/style.css (added)
-
tags/1.2.8/css/stylesheet.css (added)
-
tags/1.2.8/images (added)
-
tags/1.2.8/images/alert.png (added)
-
tags/1.2.8/images/attachment.png (added)
-
tags/1.2.8/images/check_status_icon.png (added)
-
tags/1.2.8/images/error.png (added)
-
tags/1.2.8/images/home.png (added)
-
tags/1.2.8/images/index.php (added)
-
tags/1.2.8/images/new.png (added)
-
tags/1.2.8/images/new_ticket_icon.png (added)
-
tags/1.2.8/images/ok.png (added)
-
tags/1.2.8/images/os1.gif (added)
-
tags/1.2.8/images/refresh.gif (added)
-
tags/1.2.8/images/refresh.png (added)
-
tags/1.2.8/images/status.png (added)
-
tags/1.2.8/images/thread.gif (added)
-
tags/1.2.8/images/ticket.gif (added)
-
tags/1.2.8/images/tix_closed.png (added)
-
tags/1.2.8/images/topMenuImages.png (added)
-
tags/1.2.8/includes (added)
-
tags/1.2.8/includes/02_01_2015_functions.php (added)
-
tags/1.2.8/includes/contactticketmail.php (added)
-
tags/1.2.8/includes/database.php (added)
-
tags/1.2.8/includes/functions.php (added)
-
tags/1.2.8/includes/index.php (added)
-
tags/1.2.8/includes/newticketmail.php (added)
-
tags/1.2.8/includes/pagination.php (added)
-
tags/1.2.8/includes/postreplymail.php (added)
-
tags/1.2.8/includes/ticket_delete.php (added)
-
tags/1.2.8/includes/udscript.php (added)
-
tags/1.2.8/includes/versionData.php (added)
-
tags/1.2.8/index.php (added)
-
tags/1.2.8/js (added)
-
tags/1.2.8/js/adminTB-email.js (added)
-
tags/1.2.8/js/adminTB-sett.js (added)
-
tags/1.2.8/js/fade.js (added)
-
tags/1.2.8/js/index.php (added)
-
tags/1.2.8/js/jquery.autocomplete.js (added)
-
tags/1.2.8/js/jquery.js (added)
-
tags/1.2.8/js/jquery_1_7_2.js (added)
-
tags/1.2.8/js/timerbar.js (added)
-
tags/1.2.8/js/validate.js (added)
-
tags/1.2.8/languages (added)
-
tags/1.2.8/languages/key4ce-osticket-bridge-ar.mo (added)
-
tags/1.2.8/languages/key4ce-osticket-bridge-ar.po (added)
-
tags/1.2.8/languages/key4ce-osticket-bridge-en_US.mo (added)
-
tags/1.2.8/languages/key4ce-osticket-bridge-en_US.po (added)
-
tags/1.2.8/languages/key4ce-osticket-bridge-nl_NL.mo (added)
-
tags/1.2.8/languages/key4ce-osticket-bridge-nl_NL.po (added)
-
tags/1.2.8/lib (added)
-
tags/1.2.8/lib/attachment (added)
-
tags/1.2.8/lib/attachment/download.php (added)
-
tags/1.2.8/lib/captcha (added)
-
tags/1.2.8/lib/captcha/backgrounds (added)
-
tags/1.2.8/lib/captcha/backgrounds/45-degree-fabric.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/cloth-alike.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/grey-sandbag.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/kinda-jean.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/polyester-lite.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/stitched-wool.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/white-carbon.png (added)
-
tags/1.2.8/lib/captcha/backgrounds/white-wave.png (added)
-
tags/1.2.8/lib/captcha/fonts (added)
-
tags/1.2.8/lib/captcha/fonts/times_new_yorker.ttf (added)
-
tags/1.2.8/lib/captcha/index.php (added)
-
tags/1.2.8/lib/captcha/simple-php-captcha.php (added)
-
tags/1.2.8/license.txt (added)
-
tags/1.2.8/osticket-wp.php (added)
-
tags/1.2.8/readme.txt (added)
-
tags/1.2.8/screenshot-1.png (added)
-
tags/1.2.8/screenshot-2.png (added)
-
tags/1.2.8/screenshot-3.png (added)
-
tags/1.2.8/screenshot-4.png (added)
-
tags/1.2.8/screenshot-5.png (added)
-
tags/1.2.8/screenshot-6.png (added)
-
tags/1.2.8/templates (added)
-
tags/1.2.8/templates/contact_nav_bar.php (added)
-
tags/1.2.8/templates/contact_ticket.php (added)
-
tags/1.2.8/templates/index.php (added)
-
tags/1.2.8/templates/list_tickets.php (added)
-
tags/1.2.8/templates/message.php (added)
-
tags/1.2.8/templates/nav_bar.php (added)
-
tags/1.2.8/templates/new_ticket.php (added)
-
tags/1.2.8/templates/pagination.php (added)
-
tags/1.2.8/templates/view_ticket.php (added)
-
trunk/admin/admin_create_ticket.php (modified) (5 diffs)
-
trunk/admin/adminticketmail.php (modified) (8 diffs)
-
trunk/admin/db-settings.php (modified) (4 diffs)
-
trunk/admin/ost-config.php (modified) (1 diff)
-
trunk/admin/ost-postreplymail.php (modified) (4 diffs)
-
trunk/admin/ost-tickets.php (modified) (3 diffs)
-
trunk/admin/ost-ticketview.php (modified) (5 diffs)
-
trunk/includes/database.php (modified) (4 diffs)
-
trunk/includes/functions.php (modified) (2 diffs)
-
trunk/includes/newticketmail.php (modified) (9 diffs)
-
trunk/includes/postreplymail.php (modified) (5 diffs)
-
trunk/languages/key4ce-osticket-bridge-ar.po (modified) (1 diff)
-
trunk/ost-bridge.php (modified) (1 diff)
-
trunk/readme.txt (modified) (13 diffs)
-
trunk/templates/list_tickets.php (modified) (1 diff)
-
trunk/templates/nav_bar.php (modified) (1 diff)
-
trunk/templates/new_ticket.php (modified) (6 diffs)
-
trunk/templates/view_ticket.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
key4ce-osticket-bridge/trunk/admin/admin_create_ticket.php
r1107959 r1119633 5 5 $dept_opt = $ost_wpdb->get_results("SELECT dept_name,dept_id FROM $dept_table where ispublic=1"); 6 6 wp_enqueue_script('ost-bridge-validate',plugins_url('../js/validate.js', __FILE__)); 7 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 8 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 7 8 // Start File system changes 9 $fileconfig=key4ce_FileConfigValue(); 10 $filedata=json_decode($fileconfig); 11 if($keyost_version==193) 12 { 13 $attachement_status=key4ce_getKeyValue('allow_attachments'); 14 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 15 $agent_max_file_size=key4ce_getKeyValue('max_staff_file_uploads'); 16 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 17 } 18 else 19 { 20 $attachement_status=$filedata->attachments; 21 $max_user_file_uploads=$filedata->max; 22 $agent_max_file_size=key4ce_getKeyValue('max_file_size'); 23 $fileextesnions=$filedata->extensions; 24 } 25 // End file system changes 26 27 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 28 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 9 29 $allowedExts = explode(",", $strplc); 10 30 function add_quotes($str) { … … 77 97 var addDiv = j('#addinput'); 78 98 var i = j('#addinput p').size() + 1; 79 var MaxFileInputs = <?php echo key4ce_getKeyValue('max_staff_file_uploads'); ?>;99 var MaxFileInputs = <?php echo $agent_max_file_size; ?>; 80 100 j('#addNew').live('click', function() { 81 101 if (i <= MaxFileInputs) 82 102 { 83 j('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;">Max file upload size : <?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);103 j('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;">Max file upload size : <?php echo ($agent_max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv); 84 104 i++; 85 105 } … … 111 131 var FileSizeMB = (FileSize / 10485760).toFixed(2); 112 132 var FileExts = new Array(<?php echo $extimp; ?>); 113 if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))133 if ((FileSize > <?php echo $agent_max_file_size; ?>)) 114 134 { 115 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB.");135 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo ($agent_max_file_size * .0009765625) * .0009765625; ?>MB."); 116 136 document.getElementById(FileId).value = ""; 117 137 return false; … … 241 261 </tr> 242 262 <?php 243 if ( key4ce_getKeyValue('allow_attachments') == 1) {263 if ($attachement_status==1 || $attachement_status==true) { 244 264 if(key4ce_getPluginValue('Attachments on the filesystem')==1) 245 265 { … … 248 268 <div id="addinput"> 249 269 <p> 250 <span style="color:#000;"><?php echo __("Attachment 1:", 'key4ce-osticket-bridge'); ?></span> <input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span>270 <span style="color:#000;"><?php echo __("Attachment 1:", 'key4ce-osticket-bridge'); ?></span> <input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ($agent_max_file_size * .0009765625) * .0009765625; ?>MB</span> 251 271 </p> 252 272 </div> -
key4ce-osticket-bridge/trunk/admin/adminticketmail.php
r1107959 r1119633 29 29 @$newtickettemp = Format::stripslashes($_REQUEST['newtickettemp']); 30 30 $ip_add = $_SERVER['REMOTE_ADDR']; 31 if($keyost_version==194 )31 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 32 32 { 33 33 $ticketstate = "1"; … … 49 49 $dept_name = $dept_details->dept_name; 50 50 // Added by Pratik Maniar on 29-04-2014 End Here 51 52 // Start File system changes 53 if($keyost_version==193) 54 { 55 $attachement_status=key4ce_getKeyValue('allow_attachments'); 56 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 57 $max_file_size=key4ce_getKeyValue('max_file_size'); 58 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 59 } 60 else 61 { 62 $fileconfig=key4ce_FileConfigValue(); 63 $filedata=json_decode($fileconfig); 64 $attachement_status=$filedata->attachments; 65 $max_user_file_uploads=$filedata->max; 66 $max_file_size=$filedata->size; 67 $fileextesnions=$filedata->extensions; 68 } 69 // End file system changes 70 71 51 72 /////New user info > check if user exists or create a new user... 52 73 $result1 = $ost_wpdb->get_results("SELECT address FROM " . $keyost_prefix . "user_email WHERE address = '" . $wp_user_email_id . "'"); … … 76 97 ////End of new user info user_email_id email_id 77 98 if (count($result1) > 0) { 78 if($keyost_version==194 )99 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 79 100 { 80 101 $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $usid, 'user_email_id' => $usid, 'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $usid, 'ip_address' => $ip_add, 'status_id' => $ticketstate, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s')); … … 86 107 87 108 } else { 88 if($keyost_version==194 )109 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 89 110 { 90 111 $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $last_ost_user_id, 'user_email_id' => $last_ost_user_email_id, 'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $last_ost_user_email_id, 'ip_address' => $ip_add, 'status_id' => $ticketstate, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s')); … … 102 123 $ost_wpdb->insert($ticket_event_table, array('ticket_id' => $lastid, 'staff_id' => $staff_id, 'team_id' => $team_id, 'dept_id' => $dep_id, 'topic_id' => $top_id, 'state' => $stat, 'staff' => $staf, 'annulled' => $annulled, 'timestamp' => $cre), array('%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s')); 103 124 // File Table Entry Code Start Here By Pratik Maniar on 29/08/2014 125 104 126 if (!empty($_FILES['file']['name'][0])) 105 127 { … … 107 129 for ($i = 0; $i < count($_FILES['file']['name']); $i++) 108 130 { 109 $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration110 $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration111 131 $fullfinalpath= key4ce_getKeyValue('uploadpath'); 112 132 $key4ce_generateHashKey = key4ce_generateHashKey(33); … … 117 137 mkdir($structure, 0355); 118 138 } 119 $alowaray = explode(".",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));120 $strplc = str_replace(".", "",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));139 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 140 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 121 141 $allowedExts = explode(",", $strplc); 122 142 $temp = explode(".", $_FILES['file']['name'][$i]); … … 154 174 } 155 175 } 156 if($keyost_version==194 )176 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 157 177 { 158 178 $ost_wpdb->insert($ticket_cdata, array('ticket_id' => $lastid, 'subject' => $sub, 'priority' =>$pri_id), array('%d', '%s', '%d')); -
key4ce-osticket-bridge/trunk/admin/db-settings.php
r1107959 r1119633 210 210 LEFT JOIN $ticket_cdata ON $ticket_cdata.ticket_id = $ticket_table.ticket_id 211 211 INNER JOIN $dept_table ON $dept_table.dept_id=$ticket_table.dept_id"); 212 if($keyost_version==194 )212 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 213 213 { 214 214 $ticket_count_open = $ost_wpdb->get_var("SELECT COUNT(*) FROM $ticket_table … … 250 250 # Collecting info for threads listed in ost-ticketview 251 251 # ============================================================================================== 252 if($keyost_version== "194")252 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 253 253 { 254 254 $ticketinfo=$ost_wpdb->get_row("SELECT $thread_table.poster,$ticket_table.user_id,$ticket_table.number,$ticket_table.created,$ticket_table.ticket_id,$ticket_table.isanswered,$ost_user.name,$dept_table.dept_name,$ost_ticket_status.state as status,$ticket_cdata.priority,$ticket_cdata.subject,$ost_useremail.address FROM $ticket_table … … 295 295 $status_opt='closed'; 296 296 } 297 if($keyost_version== "194")297 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 298 298 { 299 299 $sql="SELECT $ticket_table.user_id,$ticket_table.number,$ticket_table.created, $ticket_table.updated, $ticket_table.ticket_id,$ticket_table.isanswered,$ticket_cdata.subject,$ticket_cdata.priority, $dept_table.dept_name … … 314 314 if($status_opt && ($status_opt!="all") && @$search=="") 315 315 { 316 if($keyost_version== "194")316 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 317 317 { 318 318 $sql.=" and $ost_ticket_status.state = '".$status_opt."'"; -
key4ce-osticket-bridge/trunk/admin/ost-config.php
r1107959 r1119633 121 121 <td> 122 122 <?php 123 if(@$keyost_version==194) 124 @$keyost_version_194="selected='selected'"; 125 else 126 @$keyost_version_19="selected='selected'"; 123 if(@$keyost_version==193) 124 @$keyost_version_193="selected='selected'"; 125 else if(@$keyost_version==194) 126 @$keyost_version_194="selected='selected'"; 127 else if(@$keyost_version==195) 128 @$keyost_version_195="selected='selected'"; 129 else 130 @$keyost_version_1951="selected='selected'"; 127 131 ?> 128 132 <select name="keyost_version" id="keyost_version"> 129 <option value="19" <?php echo @$keyost_version_19; ?>>Ver. <=1.9.4</option> 130 <option value="194" <?php echo @$keyost_version_194; ?>>Ver. >=1.9.4</option> 133 <option value="193" <?php echo @$keyost_version_193; ?>>Ver. 1.9.3</option> 134 <option value="194" <?php echo @$keyost_version_194; ?>>Ver. 1.9.4</option> 135 <option value="195" <?php echo @$keyost_version_195; ?>>Ver. 1.9.5</option> 136 <option value="1951" <?php echo @$keyost_version_1951; ?>>Ver. >=1.9.5.1</option> 131 137 </select> <?php echo __("(Select Osticket Version)", 'key4ce-osticket-bridge'); ?> 132 138 </td> -
key4ce-osticket-bridge/trunk/admin/ost-postreplymail.php
r1107959 r1119633 12 12 $signature=$ticket_details->dept_signature; 13 13 $department_id=$ticket_details->dept_id; 14 // Start File system changes 15 $fileconfig=key4ce_FileConfigValue(); 16 $filedata=json_decode($fileconfig); 17 if($keyost_version==194 || $keyost_version==195 || $keyost_version==193) 18 { 19 $attachement_status=key4ce_getKeyValue('allow_attachments'); 20 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 21 $max_file_size=key4ce_getKeyValue('max_file_size'); 22 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 23 } 24 else 25 { 26 $attachement_status=$filedata->attachments; 27 $max_user_file_uploads=$filedata->max; 28 $max_file_size=$filedata->size; 29 $fileextesnions=$filedata->extensions; 30 } 31 // End file system changes 14 32 if($signature_type=="mine") 15 33 $signature = $ost_wpdb->get_var("SELECT signature FROM $staff_table WHERE email='".$current_user->user_email."'"); … … 35 53 for ($i = 0; $i < count($_FILES['file']['name']); $i++) 36 54 { 37 $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration38 $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration39 55 $fullfinalpath= key4ce_getKeyValue('uploadpath'); 40 56 $key4ce_generateHashKey = key4ce_generateHashKey(33); … … 45 61 mkdir($structure, 0355); 46 62 } 47 $alowaray = explode(".",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));48 $strplc = str_replace(".", "",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));63 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 64 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 49 65 $allowedExts = explode(",", $strplc); 50 66 $temp = explode(".", $_FILES['file']['name'][$i]); … … 83 99 $ost_wpdb->query($ost_wpdb->prepare("UPDATE $ticket_table SET isanswered = 1 WHERE number = %s",$ticket_number)); 84 100 /* Added by Pratik Maniar End Here On 28-04-2014*/ 85 if($keyost_version==194 )101 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 86 102 { 87 103 if(isset($_REQUEST['reply_ticket_status'])) { -
key4ce-osticket-bridge/trunk/admin/ost-tickets.php
r1107959 r1119633 26 26 foreach($close_ticket_list as $close_ticket) 27 27 { 28 if($keyost_version==194 )28 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 29 29 $ost_wpdb->update($ticket_table, array('status_id'=>'3'), array('ticket_id'=>$close_ticket), array('%s')); 30 30 else … … 42 42 foreach($reopen_ticket_list as $reopen_ticket) 43 43 { 44 if($keyost_version==194 )44 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 45 45 $ost_wpdb->update($ticket_table, array('status_id'=>'1'), array('ticket_id'=>$reopen_ticket), array('%s')); 46 46 else … … 122 122 echo "<div id='key4ce_ticket_list2'>".key4ce_truncate($sub_str,60,'...')."</div> 123 123 <div id='key4ce_ticket_list3'>"; 124 if($keyost_version==194 )124 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 125 125 $priority=$list->priority; 126 126 else -
key4ce-osticket-bridge/trunk/admin/ost-ticketview.php
r1107959 r1119633 1 1 <?php 2 2 require_once( WP_PLUGIN_DIR . '/key4ce-osticket-bridge/includes/functions.php' ); 3 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 4 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 3 // Start File system changes 4 if($keyost_version==193) 5 { 6 $attachement_status=key4ce_getKeyValue('allow_attachments'); 7 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 8 $max_file_size=key4ce_getKeyValue('max_file_size'); 9 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 10 } 11 else 12 { 13 $fileconfig=key4ce_FileConfigValue(); 14 $filedata=json_decode($fileconfig); 15 $attachement_status=$filedata->attachments; 16 $max_user_file_uploads=$filedata->max; 17 $max_file_size=$filedata->size; 18 $fileextesnions=$filedata->extensions; 19 } 20 // End file system changes 21 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 22 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 5 23 $allowedExts = explode(",", $strplc); 6 24 … … 20 38 if (i <= MaxFileInputs) 21 39 { 22 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;">Max file upload size : <?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);40 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;">Max file upload size : <?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv); 23 41 i++; 24 42 } … … 52 70 if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>)) 53 71 { 54 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB.");72 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB."); 55 73 document.getElementById(FileId).value = ""; 56 74 return false; … … 109 127 <td> 110 128 <div><?php 111 if($keyost_version==194 )129 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 112 130 $priority=$ticketinfo->priority; 113 131 else … … 214 232 ?> 215 233 <?php 216 if ( key4ce_getKeyValue('allow_attachments') == 1) {234 if ($attachement_status==1 || $attachement_status==true) { 217 235 if(key4ce_getPluginValue('Attachments on the filesystem')==1) 218 236 { -
key4ce-osticket-bridge/trunk/includes/database.php
r1107959 r1119633 24 24 /*Add user id of ticket instead of wordpress end here*/ 25 25 26 if($keyost_version==194 )26 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 27 27 { 28 28 $getNumOpenTickets=$ost_wpdb->get_var("SELECT COUNT(*) FROM $ticket_table INNER JOIN $ost_ticket_status ON $ost_ticket_status.id=$ticket_table.status_id WHERE user_id='$user_id' and $ost_ticket_status.state='open'"); … … 39 39 } 40 40 //////Ticket Info 41 if($keyost_version==194 )41 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 42 42 { 43 43 $ticketinfo=$ost_wpdb->get_row("SELECT $ticket_table.user_id,$ost_ticket_status.state as status,$ticket_table.number,$ticket_table.created,$ticket_table.ticket_id,$ticket_table.isanswered,$ost_user.name,$dept_table.dept_name,$ticket_cdata.priority,$ticket_cdata.subject,$ost_useremail.address FROM $ticket_table INNER JOIN $dept_table ON $dept_table.dept_id=$ticket_table.dept_id INNER JOIN $ost_user ON $ost_user.id=$ticket_table.user_id INNER JOIN $ost_ticket_status ON $ost_ticket_status.id=$ticket_table.status_id INNER JOIN $ost_useremail ON $ost_useremail.user_id=$ticket_table.user_id LEFT JOIN $ticket_cdata on $ticket_cdata.ticket_id = $ticket_table.ticket_id WHERE `number` ='$ticket'"); … … 81 81 if($user_id!="") 82 82 { 83 if($keyost_version==194 )83 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 84 84 { 85 85 $sql=""; … … 104 104 if($status_opt && ($status_opt!="all") && $search=="") 105 105 { 106 if($keyost_version==194 )106 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 107 107 $sql.=" and $ost_ticket_status.state = '".$status_opt."'"; 108 108 else -
key4ce-osticket-bridge/trunk/includes/functions.php
r1107959 r1119633 49 49 return $getKeyvalue; 50 50 } 51 52 51 53 function key4ce_getPluginValue($plugin) 52 54 { … … 101 103 return $getUserEmail; 102 104 } 105 //1.9.5.1 Functions 106 function key4ce_FileConfigValue() 107 { 108 $config = get_option('os_ticket_config'); 109 extract($config); 110 $ost_wpdb = new wpdb($username, $password, $database, $host); 111 $getConfigValue=$ost_wpdb->get_var("SELECT configuration FROM ".$keyost_prefix."form_field WHERE `type` = 'thread' AND label='Issue Details' AND name='message'"); 112 return $getConfigValue; 113 114 } 115 103 116 ?> -
key4ce-osticket-bridge/trunk/includes/newticketmail.php
r1107959 r1119633 33 33 @$newtickettemp = Format::stripslashes($_REQUEST['newtickettemp']); 34 34 $ip_add = $_SERVER['REMOTE_ADDR']; 35 if($keyost_version==194 )35 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 36 36 { 37 37 $ticketstate = "1"; 38 38 } 39 39 else{ 40 $ticketstate = "open"; 41 } 42 40 $ticketstate = "open"; 41 } 43 42 $sour = "Web"; 44 43 $isoverdue = 0; 45 44 $isans = 0; 46 $las_msg = date("Y-m-d g:i:s",strtotime('+1 hours')) ."<br>";45 $las_msg = date("Y-m-d g:i:s",strtotime('+1 hours')); 47 46 $cre = date("Y-m-d g:i:s",strtotime('+1 hours')); 48 47 @$user_message = Format::stripslashes($_REQUEST['message']); … … 61 60 @$last_ost_user_email_id = $ost_wpdb->insert_id; 62 61 } 63 64 62 $result2 = $ost_wpdb->get_results("SELECT default_email_id,name FROM " . $keyost_prefix . "user WHERE default_email_id = '" . @$last_ost_user_email_id . "'"); 65 63 if (count($result2) > 0) { … … 80 78 ////End of new user info user_email_id email_id 81 79 if (count($result1) > 0) { 82 if($keyost_version==194 )80 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 83 81 { 84 82 $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $usid, 'user_email_id' => $usid,'status_id' => $ticketstate,'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $usid, 'ip_address' => $ip_add, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s')); … … 90 88 91 89 } else { 92 if($keyost_version==194 )90 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 93 91 { 94 92 $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $last_ost_user_id, 'user_email_id' => $last_ost_user_email_id, 'status_id' => $ticketstate,'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $last_ost_user_email_id, 'ip_address' => $ip_add, 'status_id' => $ticketstate, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s')); … … 104 102 $annulled = 0; 105 103 $ost_wpdb->insert($ticket_event_table, array('ticket_id' => $lastid, 'staff_id' => $staff_id, 'team_id' => $team_id, 'dept_id' => $dep_id, 'topic_id' => $top_id, 'state' => $stat, 'staff' => $staf, 'annulled' => $annulled, 'timestamp' => $cre), array('%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s')); 104 if($keyost_version==193) 105 { 106 $attachement_status=key4ce_getKeyValue('allow_attachments'); 107 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 108 $max_file_size=key4ce_getKeyValue('max_file_size'); 109 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 110 } 111 else 112 { 113 $fileconfig=key4ce_FileConfigValue(); 114 $filedata=json_decode($fileconfig); 115 $attachement_status=$filedata->attachments; 116 $max_user_file_uploads=$filedata->max; 117 $max_file_size=$filedata->size; 118 $fileextesnions=$filedata->extensions; 119 } 106 120 // File Table Entry Code Start Here By Pratik Maniar on 29/08/2014 107 121 if (!empty($_FILES['file']['name'][0])) … … 110 124 for ($i = 0; $i < count($_FILES['file']['name']); $i++) 111 125 { 112 $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration113 $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration114 126 $fullfinalpath= key4ce_getKeyValue('uploadpath'); 115 127 $key4ce_generateHashKey = key4ce_generateHashKey(33); … … 117 129 $dir_name = substr($key4ce_generateHashKey, 0, 1); 118 130 $structure = $fullfinalpath."/".$dir_name; 131 //$structure."<br>"; 119 132 if (!is_dir($structure)) { 120 133 mkdir($structure, 0355); 121 134 } 122 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));123 $strplc = str_replace(".", "",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));135 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 136 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 124 137 $allowedExts = explode(",", $strplc); 125 138 $temp = explode(".", $_FILES['file']['name'][$i]); … … 129 142 $filetype = $_FILES["file"]["type"][$i]; 130 143 $filesize = $_FILES["file"]["size"][$i]; 144 //$structure . "/" . $newfilename; 131 145 if (($_FILES["file"]["size"][$i] < $max_file_size) && in_array($extension, $allowedExts)) { 132 146 if ($_FILES["file"]["error"][$i] > 0) { 133 147 echo "Return Code: " . $_FILES["file"]["error"][$i] . "<br>"; 148 exit; 134 149 } else { 135 150 move_uploaded_file($_FILES["file"]["tmp_name"][$i], $structure . "/" . $newfilename); … … 157 172 } 158 173 } 159 if($keyost_version==194 )174 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 160 175 { 161 176 $ost_wpdb->insert($ticket_cdata, array('ticket_id' => $lastid, 'subject' => $sub, 'priority' =>$pri_id), array('%d', '%s', '%d')); -
key4ce-osticket-bridge/trunk/includes/postreplymail.php
r1107959 r1119633 32 32 $dept_details=$ost_wpdb->get_row("SELECT * FROM $dept_table WHERE dept_id=$dep_id"); 33 33 $dept_name=$dept_details->dept_name; 34 34 // Start File system changes 35 $fileconfig=key4ce_FileConfigValue(); 36 $filedata=json_decode($fileconfig); 37 if($keyost_version==193) 38 { 39 $attachement_status=key4ce_getKeyValue('allow_attachments'); 40 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 41 $max_file_size=key4ce_getKeyValue('max_file_size'); 42 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 43 } 44 else 45 { 46 $attachement_status=$filedata->attachments; 47 $max_user_file_uploads=$filedata->max; 48 $max_file_size=$filedata->size; 49 $fileextesnions=$filedata->extensions; 50 } 51 // End file system changes 35 52 $ost_wpdb->insert($thread_table, array('pid' => $pid,'ticket_id' => $ticid,'staff_id' => $staffid,'user_id' => $usid,'thread_type' => $thread_type,'poster' => $poster,'source' => $source,'title' => "",'body' => key4ce_wpetss_forum_text($user_message),'ip_address' => $ipaddress,'created' => $date), array('%d','%d','%d','%d','%s','%s','%s','%s','%s','%s','%s')); 36 53 $thread_id = $ost_wpdb->insert_id; … … 42 59 for ($i = 0; $i < count($_FILES['file']['name']); $i++) 43 60 { 44 $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration 45 $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration 46 $fullfinalpath= key4ce_getKeyValue('uploadpath'); 61 $fullfinalpath= key4ce_getKeyValue('uploadpath'); 47 62 $key4ce_generateHashKey = key4ce_generateHashKey(33); 48 63 $key4ce_generateHashSignature = key4ce_generateHashSignature(33); … … 52 67 mkdir($structure, 0355); 53 68 } 54 $alowaray = explode(".",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));55 $strplc = str_replace(".", "",str_replace(' ', '', key4ce_getKeyValue('allowed_filetypes')));69 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 70 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 56 71 $allowedExts = explode(",", $strplc); 57 72 $temp = explode(".", $_FILES['file']['name'][$i]); … … 64 79 if ($_FILES["file"]["error"][$i] > 0) { 65 80 echo "Return Code: " . $_FILES["file"]["error"][$i] . "<br>"; 81 exit; 66 82 } else { 67 83 move_uploaded_file($_FILES["file"]["tmp_name"][$i], $structure . "/" . $newfilename); … … 88 104 $ost_wpdb->query($ost_wpdb->prepare("UPDATE $ticket_table SET isanswered = 0 WHERE number = %d",$usticketid)); 89 105 /* Added by Pratik Maniar End Here On 28-04-2014*/ 90 if($keyost_version==194 )106 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 91 107 { 92 108 if(isset($_REQUEST['reply_ticket_status'])) { -
key4ce-osticket-bridge/trunk/languages/key4ce-osticket-bridge-ar.po
r1111101 r1119633 904 904 #~ msgid "Support Center Status" 905 905 #~ msgstr "حالة مركز الدعم" 906 # English translations for PACKAGE package. 907 # Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER 908 # This file is distributed under the same license as the PACKAGE package. 909 # Automatically generated, 2012. 910 # 911 msgid "" 912 msgstr "" 913 "Project-Id-Version: key4ce-osticket-bridge 1.0\n" 914 "Report-Msgid-Bugs-To: \n" 915 "POT-Creation-Date: 2015-03-09 12:25+0200\n" 916 "PO-Revision-Date: 2015-03-10 13:23+0200\n" 917 "Last-Translator: Muhammad Bashir Al-Noimi <[email protected]>\n" 918 "Language-Team: none\n" 919 "Language: ar\n" 920 "MIME-Version: 1.0\n" 921 "Content-Type: text/plain; charset=UTF-8\n" 922 "Content-Transfer-Encoding: 8bit\n" 923 "X-Poedit-SourceCharset: UTF-8\n" 924 "Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n" 925 "%100<=99 ? 4 : 5);\n" 926 "X-Generator: Poedit 1.7.4\n" 927 "X-Poedit-KeywordsList: __\n" 928 "X-Poedit-Basepath: .\n" 929 "X-Poedit-SearchPath-0: .\n" 930 "X-Poedit-SearchPath-1: ..\n" 931 932 #: ../admin/admin_create_ticket.php:83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:22 933 #: ../templates/view_ticket.php:26 ../templates/view_ticket.php:244 934 msgid "Attachment" 935 msgstr "مرفق" 936 937 #: ../admin/admin_create_ticket.php:83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:22 938 #: ../templates/view_ticket.php:26 939 msgid "Remove" 940 msgstr "إزالة" 941 942 #: ../admin/admin_create_ticket.php:88 ../admin/ost-ticketview.php:27 ../templates/new_ticket.php:27 943 #: ../templates/view_ticket.php:31 944 msgid "You have exceeds your file upload limit" 945 msgstr "لقد تجاوزت حد الرفع المسموح لك" 946 947 #: ../admin/admin_create_ticket.php:115 ../admin/ost-ticketview.php:54 ../templates/new_ticket.php:54 948 #: ../templates/view_ticket.php:58 949 msgid "Please make sure your file is less than" 950 msgstr "يرجى الـتأكد أن حجم الملف أقل من" 951 952 #: ../admin/admin_create_ticket.php:121 ../admin/ost-ticketview.php:60 ../templates/new_ticket.php:60 953 #: ../templates/view_ticket.php:64 954 msgid "Please make sure your file extension should be :" 955 msgstr "يرجى التأكد من أن امتداد الملف يجب أن يكون:" 956 957 #: ../admin/admin_create_ticket.php:176 958 msgid "Create A New Ticket" 959 msgstr "إنشاء بطاقة جديدة" 960 961 #: ../admin/admin_create_ticket.php:178 ../templates/contact_ticket.php:58 ../templates/new_ticket.php:98 962 msgid "" 963 "Please fill in the form below to open a new ticket. All fields mark with [<font color=red>*</font>] <em>Are " 964 "Required!" 965 msgstr "يرجى تعبئة النموذج أدناه لفتح بطاقة جديدة، جميع الحقول الملونة بالأحمر مطلوبة." 966 967 #: ../admin/admin_create_ticket.php:187 968 msgid "Select User Type :" 969 msgstr "اختر نوع المستخدم: " 970 971 #: ../admin/admin_create_ticket.php:189 972 msgid "WP Users" 973 msgstr "مستخدمي الوورد برس" 974 975 #: ../admin/admin_create_ticket.php:190 976 msgid "Osticket Users" 977 msgstr "مستخدمي Osticket " 978 979 #: ../admin/admin_create_ticket.php:191 ../admin/admin_create_ticket.php:196 ../admin/ost-ticketview.php:96 980 #: ../templates/new_ticket.php:106 981 msgid "Username" 982 msgstr "اسم المستخدم" 983 984 #: ../admin/admin_create_ticket.php:194 985 msgid "WP Username" 986 msgstr "اسم مستخدم الوورد برس" 987 988 #: ../admin/admin_create_ticket.php:195 989 msgid "Osticket Username" 990 msgstr "اسم مستخدم Osticket " 991 992 #: ../admin/admin_create_ticket.php:199 ../templates/new_ticket.php:109 993 msgid "Your Email" 994 msgstr "البريد الالكتروني" 995 996 #: ../admin/admin_create_ticket.php:202 ../admin/ost-tickets.php:86 ../admin/ost-ticketview.php:134 997 #: ../templates/contact_ticket.php:83 ../templates/list_tickets.php:48 ../templates/new_ticket.php:112 998 #: ../templates/view_ticket.php:145 999 msgid "Subject" 1000 msgstr "العنوان" 1001 1002 #: ../admin/admin_create_ticket.php:205 ../templates/new_ticket.php:115 1003 msgid "Catagories" 1004 msgstr "التصنيفات" 1005 1006 #: ../admin/admin_create_ticket.php:208 ../templates/contact_ticket.php:73 ../templates/new_ticket.php:118 1007 msgid "Select a Category" 1008 msgstr "اختر تصنيف" 1009 1010 #: ../admin/admin_create_ticket.php:216 ../admin/ost-tickets.php:87 ../admin/ost-ticketview.php:108 1011 #: ../templates/view_ticket.php:109 1012 msgid "Priority" 1013 msgstr "الأولوية" 1014 1015 #: ../admin/admin_create_ticket.php:218 ../templates/new_ticket.php:128 1016 msgid "Select a Priority" 1017 msgstr "اختر الأولولية" 1018 1019 #: ../admin/admin_create_ticket.php:229 1020 msgid "To best assist you, please be specific and detailed in your message *" 1021 msgstr "لتقديم أفضل مساعدة لك، يرجى توضيح التفاصيل جيداً في الرسالة *" 1022 1023 #: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160 1024 msgid "Attachment 1:" 1025 msgstr "مرفق 1:" 1026 1027 #: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160 1028 #: ../templates/view_ticket.php:244 1029 msgid "Add" 1030 msgstr "إضافة" 1031 1032 #: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160 1033 #: ../templates/view_ticket.php:26 ../templates/view_ticket.php:244 1034 msgid "Max file upload size :" 1035 msgstr "الحد الأقصى لحجم الملف:" 1036 1037 #: ../admin/admin_create_ticket.php:257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167 1038 msgid "Attachments on the Filesystem plugin can be downloaded here:" 1039 msgstr "مرفقات هذه الإضافة يمكن تحميلها من هنا:" 1040 1041 #: ../admin/admin_create_ticket.php:257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167 1042 #: ../templates/view_ticket.php:251 1043 msgid "Attachement Filesystem Plugin" 1044 msgstr "إضافة الملفات المرفقة" 1045 1046 #: ../admin/admin_create_ticket.php:264 ../admin/header_nav_ticket.php:18 ../ost-bridge.php:148 1047 #: ../templates/nav_bar.php:46 ../templates/new_ticket.php:174 1048 msgid "Create Ticket" 1049 msgstr "إنشاء بطاقة" 1050 1051 #: ../admin/admin_create_ticket.php:265 ../templates/contact_ticket.php:110 ../templates/new_ticket.php:175 1052 #: ../templates/view_ticket.php:271 1053 msgid "Reset" 1054 msgstr "إعادة تعيين الافتراضيات" 1055 1056 # ------------------Email Template ost-emailtemp.php End Here half file remain----------------------------------- 1057 #: ../admin/db-settings.php:394 ../admin/db-settings.php:444 ../admin/db-settings.php:456 1058 #: ../admin/db-settings.php:468 1059 msgid "Stand by while your" 1060 msgstr "انتظر قليلاً" 1061 1062 #: ../admin/db-settings.php:394 ../ost-bridge.php:154 1063 msgid "Settings" 1064 msgstr "إعدادات" 1065 1066 #: ../admin/db-settings.php:394 1067 msgid "are being updated..." 1068 msgstr "يتم تحديث ..." 1069 1070 #: ../admin/db-settings.php:403 ../admin/db-settings.php:422 ../admin/ost-config.php:28 1071 msgid "Error:" 1072 msgstr "خطأ:" 1073 1074 #: ../admin/db-settings.php:403 ../admin/db-settings.php:422 1075 msgid "" 1076 "Message field cannot be empty, if you are closing the ticket, then enter: \"Closing Ticket\" in post a reply." 1077 msgstr "حقل الرسالة لا يمكن أن يكون فارغا, إن كنت تغلق البطاقة فأدخل: \"إغلاق البطاقة\" بحقل الرّد." 1078 1079 #: ../admin/db-settings.php:407 1080 msgid "Thread updated successfully...Stand by: for auto refresh!" 1081 msgstr "تم تحديث الموضوع بنجاح.... انتظر قليلاً!" 1082 1083 #: ../admin/db-settings.php:426 1084 msgid "Ticket created successfully...Stand by: for auto refresh!" 1085 msgstr "تم إنشاء البطاقة بنجاح.... انتظر قليلاً!" 1086 1087 #: ../admin/db-settings.php:444 ../admin/ost-emailtemp.php:56 1088 msgid "Admin Response Email" 1089 msgstr "بريد رد المدير" 1090 1091 #: ../admin/db-settings.php:444 ../admin/db-settings.php:456 ../admin/db-settings.php:468 1092 msgid "is being updated..." 1093 msgstr "جاري التحديث ..." 1094 1095 #: ../admin/db-settings.php:456 ../admin/ost-emailtemp.php:38 1096 msgid "New Ticket Email" 1097 msgstr "بطاقة جديدة" 1098 1099 #: ../admin/db-settings.php:468 ../admin/ost-emailtemp.php:75 1100 msgid "User Post Confirmation Email" 1101 msgstr "بريد تأكيد نشر المستخدم" 1102 1103 #: ../admin/header_nav.php:16 1104 msgid "Data Config" 1105 msgstr "تكوين البيانات" 1106 1107 #: ../admin/header_nav.php:17 1108 msgid "osT-Settings" 1109 msgstr "إعدادات osT" 1110 1111 #: ../admin/header_nav.php:18 ../ost-bridge.php:164 1112 msgid "Email Templates" 1113 msgstr "قوالب البريد" 1114 1115 #: ../admin/header_nav.php:19 ../ost-bridge.php:70 1116 msgid "Support Tickets" 1117 msgstr "بطاقات الدعم" 1118 1119 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:42 1120 msgid "1 or more of your email templates is not setup" 1121 msgstr "واحد أو أكثر من قوالب البريد لم يتم إعداده" 1122 1123 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:42 1124 msgid "Click Here" 1125 msgstr "انقر هنا" 1126 1127 #: ../admin/header_nav_ticket.php:21 ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:50 1128 #: ../admin/ost-emailtemp.php:69 ../admin/ost-ticketview.php:90 ../templates/list_tickets.php:95 1129 #: ../templates/view_ticket.php:90 1130 msgid "Open" 1131 msgstr "فتح" 1132 1133 #: ../admin/header_nav_ticket.php:22 ../admin/ost-ticketview.php:92 ../templates/list_tickets.php:98 1134 #: ../templates/view_ticket.php:92 1135 msgid "Answered" 1136 msgstr "تمت الإجابة" 1137 1138 #: ../admin/header_nav_ticket.php:23 ../admin/ost-ticketview.php:88 ../templates/list_tickets.php:92 1139 #: ../templates/nav_bar.php:53 ../templates/view_ticket.php:88 1140 msgid "Closed" 1141 msgstr "مغلق" 1142 1143 #: ../admin/header_nav_ticket.php:24 1144 msgid "All" 1145 msgstr "الكل" 1146 1147 #: ../admin/header_nav_ticket.php:30 1148 msgid "Search" 1149 msgstr "بحث" 1150 1151 #: ../admin/header_nav_ticket.php:33 1152 msgid "Go >>" 1153 msgstr "اذهب >>" 1154 1155 #: ../admin/header_nav_ticket.php:42 1156 msgid "Warning:" 1157 msgstr "تحذير:" 1158 1159 #: ../admin/ost-config.php:8 1160 msgid "osTicket Data Configuration" 1161 msgstr "تكوين بيانات osTicket " 1162 1163 #: ../admin/ost-config.php:11 1164 msgid "" 1165 "View or edit your OSTicket database information, you should already have osTicket installed to your server, " 1166 "view the osticket-folder/include/ost-config.php file. Look for DBHOST, DBNAME & DBUSER for the info required " 1167 "below." 1168 msgstr "" 1169 "عرض أو تعديل معلومات قاعدة بيانات OSTicket، يجب أن يكون OSTicket قد تم تنصيبه مسبقاً على مخدّمك، راجع الملف " 1170 "osticket-folder/include/ost-config.php و ابحث عن المتغيرات DBHOST، DBNAME ،DBUSER" 1171 1172 #: ../admin/ost-config.php:11 1173 msgid "" 1174 "Landing Page Name: The welcome page can be any name you want: Support, Helpdesk, Contact-Us, ext...the plugin " 1175 "will create this page. Note: If this page exists it will be over written, also this cannot be the same name as " 1176 "your osTicket folder." 1177 msgstr "" 1178 "اسم الصفحة الرئيسية: الصفحة الترحيبية يمكن أن تكون بأي اسم تريده: الدعم، المساعدة، اتصل بنا... إلخ ستقوم " 1179 "الإضافة بإنشاء هذه الصفحة في حالة عدم تواجدها. ملاحظة: في حال وجود الصفحة مسبقاً ستقوم الإضافة بالكتابة فوقها " 1180 "كذلك لا يمكن أن يكون اسمها بنفس اسم مجلد osTicket." 1181 1182 #: ../admin/ost-config.php:28 1183 msgid "All fields are required below for the database..." 1184 msgstr "جميع الحقول أدناه مطلوبة لقاعدة البيانات..." 1185 1186 #: ../admin/ost-config.php:89 1187 msgid "Your settings saved successfully...Thank you!" 1188 msgstr "تم حفظ إعداداتك بنجاح... شكراً لك" 1189 1190 #: ../admin/ost-config.php:100 1191 msgid "Host Name:" 1192 msgstr "اسم المضيف:" 1193 1194 #: ../admin/ost-config.php:101 1195 msgid "( Normally this is localhost )" 1196 msgstr "( عادة يكون localhost )" 1197 1198 #: ../admin/ost-config.php:104 1199 msgid "Database Name:" 1200 msgstr "اسم قاعدة البيانات:" 1201 1202 #: ../admin/ost-config.php:105 1203 msgid "( osTicket Database Name Goes Here )" 1204 msgstr "( اسم قاعدة بيانات osTicket هنا )" 1205 1206 #: ../admin/ost-config.php:108 1207 msgid "Database Username:" 1208 msgstr "اسم المستخدم لقاعدة البيانات:" 1209 1210 #: ../admin/ost-config.php:109 1211 msgid "( osTicket Database Username Goes Here )" 1212 msgstr "( اسم مستخدم قاعدة بيانات osTicket هنا )" 1213 1214 #: ../admin/ost-config.php:112 1215 msgid "Database Password:" 1216 msgstr "كلمة المرور:" 1217 1218 #: ../admin/ost-config.php:113 1219 msgid "( osTicket Database Password Goes Here )" 1220 msgstr "( كلمة مرور قاعدة بيانات osTicket هنا )" 1221 1222 #: ../admin/ost-config.php:116 1223 msgid "Database Prefix:" 1224 msgstr "بادئة قاعدة البيانات:" 1225 1226 #: ../admin/ost-config.php:117 1227 msgid "( osTicket Database Prefix Goes Here )" 1228 msgstr "( بادئة قاعدة البيانات osTicket هنا )" 1229 1230 #: ../admin/ost-config.php:120 1231 msgid "Osticket Version:" 1232 msgstr "إصدار osTicket:" 1233 1234 #: ../admin/ost-config.php:131 1235 msgid "(Select Osticket Version)" 1236 msgstr "(اختر إصدار Osticket)" 1237 1238 #: ../admin/ost-config.php:135 1239 msgid "Enable Closing Ticket By User:" 1240 msgstr "تفعيل إغلاق البطاقة بواسطة المستخدم:" 1241 1242 #: ../admin/ost-config.php:139 1243 msgid "Landing Page Name:" 1244 msgstr "اسم الصفحة الرئيسية:" 1245 1246 #: ../admin/ost-config.php:141 1247 msgid "Landing Page Name( Create this page...read Landing Page Note above! )" 1248 msgstr "اسم الصفحة الرئيسية ( أنشئ هذه الصحفة... اقرأ حولها بالملاحظة أعلاه! )" 1249 1250 #: ../admin/ost-config.php:144 1251 msgid "Contact Ticket Page:" 1252 msgstr "صفحة بطاقة الاتصال:" 1253 1254 #: ../admin/ost-config.php:166 1255 msgid "(Select contact ticket page)" 1256 msgstr "(احتر صفحة بطاقة الاتصال)" 1257 1258 #: ../admin/ost-config.php:170 1259 msgid "Thank You Page:" 1260 msgstr "صفحة الشكر:" 1261 1262 #: ../admin/ost-config.php:192 1263 msgid "(Select thank you page)" 1264 msgstr "(اختر صفحة الشكر)" 1265 1266 #: ../admin/ost-config.php:197 1267 msgid "Save Changes" 1268 msgstr "حفظ التعديلات" 1269 1270 #: ../admin/ost-emailtemp.php:8 1271 msgid "osTicket Email Templates" 1272 msgstr "قوالب بريد osTicket " 1273 1274 # ------------------Email Template ost-emailtemp.php Start Here----------------------------------- 1275 #: ../admin/ost-emailtemp.php:11 1276 msgid "" 1277 "The \"Email Templates\" sent from site to client: new tickets confirmations, user post confirmations & admin " 1278 "post replies." 1279 msgstr "\"قوالب البريد\" أرسلت من الموقع للزبون: تأكيدات البطاقات الجديدة و ملاحظات المستخدم و ردود المدير." 1280 1281 #: ../admin/ost-emailtemp.php:11 1282 msgid "" 1283 "Note: Each input field will have a suggested default template, you can place any text & use the variables " 1284 "listed below." 1285 msgstr "ملاحظة: كل حقل إدخال فيه قيم افتراضية مقترحة، يمكنك وضع أي نص واستخدام المتغيرات المدرجة أدناه." 1286 1287 #: ../admin/ost-emailtemp.php:13 1288 msgid "$Variables You can use In Email" 1289 msgstr "$Variables يمكنك استخدام المتغيرات في البريد الإلكتروني" 1290 1291 #: ../admin/ost-emailtemp.php:15 1292 msgid "$username=\"User Name\"" 1293 msgstr "$username=\"اسم المستخدم\"" 1294 1295 #: ../admin/ost-emailtemp.php:16 1296 msgid "$usermail=\"User Email\"" 1297 msgstr "$usermail=\"بريد المستخدم\"" 1298 1299 #: ../admin/ost-emailtemp.php:17 1300 msgid "$ticketid=\"Ticket #\"" 1301 msgstr "$ticketid=\"رقم البطاقة\"" 1302 1303 #: ../admin/ost-emailtemp.php:18 1304 msgid "$ticketurl=\"Ticket Url\"" 1305 msgstr "$ticketurl=\"رابط البطاقة\"" 1306 1307 #: ../admin/ost-emailtemp.php:19 1308 msgid "$ostitle=\"Support Title\"" 1309 msgstr "$ostitle=\"عنوان الدعم\"" 1310 1311 #: ../admin/ost-emailtemp.php:20 1312 msgid "$siteurl=\"Support Url\"" 1313 msgstr "$siteurl=\"رابط الدعم\"" 1314 1315 #: ../admin/ost-emailtemp.php:21 1316 msgid "$dname=\"Landing Page\"" 1317 msgstr "$dname=\"الصفحة الرئيسية\"" 1318 1319 #: ../admin/ost-emailtemp.php:22 1320 msgid "$user_message=\"Users Message\"" 1321 msgstr "$user_message=\"رسالة المستخدمين\"" 1322 1323 #: ../admin/ost-emailtemp.php:23 1324 msgid "$admin_response=\"Staff Message\"" 1325 msgstr "$admin_response=\"رسالة الموظف\"" 1326 1327 #: ../admin/ost-emailtemp.php:24 1328 msgid "$signature=\"Staff/ Department Signature\"" 1329 msgstr "$signature=\"توقيع القسم/الموظف\"" 1330 1331 #: ../admin/ost-emailtemp.php:25 1332 msgid "$ussubject=\"Ticket subject\"" 1333 msgstr "$ussubject=\"عنوان البطاقة\"" 1334 1335 #: ../admin/ost-emailtemp.php:32 1336 msgid "New Ticket Email Template" 1337 msgstr "قالب رسالة بطاقة جديدة" 1338 1339 #: ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:69 1340 msgid "We suggest using this template in the user confirmation email below." 1341 msgstr "نقترح عليك استخدام هذا القالب في رسالة تأكيد المستخدم أدناه." 1342 1343 #: ../admin/ost-emailtemp.php:38 ../admin/ost-emailtemp.php:56 ../admin/ost-emailtemp.php:75 1344 #: ../admin/ost-tickets.php:167 ../admin/ost-tickets.php:169 ../admin/ost-tickets.php:174 1345 #: ../admin/ost-ticketview.php:241 ../templates/list_tickets.php:122 ../templates/view_ticket.php:263 1346 msgid "Close" 1347 msgstr "إغلاق" 1348 1349 #: ../admin/ost-emailtemp.php:45 1350 msgid "Save - New Ticket Email" 1351 msgstr "حفظ - رسالة بطاقة جديدة" 1352 1353 #: ../admin/ost-emailtemp.php:50 1354 msgid "Admin Response Email Template" 1355 msgstr "قالب بريد رد المشرف" 1356 1357 #: ../admin/ost-emailtemp.php:50 1358 msgid "We suggest using this template in your post reply to user below." 1359 msgstr "نحن نقترح عليك استخدام هذا القالب في الرد على المقالة للمستخدم أدناه." 1360 1361 #: ../admin/ost-emailtemp.php:69 1362 msgid "User Post Confirmation Email Template" 1363 msgstr "تأكيد قالب بريد الناشر" 1364 1365 #: ../admin/ost-emailtemp.php:82 1366 msgid "Save - User Post Confirmation Email" 1367 msgstr "حفظ - رسالة تأكيد مقالة المستخدم" 1368 1369 #: ../admin/ost-settings.php:8 ../ost-bridge.php:319 ../ost-bridge.php:333 1370 msgid "osTicket Settings" 1371 msgstr " إعدادات osTicket" 1372 1373 #: ../admin/ost-settings.php:11 1374 msgid "Some simple plugin settings for Wordpress." 1375 msgstr "بعض إعدادات الإضافة البسيطة لوورد برس" 1376 1377 #: ../admin/ost-settings.php:24 1378 msgid "Support Center Status:" 1379 msgstr "حالة مركز الدعم:" 1380 1381 #: ../admin/ost-settings.php:25 1382 msgid "Online" 1383 msgstr "متصل" 1384 1385 #: ../admin/ost-settings.php:25 1386 msgid "(Active)" 1387 msgstr "(نشط)" 1388 1389 #: ../admin/ost-settings.php:25 1390 msgid "Offline" 1391 msgstr "غير متصل" 1392 1393 #: ../admin/ost-settings.php:25 1394 msgid "( offline will display maintenance message on website )" 1395 msgstr "( غير متصل سيتم عرض رسالة الصيانة على الموقع )" 1396 1397 #: ../admin/ost-settings.php:28 1398 msgid "Helpdesk Name/Title:" 1399 msgstr "الاسم/العنوان مكتب المساعدة:" 1400 1401 #: ../admin/ost-settings.php:29 1402 msgid "( displayed in emails & welcome/user pages )" 1403 msgstr "( تم عرضه في البريد & ترحيب/صفحات المستخدم )" 1404 1405 #: ../admin/ost-settings.php:32 1406 msgid "Maximum Open Tickets:" 1407 msgstr "الحد الأقصى للبطاقات المفتوحة:" 1408 1409 #: ../admin/ost-settings.php:33 1410 msgid "( per/user - enter 0 for unlimited )" 1411 msgstr "( لكل مستخدم - أدخل 0 من أجل عدد لا نهائي )" 1412 1413 #: ../admin/ost-settings.php:36 1414 msgid "Reply Separator Tag:" 1415 msgstr "وسم فاصل الرّد:" 1416 1417 #: ../admin/ost-settings.php:37 1418 msgid "( should be blank - if you are email polling...read" 1419 msgstr "( يجب أن تكون فارغة - إن كنت رسالة اقتراع... اقرأ" 1420 1421 #: ../admin/ost-settings.php:37 1422 msgid "[+]" 1423 msgstr "[+]" 1424 1425 #: ../admin/ost-settings.php:37 1426 msgid " )" 1427 msgstr " )" 1428 1429 #: ../admin/ost-settings.php:42 1430 msgid "" 1431 "Note: If email polling, login to: osTicket->Emails->Templates->Response/Reply Template remove %{ticket." 1432 "client_link}" 1433 msgstr "" 1434 "ملاحظة: إذا كان رسالة اقتراع، سجل دخول لـ: osTicket->رسائل->قوالب->إجابة/قالب رد و أزل %{ticket.client_link}" 1435 1436 #: ../admin/ost-settings.php:43 1437 msgid "Replace with" 1438 msgstr "استبدال بـ" 1439 1440 #: ../admin/ost-settings.php:43 1441 msgid "%{ticket.number}" 1442 msgstr "%{ticket.number}" 1443 1444 #: ../admin/ost-settings.php:48 1445 msgid "SMTP Status" 1446 msgstr "حالة SMTP " 1447 1448 #: ../admin/ost-settings.php:57 1449 msgid "Enable" 1450 msgstr "تفعيل" 1451 1452 #: ../admin/ost-settings.php:58 1453 msgid "Disable" 1454 msgstr "تعطيل" 1455 1456 #: ../admin/ost-settings.php:59 1457 msgid "(Please select smtp status.)" 1458 msgstr "(الرجاء تحديد حالة SMTP.)" 1459 1460 #: ../admin/ost-settings.php:62 1461 msgid "SMTP Username" 1462 msgstr "اسم مستخدم SMTP " 1463 1464 #: ../admin/ost-settings.php:63 1465 msgid "Please enter smtp username." 1466 msgstr "يرجى كتابة اسم مستخدم SMTP" 1467 1468 #: ../admin/ost-settings.php:66 1469 msgid "SMTP Password" 1470 msgstr "كلمة مرور SMTP" 1471 1472 #: ../admin/ost-settings.php:67 1473 msgid "Please enter smtp password." 1474 msgstr "يرجى ادخال كلمة مرور SMTP" 1475 1476 #: ../admin/ost-settings.php:70 1477 msgid "SMTP Host" 1478 msgstr "مضيف SMTP" 1479 1480 #: ../admin/ost-settings.php:71 1481 msgid "Please enter smtp host." 1482 msgstr "يرجى كتابة اسم مضيف SMTP" 1483 1484 #: ../admin/ost-settings.php:74 1485 msgid "SMTP Port" 1486 msgstr "منفذ SMTP" 1487 1488 #: ../admin/ost-settings.php:75 1489 msgid "Please enter smtp port." 1490 msgstr "يرجى كتابة منفذ SMTP" 1491 1492 #: ../admin/ost-settings.php:79 1493 msgid "Save Settings" 1494 msgstr "حفظ الاعدادات" 1495 1496 #: ../admin/ost-tickets.php:18 1497 #, php-format 1498 msgid "%d record(s) has been deleted successfully" 1499 msgstr "تم حذف %d سجل بنجاح" 1500 1501 #: ../admin/ost-tickets.php:34 1502 #, php-format 1503 msgid "%d record(s) has been closed successfully" 1504 msgstr "تم إغلاق %d سجل بنجاح" 1505 1506 #: ../admin/ost-tickets.php:50 1507 #, php-format 1508 msgid "%d record(s) has been re-opened successfully" 1509 msgstr "تم إعادة فتح %d سجل بنجاح" 1510 1511 #: ../admin/ost-tickets.php:74 ../templates/list_tickets.php:41 1512 msgid "Are you sure you want to continue?" 1513 msgstr "هل أنت متأكد أنك تريد المتابعة ؟" 1514 1515 #: ../admin/ost-tickets.php:76 ../ost-bridge.php:140 ../ost-bridge.php:142 1516 msgid "Support/Request List" 1517 msgstr "الدعم/قائمة الطلبات" 1518 1519 #: ../admin/ost-tickets.php:85 1520 msgid "Ticket #" 1521 msgstr "بطاقة" 1522 1523 #: ../admin/ost-tickets.php:88 ../admin/ost-ticketview.php:100 ../templates/list_tickets.php:50 1524 #: ../templates/view_ticket.php:99 1525 msgid "Department" 1526 msgstr "قسم" 1527 1528 #: ../admin/ost-tickets.php:89 ../templates/list_tickets.php:51 1529 msgid "Date" 1530 msgstr "تاريخ" 1531 1532 #: ../admin/ost-tickets.php:129 ../admin/ost-ticketview.php:116 ../templates/view_ticket.php:114 1533 #: ../templates/view_ticket.php:128 1534 msgid "Emergency" 1535 msgstr "عاجل" 1536 1537 #: ../admin/ost-tickets.php:132 ../admin/ost-ticketview.php:118 ../templates/view_ticket.php:116 1538 #: ../templates/view_ticket.php:130 1539 msgid "High" 1540 msgstr "مرتفع" 1541 1542 #: ../admin/ost-tickets.php:135 ../admin/ost-tickets.php:138 ../admin/ost-ticketview.php:120 1543 #: ../admin/ost-ticketview.php:124 ../templates/view_ticket.php:118 ../templates/view_ticket.php:122 1544 #: ../templates/view_ticket.php:132 ../templates/view_ticket.php:136 1545 msgid "Normal" 1546 msgstr "عادي" 1547 1548 #: ../admin/ost-tickets.php:141 ../admin/ost-ticketview.php:122 ../templates/view_ticket.php:120 1549 #: ../templates/view_ticket.php:134 1550 msgid "Low" 1551 msgstr "منخفض" 1552 1553 #: ../admin/ost-tickets.php:158 ../templates/list_tickets.php:112 1554 msgid "No Records Found." 1555 msgstr "لم يتم العثور على سجلات" 1556 1557 #: ../admin/ost-tickets.php:165 1558 msgid "Delete" 1559 msgstr "حذف" 1560 1561 #: ../admin/ost-tickets.php:170 ../admin/ost-tickets.php:172 ../admin/ost-ticketview.php:239 1562 #: ../templates/view_ticket.php:260 1563 msgid "Reopen" 1564 msgstr "إعادة فتح" 1565 1566 #: ../admin/ost-ticketview.php:70 1567 msgid "Reply to Support Request" 1568 msgstr "رد على طلب الدعم" 1569 1570 #: ../admin/ost-ticketview.php:77 1571 msgid "Ticket ID" 1572 msgstr "رقم البطاقة" 1573 1574 #: ../admin/ost-ticketview.php:78 ../admin/ost-ticketview.php:254 ../templates/view_ticket.php:270 1575 msgid "Post Reply" 1576 msgstr "إضافة رد" 1577 1578 #: ../admin/ost-ticketview.php:84 ../templates/view_ticket.php:85 1579 msgid "Ticket Status" 1580 msgstr "حالة البطاقة" 1581 1582 #: ../admin/ost-ticketview.php:102 1583 msgid "User Email" 1584 msgstr "بريد المستخدم" 1585 1586 #: ../admin/ost-ticketview.php:106 1587 msgid "Date Create" 1588 msgstr "تاريخ الإنشاء" 1589 1590 #: ../admin/ost-ticketview.php:139 ../templates/view_ticket.php:150 1591 msgid "Ticket Thread" 1592 msgstr "موضوع البطاقة" 1593 1594 #: ../admin/ost-ticketview.php:185 ../templates/view_ticket.php:201 1595 msgid "Post a Reply" 1596 msgstr "إضافة الرد" 1597 1598 #: ../admin/ost-ticketview.php:239 ../admin/ost-ticketview.php:241 ../templates/view_ticket.php:260 1599 #: ../templates/view_ticket.php:263 1600 msgid "Ticket On Reply" 1601 msgstr "بطاقة رد" 1602 1603 #: ../admin/ost-ticketview.php:248 1604 msgid "My signature" 1605 msgstr "توقيعي" 1606 1607 #: ../admin/ost-ticketview.php:249 1608 msgid "Dept. Signature" 1609 msgstr "توقيع القسم" 1610 1611 #: ../admin/ost-ticketview.php:255 1612 msgid "Cancel - Go Back" 1613 msgstr "إلغاء - عودة للخلف" 1614 1615 #: ../ost-bridge.php:53 1616 msgid "Open Tickets" 1617 msgstr "فتح البطاقات" 1618 1619 #: ../ost-bridge.php:132 ../ost-bridge.php:134 1620 msgid "Tickets" 1621 msgstr "بطاقات" 1622 1623 #: ../ost-bridge.php:142 1624 msgid "Email Tickets" 1625 msgstr "بطاقات البريد" 1626 1627 #: ../ost-bridge.php:159 1628 msgid "osT-Config" 1629 msgstr "تكوين osT" 1630 1631 #: ../ost-bridge.php:298 ../ost-bridge.php:305 ../ost-bridge.php:315 ../ost-bridge.php:329 ../ost-bridge.php:343 1632 msgid "You do not have sufficient permissions to access this page." 1633 msgstr "لا تملك صلاحيات الدخول لهذه الصفحة" 1634 1635 #: ../ost-bridge.php:319 ../ost-bridge.php:333 ../ost-bridge.php:347 1636 msgid "" 1637 "<p><b>Error:</b> You must complete \"osTicket Data Configure\" before this page will display... <a href=" 1638 "\"admin.php?page=ost-config\">click here</a></p>" 1639 msgstr "" 1640 "<p><b>خطأ:</b> يجب إكمال إعدادات \"osTicket\" قبل عرض هذه الصفحة... <a href=\"admin.php?page=ost-config\">انقر " 1641 "هنا</a></p>" 1642 1643 #: ../templates/contact_ticket.php:42 ../templates/new_ticket.php:80 1644 msgid "A new request has been created successfully!" 1645 msgstr "تم إنشاء الطلب الجديد بنجاح!" 1646 1647 #: ../templates/contact_ticket.php:45 ../templates/new_ticket.php:83 1648 msgid "We are currently notifying the selected department staff..." 1649 msgstr "يجري حالياً تنبيه موظفي القسم المحدّد..." 1650 1651 #: ../templates/contact_ticket.php:49 ../templates/new_ticket.php:87 1652 msgid "Thank you for contacting us!" 1653 msgstr "نشكرك لتواصلك معنا!" 1654 1655 #: ../templates/contact_ticket.php:64 1656 msgid "Full Name:" 1657 msgstr "الاسم الكامل:" 1658 1659 #: ../templates/contact_ticket.php:67 1660 msgid "Your Email:" 1661 msgstr "بريدك الإلكتروني:" 1662 1663 #: ../templates/contact_ticket.php:70 1664 msgid "Catagories:" 1665 msgstr "التصنيفات:" 1666 1667 #: ../templates/contact_ticket.php:90 ../templates/new_ticket.php:139 1668 msgid "To best assist you, please be specific and detailed in your message" 1669 msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في الرسالة" 1670 1671 #: ../templates/contact_ticket.php:109 1672 msgid "Submit" 1673 msgstr "إرسال" 1674 1675 # Listing Tickets 1676 #: ../templates/list_tickets.php:47 1677 msgid "Tickets #" 1678 msgstr "بطاقات" 1679 1680 #: ../templates/list_tickets.php:49 1681 msgid "Status" 1682 msgstr "الحالة" 1683 1684 #: ../templates/message.php:7 1685 msgid "You currently have the maximum amount allowed open:" 1686 msgstr "أكبر قدر مسموح به من البطاقات المفتوحة هو:" 1687 1688 #: ../templates/message.php:7 ../templates/message.php:8 1689 msgid "" 1690 "Visit your open tickets and see if any has been resolved, if so you can close any ticket(s) and submit a new " 1691 "one." 1692 msgstr "" 1693 "زيارة بطاقاتك المفتوحة ومعرفة ما إذا كان أياً منها قد تم حلها، إذا كان الأمر كذلك يمكنك إغلاق أي بطاقة وتقديم " 1694 "واحدة جديدة." 1695 1696 #: ../templates/message.php:7 ../templates/message.php:8 1697 msgid "View open tickets" 1698 msgstr "عرض البطاقات المفتوحة" 1699 1700 #: ../templates/message.php:8 1701 msgid "You are currently over the maximum amount allowed open:" 1702 msgstr "لقد وصلت لأكبر قدر مسموح به من البطاقات المفتوحة:" 1703 1704 #: ../templates/message.php:9 1705 msgid "Thank you for your interest in contacting us." 1706 msgstr "شكرا لاهتمامك والاتصال بنا." 1707 1708 #: ../templates/message.php:9 1709 msgid "Our system is currently offline for maintenance, please check back later." 1710 msgstr "النظام حالياً غير متصل للصيانة، يرجى العودة لاحقاً." 1711 1712 #: ../templates/nav_bar.php:44 1713 msgid "View Tickets" 1714 msgstr "عرض البطاقات" 1715 1716 #: ../templates/nav_bar.php:52 1717 msgid "Open / Answered" 1718 msgstr "فتح / اجابة" 1719 1720 #: ../templates/nav_bar.php:57 1721 msgid "Search..." 1722 msgstr "بحث..." 1723 1724 #: ../templates/nav_bar.php:58 1725 msgid "Go" 1726 msgstr "أذهب" 1727 1728 #: ../templates/new_ticket.php:22 1729 msgid "Max file upload size" 1730 msgstr "الحد الأقصى لحجم الملف" 1731 1732 #: ../templates/new_ticket.php:96 1733 msgid "Open a New Ticket" 1734 msgstr "فتح بطاقة جديدة" 1735 1736 #: ../templates/new_ticket.php:126 1737 msgid "Priority:" 1738 msgstr "الأولوية:" 1739 1740 #: ../templates/view_ticket.php:80 1741 msgid "Ticket ID #" 1742 msgstr "رقم البطاقة" 1743 1744 #: ../templates/view_ticket.php:96 1745 msgid "Name" 1746 msgstr "الاسم" 1747 1748 #: ../templates/view_ticket.php:101 1749 msgid "Email" 1750 msgstr "البريد الالكتروني" 1751 1752 #: ../templates/view_ticket.php:107 1753 msgid "Create Date" 1754 msgstr "تاريخ الانشاء" 1755 1756 #: ../templates/view_ticket.php:202 1757 msgid "To best assist you, please be specific and detailed in your reply." 1758 msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في ردكم." 1759 1760 #: ../templates/view_ticket.php:251 1761 msgid "Attachments on the Filesystem plugin can be downloaded here :" 1762 msgstr "يمكنك تحميل إضافة ملفات النظام من هنا:" 1763 1764 #: ../templates/view_ticket.php:272 1765 msgid "Cancel" 1766 msgstr "إلغاء" 1767 1768 #: ../templates/view_ticket.php:281 1769 msgid "No such ticket available." 1770 msgstr "لا تتوفر مثل هذه البطاقة." 1771 1772 #~ msgid "Please fill in the form below to open a new ticket. All fields mark with [*] Are Required!" 1773 #~ msgstr "" 1774 #~ "يرجى تعبئة جمع الحقول أدناه لفتح بطاقة جديدة، جميع الحقول التي لها علامة (*) هي حقول مطلوب تعبئتها اجباريا" 1775 1776 #~ msgid "Select User Type" 1777 #~ msgstr "اختر نوع المستخدم" 1778 1779 #~ msgid "Database Name:( osTicket Database Name Goes Here )" 1780 #~ msgstr "اسم قاعدة البيانات :( اسم قاعدة البيانات osTicket هنا)" 1781 1782 #~ msgid "New Ticket Email [Close]" 1783 #~ msgstr "بطاقة إغلاق بريد جديدة" 1784 1785 #~ msgid "Admin Response Email [Close]" 1786 #~ msgstr "بريد رد المشرف (إغلاق)" 1787 1788 #~ msgid "Save - Admin Response Email" 1789 #~ msgstr "حفظ - بريد رد المشرف" 1790 1791 #~ msgid "User Post Confirmation Email [Close]" 1792 #~ msgstr "تأكيد مقالة المستخدم" 1793 1794 #~ msgid "Close Ticket On Reply" 1795 #~ msgstr "إغلاق بطاقة الرد" 1796 1797 #~ msgid "Dept. Signature (Support)" 1798 #~ msgstr "توقيع قسم الدعم" 1799 1800 #~ msgid "\"$Variables\" You can use In Email" 1801 #~ msgstr "/ يمكنك استخدام المتغيرات في البريد الإلكتروني" 1802 1803 #~ msgid "*New Ticket Email Template" 1804 #~ msgstr "بطاقة قالب بريد جديد" 1805 1806 #~ msgid "Maximum Open Tickets" 1807 #~ msgstr "الحد الأقصى للبطاقات المفتوحة" 1808 1809 #~ msgid "Support Center Status" 1810 #~ msgstr "حالة مركز الدعم" -
key4ce-osticket-bridge/trunk/ost-bridge.php
r1110762 r1119633 3 3 Plugin Name: Key4ce osTicket Bridge 4 4 Plugin URI: https://key4ce.com/projects/key4ce-osticket-bridge 5 Description: Integrate osTicket (v1.9.3 - 1.9. 5) into wordpress. including user integration and scp6 Version: 1.2. 75 Description: Integrate osTicket (v1.9.3 - 1.9.6) into wordpress. including user integration and scp 6 Version: 1.2.8 7 7 Author: Key4ce 8 8 Author URI: https://key4ce.com -
key4ce-osticket-bridge/trunk/readme.txt
r1109917 r1119633 5 5 Requires at least: 3.5 6 6 Tested up to: 4.1 7 Stable tag: 1.2. 77 Stable tag: 1.2.8 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 Get your own advanced ticket system in Wordpress and Integrate osTicket into your wordpress site. Works with osTicket 1.9.3 - 1.9. 510 Get your own advanced ticket system in Wordpress and Integrate osTicket into your wordpress site. Works with osTicket 1.9.3 - 1.9.6 11 11 12 12 == Description == 13 13 This is a rebuild of the original OSTicket WP Bridge plugin 14 Because the original plugin was no longer develop ped we desided to make a new plugin out of it.14 Because the original plugin was no longer developed we decided to make a new plugin out of it. 15 15 adding new features, fixing old bugs and security flaws. 16 16 17 17 = Basic Features: = 18 * Compatible with osTicket 1.9.3 - 1.9. 4 - 1.9.518 * Compatible with osTicket 1.9.3 - 1.9.6 19 19 * POP / IMAP functionality stays intact 20 20 * You can use both osTicket scp, reply to email OR use Wordpress for all tickets 21 21 * Integrates with your Wordpress users 22 * Good work flow of Open, Answered and Closed tickets.22 * Good work-flow of Open, Answered and Closed tickets. 23 23 * Contact form shortcode 24 24 * Multiple file attachments … … 43 43 44 44 == Installation == 45 45 46 = Prerequisites: = 46 47 * Make sure that osTicket is installed 47 * Make sure that your osTicket version is 1.9.3, 1.9.4 or 1.9.5(all subversions should work).48 * Make sure that your osTicket version is 1.9.3, 1.9.4 1.9.5 or 1.9.6 (all subversions should work). 48 49 * osTicket can be downloaded from http://osticket.com/download 49 50 * For Attachments to work with the Key4ce osTicket Bridge plugin, please download and configure the osTicket plugin: Storage :: Attachments on the Filesystem … … 61 62 1. Install key4ce-osticket-bridge folder to the /wp-content/plugins/ directory. 62 63 2. Activate the plugin through the "Plugins" menu in WordPress. 63 3. osTicket Bridge plugin settings are located in Dashboard--> Tickets --> osT-Config (DO NOT name your "Landing Page Name" the same name as the folder you have osTicket installed) 64 3. osTicket Bridge plugin settings are located in Dashboard--> Tickets --> osT-Config (DO NOT name your "Landing Page Name" the same name as the folder you have osTicket installed). 64 65 4. osTicket DB configuration settings are located in Dashboard--> Tickets --> Settings 65 66 5. Email template settings are located in Dashboard--> Tickets--> Email Templates … … 69 70 70 71 == Frequently Asked Questions == 72 71 73 = Where does the osTicket need to be Installed? = 72 Can be anywhere, just make sure you know it's Database settings and fill them in acco dringly in osT-Config page.74 Can be anywhere, just make sure you know it's Database settings and fill them in accordingly in osT-Config page. 73 75 74 76 = What version of osTicket can i use? = 75 osTicket v1.9.x (all 1.9 subversions are supported) 76 We always recommend the latest osticket version. 77 osTicket v1.9.3 to v1.9.6 (all subversions are generally supported). 77 78 78 79 = Where can I download the tested osTicket versions? = 79 80 http://osticket.com/download 81 80 82 == Screenshots == 83 81 84 1. Shows the Client ticket list. 82 85 2. Shows how the client views the ticket. … … 87 90 88 91 == Changelog == 92 = 1.2.8 = 93 - Added support for 1.9.5.1 and 1.9.6 94 - fixed Attachment support for higher versions 95 89 96 = 1.2.7 = 90 97 - Functions all have prefixes to avoid conflicts with other plugins … … 94 101 - Fixes for 1.9.4 fresh installation 95 102 - Email customer reply fix 103 96 104 = 1.2.5 = 97 105 - osticket 1.9.4 support added 98 106 - added osticket version selection 107 99 108 = 1.2.4 = 100 109 - Open ticket count fixed … … 103 112 - Client main page fixed 104 113 - Small other changes in code. 114 105 115 = 1.2.3 = 106 116 - Admin can create tickets with auto search in WP Database. … … 110 120 - Bugged users will now be automatically updated and fixed. 111 121 - contact form bug fixed. 122 112 123 = 1.2.2 = 113 124 - Multiple file attachments 114 125 - File attachment location from osTicket 115 - mysql query fix 116 - contact form sender name and email fix. 117 - minor issues fixed. 118 - updated installations (Contributed by: DivaVocals) 126 - mysql query fix- contact form sender name and email fix. 127 - minor issues fixed.- updated installations (Contributed by: DivaVocals) 128 119 129 = 1.2.1 = 120 130 - Fixed infected javascript files. 131 121 132 = 1.2.0 = 122 133 - Single file Attachments … … 129 140 - Fixed time equal to osTicket settings. 130 141 - Tested with Wordpress 4.0 142 131 143 = 1.1.5 = 132 144 - Shortcode for Contact style form with captcha … … 134 146 - CSS/ JS inclusion fix ** Submitted by Steffen Andre Langnes ** 135 147 - Login Redirect ** Submitted by Steffen Andre Langnes ** 148 136 149 = 1.1.4 = 137 150 - Prefix fix for existing plugin users 138 - mysql DB errors fixed 139 - RevSlider conflict fixed 151 - mysql DB errors fixed- RevSlider conflict fixed 140 152 - Activate / Deactivate warning messages fixed. 141 153 - If wrong database info blank page issue fixed. 154 142 155 = 1.1.3 = 143 156 - Added database keyost_prefix field … … 146 159 - Headers already sent fixed. 147 160 - Creating multiple ticket pages on save has been resolved. 161 148 162 = 1.1.2 = 149 163 - Shows name in ticket threads. 150 - SMTP save field fix 151 - Offline / Offline mode fix 164 - SMTP save field fix- Offline / Offline mode fix 152 165 - Cleaned up legacy code 166 153 167 = 1.1.1 = 154 168 - Shortcode redirect fix … … 158 172 - Adding new users to OSticket fixed 159 173 - Form validation fixed 174 160 175 = 1.1 = 161 176 - Shortcode implementation 162 177 - Cleaned up code issues 163 178 - Admin Alert Email now looks into group members aswell 164 - implemented Reply Separator Tag 165 - Fixed: Email From name 166 - Fixed: Many code warnings and errors in Debug mode 167 - And much more.. 179 - implemented Reply Separator Tag- Fixed: Email From name 180 - Fixed: Many code warnings and errors in Debug mode- And much more.. 181 168 182 = 1.0 = 169 183 - New design for both Admin and Client end … … 179 193 180 194 == Upgrade Notice == 195 = 1.2.8 = 196 Added support for 1.9.5.1 and 1.9.6 197 198 = 1.2.7 = 199 Added multi language support. 200 181 201 = 1.2.6 = 182 202 Added osticket 1.9.4 fresh installation support and small email customer reply bug. 203 183 204 = 1.2.5 = 184 205 Added osticket 1.9.4 support. 206 185 207 = 1.2.4 = 186 208 Option to enable or disable client close ticket feature, and small bug fixes. 209 187 210 = 1.2.3 = 188 211 Several minor bug fixes, new Admin create ticket functionality, and more.. 189 = 1.2.2 = 212 213 = 1.2.2 = 190 214 Multiple file atachment now possible, and small bug fixes have been made. 191 = 1.2.1 = 192 Emergency update: Javascripts where infected please update asap. Our appologies for the inconvenience 215 216 = 1.2.1 = 217 Emergency update: Javascripts where infected please update asap. Our apologies for the inconvenience 218 193 219 = 1.2.0 = 194 220 Multiple new and convenient features, Attachments, signatures and more. 221 195 222 = 1.1.5 = 196 223 Shortcode fixes, css/js inclusion fixes, new Contact style shortcode 224 197 225 = 1.1.4 = 198 226 Urgent update fixing multiple issues caused by update 1.1.3. 227 199 228 = 1.1.3 = 200 229 Database keyost_prefix field added, and mysql bugs fixed. 230 201 231 = 1.1.2 = 202 232 Minor update: Cleaned up legacy code and fixed:smtp fields and offline mode 233 203 234 = 1.1.1 = 204 235 Shortcode related issues fixed, osTicket user related issues fixed. 236 205 237 = 1.1 = 206 238 Shortcode implementation and many code fixes. 239 207 240 = 1.0 = 208 241 Initial version -
key4ce-osticket-bridge/trunk/templates/list_tickets.php
r1107959 r1119633 28 28 foreach($close_ticket_list as $close_ticket) 29 29 { 30 if($keyost_version==194 )30 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 31 31 $ost_wpdb->update($ticket_table, array('status_id'=>'3'), array('ticket_id'=>$close_ticket), array('%s')); 32 32 else -
key4ce-osticket-bridge/trunk/templates/nav_bar.php
r1107959 r1119633 1 1 <?php 2 if($keyost_version== "194")2 if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951) 3 3 { 4 4 $ticket_count_open=$ost_wpdb->get_var("SELECT COUNT(*) FROM $ticket_table INNER JOIN $ost_ticket_status ON $ost_ticket_status.id=$ticket_table.status_id WHERE user_id='$user_id' and $ost_ticket_status.state='open'"); -
key4ce-osticket-bridge/trunk/templates/new_ticket.php
r1107959 r1119633 1 1 <?php 2 2 /* Template Name: new_ticket.php */ 3 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 4 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 3 4 if($keyost_version==193) 5 { 6 $attachement_status=key4ce_getKeyValue('allow_attachments'); 7 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 8 $max_file_size=key4ce_getKeyValue('max_file_size'); 9 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 10 } 11 else 12 { 13 $fileconfig=key4ce_FileConfigValue(); 14 $filedata=json_decode($fileconfig); 15 $attachement_status=$filedata->attachments; 16 $max_user_file_uploads=$filedata->max; 17 $max_file_size=$filedata->size; 18 $fileextesnions=$filedata->extensions; 19 } 20 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 21 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 5 22 $allowedExts = explode(",", $strplc); 6 23 function add_quotes($str) { … … 16 33 var addDiv = $('#addinput'); 17 34 var i = $('#addinput p').size() + 1; 18 var MaxFileInputs = <?php echo key4ce_getKeyValue('max_user_file_uploads'); ?>;35 var MaxFileInputs = <?php echo $max_user_file_uploads; ?>; 19 36 $('#addNew').live('click', function() { 20 37 if (i <= MaxFileInputs) 21 38 { 22 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size", 'key4ce-osticket-bridge'); ?> : <?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);39 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size", 'key4ce-osticket-bridge'); ?> : <?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv); 23 40 i++; 24 41 } … … 50 67 var FileSizeMB = (FileSize / 10485760).toFixed(2); 51 68 var FileExts = new Array(<?php echo $extimp; ?>); 52 if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))69 if ((FileSize > <?php echo $max_file_size; ?>)) 53 70 { 54 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB.");71 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo ($max_file_size* .0009765625) * .0009765625; ?>MB."); 55 72 document.getElementById(FileId).value = ""; 56 73 return false; … … 90 107 } else { 91 108 $user_id=$ost_wpdb->get_var("SELECT user_id FROM " . $keyost_prefix . "user_email WHERE `address` = '" . $current_user->user_email . "'"); 92 echo date_default_timezone_set('UTC')."<br>";93 echo date('d-m-Y g:i a',strtotime('+1 hours'));94 109 ?> 95 110 <div id="key4ce_new_ticket"> … … 150 165 <div class="key4ce_clear" style="padding: 5px;"></div></td> 151 166 </tr> 152 <?php 153 if ( key4ce_getKeyValue('allow_attachments') == 1) {167 <?php 168 if ($attachement_status==1 || $attachement_status==true) { 154 169 if(key4ce_getPluginValue('Attachments on the filesystem')==1) 155 170 { … … 158 173 <div id="addinput"> 159 174 <p> 160 <span style="color:#000;"><?php echo __('Attachment 1:','key4ce-osticket-bridge'); ?></span> <input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="addNew"><?php echo __('Add','key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __('Max file upload size :','key4ce-osticket-bridge'); ?><?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span>175 <span style="color:#000;"><?php echo __('Attachment 1:','key4ce-osticket-bridge'); ?></span> <input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="addNew"><?php echo __('Add','key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __('Max file upload size :','key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span> 161 176 </p> 162 177 </div> -
key4ce-osticket-bridge/trunk/templates/view_ticket.php
r1107959 r1119633 4 4 get_currentuserinfo(); 5 5 if ($ticketinfo->address == $current_user->user_email) { 6 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 7 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes'))); 6 if($keyost_version==193) 7 { 8 $attachement_status=key4ce_getKeyValue('allow_attachments'); 9 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 10 $max_file_size=key4ce_getKeyValue('max_file_size'); 11 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 12 } 13 else 14 { 15 $fileconfig=key4ce_FileConfigValue(); 16 $filedata=json_decode($fileconfig); 17 $attachement_status=$filedata->attachments; 18 $max_user_file_uploads=$filedata->max; 19 $max_file_size=$filedata->size; 20 $fileextesnions=$filedata->extensions; 21 } 22 $alowaray = explode(".",str_replace(' ', '',$fileextesnions)); 23 $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions)); 8 24 $allowedExts = explode(",", $strplc); 9 25 … … 20 36 var addDiv = $('#addinput'); 21 37 var i = $('#addinput p').size() + 1; 22 var MaxFileInputs = <?php echo key4ce_getKeyValue('max_user_file_uploads'); ?>;38 var MaxFileInputs = <?php echo $max_user_file_uploads; ?>; 23 39 $('#addNew').live('click', function() { 24 40 if (i <= MaxFileInputs) 25 41 { 26 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);42 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span> <input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv); 27 43 i++; 28 44 } … … 54 70 var FileSizeMB = (FileSize / 10485760).toFixed(2); 55 71 var FileExts = new Array(<?php echo $extimp; ?>); 56 if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))72 if ((FileSize > <?php echo $max_file_size; ?>)) 57 73 { 58 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB.");74 alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB."); 59 75 document.getElementById(FileId).value = ""; 60 76 return false; … … 235 251 </tr> 236 252 <?php 237 if ( key4ce_getKeyValue('allow_attachments') == 1){253 if ($attachement_status==1 || $attachement_status==true) { 238 254 if(key4ce_getPluginValue('Attachments on the filesystem')==1) 239 255 { … … 242 258 <div id="addinput"> 243 259 <p> 244 <span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> 1:</span> <input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ( key4ce_getKeyValue('max_file_size')* .0009765625) * .0009765625; ?>MB</span>260 <span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> 1:</span> <input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/> <a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a> <span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span> 245 261 </p> 246 262 </div>
Note: See TracChangeset
for help on using the changeset viewer.