Changeset 1236690
- Timestamp:
- 09/02/2015 09:36:00 PM (11 years ago)
- Location:
- key4ce-osticket-bridge
- Files:
-
- 124 added
- 32 edited
-
branches/1.3 (added)
-
branches/1.3/admin (added)
-
branches/1.3/admin/admin_create_ticket.php (added)
-
branches/1.3/admin/adminticketmail.php (added)
-
branches/1.3/admin/db-settings.php (added)
-
branches/1.3/admin/header_nav.php (added)
-
branches/1.3/admin/header_nav_ticket.php (added)
-
branches/1.3/admin/index.php (added)
-
branches/1.3/admin/ost-config.php (added)
-
branches/1.3/admin/ost-emailtemp.php (added)
-
branches/1.3/admin/ost-postreplymail.php (added)
-
branches/1.3/admin/ost-settings.php (added)
-
branches/1.3/admin/ost-tickets.php (added)
-
branches/1.3/admin/ost-ticketview.php (added)
-
branches/1.3/admin/search.php (added)
-
branches/1.3/css (added)
-
branches/1.3/css/admin-style.css (added)
-
branches/1.3/css/grid.css (added)
-
branches/1.3/css/index.php (added)
-
branches/1.3/css/jquery.autocomplete.css (added)
-
branches/1.3/css/style.css (added)
-
branches/1.3/css/stylesheet.css (added)
-
branches/1.3/images (added)
-
branches/1.3/images/alert.png (added)
-
branches/1.3/images/attachment.png (added)
-
branches/1.3/images/check_status_icon.png (added)
-
branches/1.3/images/error.png (added)
-
branches/1.3/images/home.png (added)
-
branches/1.3/images/index.php (added)
-
branches/1.3/images/new.png (added)
-
branches/1.3/images/new_ticket_icon.png (added)
-
branches/1.3/images/ok.png (added)
-
branches/1.3/images/os1.gif (added)
-
branches/1.3/images/refresh.gif (added)
-
branches/1.3/images/refresh.png (added)
-
branches/1.3/images/status.png (added)
-
branches/1.3/images/thread.gif (added)
-
branches/1.3/images/ticket.gif (added)
-
branches/1.3/images/tix_closed.png (added)
-
branches/1.3/images/topMenuImages.png (added)
-
branches/1.3/includes (added)
-
branches/1.3/includes/02_01_2015_functions.php (added)
-
branches/1.3/includes/contactticketmail.php (added)
-
branches/1.3/includes/database.php (added)
-
branches/1.3/includes/functions.php (added)
-
branches/1.3/includes/index.php (added)
-
branches/1.3/includes/newticketmail.php (added)
-
branches/1.3/includes/pagination.php (added)
-
branches/1.3/includes/postreplymail.php (added)
-
branches/1.3/includes/ticket_delete.php (added)
-
branches/1.3/includes/udscript.php (added)
-
branches/1.3/includes/versionData.php (added)
-
branches/1.3/index.php (added)
-
branches/1.3/js (added)
-
branches/1.3/js/adminTB-email.js (added)
-
branches/1.3/js/adminTB-sett.js (added)
-
branches/1.3/js/fade.js (added)
-
branches/1.3/js/index.php (added)
-
branches/1.3/js/jquery.autocomplete.js (added)
-
branches/1.3/js/jquery.js (added)
-
branches/1.3/js/jquery_1_7_2.js (added)
-
branches/1.3/js/timerbar.js (added)
-
branches/1.3/js/validate.js (added)
-
branches/1.3/languages (added)
-
branches/1.3/languages/key4ce-osticket-bridge-ar.mo (added)
-
branches/1.3/languages/key4ce-osticket-bridge-ar.po (added)
-
branches/1.3/languages/key4ce-osticket-bridge-de_DE.mo (added)
-
branches/1.3/languages/key4ce-osticket-bridge-de_DE.po (added)
-
branches/1.3/languages/key4ce-osticket-bridge-en_US.mo (added)
-
branches/1.3/languages/key4ce-osticket-bridge-en_US.po (added)
-
branches/1.3/languages/key4ce-osticket-bridge-nl_NL.mo (added)
-
branches/1.3/languages/key4ce-osticket-bridge-nl_NL.po (added)
-
branches/1.3/lib (added)
-
branches/1.3/lib/ReCaptcha.php (added)
-
branches/1.3/lib/Response.php (added)
-
branches/1.3/lib/attachment (added)
-
branches/1.3/lib/attachment/download.php (added)
-
branches/1.3/lib/captcha (added)
-
branches/1.3/lib/captcha/backgrounds (added)
-
branches/1.3/lib/captcha/backgrounds/45-degree-fabric.png (added)
-
branches/1.3/lib/captcha/backgrounds/cloth-alike.png (added)
-
branches/1.3/lib/captcha/backgrounds/grey-sandbag.png (added)
-
branches/1.3/lib/captcha/backgrounds/kinda-jean.png (added)
-
branches/1.3/lib/captcha/backgrounds/polyester-lite.png (added)
-
branches/1.3/lib/captcha/backgrounds/stitched-wool.png (added)
-
branches/1.3/lib/captcha/backgrounds/white-carbon.png (added)
-
branches/1.3/lib/captcha/backgrounds/white-wave.png (added)
-
branches/1.3/lib/captcha/fonts (added)
-
branches/1.3/lib/captcha/fonts/times_new_yorker.ttf (added)
-
branches/1.3/lib/captcha/index.php (added)
-
branches/1.3/lib/captcha/recaptchalib.php (added)
-
branches/1.3/lib/captcha/simple-php-captcha.php (added)
-
branches/1.3/lib/src (added)
-
branches/1.3/lib/src/ReCaptcha (added)
-
branches/1.3/lib/src/ReCaptcha/ReCaptcha.php (added)
-
branches/1.3/lib/src/ReCaptcha/RequestMethod (added)
-
branches/1.3/lib/src/ReCaptcha/RequestMethod.php (added)
-
branches/1.3/lib/src/ReCaptcha/RequestMethod/Curl.php (added)
-
branches/1.3/lib/src/ReCaptcha/RequestMethod/Post.php (added)
-
branches/1.3/lib/src/ReCaptcha/RequestMethod/Socket.php (added)
-
branches/1.3/lib/src/ReCaptcha/RequestMethod/SocketPost.php (added)
-
branches/1.3/lib/src/ReCaptcha/RequestParameters.php (added)
-
branches/1.3/lib/src/ReCaptcha/Response.php (added)
-
branches/1.3/lib/src/autoload.php (added)
-
branches/1.3/license.txt (added)
-
branches/1.3/ost-bridge.php (added)
-
branches/1.3/osticket-wp.php (added)
-
branches/1.3/readme.txt (added)
-
branches/1.3/screenshot-1.png (added)
-
branches/1.3/screenshot-2.png (added)
-
branches/1.3/screenshot-3.png (added)
-
branches/1.3/screenshot-4.png (added)
-
branches/1.3/screenshot-5.png (added)
-
branches/1.3/screenshot-6.png (added)
-
branches/1.3/templates (added)
-
branches/1.3/templates/contact_nav_bar.php (added)
-
branches/1.3/templates/contact_ticket.php (added)
-
branches/1.3/templates/index.php (added)
-
branches/1.3/templates/list_tickets.php (added)
-
branches/1.3/templates/message.php (added)
-
branches/1.3/templates/nav_bar.php (added)
-
branches/1.3/templates/new_ticket.php (added)
-
branches/1.3/templates/pagination.php (added)
-
branches/1.3/templates/view_ticket.php (added)
-
tags/1.3.1/admin/admin_create_ticket.php (modified) (4 diffs)
-
tags/1.3.1/admin/adminticketmail.php (modified) (1 diff)
-
tags/1.3.1/admin/ost-config.php (modified) (6 diffs)
-
tags/1.3.1/admin/ost-postreplymail.php (modified) (3 diffs)
-
tags/1.3.1/css/admin-style.css (modified) (1 diff)
-
tags/1.3.1/css/style.css (modified) (1 diff)
-
tags/1.3.1/includes/contactticketmail.php (modified) (5 diffs)
-
tags/1.3.1/includes/newticketmail.php (modified) (2 diffs)
-
tags/1.3.1/includes/postreplymail.php (modified) (1 diff)
-
tags/1.3.1/js/validate.js (modified) (1 diff)
-
tags/1.3.1/languages/key4ce-osticket-bridge-ar.mo (modified) (previous)
-
tags/1.3.1/languages/key4ce-osticket-bridge-ar.po (modified) (10 diffs)
-
tags/1.3.1/ost-bridge.php (modified) (1 diff)
-
tags/1.3.1/readme.txt (modified) (1 diff)
-
tags/1.3.1/templates/contact_ticket.php (modified) (4 diffs)
-
tags/1.3.1/templates/list_tickets.php (modified) (2 diffs)
-
tags/1.3.1/templates/new_ticket.php (modified) (1 diff)
-
trunk/admin/admin_create_ticket.php (modified) (4 diffs)
-
trunk/admin/adminticketmail.php (modified) (1 diff)
-
trunk/admin/ost-config.php (modified) (6 diffs)
-
trunk/admin/ost-postreplymail.php (modified) (3 diffs)
-
trunk/css/admin-style.css (modified) (1 diff)
-
trunk/css/style.css (modified) (1 diff)
-
trunk/includes/contactticketmail.php (modified) (5 diffs)
-
trunk/includes/newticketmail.php (modified) (2 diffs)
-
trunk/includes/postreplymail.php (modified) (1 diff)
-
trunk/js/validate.js (modified) (1 diff)
-
trunk/ost-bridge.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/contact_ticket.php (modified) (4 diffs)
-
trunk/templates/list_tickets.php (modified) (2 diffs)
-
trunk/templates/new_ticket.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
key4ce-osticket-bridge/tags/1.3.1/admin/admin_create_ticket.php
r1232501 r1236690 247 247 <div style="clear: both"></div> 248 248 <div id="key4ce_new_ticket_subject"><?php echo __("Subject", 'key4ce-osticket-bridge'); ?>:</div> 249 <div id="key4ce_new_ticket_subject_input"><input class="ost" id="subject" type="text" name="subject" size="35"/><font class=" key4ce_error"> *</font></div>249 <div id="key4ce_new_ticket_subject_input"><input class="ost" id="subject" type="text" name="subject" size="35"/><font class="error"> *</font></div> 250 250 <div style="clear: both"></div> 251 251 <div id="key4ce_new_ticket_catagory"><?php echo __("Catagories", 'key4ce-osticket-bridge'); ?>:</div> … … 258 258 } 259 259 ?> 260 </select><font class=" key4ce_error"> *</font>260 </select><font class="error"> *</font> 261 261 </div> 262 262 <div style="clear: both"></div> … … 271 271 // } 272 272 ?> 273 </select><font class=" key4ce_error"> *</font>273 </select><font class="error"> *</font> 274 274 </div> 275 275 --> … … 292 292 <table class="key4ce_welcome key4ce_nobd" align="center" width="95%" cellpadding="3" cellspacing="3" border="0"> 293 293 <tr> 294 <td class="key4ce_nobd" align="center"><div align="center" style="padding-bottom: 5px;"><?php echo __("To best assist you, please be specific and detailed in your message *", 'key4ce-osticket-bridge'); ?><font class=" key4ce_error"> *</font></div></td>294 <td class="key4ce_nobd" align="center"><div align="center" style="padding-bottom: 5px;"><?php echo __("To best assist you, please be specific and detailed in your message *", 'key4ce-osticket-bridge'); ?><font class="error"> *</font></div></td> 295 295 </tr> 296 296 -
key4ce-osticket-bridge/tags/1.3.1/admin/adminticketmail.php
r1232492 r1236690 39 39 $isoverdue = 0; 40 40 $isans = 0; 41 $las_msg = date("Y-m-d g:i:s"); 42 $cre = date("Y-m-d g:i:s"); 41 $my_unix_timestamp=current_time('mysql'); 42 $las_msg =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 43 $cre =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 43 44 @$user_message = Format::stripslashes($_REQUEST['message']); 44 45 $prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id"); -
key4ce-osticket-bridge/tags/1.3.1/admin/ost-config.php
r1232492 r1236690 27 27 @$keyost_departmentsetting = ($_REQUEST['keyost_departmentsetting']=="on") ? '1' : '0'; 28 28 @$keyost_defaultdepartmentsetting = $_REQUEST['keyost_defaultdepartmentsetting']; 29 @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0'; 29 @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0'; 30 30 @$keyost_defaulthelptopicsetting = $_REQUEST['keyost_defaulthelptopicsetting']; 31 @$keyost_contactfilestatus = ($_REQUEST['keyost_contactfilestatus']=="on") ? '1' : '0'; 31 32 $config=array('host'=>$host, 'database'=>$database, 'username'=>$username,'password'=>$password,'keyost_prefix'=>$keyost_prefix,'keyost_version'=>$keyost_version,'keyost_usercloseticket'=>$keyost_usercloseticket,'supportpage'=>$supportpage,'contactticketpage'=>$contactticketpage,'thankyoupage'=>$thankyoupage,'googlesecretkey'=>$googlesecretkey,'googlesitekey'=>$googlesitekey,'keyost_departmentsetting'=>$keyost_departmentsetting,'keyost_defaultdepartmentsetting'=>$keyost_defaultdepartmentsetting, 32 'keyost_helptopicsetting'=>$keyost_helptopicsetting,'keyost_defaulthelptopicsetting'=>$keyost_defaulthelptopicsetting );33 'keyost_helptopicsetting'=>$keyost_helptopicsetting,'keyost_defaulthelptopicsetting'=>$keyost_defaulthelptopicsetting,'keyost_contactfilestatus'=>$keyost_contactfilestatus); 33 34 if (($_REQUEST['host']=="") || ($_REQUEST['database']=="") || ($_REQUEST['username']=="") || ($_REQUEST['supportpage']=="") ) 34 35 { … … 100 101 extract($config); 101 102 ?> 102 <form name="mbform" action="admin.php?page=ost-config" method="post"> 103 <script type="text/javascript"> 104 $(function(){ 105 <?php if($keyost_departmentsetting==0) { ?> 106 $('.trdepartment').css("display:block"); 107 <?php }if($keyost_departmentsetting==1){ ?> 108 $('.trdepartment').css("display:none"); 109 <?php } ?> 110 <?php if($keyost_helptopicsetting==0) { ?> 111 $('.trhelptopic').css("display:block"); 112 <?php }if($keyost_helptopicsetting==1){ ?> 113 $('.trhelptopic').css("display:none"); 114 <?php } ?> 115 $('#keyost_departmentsetting').click(function() { 116 if(!$('#keyost_departmentsetting').is(':checked')) 117 { 118 $('.trdepartment').toggle('show'); 119 alert("Please Select Department"); 120 } 121 }); 122 $('#keyost_helptopicsetting').click(function() { 123 if(!$('#keyost_helptopicsetting').is(':checked')) 124 { 125 $('.trhelptopic').toggle('show'); 126 alert("Please Select Helptopic"); 127 } 128 }); 129 $("#ostconfig").click(function(){ 130 if(!$('#keyost_departmentsetting').is(':checked') && $( "#keyost_defaultdepartmentsetting" ).val()==0) 131 { 132 alert("Please Select Department"); 133 return false; 134 } 135 else if(!$('#keyost_helptopicsetting').is(':checked') && $( "#keyost_helptopicsetting" ).val()==0) 136 { 137 } 138 else 139 { 140 $("#ostconfigform").submit(); 141 } 142 }); 143 }); 144 </script> 145 <form name="mbform" action="admin.php?page=ost-config" method="post" id="ostconfigform"> 103 146 <table class="key4ce_cofigtb"> 104 147 <tr> … … 221 264 $config = get_option('os_ticket_config'); 222 265 extract($config); 223 if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_departmentsetting=="0") 224 { 225 ?> 226 <tr> 227 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Department on Contact Page:", 'key4ce-osticket-bridge'); ?></label></td> 266 if($keyost_departmentsetting=="0") 267 $trdepartment="display:table-row"; 268 else 269 $trdepartment="display:none"; 270 //if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && ) 271 //{ 272 ?> 273 <tr class="trdepartment" id="trdepartment" style="<?php echo $trdepartment; ?>"> 274 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Department on Contact Page:", 'key4ce-osticket-bridge'); ?><font class="key4ce_error"> *</font></label></td> 228 275 <td> 229 276 <?php … … 243 290 } 244 291 ?> 245 </select> <?php echo __("(Default Department on Contact Page :)", 'key4ce-osticket-bridge'); ?>246 </td> 247 </tr> 248 <?php } ?>292 </select> <?php echo __("(Default Department on Contact Page)", 'key4ce-osticket-bridge'); ?> 293 </td> 294 </tr> 295 <?php //} ?> 249 296 <!-- Department Configuration for Contact page end here--> 250 297 <!-- Helptopic Configuration for Contact page start here--> … … 254 301 </tr> 255 302 <?php 256 if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0") 257 { 303 if($keyost_helptopicsetting=="0") 304 $trhelptopic="display:table-row"; 305 else 306 $trhelptopic="display:none"; 307 //if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0") 308 //{ 258 309 $topic_table=$keyost_prefix."help_topic"; 259 310 $topic_opt = $ost_wpdb->get_results("SELECT topic_id,topic FROM $topic_table where ispublic=1 and isactive=1 ORDER BY `sort` ASC "); 260 311 ?> 261 <tr >262 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Helptopic on Contact Page:", 'key4ce-osticket-bridge'); ?>< /label></td>312 <tr class="trhelptopic" id="trhelptopic" style="<?php echo $trhelptopic; ?>"> 313 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Helptopic on Contact Page:", 'key4ce-osticket-bridge'); ?><font class="key4ce_error"> *</font></label></td> 263 314 <td> 264 315 <select id="keyost_defaulthelptopicsetting" name="keyost_defaulthelptopicsetting"> … … 272 323 } 273 324 ?> 274 </select> <?php echo __("(Default Helptopic on Contact Page :)", 'key4ce-osticket-bridge'); ?>275 </td> 276 </tr> 277 <?php 278 }325 </select> <?php echo __("(Default Helptopic on Contact Page)", 'key4ce-osticket-bridge'); ?> 326 </td> 327 </tr> 328 <?php 329 //} 279 330 ?> 280 331 <!-- Helptopic Configuration for Contact page end here--> 332 <!-- Contact Page File Attachement Enable/Disable Start Here--> 333 <tr> 334 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Enable File Attachement on Contact Page:", 'key4ce-osticket-bridge'); ?></label></td> 335 <td><input type="checkbox" name="keyost_contactfilestatus" id="keyost_contactfilestatus" <?php echo (@$keyost_contactfilestatus=="1") ? 'checked' : ''; ?>/> </td> 336 </tr> 337 <!-- Contact Page File Attachement Enable/Disable End Here --> 338 281 339 </table> 282 340 <div style="padding: 30px;"> 283 <input type="submit" name="submit" class="key4ce_button-primary" value="<?php echo __('Save Changes', 'key4ce-osticket-bridge'); ?>" />341 <input type="submit" name="submit" class="key4ce_button-primary" id="ostconfig" value="<?php echo __('Save Changes', 'key4ce-osticket-bridge'); ?>" /> 284 342 </div> 285 343 </form> -
key4ce-osticket-bridge/tags/1.3.1/admin/ost-postreplymail.php
r1232492 r1236690 52 52 $admin_response=@Format::stripslashes($_REQUEST['message']); ///from post to thread-table to variable to email 53 53 $ipaddress=$_SERVER['REMOTE_ADDR']; 54 $date=date("Y-m-d g:i:s"); ///EST (todo's - add option to WP osT-Settings) 55 54 //$date=date("Y-m-d g:i:s"); ///EST (todo's - add option to WP osT-Settings) 55 $my_unix_timestamp=current_time('mysql'); 56 $date =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 56 57 $ost_wpdb->insert($thread_table, array('pid'=>$pid,'ticket_id'=>$ticid,'staff_id'=>$staffid,'thread_type'=>$thread_type,'poster'=>$poster,'source'=>$source,'title'=>"",'body'=>key4ce_wpetss_forum_text($admin_response),'ip_address'=>$ipaddress,'created'=>$date), array('%d','%d','%d','%s','%s','%s','%s','%s','%s','%s')); 57 58 $thread_id = $ost_wpdb->insert_id; … … 187 188 $phpmailer->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 188 189 $phpmailer->MsgHTML('<div style="display: none;">-- do not reply below this line -- <br/><br/></div>' . $message); 189 if (!empty($_FILES['file']['name'][0]))190 {191 $helpdesk_url=key4ce_getKeyValue('helpdesk_url');192 $file_url=$helpdesk_url."file.php?key=".$key4ce_generateHashKey."&expires=1440720000&signature=".$key4ce_generateHashSignature;193 $phpmailer->AddAttachment($file_url,$realfilename);194 }195 190 $phpmailer->AddAddress($to); 196 191 $phpmailer->Send(); … … 208 203 $phpmailer->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 209 204 $phpmailer->MsgHTML('<div style="display: none;">-- do not reply below this line -- <br/><br/></div>' . $message); 210 if (!empty($_FILES['file']['name'][0]))211 {212 $minage = $minage ?: 43200;213 $gmnow = time()-date('Z') + $minage;214 $expires = $gmnow + 86400 - ($gmnow % 86400);215 $table_prefix_osticket=$keyost_prefix;216 $admin_email_mail=key4ce_getKeyValue('helpdesk_url');217 $secret_salt=md5($table_prefix_osticket.$admin_email_mail);218 function genUrlSignature($id, $key, $signature, $expires) {219 $pieces = array(220 'Host='.$_SERVER['HTTP_HOST'],221 'Path=http://ticket.zovira.com/ticket1912/',222 'Id='.$id,223 'Key='.strtolower($key),224 'Hash='.$signature,225 'Expires='.$expires,226 );227 return hash_hmac('sha1', implode("\n", $pieces), $secret_salt);228 }229 $helpdesk_url=key4ce_getKeyValue('helpdesk_url');230 $disposition=false;231 $signature =genUrlSignature($file_id,$key4ce_generateHashKey,$key4ce_generateHashSignature,$expires);232 $args = array(233 'key' => strtolower($key4ce_generateHashKey),234 'expires' => $expires,235 'signature' => $signature,236 );237 echo $file_url=$helpdesk_url."file.php?".http_build_query($args);238 exit;239 $phpmailer->AddAttachment($file_url,$realfilename);240 }241 205 $phpmailer->Send(); 242 206 } 243 exit;244 207 ?> -
key4ce-osticket-bridge/tags/1.3.1/css/admin-style.css
r1232501 r1236690 512 512 color: #FF0000; 513 513 } 514 .error { 515 color: #FF0000; 516 } 514 517 #key4ce_msg_notice { 515 518 margin: 20px 20px 20px 20px; -
key4ce-osticket-bridge/tags/1.3.1/css/style.css
r1232501 r1236690 675 675 color: #FF0000; 676 676 } 677 .error { 678 color: #FF0000; 679 } 677 680 #key4ce_msg_notice { 678 681 margin: 20px 20px 20px 20px; -
key4ce-osticket-bridge/tags/1.3.1/includes/contactticketmail.php
r1232492 r1236690 22 22 $os_admin_email_id = $os_admin_email->value; 23 23 $os_admin_email_address = $ost_wpdb->get_row("SELECT email,name FROM " . $keyost_prefix . "email where email_id=" . $os_admin_email_id . ""); 24 if($keyost_de faultdepartmentsetting!="" && $keyost_defaultdepartmentsetting==0)25 $dep_id = @$_REQUEST['deptId'];24 if($keyost_departmentsetting==1) 25 $dep_id =$_REQUEST['deptId']; 26 26 else 27 $dep_id= @$keyost_defaultdepartmentsetting;27 $dep_id=$keyost_defaultdepartmentsetting; 28 28 29 29 $sla_id = 1; 30 30 $pri_id = 2; 31 if($keyost_ defaulthelptopicsetting!="" && $keyost_defaulthelptopicsetting==0)32 @$top_id =$_REQUEST['topicId'];31 if($keyost_helptopicsetting==1) 32 $top_id =$_REQUEST['topicId']; 33 33 else 34 $top_id= @$keyost_defaulthelptopicsetting;34 $top_id=$keyost_defaulthelptopicsetting; 35 35 $staff_id = 0; 36 36 $team_id = 0; … … 53 53 $isoverdue = 0; 54 54 $isans = 0; 55 $las_msg = date("Y-m-d, g:i:s", strtotime("-5 hour")); 56 $cre = date("Y-m-d, g:i:s", strtotime("-5 hour")); 55 $my_unix_timestamp=current_time('mysql'); 56 $las_msg =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 57 $cre =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 57 58 @$user_message = Format::stripslashes($_REQUEST['message']); 58 59 $prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id"); … … 62 63 if(isset($_POST['g-recaptcha-response'])) 63 64 { 65 ?> 66 <?php 64 67 $captcha=$_POST['g-recaptcha-response']; 65 68 $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); 66 69 } 67 if (isset($_REQUEST['create-contact-ticket']) && $response['success']==true) { 68 if($keyost_version==193) 69 { 70 $attachement_status=key4ce_getKeyValue('allow_attachments'); 71 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 72 $max_file_size=key4ce_getKeyValue('max_file_size'); 73 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 74 } 75 else 76 { 77 $fileconfig=key4ce_FileConfigValue(); 78 $filedata=json_decode($fileconfig); 79 $attachement_status=$filedata->attachments; 80 $max_user_file_uploads=$filedata->max; 81 $max_file_size=$filedata->size; 82 $fileextesnions=$filedata->extensions; 83 } 70 if (isset($_REQUEST['create-contact-ticket']) && $response['success']==1) { 71 84 72 // Added by Pratik Maniar on 29-04-2014 Start Here 85 73 $dept_details = $ost_wpdb->get_row("SELECT dept_id,dept_name FROM $dept_table WHERE dept_id=$dep_id"); … … 103 91 $last_ost_user_id = $ost_wpdb->insert_id; 104 92 if ($usid == "") 105 $ost_wpdb->query("UPDATE " . $keyost_prefix . "user_email SET user_id=$last_ost_user_id where id=$last_ost_user_email_id"); 106 107 108 93 $ost_wpdb->query("UPDATE " . $keyost_prefix . "user_email SET user_id=$last_ost_user_id where id=$last_ost_user_email_id"); 109 94 } 110 95 ////End of new user info user_email_id email_id … … 125 110 if (!empty($_FILES['file']['name'][0])) 126 111 { 112 if($keyost_version==193) 113 { 114 $attachement_status=key4ce_getKeyValue('allow_attachments'); 115 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 116 $max_file_size=key4ce_getKeyValue('max_file_size'); 117 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 118 } 119 else 120 { 121 $fileconfig=key4ce_FileConfigValue(); 122 $filedata=json_decode($fileconfig); 123 $attachement_status=$filedata->attachments; 124 $max_user_file_uploads=$filedata->max; 125 $max_file_size=$filedata->size; 126 $fileextesnions=$filedata->extensions; 127 } 127 128 $fileids=array(); 128 129 for ($i = 0; $i < count($_FILES['file']['name']); $i++) -
key4ce-osticket-bridge/tags/1.3.1/includes/newticketmail.php
r1232492 r1236690 11 11 get_currentuserinfo(); 12 12 $wp_user_email_id = $current_user->user_email; 13 14 13 $tic_ID = key4ce_generateID(); 15 14 $checkUserID = $ost_wpdb->get_results("SELECT number from $ticket_table WHERE number = '$tic_ID'"); … … 43 42 $isoverdue = 0; 44 43 $isans = 0; 45 $las_msg = date("Y-m-d g:i:s",strtotime('+1 hours')); 46 $cre = date("Y-m-d g:i:s",strtotime('+1 hours')); 44 $my_unix_timestamp=current_time('mysql'); 45 $las_msg =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 46 $cre =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 47 47 @$user_message = Format::stripslashes($_REQUEST['message']); 48 48 $prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id"); -
key4ce-osticket-bridge/tags/1.3.1/includes/postreplymail.php
r1232492 r1236690 26 26 $user_message=@Format::stripslashes($_REQUEST['message']); 27 27 $ipaddress=$_SERVER['REMOTE_ADDR']; 28 $date=date("Y-m-d g:i:s"); 28 $my_unix_timestamp=current_time('mysql'); 29 $date =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 29 30 $ticket_details=$ost_wpdb->get_row("SELECT * FROM $ticket_table WHERE number=$usticketid"); 30 31 $dep_id=$ticket_details->dept_id; -
key4ce-osticket-bridge/tags/1.3.1/js/validate.js
r1232492 r1236690 1 function validateFormNewTicket(){var x=document.forms["newticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }}function validateFormContactTicket(){var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") { alert("Please enter a email!"); return false; }if(x!=""){var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Please enter valid email address!"); return false; }}var x=document.forms["contactticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["contactticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; }var x=document.forms["contactticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateAdminFormNewTicket(){var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }}function validateFormContactTicket(){var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") { alert("Please enter a email!"); return false; }if(x!=""){var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Please enter valid email address!"); return false; }}var x=document.forms["contactticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["contactticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; }var x=document.forms["contactticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } } 1 function validateFormNewTicket(){var x=document.forms["newticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }}function validateFormContactTicket(){var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") { alert("Please enter a email!"); return false; }if(x!=""){var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Please enter valid email address!"); return false; }}var x=document.forms["contactticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["contactticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; }var x=document.forms["contactticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateAdminFormNewTicket(){var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }} 2 function validateFormContactTicket() 3 { 4 var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") 5 { alert("Please enter your name!"); return false; } 6 var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") 7 { alert("Please enter a email!"); return false; }if(x!="") 8 { 9 var atpos=x.indexOf("@");var dotpos=x.lastIndexOf("."); 10 if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) 11 { alert("Please enter valid email address!"); 12 return false; 13 } 14 } 15 var x=document.forms["contactticket"]["subject"].value; 16 if (x==null || x=="") 17 { alert("Please enter a subject!"); 18 return false; 19 } 20 var x=document.forms["contactticket"]["deptId"].value; 21 if (x==null || x=="") 22 { alert("Please select a category!"); 23 return false; 24 } 25 var x=document.forms["contactticket"]["priorityId"].value; 26 if (x==null || x=="") 27 { 28 alert("Please select a priority level!"); 29 return false; 30 } 31 var editorContent = tinyMCE.get('message').getContent(); 32 if (editorContent == '' || editorContent==null) 33 { 34 alert("Message field cannot be empty!"); 35 return false; 36 } 37 var captcha_response = grecaptcha.getResponse(); 38 if(captcha_response.length == 0) 39 { 40 alert("Please validate captcha"); 41 return false; 42 } 43 } -
key4ce-osticket-bridge/tags/1.3.1/languages/key4ce-osticket-bridge-ar.po
r1232492 r1236690 8 8 "Project-Id-Version: key4ce-osticket-bridge 1.0\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2015-0 3-09 12:25+0200\n"11 "PO-Revision-Date: 2015-0 3-10 13:23+0200\n"10 "POT-Creation-Date: 2015-09-01 14:01+0200\n" 11 "PO-Revision-Date: 2015-09-01 14:03+0200\n" 12 12 "Last-Translator: Muhammad Bashir Al-Noimi <[email protected]>\n" 13 13 "Language-Team: none\n" … … 25 25 "X-Poedit-SearchPath-1: ..\n" 26 26 27 #: ../admin/admin_create_ticket.php: 83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:2228 #: ../templates/ view_ticket.php:26 ../templates/view_ticket.php:24427 #: ../admin/admin_create_ticket.php:103 ../admin/ost-ticketview.php:43 ../templates/contact_ticket.php:66 28 #: ../templates/new_ticket.php:42 ../templates/view_ticket.php:47 ../templates/view_ticket.php:271 29 29 msgid "Attachment" 30 30 msgstr "مرفق" 31 31 32 #: ../admin/admin_create_ticket.php: 83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:2233 #: ../templates/ view_ticket.php:2632 #: ../admin/admin_create_ticket.php:103 ../admin/ost-ticketview.php:43 ../templates/contact_ticket.php:66 33 #: ../templates/new_ticket.php:42 ../templates/view_ticket.php:47 34 34 msgid "Remove" 35 35 msgstr "إزالة" 36 36 37 #: ../admin/admin_create_ticket.php: 88 ../admin/ost-ticketview.php:27 ../templates/new_ticket.php:2738 #: ../templates/ view_ticket.php:3137 #: ../admin/admin_create_ticket.php:108 ../admin/ost-ticketview.php:48 ../templates/contact_ticket.php:71 38 #: ../templates/new_ticket.php:47 ../templates/view_ticket.php:52 39 39 msgid "You have exceeds your file upload limit" 40 40 msgstr "لقد تجاوزت حد الرفع المسموح لك" 41 41 42 #: ../admin/admin_create_ticket.php:1 15 ../admin/ost-ticketview.php:54 ../templates/new_ticket.php:5443 #: ../templates/ view_ticket.php:5842 #: ../admin/admin_create_ticket.php:156 ../admin/ost-ticketview.php:75 ../templates/contact_ticket.php:119 43 #: ../templates/new_ticket.php:95 ../templates/view_ticket.php:79 44 44 msgid "Please make sure your file is less than" 45 45 msgstr "يرجى الـتأكد أن حجم الملف أقل من" 46 46 47 #: ../admin/admin_create_ticket.php:1 21 ../admin/ost-ticketview.php:60 ../templates/new_ticket.php:6048 #: ../templates/ view_ticket.php:6447 #: ../admin/admin_create_ticket.php:164 ../admin/ost-ticketview.php:83 ../templates/contact_ticket.php:127 48 #: ../templates/new_ticket.php:103 ../templates/view_ticket.php:87 49 49 msgid "Please make sure your file extension should be :" 50 50 msgstr "يرجى التأكد من أن امتداد الملف يجب أن يكون:" 51 51 52 #: ../admin/admin_create_ticket.php: 17652 #: ../admin/admin_create_ticket.php:223 53 53 msgid "Create A New Ticket" 54 54 msgstr "إنشاء بطاقة جديدة" 55 55 56 #: ../admin/admin_create_ticket.php: 178 ../templates/contact_ticket.php:58 ../templates/new_ticket.php:9856 #: ../admin/admin_create_ticket.php:225 ../templates/contact_ticket.php:167 ../templates/new_ticket.php:140 57 57 msgid "" 58 58 "Please fill in the form below to open a new ticket. All fields mark with [<font color=red>*</font>] <em>Are " … … 60 60 msgstr "يرجى تعبئة النموذج أدناه لفتح بطاقة جديدة، جميع الحقول الملونة بالأحمر مطلوبة." 61 61 62 #: ../admin/admin_create_ticket.php: 18762 #: ../admin/admin_create_ticket.php:233 63 63 msgid "Select User Type :" 64 64 msgstr "اختر نوع المستخدم: " 65 65 66 #: ../admin/admin_create_ticket.php: 18966 #: ../admin/admin_create_ticket.php:235 67 67 msgid "WP Users" 68 68 msgstr "مستخدمي الوورد برس" 69 69 70 #: ../admin/admin_create_ticket.php: 19070 #: ../admin/admin_create_ticket.php:236 71 71 msgid "Osticket Users" 72 msgstr "مستخدم يOsticket "73 74 #: ../admin/admin_create_ticket.php: 191 ../admin/admin_create_ticket.php:196 ../admin/ost-ticketview.php:9675 #: ../templates/new_ticket.php:1 0672 msgstr "مستخدمو Osticket " 73 74 #: ../admin/admin_create_ticket.php:237 ../admin/admin_create_ticket.php:242 ../admin/ost-ticketview.php:120 75 #: ../templates/new_ticket.php:148 76 76 msgid "Username" 77 77 msgstr "اسم المستخدم" 78 78 79 #: ../admin/admin_create_ticket.php: 19479 #: ../admin/admin_create_ticket.php:240 80 80 msgid "WP Username" 81 81 msgstr "اسم مستخدم الوورد برس" 82 82 83 #: ../admin/admin_create_ticket.php: 19583 #: ../admin/admin_create_ticket.php:241 84 84 msgid "Osticket Username" 85 85 msgstr "اسم مستخدم Osticket " 86 86 87 #: ../admin/admin_create_ticket.php: 199 ../templates/new_ticket.php:10987 #: ../admin/admin_create_ticket.php:245 ../templates/new_ticket.php:151 88 88 msgid "Your Email" 89 89 msgstr "البريد الالكتروني" 90 90 91 #: ../admin/admin_create_ticket.php:2 02 ../admin/ost-tickets.php:86 ../admin/ost-ticketview.php:13492 #: ../templates/contact_ticket.php: 83 ../templates/list_tickets.php:48 ../templates/new_ticket.php:11293 #: ../templates/view_ticket.php:1 4591 #: ../admin/admin_create_ticket.php:248 ../admin/ost-tickets.php:169 ../admin/ost-ticketview.php:162 92 #: ../templates/contact_ticket.php:210 ../templates/list_tickets.php:59 ../templates/new_ticket.php:154 93 #: ../templates/view_ticket.php:172 94 94 msgid "Subject" 95 95 msgstr "العنوان" 96 96 97 #: ../admin/admin_create_ticket.php:2 05 ../templates/new_ticket.php:11597 #: ../admin/admin_create_ticket.php:251 ../templates/new_ticket.php:157 98 98 msgid "Catagories" 99 msgstr "ال تصنيفات"100 101 #: ../admin/admin_create_ticket.php:2 08 ../templates/contact_ticket.php:73 ../templates/new_ticket.php:11899 msgstr "الأقسام" 100 101 #: ../admin/admin_create_ticket.php:254 ../templates/contact_ticket.php:186 ../templates/new_ticket.php:161 102 102 msgid "Select a Category" 103 msgstr "اختر تصنيف" 104 105 #: ../admin/admin_create_ticket.php:216 ../admin/ost-tickets.php:87 ../admin/ost-ticketview.php:108 106 #: ../templates/view_ticket.php:109 103 msgstr "اختر قسم" 104 105 #: ../admin/admin_create_ticket.php:264 ../admin/admin_create_ticket.php:277 ../admin/ost-tickets.php:172 106 #: ../admin/ost-ticketview.php:155 ../templates/contact_ticket.php:203 ../templates/list_tickets.php:62 107 #: ../templates/new_ticket.php:171 ../templates/view_ticket.php:167 108 msgid "Help Topic" 109 msgstr "التصنيف" 110 111 #: ../admin/admin_create_ticket.php:281 ../admin/ost-tickets.php:170 ../admin/ost-ticketview.php:132 112 #: ../templates/view_ticket.php:133 107 113 msgid "Priority" 108 114 msgstr "الأولوية" 109 115 110 #: ../admin/admin_create_ticket.php:2 18 ../templates/new_ticket.php:128116 #: ../admin/admin_create_ticket.php:283 ../templates/new_ticket.php:177 111 117 msgid "Select a Priority" 112 118 msgstr "اختر الأولولية" 113 119 114 #: ../admin/admin_create_ticket.php:2 29120 #: ../admin/admin_create_ticket.php:294 115 121 msgid "To best assist you, please be specific and detailed in your message *" 116 122 msgstr "لتقديم أفضل مساعدة لك، يرجى توضيح التفاصيل جيداً في الرسالة *" 117 123 118 #: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160 124 #: ../admin/admin_create_ticket.php:315 ../admin/ost-ticketview.php:251 ../templates/contact_ticket.php:236 125 #: ../templates/new_ticket.php:209 119 126 msgid "Attachment 1:" 120 127 msgstr "مرفق 1:" 121 128 122 #: ../admin/admin_create_ticket.php: 250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160123 #: ../templates/ view_ticket.php:244129 #: ../admin/admin_create_ticket.php:315 ../admin/ost-ticketview.php:251 ../templates/contact_ticket.php:236 130 #: ../templates/new_ticket.php:209 ../templates/view_ticket.php:271 124 131 msgid "Add" 125 132 msgstr "إضافة" 126 133 127 #: ../admin/admin_create_ticket.php: 250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160128 #: ../templates/ view_ticket.php:26 ../templates/view_ticket.php:244134 #: ../admin/admin_create_ticket.php:315 ../admin/ost-ticketview.php:251 ../templates/contact_ticket.php:236 135 #: ../templates/new_ticket.php:209 ../templates/view_ticket.php:47 ../templates/view_ticket.php:271 129 136 msgid "Max file upload size :" 130 137 msgstr "الحد الأقصى لحجم الملف:" 131 138 132 #: ../admin/admin_create_ticket.php:257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167 139 #: ../admin/admin_create_ticket.php:322 ../admin/ost-ticketview.php:258 ../templates/contact_ticket.php:243 140 #: ../templates/new_ticket.php:216 133 141 msgid "Attachments on the Filesystem plugin can be downloaded here:" 134 142 msgstr "مرفقات هذه الإضافة يمكن تحميلها من هنا:" 135 143 136 #: ../admin/admin_create_ticket.php: 257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167137 #: ../templates/ view_ticket.php:251144 #: ../admin/admin_create_ticket.php:322 ../admin/ost-ticketview.php:258 ../templates/contact_ticket.php:243 145 #: ../templates/new_ticket.php:216 ../templates/view_ticket.php:278 138 146 msgid "Attachement Filesystem Plugin" 139 147 msgstr "إضافة الملفات المرفقة" 140 148 141 #: ../admin/admin_create_ticket.php: 264 ../admin/header_nav_ticket.php:18 ../ost-bridge.php:148142 #: ../templates/nav_bar.php:46 ../templates/new_ticket.php: 174149 #: ../admin/admin_create_ticket.php:329 ../admin/header_nav_ticket.php:21 ../ost-bridge.php:156 150 #: ../templates/nav_bar.php:46 ../templates/new_ticket.php:223 143 151 msgid "Create Ticket" 144 152 msgstr "إنشاء بطاقة" 145 153 146 #: ../admin/admin_create_ticket.php: 265 ../templates/contact_ticket.php:110 ../templates/new_ticket.php:175147 #: ../templates/view_ticket.php:2 71154 #: ../admin/admin_create_ticket.php:330 ../templates/contact_ticket.php:261 ../templates/new_ticket.php:224 155 #: ../templates/view_ticket.php:298 148 156 msgid "Reset" 149 157 msgstr "إعادة تعيين الافتراضيات" 150 158 151 159 # ------------------Email Template ost-emailtemp.php End Here half file remain----------------------------------- 152 #: ../admin/db-settings.php: 394 ../admin/db-settings.php:444 ../admin/db-settings.php:456153 #: ../admin/db-settings.php:4 68160 #: ../admin/db-settings.php:406 ../admin/db-settings.php:457 ../admin/db-settings.php:470 161 #: ../admin/db-settings.php:483 ../admin/db-settings.php:496 154 162 msgid "Stand by while your" 155 163 msgstr "انتظر قليلاً" 156 164 157 #: ../admin/db-settings.php: 394 ../ost-bridge.php:154165 #: ../admin/db-settings.php:406 ../ost-bridge.php:162 158 166 msgid "Settings" 159 167 msgstr "إعدادات" 160 168 161 #: ../admin/db-settings.php: 394169 #: ../admin/db-settings.php:406 162 170 msgid "are being updated..." 163 171 msgstr "يتم تحديث ..." 164 172 165 #: ../admin/db-settings.php:4 03 ../admin/db-settings.php:422 ../admin/ost-config.php:28173 #: ../admin/db-settings.php:415 ../admin/db-settings.php:434 ../admin/ost-config.php:35 166 174 msgid "Error:" 167 175 msgstr "خطأ:" 168 176 169 #: ../admin/db-settings.php:4 03 ../admin/db-settings.php:422177 #: ../admin/db-settings.php:415 ../admin/db-settings.php:434 170 178 msgid "" 171 179 "Message field cannot be empty, if you are closing the ticket, then enter: \"Closing Ticket\" in post a reply." 172 180 msgstr "حقل الرسالة لا يمكن أن يكون فارغا, إن كنت تغلق البطاقة فأدخل: \"إغلاق البطاقة\" بحقل الرّد." 173 181 174 #: ../admin/db-settings.php:4 07182 #: ../admin/db-settings.php:419 175 183 msgid "Thread updated successfully...Stand by: for auto refresh!" 176 184 msgstr "تم تحديث الموضوع بنجاح.... انتظر قليلاً!" 177 185 178 #: ../admin/db-settings.php:4 26186 #: ../admin/db-settings.php:438 179 187 msgid "Ticket created successfully...Stand by: for auto refresh!" 180 188 msgstr "تم إنشاء البطاقة بنجاح.... انتظر قليلاً!" 181 189 182 #: ../admin/db-settings.php:4 44 ../admin/ost-emailtemp.php:56190 #: ../admin/db-settings.php:457 ../admin/ost-emailtemp.php:94 183 191 msgid "Admin Response Email" 184 192 msgstr "بريد رد المدير" 185 193 186 #: ../admin/db-settings.php:444 ../admin/db-settings.php:456 ../admin/db-settings.php:468 194 #: ../admin/db-settings.php:457 ../admin/db-settings.php:470 ../admin/db-settings.php:483 195 #: ../admin/db-settings.php:496 187 196 msgid "is being updated..." 188 197 msgstr "جاري التحديث ..." 189 198 190 #: ../admin/db-settings.php:4 56 ../admin/ost-emailtemp.php:38199 #: ../admin/db-settings.php:470 ../admin/ost-emailtemp.php:75 191 200 msgid "New Ticket Email" 192 201 msgstr "بطاقة جديدة" 193 202 194 #: ../admin/db-settings.php:4 68 ../admin/ost-emailtemp.php:75203 #: ../admin/db-settings.php:483 ../admin/ost-emailtemp.php:115 195 204 msgid "User Post Confirmation Email" 196 205 msgstr "بريد تأكيد نشر المستخدم" 206 207 #: ../admin/db-settings.php:496 ../admin/ost-emailtemp.php:55 208 msgid "Admin Create Ticket Email" 209 msgstr "رسالة إنشاء بطاقة للمدير" 197 210 198 211 #: ../admin/header_nav.php:16 … … 204 217 msgstr "إعدادات osT" 205 218 206 #: ../admin/header_nav.php:18 ../ost-bridge.php:1 64219 #: ../admin/header_nav.php:18 ../ost-bridge.php:172 207 220 msgid "Email Templates" 208 221 msgstr "قوالب البريد" 209 222 210 #: ../admin/header_nav.php:19 ../ost-bridge.php:7 0223 #: ../admin/header_nav.php:19 ../ost-bridge.php:78 211 224 msgid "Support Tickets" 212 225 msgstr "بطاقات الدعم" 213 226 214 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:4 2227 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:45 215 228 msgid "1 or more of your email templates is not setup" 216 229 msgstr "واحد أو أكثر من قوالب البريد لم يتم إعداده" 217 230 218 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:4 2231 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:45 219 232 msgid "Click Here" 220 233 msgstr "انقر هنا" 221 234 222 #: ../admin/header_nav_ticket.php:2 1 ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:50223 #: ../admin/ost-emailtemp.php: 69 ../admin/ost-ticketview.php:90 ../templates/list_tickets.php:95224 #: ../templates/ view_ticket.php:90235 #: ../admin/header_nav_ticket.php:24 ../admin/ost-emailtemp.php:33 ../admin/ost-emailtemp.php:69 236 #: ../admin/ost-emailtemp.php:88 ../admin/ost-emailtemp.php:109 ../admin/ost-ticketview.php:114 237 #: ../templates/list_tickets.php:107 ../templates/view_ticket.php:114 225 238 msgid "Open" 226 239 msgstr "فتح" 227 240 228 #: ../admin/header_nav_ticket.php:2 2 ../admin/ost-ticketview.php:92 ../templates/list_tickets.php:98229 #: ../templates/view_ticket.php: 92241 #: ../admin/header_nav_ticket.php:25 ../admin/ost-ticketview.php:116 ../templates/list_tickets.php:110 242 #: ../templates/view_ticket.php:116 230 243 msgid "Answered" 231 244 msgstr "تمت الإجابة" 232 245 233 #: ../admin/header_nav_ticket.php:2 3 ../admin/ost-ticketview.php:88 ../templates/list_tickets.php:92234 #: ../templates/nav_bar.php:53 ../templates/view_ticket.php: 88246 #: ../admin/header_nav_ticket.php:26 ../admin/ost-ticketview.php:112 ../templates/list_tickets.php:104 247 #: ../templates/nav_bar.php:53 ../templates/view_ticket.php:112 235 248 msgid "Closed" 236 249 msgstr "مغلق" 237 250 238 #: ../admin/header_nav_ticket.php:2 4251 #: ../admin/header_nav_ticket.php:27 239 252 msgid "All" 240 253 msgstr "الكل" 241 254 242 #: ../admin/header_nav_ticket.php:3 0255 #: ../admin/header_nav_ticket.php:33 243 256 msgid "Search" 244 257 msgstr "بحث" 245 258 246 #: ../admin/header_nav_ticket.php:3 3259 #: ../admin/header_nav_ticket.php:36 247 260 msgid "Go >>" 248 261 msgstr "اذهب >>" 249 262 250 #: ../admin/header_nav_ticket.php:4 2263 #: ../admin/header_nav_ticket.php:45 251 264 msgid "Warning:" 252 265 msgstr "تحذير:" … … 275 288 "كذلك لا يمكن أن يكون اسمها بنفس اسم مجلد osTicket." 276 289 277 #: ../admin/ost-config.php: 28290 #: ../admin/ost-config.php:35 278 291 msgid "All fields are required below for the database..." 279 292 msgstr "جميع الحقول أدناه مطلوبة لقاعدة البيانات..." 280 293 281 #: ../admin/ost-config.php: 89294 #: ../admin/ost-config.php:94 282 295 msgid "Your settings saved successfully...Thank you!" 283 296 msgstr "تم حفظ إعداداتك بنجاح... شكراً لك" 284 297 285 #: ../admin/ost-config.php:10 0298 #: ../admin/ost-config.php:105 286 299 msgid "Host Name:" 287 300 msgstr "اسم المضيف:" 288 301 289 #: ../admin/ost-config.php:10 1302 #: ../admin/ost-config.php:106 290 303 msgid "( Normally this is localhost )" 291 304 msgstr "( عادة يكون localhost )" 292 305 293 #: ../admin/ost-config.php:10 4306 #: ../admin/ost-config.php:109 294 307 msgid "Database Name:" 295 308 msgstr "اسم قاعدة البيانات:" 296 309 297 #: ../admin/ost-config.php:1 05310 #: ../admin/ost-config.php:110 298 311 msgid "( osTicket Database Name Goes Here )" 299 312 msgstr "( اسم قاعدة بيانات osTicket هنا )" 300 313 301 #: ../admin/ost-config.php:1 08314 #: ../admin/ost-config.php:113 302 315 msgid "Database Username:" 303 316 msgstr "اسم المستخدم لقاعدة البيانات:" 304 317 305 #: ../admin/ost-config.php:1 09318 #: ../admin/ost-config.php:114 306 319 msgid "( osTicket Database Username Goes Here )" 307 320 msgstr "( اسم مستخدم قاعدة بيانات osTicket هنا )" 308 321 309 #: ../admin/ost-config.php:11 2322 #: ../admin/ost-config.php:117 310 323 msgid "Database Password:" 311 324 msgstr "كلمة المرور:" 312 325 313 #: ../admin/ost-config.php:11 3326 #: ../admin/ost-config.php:118 314 327 msgid "( osTicket Database Password Goes Here )" 315 328 msgstr "( كلمة مرور قاعدة بيانات osTicket هنا )" 316 329 317 #: ../admin/ost-config.php:1 16330 #: ../admin/ost-config.php:121 318 331 msgid "Database Prefix:" 319 332 msgstr "بادئة قاعدة البيانات:" 320 333 321 #: ../admin/ost-config.php:1 17334 #: ../admin/ost-config.php:122 322 335 msgid "( osTicket Database Prefix Goes Here )" 323 336 msgstr "( بادئة قاعدة البيانات osTicket هنا )" 324 337 325 #: ../admin/ost-config.php:12 0338 #: ../admin/ost-config.php:125 326 339 msgid "Osticket Version:" 327 340 msgstr "إصدار osTicket:" 328 341 329 #: ../admin/ost-config.php:1 31342 #: ../admin/ost-config.php:142 330 343 msgid "(Select Osticket Version)" 331 344 msgstr "(اختر إصدار Osticket)" 332 345 333 #: ../admin/ost-config.php:1 35346 #: ../admin/ost-config.php:146 334 347 msgid "Enable Closing Ticket By User:" 335 348 msgstr "تفعيل إغلاق البطاقة بواسطة المستخدم:" 336 349 337 #: ../admin/ost-config.php:1 39350 #: ../admin/ost-config.php:150 338 351 msgid "Landing Page Name:" 339 352 msgstr "اسم الصفحة الرئيسية:" 340 353 341 #: ../admin/ost-config.php:1 41354 #: ../admin/ost-config.php:152 342 355 msgid "Landing Page Name( Create this page...read Landing Page Note above! )" 343 356 msgstr "اسم الصفحة الرئيسية ( أنشئ هذه الصحفة... اقرأ حولها بالملاحظة أعلاه! )" 344 357 345 #: ../admin/ost-config.php:1 44358 #: ../admin/ost-config.php:155 346 359 msgid "Contact Ticket Page:" 347 360 msgstr "صفحة بطاقة الاتصال:" 348 361 349 #: ../admin/ost-config.php:1 66362 #: ../admin/ost-config.php:177 350 363 msgid "(Select contact ticket page)" 351 364 msgstr "(احتر صفحة بطاقة الاتصال)" 352 365 353 #: ../admin/ost-config.php:1 70366 #: ../admin/ost-config.php:181 354 367 msgid "Thank You Page:" 355 368 msgstr "صفحة الشكر:" 356 369 357 #: ../admin/ost-config.php: 192370 #: ../admin/ost-config.php:203 358 371 msgid "(Select thank you page)" 359 372 msgstr "(اختر صفحة الشكر)" 360 373 361 #: ../admin/ost-config.php:197 374 #: ../admin/ost-config.php:207 375 msgid "Google reCAPTCHA Secretkey:" 376 msgstr "المفتاح السري لكابتشا غوغل:" 377 378 #: ../admin/ost-config.php:208 379 msgid "(Your Google reCAPTCHA Secretkey Goest Here)" 380 msgstr "(مكان إدخال المفتاح السري لكابتشا غوغل)" 381 382 #: ../admin/ost-config.php:211 383 msgid "Google reCAPTCHA Sitekey:" 384 msgstr "مفتاح الموقع لكابتشا غوغل:" 385 386 #: ../admin/ost-config.php:212 387 msgid "(Your Google reCAPTCHA Sitekey Goest Here)" 388 msgstr "(مكان إدخال مفتاح الموقع لكابتشا غوغل)" 389 390 #: ../admin/ost-config.php:217 391 msgid "Enable Department on Contact Page:" 392 msgstr "تمكين القسم بصفحة الاتصال:" 393 394 #: ../admin/ost-config.php:227 395 msgid "Default Department on Contact Page:" 396 msgstr "القسم الافتراضي بصفحة الاتصال:" 397 398 #: ../admin/ost-config.php:235 399 msgid "Select a Department" 400 msgstr "تحديد قسم" 401 402 #: ../admin/ost-config.php:245 403 msgid "(Default Department on Contact Page:)" 404 msgstr "(القسم الافتراضي بصفحة الاتصال:)" 405 406 #: ../admin/ost-config.php:252 407 msgid "Enable Helptopic on Contact Page:" 408 msgstr "تمكين المساعدة بصفحة الاتصال:" 409 410 #: ../admin/ost-config.php:262 411 msgid "Default Helptopic on Contact Page:" 412 msgstr "المساعدة الافتراضية بصفحة الاتصال:" 413 414 #: ../admin/ost-config.php:265 415 msgid "Select a Help Topic" 416 msgstr "قم بتحديد التصنيف" 417 418 #: ../admin/ost-config.php:274 419 msgid "(Default Helptopic on Contact Page:)" 420 msgstr "(المساعدة الافتراضية بصفحة الاتصال:)" 421 422 #: ../admin/ost-config.php:283 362 423 msgid "Save Changes" 363 424 msgstr "حفظ التعديلات" 364 425 365 #: ../admin/ost-emailtemp.php: 8426 #: ../admin/ost-emailtemp.php:9 366 427 msgid "osTicket Email Templates" 367 428 msgstr "قوالب بريد osTicket " 368 429 369 430 # ------------------Email Template ost-emailtemp.php Start Here----------------------------------- 370 #: ../admin/ost-emailtemp.php:1 1431 #: ../admin/ost-emailtemp.php:12 371 432 msgid "" 372 433 "The \"Email Templates\" sent from site to client: new tickets confirmations, user post confirmations & admin " … … 374 435 msgstr "\"قوالب البريد\" أرسلت من الموقع للزبون: تأكيدات البطاقات الجديدة و ملاحظات المستخدم و ردود المدير." 375 436 376 #: ../admin/ost-emailtemp.php:1 1437 #: ../admin/ost-emailtemp.php:12 377 438 msgid "" 378 439 "Note: Each input field will have a suggested default template, you can place any text & use the variables " … … 380 441 msgstr "ملاحظة: كل حقل إدخال فيه قيم افتراضية مقترحة، يمكنك وضع أي نص واستخدام المتغيرات المدرجة أدناه." 381 442 382 #: ../admin/ost-emailtemp.php:1 3443 #: ../admin/ost-emailtemp.php:14 383 444 msgid "$Variables You can use In Email" 384 445 msgstr "$Variables يمكنك استخدام المتغيرات في البريد الإلكتروني" 385 446 386 #: ../admin/ost-emailtemp.php:1 5447 #: ../admin/ost-emailtemp.php:16 387 448 msgid "$username=\"User Name\"" 388 449 msgstr "$username=\"اسم المستخدم\"" 389 450 390 #: ../admin/ost-emailtemp.php:1 6451 #: ../admin/ost-emailtemp.php:17 391 452 msgid "$usermail=\"User Email\"" 392 453 msgstr "$usermail=\"بريد المستخدم\"" 393 454 394 #: ../admin/ost-emailtemp.php:1 7455 #: ../admin/ost-emailtemp.php:18 395 456 msgid "$ticketid=\"Ticket #\"" 396 457 msgstr "$ticketid=\"رقم البطاقة\"" 397 458 398 #: ../admin/ost-emailtemp.php:1 8459 #: ../admin/ost-emailtemp.php:19 399 460 msgid "$ticketurl=\"Ticket Url\"" 400 461 msgstr "$ticketurl=\"رابط البطاقة\"" 401 462 402 #: ../admin/ost-emailtemp.php: 19463 #: ../admin/ost-emailtemp.php:20 403 464 msgid "$ostitle=\"Support Title\"" 404 465 msgstr "$ostitle=\"عنوان الدعم\"" 405 466 406 #: ../admin/ost-emailtemp.php:2 0467 #: ../admin/ost-emailtemp.php:21 407 468 msgid "$siteurl=\"Support Url\"" 408 469 msgstr "$siteurl=\"رابط الدعم\"" 409 470 410 #: ../admin/ost-emailtemp.php:2 1471 #: ../admin/ost-emailtemp.php:22 411 472 msgid "$dname=\"Landing Page\"" 412 473 msgstr "$dname=\"الصفحة الرئيسية\"" 413 474 414 #: ../admin/ost-emailtemp.php:2 2475 #: ../admin/ost-emailtemp.php:23 415 476 msgid "$user_message=\"Users Message\"" 416 477 msgstr "$user_message=\"رسالة المستخدمين\"" 417 478 418 #: ../admin/ost-emailtemp.php:2 3479 #: ../admin/ost-emailtemp.php:24 419 480 msgid "$admin_response=\"Staff Message\"" 420 481 msgstr "$admin_response=\"رسالة الموظف\"" 421 482 422 #: ../admin/ost-emailtemp.php:2 4483 #: ../admin/ost-emailtemp.php:25 423 484 msgid "$signature=\"Staff/ Department Signature\"" 424 485 msgstr "$signature=\"توقيع القسم/الموظف\"" 425 486 426 #: ../admin/ost-emailtemp.php:2 5487 #: ../admin/ost-emailtemp.php:26 427 488 msgid "$ussubject=\"Ticket subject\"" 428 489 msgstr "$ussubject=\"عنوان البطاقة\"" 429 490 430 #: ../admin/ost-emailtemp.php:32 491 #: ../admin/ost-emailtemp.php:33 492 msgid "Admin Create Ticket Email Template" 493 msgstr "قالب رسالة إنشاء بطاقة للمدير" 494 495 #: ../admin/ost-emailtemp.php:33 496 msgid "We suggest using this template in the admin create ticket email below." 497 msgstr "نقترح عليك استعمال هذا القالب أدناه." 498 499 #: ../admin/ost-emailtemp.php:55 ../admin/ost-emailtemp.php:75 ../admin/ost-emailtemp.php:94 500 #: ../admin/ost-emailtemp.php:115 ../admin/ost-tickets.php:275 ../admin/ost-tickets.php:277 501 #: ../admin/ost-tickets.php:282 ../admin/ost-ticketview.php:269 ../templates/list_tickets.php:135 502 #: ../templates/view_ticket.php:290 503 msgid "Close" 504 msgstr "إغلاق" 505 506 #: ../admin/ost-emailtemp.php:64 507 msgid "Save - Admin Create Ticket Email" 508 msgstr "حفظ - رسالة إنشاء بطاقة للمدير" 509 510 #: ../admin/ost-emailtemp.php:69 431 511 msgid "New Ticket Email Template" 432 512 msgstr "قالب رسالة بطاقة جديدة" 433 513 434 #: ../admin/ost-emailtemp.php: 32 ../admin/ost-emailtemp.php:69514 #: ../admin/ost-emailtemp.php:69 ../admin/ost-emailtemp.php:109 435 515 msgid "We suggest using this template in the user confirmation email below." 436 516 msgstr "نقترح عليك استخدام هذا القالب في رسالة تأكيد المستخدم أدناه." 437 517 438 #: ../admin/ost-emailtemp.php:38 ../admin/ost-emailtemp.php:56 ../admin/ost-emailtemp.php:75 439 #: ../admin/ost-tickets.php:167 ../admin/ost-tickets.php:169 ../admin/ost-tickets.php:174 440 #: ../admin/ost-ticketview.php:241 ../templates/list_tickets.php:122 ../templates/view_ticket.php:263 441 msgid "Close" 442 msgstr "إغلاق" 443 444 #: ../admin/ost-emailtemp.php:45 518 #: ../admin/ost-emailtemp.php:83 445 519 msgid "Save - New Ticket Email" 446 520 msgstr "حفظ - رسالة بطاقة جديدة" 447 521 448 #: ../admin/ost-emailtemp.php: 50522 #: ../admin/ost-emailtemp.php:88 449 523 msgid "Admin Response Email Template" 450 524 msgstr "قالب بريد رد المشرف" 451 525 452 #: ../admin/ost-emailtemp.php: 50526 #: ../admin/ost-emailtemp.php:88 453 527 msgid "We suggest using this template in your post reply to user below." 454 528 msgstr "نحن نقترح عليك استخدام هذا القالب في الرد على المقالة للمستخدم أدناه." 455 529 456 #: ../admin/ost-emailtemp.php: 69530 #: ../admin/ost-emailtemp.php:109 457 531 msgid "User Post Confirmation Email Template" 458 532 msgstr "تأكيد قالب بريد الناشر" 459 533 460 #: ../admin/ost-emailtemp.php: 82534 #: ../admin/ost-emailtemp.php:123 461 535 msgid "Save - User Post Confirmation Email" 462 536 msgstr "حفظ - رسالة تأكيد مقالة المستخدم" 463 537 464 #: ../admin/ost-settings.php:8 ../ost-bridge.php:3 19 ../ost-bridge.php:333538 #: ../admin/ost-settings.php:8 ../ost-bridge.php:340 ../ost-bridge.php:354 465 539 msgid "osTicket Settings" 466 540 msgstr " إعدادات osTicket" … … 589 663 msgstr "حفظ الاعدادات" 590 664 591 #: ../admin/ost-tickets.php: 18665 #: ../admin/ost-tickets.php:21 592 666 #, php-format 593 667 msgid "%d record(s) has been deleted successfully" 594 668 msgstr "تم حذف %d سجل بنجاح" 595 669 596 #: ../admin/ost-tickets.php:3 4670 #: ../admin/ost-tickets.php:37 597 671 #, php-format 598 672 msgid "%d record(s) has been closed successfully" 599 673 msgstr "تم إغلاق %d سجل بنجاح" 600 674 601 #: ../admin/ost-tickets.php:5 0675 #: ../admin/ost-tickets.php:53 602 676 #, php-format 603 677 msgid "%d record(s) has been re-opened successfully" 604 678 msgstr "تم إعادة فتح %d سجل بنجاح" 605 679 606 #: ../admin/ost-tickets.php: 74 ../templates/list_tickets.php:41680 #: ../admin/ost-tickets.php:141 ../templates/list_tickets.php:52 607 681 msgid "Are you sure you want to continue?" 608 682 msgstr "هل أنت متأكد أنك تريد المتابعة ؟" 609 683 610 #: ../admin/ost-tickets.php: 76 ../ost-bridge.php:140 ../ost-bridge.php:142684 #: ../admin/ost-tickets.php:143 ../ost-bridge.php:148 ../ost-bridge.php:150 611 685 msgid "Support/Request List" 612 686 msgstr "الدعم/قائمة الطلبات" 613 687 614 #: ../admin/ost-tickets.php: 85688 #: ../admin/ost-tickets.php:168 615 689 msgid "Ticket #" 616 690 msgstr "بطاقة" 617 691 618 #: ../admin/ost-tickets.php: 88 ../admin/ost-ticketview.php:100 ../templates/list_tickets.php:50619 #: ../templates/view_ticket.php: 99692 #: ../admin/ost-tickets.php:171 ../admin/ost-ticketview.php:124 ../templates/list_tickets.php:61 693 #: ../templates/view_ticket.php:123 620 694 msgid "Department" 621 695 msgstr "قسم" 622 696 623 #: ../admin/ost-tickets.php: 89 ../templates/list_tickets.php:51697 #: ../admin/ost-tickets.php:173 ../templates/list_tickets.php:63 624 698 msgid "Date" 625 699 msgstr "تاريخ" 626 700 627 #: ../admin/ost-tickets.php: 129 ../admin/ost-ticketview.php:116 ../templates/view_ticket.php:114628 #: ../templates/view_ticket.php:1 28701 #: ../admin/ost-tickets.php:218 ../admin/ost-ticketview.php:140 ../templates/view_ticket.php:138 702 #: ../templates/view_ticket.php:152 629 703 msgid "Emergency" 630 704 msgstr "عاجل" 631 705 632 #: ../admin/ost-tickets.php: 132 ../admin/ost-ticketview.php:118 ../templates/view_ticket.php:116633 #: ../templates/view_ticket.php:1 30706 #: ../admin/ost-tickets.php:224 ../admin/ost-ticketview.php:142 ../templates/view_ticket.php:140 707 #: ../templates/view_ticket.php:154 634 708 msgid "High" 635 709 msgstr "مرتفع" 636 710 637 #: ../admin/ost-tickets.php: 135 ../admin/ost-tickets.php:138 ../admin/ost-ticketview.php:120638 #: ../ admin/ost-ticketview.php:124 ../templates/view_ticket.php:118 ../templates/view_ticket.php:122639 #: ../templates/view_ticket.php:1 32 ../templates/view_ticket.php:136711 #: ../admin/ost-tickets.php:230 ../admin/ost-ticketview.php:144 ../admin/ost-ticketview.php:148 712 #: ../templates/view_ticket.php:142 ../templates/view_ticket.php:146 ../templates/view_ticket.php:156 713 #: ../templates/view_ticket.php:160 640 714 msgid "Normal" 641 715 msgstr "عادي" 642 716 643 #: ../admin/ost-tickets.php: 141 ../admin/ost-ticketview.php:122 ../templates/view_ticket.php:120644 #: ../templates/view_ticket.php:1 34717 #: ../admin/ost-tickets.php:236 ../admin/ost-ticketview.php:146 ../templates/view_ticket.php:144 718 #: ../templates/view_ticket.php:158 645 719 msgid "Low" 646 720 msgstr "منخفض" 647 721 648 #: ../admin/ost-tickets.php:158 ../templates/list_tickets.php:112 649 msgid "No Records Found." 650 msgstr "لم يتم العثور على سجلات" 651 652 #: ../admin/ost-tickets.php:165 722 #: ../admin/ost-tickets.php:273 653 723 msgid "Delete" 654 724 msgstr "حذف" 655 725 656 #: ../admin/ost-tickets.php: 170 ../admin/ost-tickets.php:172 ../admin/ost-ticketview.php:239657 #: ../templates/view_ticket.php:2 60726 #: ../admin/ost-tickets.php:278 ../admin/ost-tickets.php:280 ../admin/ost-ticketview.php:267 727 #: ../templates/view_ticket.php:287 658 728 msgid "Reopen" 659 729 msgstr "إعادة فتح" 660 730 661 #: ../admin/ost-ticketview.php: 70731 #: ../admin/ost-ticketview.php:94 662 732 msgid "Reply to Support Request" 663 733 msgstr "رد على طلب الدعم" 664 734 665 #: ../admin/ost-ticketview.php: 77735 #: ../admin/ost-ticketview.php:101 666 736 msgid "Ticket ID" 667 737 msgstr "رقم البطاقة" 668 738 669 #: ../admin/ost-ticketview.php: 78 ../admin/ost-ticketview.php:254 ../templates/view_ticket.php:270739 #: ../admin/ost-ticketview.php:102 ../admin/ost-ticketview.php:282 ../templates/view_ticket.php:297 670 740 msgid "Post Reply" 671 741 msgstr "إضافة رد" 672 742 673 #: ../admin/ost-ticketview.php: 84 ../templates/view_ticket.php:85743 #: ../admin/ost-ticketview.php:108 ../templates/view_ticket.php:109 674 744 msgid "Ticket Status" 675 745 msgstr "حالة البطاقة" 676 746 677 #: ../admin/ost-ticketview.php:1 02747 #: ../admin/ost-ticketview.php:126 678 748 msgid "User Email" 679 749 msgstr "بريد المستخدم" 680 750 681 #: ../admin/ost-ticketview.php:1 06751 #: ../admin/ost-ticketview.php:130 682 752 msgid "Date Create" 683 753 msgstr "تاريخ الإنشاء" 684 754 685 #: ../admin/ost-ticketview.php:1 39 ../templates/view_ticket.php:150755 #: ../admin/ost-ticketview.php:167 ../templates/view_ticket.php:177 686 756 msgid "Ticket Thread" 687 757 msgstr "موضوع البطاقة" 688 758 689 #: ../admin/ost-ticketview.php: 185 ../templates/view_ticket.php:201759 #: ../admin/ost-ticketview.php:213 ../templates/view_ticket.php:228 690 760 msgid "Post a Reply" 691 761 msgstr "إضافة الرد" 692 762 693 #: ../admin/ost-ticketview.php:2 39 ../admin/ost-ticketview.php:241 ../templates/view_ticket.php:260694 #: ../templates/view_ticket.php:2 63763 #: ../admin/ost-ticketview.php:267 ../admin/ost-ticketview.php:269 ../templates/view_ticket.php:287 764 #: ../templates/view_ticket.php:290 695 765 msgid "Ticket On Reply" 696 766 msgstr "بطاقة رد" 697 767 698 #: ../admin/ost-ticketview.php:2 48768 #: ../admin/ost-ticketview.php:276 699 769 msgid "My signature" 700 770 msgstr "توقيعي" 701 771 702 #: ../admin/ost-ticketview.php:2 49772 #: ../admin/ost-ticketview.php:277 703 773 msgid "Dept. Signature" 704 774 msgstr "توقيع القسم" 705 775 706 #: ../admin/ost-ticketview.php:2 55776 #: ../admin/ost-ticketview.php:283 707 777 msgid "Cancel - Go Back" 708 778 msgstr "إلغاء - عودة للخلف" 709 779 710 #: ../ost-bridge.php: 53780 #: ../ost-bridge.php:61 711 781 msgid "Open Tickets" 712 782 msgstr "فتح البطاقات" 713 783 714 #: ../ost-bridge.php:1 32 ../ost-bridge.php:134784 #: ../ost-bridge.php:140 ../ost-bridge.php:142 715 785 msgid "Tickets" 716 786 msgstr "بطاقات" 717 787 718 #: ../ost-bridge.php:1 42788 #: ../ost-bridge.php:150 719 789 msgid "Email Tickets" 720 790 msgstr "بطاقات البريد" 721 791 722 #: ../ost-bridge.php:1 59792 #: ../ost-bridge.php:167 723 793 msgid "osT-Config" 724 794 msgstr "تكوين osT" 725 795 726 #: ../ost-bridge.php: 298 ../ost-bridge.php:305 ../ost-bridge.php:315 ../ost-bridge.php:329 ../ost-bridge.php:343796 #: ../ost-bridge.php:319 ../ost-bridge.php:326 ../ost-bridge.php:336 ../ost-bridge.php:350 ../ost-bridge.php:396 727 797 msgid "You do not have sufficient permissions to access this page." 728 798 msgstr "لا تملك صلاحيات الدخول لهذه الصفحة" 729 799 730 #: ../ost-bridge.php:3 19 ../ost-bridge.php:333 ../ost-bridge.php:347800 #: ../ost-bridge.php:340 ../ost-bridge.php:354 ../ost-bridge.php:400 731 801 msgid "" 732 802 "<p><b>Error:</b> You must complete \"osTicket Data Configure\" before this page will display... <a href=" … … 736 806 "هنا</a></p>" 737 807 738 #: ../templates/contact_ticket.php:42 ../templates/new_ticket.php:80 808 #: ../templates/contact_ticket.php:66 ../templates/new_ticket.php:42 809 msgid "Max file upload size" 810 msgstr "الحد الأقصى لحجم الملف" 811 812 #: ../templates/contact_ticket.php:150 ../templates/new_ticket.php:124 739 813 msgid "A new request has been created successfully!" 740 814 msgstr "تم إنشاء الطلب الجديد بنجاح!" 741 815 742 #: ../templates/contact_ticket.php: 45 ../templates/new_ticket.php:83816 #: ../templates/contact_ticket.php:153 ../templates/new_ticket.php:127 743 817 msgid "We are currently notifying the selected department staff..." 744 818 msgstr "يجري حالياً تنبيه موظفي القسم المحدّد..." 745 819 746 #: ../templates/contact_ticket.php: 49 ../templates/new_ticket.php:87820 #: ../templates/contact_ticket.php:157 ../templates/new_ticket.php:131 747 821 msgid "Thank you for contacting us!" 748 822 msgstr "نشكرك لتواصلك معنا!" 749 823 750 #: ../templates/contact_ticket.php: 64824 #: ../templates/contact_ticket.php:173 751 825 msgid "Full Name:" 752 826 msgstr "الاسم الكامل:" 753 827 754 #: ../templates/contact_ticket.php: 67828 #: ../templates/contact_ticket.php:176 755 829 msgid "Your Email:" 756 830 msgstr "بريدك الإلكتروني:" 757 831 758 #: ../templates/contact_ticket.php: 70832 #: ../templates/contact_ticket.php:183 759 833 msgid "Catagories:" 760 msgstr "ال تصنيفات:"761 762 #: ../templates/contact_ticket.php: 90 ../templates/new_ticket.php:139834 msgstr "الأقسام:" 835 836 #: ../templates/contact_ticket.php:217 ../templates/new_ticket.php:188 763 837 msgid "To best assist you, please be specific and detailed in your message" 764 838 msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في الرسالة" 765 839 766 #: ../templates/contact_ticket.php: 109840 #: ../templates/contact_ticket.php:260 767 841 msgid "Submit" 768 842 msgstr "إرسال" 769 843 770 844 # Listing Tickets 771 #: ../templates/list_tickets.php: 47845 #: ../templates/list_tickets.php:58 772 846 msgid "Tickets #" 773 847 msgstr "بطاقات" 774 848 775 #: ../templates/list_tickets.php: 49849 #: ../templates/list_tickets.php:60 776 850 msgid "Status" 777 851 msgstr "الحالة" 852 853 #: ../templates/list_tickets.php:125 854 msgid "No Records Found." 855 msgstr "لم يتم العثور على سجلات" 778 856 779 857 #: ../templates/message.php:7 … … 821 899 msgstr "أذهب" 822 900 823 #: ../templates/new_ticket.php:22 824 msgid "Max file upload size" 825 msgstr "الحد الأقصى لحجم الملف" 826 827 #: ../templates/new_ticket.php:96 901 #: ../templates/new_ticket.php:138 828 902 msgid "Open a New Ticket" 829 903 msgstr "فتح بطاقة جديدة" 830 904 831 #: ../templates/new_ticket.php:1 26905 #: ../templates/new_ticket.php:175 832 906 msgid "Priority:" 833 907 msgstr "الأولوية:" 834 908 835 #: ../templates/view_ticket.php: 80909 #: ../templates/view_ticket.php:104 836 910 msgid "Ticket ID #" 837 911 msgstr "رقم البطاقة" 838 912 839 #: ../templates/view_ticket.php: 96913 #: ../templates/view_ticket.php:120 840 914 msgid "Name" 841 915 msgstr "الاسم" 842 916 843 #: ../templates/view_ticket.php:1 01917 #: ../templates/view_ticket.php:125 844 918 msgid "Email" 845 919 msgstr "البريد الالكتروني" 846 920 847 #: ../templates/view_ticket.php:1 07921 #: ../templates/view_ticket.php:131 848 922 msgid "Create Date" 849 923 msgstr "تاريخ الانشاء" 850 924 851 #: ../templates/view_ticket.php:2 02925 #: ../templates/view_ticket.php:229 852 926 msgid "To best assist you, please be specific and detailed in your reply." 853 927 msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في ردكم." 854 928 855 #: ../templates/view_ticket.php:2 51929 #: ../templates/view_ticket.php:278 856 930 msgid "Attachments on the Filesystem plugin can be downloaded here :" 857 931 msgstr "يمكنك تحميل إضافة ملفات النظام من هنا:" 858 932 859 #: ../templates/view_ticket.php:2 72933 #: ../templates/view_ticket.php:299 860 934 msgid "Cancel" 861 935 msgstr "إلغاء" 862 936 863 #: ../templates/view_ticket.php: 281937 #: ../templates/view_ticket.php:308 864 938 msgid "No such ticket available." 865 939 msgstr "لا تتوفر مثل هذه البطاقة." -
key4ce-osticket-bridge/tags/1.3.1/ost-bridge.php
r1232510 r1236690 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.1 1) into wordpress. including user integration and scp6 Version: 1.3. 05 Description: Integrate osTicket (v1.9.3 - 1.9.12) into wordpress. including user integration and scp 6 Version: 1.3.1 7 7 Author: Key4ce 8 8 Author URI: https://key4ce.com -
key4ce-osticket-bridge/tags/1.3.1/readme.txt
r1232492 r1236690 102 102 - Fixed: Full name field properly adds full name. 103 103 - Fixed: Google re-captcha fields in the right order. 104 - Fixed: Admin reply 105 - Fixed: Time related issues. 104 106 105 107 = 1.3.0 = -
key4ce-osticket-bridge/tags/1.3.1/templates/contact_ticket.php
r1232501 r1236690 227 227 </tr> 228 228 <?php 229 if($keyost_contactfilestatus==1) 230 { 229 231 if ($attachement_status==1 || $attachement_status==true) { 230 232 if(key4ce_getPluginValue('Attachments on the filesystem')==1) … … 245 247 } 246 248 } 249 } 247 250 ?> 248 251 <?php … … 250 253 { 251 254 ?> 252 <script src= 'https://www.google.com/recaptcha/api.js'></script>255 <script src="https://www.google.com/recaptcha/api.js"></script> 253 256 <tr><td style="text-align: center;"> 254 257 <div class="g-recaptcha" data-sitekey="<?php echo $siteKey; ?>"></div> … … 268 271 } 269 272 ?> 270 271 273 <div class="key4ce_clear" style="padding: 10px;"></div> -
key4ce-osticket-bridge/tags/1.3.1/templates/list_tickets.php
r1232492 r1236690 23 23 } 24 24 } 25 $( document ).ready(function() {26 $('#key4ce_ticket_list .noEdit').click(function(e){25 jQuery( document ).ready(function() { 26 jQuery('#key4ce_ticket_list .noEdit').click(function(e){ 27 27 e.stopPropagation(); 28 28 }); 29 29 }); 30 30 </script> 31 <?php if($keyost_usercloseticket==0) { ?> 32 <style> 33 #key4ce_ticket_menu1 34 { 35 width: 8.5% !important; 36 } 37 #key4ce_ticket_list1 38 { 39 width: 8.5% !important; 40 } 41 #key4ce_ticket_menu2 42 { 43 width: 47% !important; 44 } 45 #key4ce_ticket_list2 46 { 47 width: 47% !important; 48 } 49 #key4ce_ticket_menu4 50 { 51 width:11% !important; 52 } 53 #key4ce_ticket_list4 54 { 55 width:11% !important; 56 } 57 #key4ce_ticket_menu5 58 { 59 width:11% !important; 60 } 61 #key4ce_ticket_list5 62 { 63 width:11% !important; 64 } 65 #key4ce_ticket_menu6 66 { 67 width:250px !important; 68 } 69 #key4ce_ticket_list6 70 { 71 width:250px !important; 72 } 73 </style> 74 <?php } ?> 31 75 <?php 32 76 $time_format=key4ce_getKeyValue('time_format'); … … 95 139 $ticket_tr="?service=view&ticket=".$list->number; 96 140 } 97 @$sub_str=Format::stripslashes($list->subject); 141 @$sub_str=Format::stripslashes($list->subject); 142 echo "<div id='key4ce_ticket_list' onclick=\"location.href='$ticket_view';\">"; 98 143 if($keyost_usercloseticket==1) 99 echo "<div id='key4ce_ticket_list' onclick=\"location.href='$ticket_view';\">";100 144 echo "<div id='key4ce_ticket_list0' class=\"noEdit\"><input type='checkbox' name='tickets[]' value='".$list->ticket_id."'></div>"; 101 145 echo "<div id='key4ce_ticket_list1'><a href=$ticket_view>".$list->number."</a></div>"; -
key4ce-osticket-bridge/tags/1.3.1/templates/new_ticket.php
r1232501 r1236690 30 30 $extimp = implode(',', array_map('add_quotes', $allowedExts)); 31 31 $finalary = "'" . $extimp . "'"; 32 //$my_unix_timestamp=current_time('mysql'); 33 //echo get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 34 //$config = get_option('os_ticket_config'); 35 //extract($config); 36 //$ost_wpdb = new wpdb($username, $password, $database, $host); 37 //echo current_time('mysql')."<br />"; 38 //$timeValue=$ost_wpdb->get_var("SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP) as newtime"); 39 //echo $timeValue; 40 //$newtimezone=explode(":",$timeValue); 41 //print_r($newtimezone); 42 //echo $newtimezone[0].$newtimezone[1]; 43 //date_default_timezone_set("UTC+2"); 44 //echo current_time('mysql')."<br />"; 45 //echo date('Y-m-d H:i:s T', time()) . "<br>\n"; 46 //date_default_timezone_set('UTC'); 47 //echo date('Y-m-d H:i:s T', time()) . "<br>\n"; 32 48 ?> 33 49 <script language="javascript" src="<?php echo plugin_dir_url(__FILE__) . '../js/jquery_1_7_2.js'; ?>"></script> -
key4ce-osticket-bridge/trunk/admin/admin_create_ticket.php
r1232501 r1236690 247 247 <div style="clear: both"></div> 248 248 <div id="key4ce_new_ticket_subject"><?php echo __("Subject", 'key4ce-osticket-bridge'); ?>:</div> 249 <div id="key4ce_new_ticket_subject_input"><input class="ost" id="subject" type="text" name="subject" size="35"/><font class=" key4ce_error"> *</font></div>249 <div id="key4ce_new_ticket_subject_input"><input class="ost" id="subject" type="text" name="subject" size="35"/><font class="error"> *</font></div> 250 250 <div style="clear: both"></div> 251 251 <div id="key4ce_new_ticket_catagory"><?php echo __("Catagories", 'key4ce-osticket-bridge'); ?>:</div> … … 258 258 } 259 259 ?> 260 </select><font class=" key4ce_error"> *</font>260 </select><font class="error"> *</font> 261 261 </div> 262 262 <div style="clear: both"></div> … … 271 271 // } 272 272 ?> 273 </select><font class=" key4ce_error"> *</font>273 </select><font class="error"> *</font> 274 274 </div> 275 275 --> … … 292 292 <table class="key4ce_welcome key4ce_nobd" align="center" width="95%" cellpadding="3" cellspacing="3" border="0"> 293 293 <tr> 294 <td class="key4ce_nobd" align="center"><div align="center" style="padding-bottom: 5px;"><?php echo __("To best assist you, please be specific and detailed in your message *", 'key4ce-osticket-bridge'); ?><font class=" key4ce_error"> *</font></div></td>294 <td class="key4ce_nobd" align="center"><div align="center" style="padding-bottom: 5px;"><?php echo __("To best assist you, please be specific and detailed in your message *", 'key4ce-osticket-bridge'); ?><font class="error"> *</font></div></td> 295 295 </tr> 296 296 -
key4ce-osticket-bridge/trunk/admin/adminticketmail.php
r1232492 r1236690 39 39 $isoverdue = 0; 40 40 $isans = 0; 41 $las_msg = date("Y-m-d g:i:s"); 42 $cre = date("Y-m-d g:i:s"); 41 $my_unix_timestamp=current_time('mysql'); 42 $las_msg =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 43 $cre =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 43 44 @$user_message = Format::stripslashes($_REQUEST['message']); 44 45 $prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id"); -
key4ce-osticket-bridge/trunk/admin/ost-config.php
r1232492 r1236690 27 27 @$keyost_departmentsetting = ($_REQUEST['keyost_departmentsetting']=="on") ? '1' : '0'; 28 28 @$keyost_defaultdepartmentsetting = $_REQUEST['keyost_defaultdepartmentsetting']; 29 @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0'; 29 @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0'; 30 30 @$keyost_defaulthelptopicsetting = $_REQUEST['keyost_defaulthelptopicsetting']; 31 @$keyost_contactfilestatus = ($_REQUEST['keyost_contactfilestatus']=="on") ? '1' : '0'; 31 32 $config=array('host'=>$host, 'database'=>$database, 'username'=>$username,'password'=>$password,'keyost_prefix'=>$keyost_prefix,'keyost_version'=>$keyost_version,'keyost_usercloseticket'=>$keyost_usercloseticket,'supportpage'=>$supportpage,'contactticketpage'=>$contactticketpage,'thankyoupage'=>$thankyoupage,'googlesecretkey'=>$googlesecretkey,'googlesitekey'=>$googlesitekey,'keyost_departmentsetting'=>$keyost_departmentsetting,'keyost_defaultdepartmentsetting'=>$keyost_defaultdepartmentsetting, 32 'keyost_helptopicsetting'=>$keyost_helptopicsetting,'keyost_defaulthelptopicsetting'=>$keyost_defaulthelptopicsetting );33 'keyost_helptopicsetting'=>$keyost_helptopicsetting,'keyost_defaulthelptopicsetting'=>$keyost_defaulthelptopicsetting,'keyost_contactfilestatus'=>$keyost_contactfilestatus); 33 34 if (($_REQUEST['host']=="") || ($_REQUEST['database']=="") || ($_REQUEST['username']=="") || ($_REQUEST['supportpage']=="") ) 34 35 { … … 100 101 extract($config); 101 102 ?> 102 <form name="mbform" action="admin.php?page=ost-config" method="post"> 103 <script type="text/javascript"> 104 $(function(){ 105 <?php if($keyost_departmentsetting==0) { ?> 106 $('.trdepartment').css("display:block"); 107 <?php }if($keyost_departmentsetting==1){ ?> 108 $('.trdepartment').css("display:none"); 109 <?php } ?> 110 <?php if($keyost_helptopicsetting==0) { ?> 111 $('.trhelptopic').css("display:block"); 112 <?php }if($keyost_helptopicsetting==1){ ?> 113 $('.trhelptopic').css("display:none"); 114 <?php } ?> 115 $('#keyost_departmentsetting').click(function() { 116 if(!$('#keyost_departmentsetting').is(':checked')) 117 { 118 $('.trdepartment').toggle('show'); 119 alert("Please Select Department"); 120 } 121 }); 122 $('#keyost_helptopicsetting').click(function() { 123 if(!$('#keyost_helptopicsetting').is(':checked')) 124 { 125 $('.trhelptopic').toggle('show'); 126 alert("Please Select Helptopic"); 127 } 128 }); 129 $("#ostconfig").click(function(){ 130 if(!$('#keyost_departmentsetting').is(':checked') && $( "#keyost_defaultdepartmentsetting" ).val()==0) 131 { 132 alert("Please Select Department"); 133 return false; 134 } 135 else if(!$('#keyost_helptopicsetting').is(':checked') && $( "#keyost_helptopicsetting" ).val()==0) 136 { 137 } 138 else 139 { 140 $("#ostconfigform").submit(); 141 } 142 }); 143 }); 144 </script> 145 <form name="mbform" action="admin.php?page=ost-config" method="post" id="ostconfigform"> 103 146 <table class="key4ce_cofigtb"> 104 147 <tr> … … 221 264 $config = get_option('os_ticket_config'); 222 265 extract($config); 223 if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_departmentsetting=="0") 224 { 225 ?> 226 <tr> 227 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Department on Contact Page:", 'key4ce-osticket-bridge'); ?></label></td> 266 if($keyost_departmentsetting=="0") 267 $trdepartment="display:table-row"; 268 else 269 $trdepartment="display:none"; 270 //if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && ) 271 //{ 272 ?> 273 <tr class="trdepartment" id="trdepartment" style="<?php echo $trdepartment; ?>"> 274 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Department on Contact Page:", 'key4ce-osticket-bridge'); ?><font class="key4ce_error"> *</font></label></td> 228 275 <td> 229 276 <?php … … 243 290 } 244 291 ?> 245 </select> <?php echo __("(Default Department on Contact Page :)", 'key4ce-osticket-bridge'); ?>246 </td> 247 </tr> 248 <?php } ?>292 </select> <?php echo __("(Default Department on Contact Page)", 'key4ce-osticket-bridge'); ?> 293 </td> 294 </tr> 295 <?php //} ?> 249 296 <!-- Department Configuration for Contact page end here--> 250 297 <!-- Helptopic Configuration for Contact page start here--> … … 254 301 </tr> 255 302 <?php 256 if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0") 257 { 303 if($keyost_helptopicsetting=="0") 304 $trhelptopic="display:table-row"; 305 else 306 $trhelptopic="display:none"; 307 //if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0") 308 //{ 258 309 $topic_table=$keyost_prefix."help_topic"; 259 310 $topic_opt = $ost_wpdb->get_results("SELECT topic_id,topic FROM $topic_table where ispublic=1 and isactive=1 ORDER BY `sort` ASC "); 260 311 ?> 261 <tr >262 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Helptopic on Contact Page:", 'key4ce-osticket-bridge'); ?>< /label></td>312 <tr class="trhelptopic" id="trhelptopic" style="<?php echo $trhelptopic; ?>"> 313 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Default Helptopic on Contact Page:", 'key4ce-osticket-bridge'); ?><font class="key4ce_error"> *</font></label></td> 263 314 <td> 264 315 <select id="keyost_defaulthelptopicsetting" name="keyost_defaulthelptopicsetting"> … … 272 323 } 273 324 ?> 274 </select> <?php echo __("(Default Helptopic on Contact Page :)", 'key4ce-osticket-bridge'); ?>275 </td> 276 </tr> 277 <?php 278 }325 </select> <?php echo __("(Default Helptopic on Contact Page)", 'key4ce-osticket-bridge'); ?> 326 </td> 327 </tr> 328 <?php 329 //} 279 330 ?> 280 331 <!-- Helptopic Configuration for Contact page end here--> 332 <!-- Contact Page File Attachement Enable/Disable Start Here--> 333 <tr> 334 <td class="key4ce_config_td"><label class="key4ce_config_label"><?php echo __("Enable File Attachement on Contact Page:", 'key4ce-osticket-bridge'); ?></label></td> 335 <td><input type="checkbox" name="keyost_contactfilestatus" id="keyost_contactfilestatus" <?php echo (@$keyost_contactfilestatus=="1") ? 'checked' : ''; ?>/> </td> 336 </tr> 337 <!-- Contact Page File Attachement Enable/Disable End Here --> 338 281 339 </table> 282 340 <div style="padding: 30px;"> 283 <input type="submit" name="submit" class="key4ce_button-primary" value="<?php echo __('Save Changes', 'key4ce-osticket-bridge'); ?>" />341 <input type="submit" name="submit" class="key4ce_button-primary" id="ostconfig" value="<?php echo __('Save Changes', 'key4ce-osticket-bridge'); ?>" /> 284 342 </div> 285 343 </form> -
key4ce-osticket-bridge/trunk/admin/ost-postreplymail.php
r1232492 r1236690 52 52 $admin_response=@Format::stripslashes($_REQUEST['message']); ///from post to thread-table to variable to email 53 53 $ipaddress=$_SERVER['REMOTE_ADDR']; 54 $date=date("Y-m-d g:i:s"); ///EST (todo's - add option to WP osT-Settings) 55 54 //$date=date("Y-m-d g:i:s"); ///EST (todo's - add option to WP osT-Settings) 55 $my_unix_timestamp=current_time('mysql'); 56 $date =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 56 57 $ost_wpdb->insert($thread_table, array('pid'=>$pid,'ticket_id'=>$ticid,'staff_id'=>$staffid,'thread_type'=>$thread_type,'poster'=>$poster,'source'=>$source,'title'=>"",'body'=>key4ce_wpetss_forum_text($admin_response),'ip_address'=>$ipaddress,'created'=>$date), array('%d','%d','%d','%s','%s','%s','%s','%s','%s','%s')); 57 58 $thread_id = $ost_wpdb->insert_id; … … 187 188 $phpmailer->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 188 189 $phpmailer->MsgHTML('<div style="display: none;">-- do not reply below this line -- <br/><br/></div>' . $message); 189 if (!empty($_FILES['file']['name'][0]))190 {191 $helpdesk_url=key4ce_getKeyValue('helpdesk_url');192 $file_url=$helpdesk_url."file.php?key=".$key4ce_generateHashKey."&expires=1440720000&signature=".$key4ce_generateHashSignature;193 $phpmailer->AddAttachment($file_url,$realfilename);194 }195 190 $phpmailer->AddAddress($to); 196 191 $phpmailer->Send(); … … 208 203 $phpmailer->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test 209 204 $phpmailer->MsgHTML('<div style="display: none;">-- do not reply below this line -- <br/><br/></div>' . $message); 210 if (!empty($_FILES['file']['name'][0]))211 {212 $minage = $minage ?: 43200;213 $gmnow = time()-date('Z') + $minage;214 $expires = $gmnow + 86400 - ($gmnow % 86400);215 $table_prefix_osticket=$keyost_prefix;216 $admin_email_mail=key4ce_getKeyValue('helpdesk_url');217 $secret_salt=md5($table_prefix_osticket.$admin_email_mail);218 function genUrlSignature($id, $key, $signature, $expires) {219 $pieces = array(220 'Host='.$_SERVER['HTTP_HOST'],221 'Path=http://ticket.zovira.com/ticket1912/',222 'Id='.$id,223 'Key='.strtolower($key),224 'Hash='.$signature,225 'Expires='.$expires,226 );227 return hash_hmac('sha1', implode("\n", $pieces), $secret_salt);228 }229 $helpdesk_url=key4ce_getKeyValue('helpdesk_url');230 $disposition=false;231 $signature =genUrlSignature($file_id,$key4ce_generateHashKey,$key4ce_generateHashSignature,$expires);232 $args = array(233 'key' => strtolower($key4ce_generateHashKey),234 'expires' => $expires,235 'signature' => $signature,236 );237 echo $file_url=$helpdesk_url."file.php?".http_build_query($args);238 exit;239 $phpmailer->AddAttachment($file_url,$realfilename);240 }241 205 $phpmailer->Send(); 242 206 } 243 exit;244 207 ?> -
key4ce-osticket-bridge/trunk/css/admin-style.css
r1232501 r1236690 512 512 color: #FF0000; 513 513 } 514 .error { 515 color: #FF0000; 516 } 514 517 #key4ce_msg_notice { 515 518 margin: 20px 20px 20px 20px; -
key4ce-osticket-bridge/trunk/css/style.css
r1232501 r1236690 675 675 color: #FF0000; 676 676 } 677 .error { 678 color: #FF0000; 679 } 677 680 #key4ce_msg_notice { 678 681 margin: 20px 20px 20px 20px; -
key4ce-osticket-bridge/trunk/includes/contactticketmail.php
r1232492 r1236690 22 22 $os_admin_email_id = $os_admin_email->value; 23 23 $os_admin_email_address = $ost_wpdb->get_row("SELECT email,name FROM " . $keyost_prefix . "email where email_id=" . $os_admin_email_id . ""); 24 if($keyost_de faultdepartmentsetting!="" && $keyost_defaultdepartmentsetting==0)25 $dep_id = @$_REQUEST['deptId'];24 if($keyost_departmentsetting==1) 25 $dep_id =$_REQUEST['deptId']; 26 26 else 27 $dep_id= @$keyost_defaultdepartmentsetting;27 $dep_id=$keyost_defaultdepartmentsetting; 28 28 29 29 $sla_id = 1; 30 30 $pri_id = 2; 31 if($keyost_ defaulthelptopicsetting!="" && $keyost_defaulthelptopicsetting==0)32 @$top_id =$_REQUEST['topicId'];31 if($keyost_helptopicsetting==1) 32 $top_id =$_REQUEST['topicId']; 33 33 else 34 $top_id= @$keyost_defaulthelptopicsetting;34 $top_id=$keyost_defaulthelptopicsetting; 35 35 $staff_id = 0; 36 36 $team_id = 0; … … 53 53 $isoverdue = 0; 54 54 $isans = 0; 55 $las_msg = date("Y-m-d, g:i:s", strtotime("-5 hour")); 56 $cre = date("Y-m-d, g:i:s", strtotime("-5 hour")); 55 $my_unix_timestamp=current_time('mysql'); 56 $las_msg =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 57 $cre =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 57 58 @$user_message = Format::stripslashes($_REQUEST['message']); 58 59 $prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id"); … … 62 63 if(isset($_POST['g-recaptcha-response'])) 63 64 { 65 ?> 66 <?php 64 67 $captcha=$_POST['g-recaptcha-response']; 65 68 $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); 66 69 } 67 if (isset($_REQUEST['create-contact-ticket']) && $response['success']==true) { 68 if($keyost_version==193) 69 { 70 $attachement_status=key4ce_getKeyValue('allow_attachments'); 71 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 72 $max_file_size=key4ce_getKeyValue('max_file_size'); 73 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 74 } 75 else 76 { 77 $fileconfig=key4ce_FileConfigValue(); 78 $filedata=json_decode($fileconfig); 79 $attachement_status=$filedata->attachments; 80 $max_user_file_uploads=$filedata->max; 81 $max_file_size=$filedata->size; 82 $fileextesnions=$filedata->extensions; 83 } 70 if (isset($_REQUEST['create-contact-ticket']) && $response['success']==1) { 71 84 72 // Added by Pratik Maniar on 29-04-2014 Start Here 85 73 $dept_details = $ost_wpdb->get_row("SELECT dept_id,dept_name FROM $dept_table WHERE dept_id=$dep_id"); … … 103 91 $last_ost_user_id = $ost_wpdb->insert_id; 104 92 if ($usid == "") 105 $ost_wpdb->query("UPDATE " . $keyost_prefix . "user_email SET user_id=$last_ost_user_id where id=$last_ost_user_email_id"); 106 107 108 93 $ost_wpdb->query("UPDATE " . $keyost_prefix . "user_email SET user_id=$last_ost_user_id where id=$last_ost_user_email_id"); 109 94 } 110 95 ////End of new user info user_email_id email_id … … 125 110 if (!empty($_FILES['file']['name'][0])) 126 111 { 112 if($keyost_version==193) 113 { 114 $attachement_status=key4ce_getKeyValue('allow_attachments'); 115 $max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads'); 116 $max_file_size=key4ce_getKeyValue('max_file_size'); 117 $fileextesnions=key4ce_getKeyValue('allowed_filetypes'); 118 } 119 else 120 { 121 $fileconfig=key4ce_FileConfigValue(); 122 $filedata=json_decode($fileconfig); 123 $attachement_status=$filedata->attachments; 124 $max_user_file_uploads=$filedata->max; 125 $max_file_size=$filedata->size; 126 $fileextesnions=$filedata->extensions; 127 } 127 128 $fileids=array(); 128 129 for ($i = 0; $i < count($_FILES['file']['name']); $i++) -
key4ce-osticket-bridge/trunk/includes/newticketmail.php
r1121801 r1236690 11 11 get_currentuserinfo(); 12 12 $wp_user_email_id = $current_user->user_email; 13 14 13 $tic_ID = key4ce_generateID(); 15 14 $checkUserID = $ost_wpdb->get_results("SELECT number from $ticket_table WHERE number = '$tic_ID'"); … … 43 42 $isoverdue = 0; 44 43 $isans = 0; 45 $las_msg = date("Y-m-d g:i:s",strtotime('+1 hours')); 46 $cre = date("Y-m-d g:i:s",strtotime('+1 hours')); 44 $my_unix_timestamp=current_time('mysql'); 45 $las_msg =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 46 $cre =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 47 47 @$user_message = Format::stripslashes($_REQUEST['message']); 48 48 $prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id"); -
key4ce-osticket-bridge/trunk/includes/postreplymail.php
r1121801 r1236690 26 26 $user_message=@Format::stripslashes($_REQUEST['message']); 27 27 $ipaddress=$_SERVER['REMOTE_ADDR']; 28 $date=date("Y-m-d g:i:s"); 28 $my_unix_timestamp=current_time('mysql'); 29 $date =get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 29 30 $ticket_details=$ost_wpdb->get_row("SELECT * FROM $ticket_table WHERE number=$usticketid"); 30 31 $dep_id=$ticket_details->dept_id; -
key4ce-osticket-bridge/trunk/js/validate.js
r1226493 r1236690 1 function validateFormNewTicket(){var x=document.forms["newticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }}function validateFormContactTicket(){var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") { alert("Please enter a email!"); return false; }if(x!=""){var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Please enter valid email address!"); return false; }}var x=document.forms["contactticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["contactticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; }var x=document.forms["contactticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateAdminFormNewTicket(){var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }}function validateFormContactTicket(){var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") { alert("Please enter a email!"); return false; }if(x!=""){var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Please enter valid email address!"); return false; }}var x=document.forms["contactticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["contactticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; }var x=document.forms["contactticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } } 1 function validateFormNewTicket(){var x=document.forms["newticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }}function validateFormContactTicket(){var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") { alert("Please enter your name!"); return false; }var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") { alert("Please enter a email!"); return false; }if(x!=""){var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Please enter valid email address!"); return false; }}var x=document.forms["contactticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["contactticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; }var x=document.forms["contactticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateAdminFormNewTicket(){var x=document.forms["newticket"]["subject"].value;if (x==null || x=="") { alert("Please enter a subject!"); return false; }var x=document.forms["newticket"]["deptId"].value;if (x==null || x=="") { alert("Please select a category!"); return false; } var x=document.forms["newticket"]["topicId"].value;if (x==null || x=="") { alert("Please select a help topic!"); return false; }var x=document.forms["newticket"]["priorityId"].value;if (x==null || x=="") { alert("Please select a priority level!"); return false; } var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; } }function validateFormReply(){var editorContent = tinyMCE.get('message').getContent(); if (editorContent == '' || editorContent==null) { alert("Message field cannot be empty!"); return false; }}function validateFormSearch(){var x=document.forms["search"]["tq"].value;if (x==null || x=="") { alert("Search field cannot be empty!"); return false; }}function validateFormLogin(){var x=document.forms["login"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["login"]["user_pass"].value;if (x==null || x=="") { alert("Password field cannot be empty!"); return false; }}function validateFormRegister(){var x=document.forms["user_new"]["user_login"].value;if (x==null || x=="") { alert("Username field cannot be empty!"); return false; }var x=document.forms["user_new"]["user_email"].value;var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid email address!"); return false; }}function validateFormForgot(){var x=document.forms["lostpasswordform"]["user_login"].value;if (x==null || x=="") { alert("Username/Email field cannot be empty!"); return false; }} 2 function validateFormContactTicket() 3 { 4 var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") 5 { alert("Please enter your name!"); return false; } 6 var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") 7 { alert("Please enter a email!"); return false; }if(x!="") 8 { 9 var atpos=x.indexOf("@");var dotpos=x.lastIndexOf("."); 10 if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) 11 { alert("Please enter valid email address!"); 12 return false; 13 } 14 } 15 var x=document.forms["contactticket"]["subject"].value; 16 if (x==null || x=="") 17 { alert("Please enter a subject!"); 18 return false; 19 } 20 var x=document.forms["contactticket"]["deptId"].value; 21 if (x==null || x=="") 22 { alert("Please select a category!"); 23 return false; 24 } 25 var x=document.forms["contactticket"]["priorityId"].value; 26 if (x==null || x=="") 27 { 28 alert("Please select a priority level!"); 29 return false; 30 } 31 var editorContent = tinyMCE.get('message').getContent(); 32 if (editorContent == '' || editorContent==null) 33 { 34 alert("Message field cannot be empty!"); 35 return false; 36 } 37 var captcha_response = grecaptcha.getResponse(); 38 if(captcha_response.length == 0) 39 { 40 alert("Please validate captcha"); 41 return false; 42 } 43 } -
key4ce-osticket-bridge/trunk/ost-bridge.php
r1232507 r1236690 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.1 1) into wordpress. including user integration and scp6 Version: 1.3. 05 Description: Integrate osTicket (v1.9.3 - 1.9.12) into wordpress. including user integration and scp 6 Version: 1.3.1 7 7 Author: Key4ce 8 8 Author URI: https://key4ce.com -
key4ce-osticket-bridge/trunk/readme.txt
r1232513 r1236690 5 5 Requires at least: 3.5 6 6 Tested up to: 4.3 7 Stable tag: 1.3. 07 Stable tag: 1.3.1 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.1 110 Get your own advanced ticket system in Wordpress and Integrate osTicket into your wordpress site. Works with osTicket 1.9.3 - 1.9.12 11 11 12 12 == Description == … … 102 102 - Fixed: Full name field properly adds full name. 103 103 - Fixed: Google re-captcha fields in the right order. 104 - Fixed: Admin reply 105 - Fixed: Time related issues. 104 106 105 107 = 1.3.0 = -
key4ce-osticket-bridge/trunk/templates/contact_ticket.php
r1232501 r1236690 227 227 </tr> 228 228 <?php 229 if($keyost_contactfilestatus==1) 230 { 229 231 if ($attachement_status==1 || $attachement_status==true) { 230 232 if(key4ce_getPluginValue('Attachments on the filesystem')==1) … … 245 247 } 246 248 } 249 } 247 250 ?> 248 251 <?php … … 250 253 { 251 254 ?> 252 <script src= 'https://www.google.com/recaptcha/api.js'></script>255 <script src="https://www.google.com/recaptcha/api.js"></script> 253 256 <tr><td style="text-align: center;"> 254 257 <div class="g-recaptcha" data-sitekey="<?php echo $siteKey; ?>"></div> … … 268 271 } 269 272 ?> 270 271 273 <div class="key4ce_clear" style="padding: 10px;"></div> -
key4ce-osticket-bridge/trunk/templates/list_tickets.php
r1226493 r1236690 23 23 } 24 24 } 25 $( document ).ready(function() {26 $('#key4ce_ticket_list .noEdit').click(function(e){25 jQuery( document ).ready(function() { 26 jQuery('#key4ce_ticket_list .noEdit').click(function(e){ 27 27 e.stopPropagation(); 28 28 }); 29 29 }); 30 30 </script> 31 <?php if($keyost_usercloseticket==0) { ?> 32 <style> 33 #key4ce_ticket_menu1 34 { 35 width: 8.5% !important; 36 } 37 #key4ce_ticket_list1 38 { 39 width: 8.5% !important; 40 } 41 #key4ce_ticket_menu2 42 { 43 width: 47% !important; 44 } 45 #key4ce_ticket_list2 46 { 47 width: 47% !important; 48 } 49 #key4ce_ticket_menu4 50 { 51 width:11% !important; 52 } 53 #key4ce_ticket_list4 54 { 55 width:11% !important; 56 } 57 #key4ce_ticket_menu5 58 { 59 width:11% !important; 60 } 61 #key4ce_ticket_list5 62 { 63 width:11% !important; 64 } 65 #key4ce_ticket_menu6 66 { 67 width:250px !important; 68 } 69 #key4ce_ticket_list6 70 { 71 width:250px !important; 72 } 73 </style> 74 <?php } ?> 31 75 <?php 32 76 $time_format=key4ce_getKeyValue('time_format'); … … 95 139 $ticket_tr="?service=view&ticket=".$list->number; 96 140 } 97 @$sub_str=Format::stripslashes($list->subject); 141 @$sub_str=Format::stripslashes($list->subject); 142 echo "<div id='key4ce_ticket_list' onclick=\"location.href='$ticket_view';\">"; 98 143 if($keyost_usercloseticket==1) 99 echo "<div id='key4ce_ticket_list' onclick=\"location.href='$ticket_view';\">";100 144 echo "<div id='key4ce_ticket_list0' class=\"noEdit\"><input type='checkbox' name='tickets[]' value='".$list->ticket_id."'></div>"; 101 145 echo "<div id='key4ce_ticket_list1'><a href=$ticket_view>".$list->number."</a></div>"; -
key4ce-osticket-bridge/trunk/templates/new_ticket.php
r1232501 r1236690 30 30 $extimp = implode(',', array_map('add_quotes', $allowedExts)); 31 31 $finalary = "'" . $extimp . "'"; 32 //$my_unix_timestamp=current_time('mysql'); 33 //echo get_date_from_gmt( date( 'Y-m-d H:i:s', strtotime($my_unix_timestamp)), 'Y-m-d H:i:s' ); 34 //$config = get_option('os_ticket_config'); 35 //extract($config); 36 //$ost_wpdb = new wpdb($username, $password, $database, $host); 37 //echo current_time('mysql')."<br />"; 38 //$timeValue=$ost_wpdb->get_var("SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP) as newtime"); 39 //echo $timeValue; 40 //$newtimezone=explode(":",$timeValue); 41 //print_r($newtimezone); 42 //echo $newtimezone[0].$newtimezone[1]; 43 //date_default_timezone_set("UTC+2"); 44 //echo current_time('mysql')."<br />"; 45 //echo date('Y-m-d H:i:s T', time()) . "<br>\n"; 46 //date_default_timezone_set('UTC'); 47 //echo date('Y-m-d H:i:s T', time()) . "<br>\n"; 32 48 ?> 33 49 <script language="javascript" src="<?php echo plugin_dir_url(__FILE__) . '../js/jquery_1_7_2.js'; ?>"></script>
Note: See TracChangeset
for help on using the changeset viewer.