Plugin Directory

Changeset 1236690


Ignore:
Timestamp:
09/02/2015 09:36:00 PM (11 years ago)
Author:
m.tiggelaar
Message:

1.3.1 update with style fixes, time fixes, and code fixes.

Location:
key4ce-osticket-bridge
Files:
124 added
32 edited

Legend:

Unmodified
Added
Removed
  • key4ce-osticket-bridge/tags/1.3.1/admin/admin_create_ticket.php

    r1232501 r1236690  
    247247            <div style="clear: both"></div>
    248248            <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">&nbsp;*</font></div>
     249            <div id="key4ce_new_ticket_subject_input"><input class="ost" id="subject" type="text" name="subject" size="35"/><font class="error">&nbsp;*</font></div>
    250250            <div style="clear: both"></div>
    251251            <div id="key4ce_new_ticket_catagory"><?php echo __("Catagories", 'key4ce-osticket-bridge'); ?>:</div>
     
    258258                    }
    259259                    ?>
    260                 </select><font class="key4ce_error">&nbsp;*</font>
     260                </select><font class="error">&nbsp;*</font>
    261261                </div>
    262262                <div style="clear: both"></div>
     
    271271                   // }
    272272                    ?>
    273                 </select><font class="key4ce_error">&nbsp;*</font>
     273                </select><font class="error">&nbsp;*</font>
    274274            </div>
    275275            -->
     
    292292    <table class="key4ce_welcome key4ce_nobd" align="center" width="95%" cellpadding="3" cellspacing="3" border="0">
    293293        <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">&nbsp;*</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">&nbsp;*</font></div></td>
    295295        </tr>
    296296
  • key4ce-osticket-bridge/tags/1.3.1/admin/adminticketmail.php

    r1232492 r1236690  
    3939$isoverdue = 0;
    4040$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' );
    4344@$user_message = Format::stripslashes($_REQUEST['message']);
    4445$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  
    2727    @$keyost_departmentsetting = ($_REQUEST['keyost_departmentsetting']=="on") ? '1' : '0';
    2828    @$keyost_defaultdepartmentsetting = $_REQUEST['keyost_defaultdepartmentsetting'];
    29     @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0';
     29    @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0';   
    3030    @$keyost_defaulthelptopicsetting = $_REQUEST['keyost_defaulthelptopicsetting'];
     31    @$keyost_contactfilestatus = ($_REQUEST['keyost_contactfilestatus']=="on") ? '1' : '0';
    3132    $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);         
    3334    if (($_REQUEST['host']=="") || ($_REQUEST['database']=="") || ($_REQUEST['username']=="") || ($_REQUEST['supportpage']=="") )
    3435    {
     
    100101extract($config);
    101102?>
    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">
    103146<table class="key4ce_cofigtb">
    104147<tr>
     
    221264$config = get_option('os_ticket_config');
    222265extract($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>               
     266if($keyost_departmentsetting=="0")
     267        $trdepartment="display:table-row";
     268else
     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">&nbsp;*</font></label></td>               
    228275<td>
    229276<?php
     
    243290}
    244291?>
    245 </select>&nbsp;&nbsp;<?php echo __("(Default Department on Contact Page:)", 'key4ce-osticket-bridge'); ?>
    246 </td>
    247 </tr>
    248 <?php } ?>
     292</select>&nbsp;&nbsp;<?php echo __("(Default Department on Contact Page)", 'key4ce-osticket-bridge'); ?>
     293</td>
     294</tr>
     295<?php //} ?>
    249296<!-- Department Configuration for Contact page end here-->
    250297<!-- Helptopic Configuration for Contact page start here-->
     
    254301</tr>
    255302<?php
    256 if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0")
    257 {
     303if($keyost_helptopicsetting=="0")
     304        $trhelptopic="display:table-row";
     305else
     306        $trhelptopic="display:none";
     307//if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0")
     308//{
    258309$topic_table=$keyost_prefix."help_topic";
    259310$topic_opt = $ost_wpdb->get_results("SELECT topic_id,topic FROM $topic_table  where ispublic=1 and isactive=1 ORDER BY `sort` ASC ");
    260311?>
    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">&nbsp;*</font></label></td>               
    263314<td>
    264315<select id="keyost_defaulthelptopicsetting" name="keyost_defaulthelptopicsetting">
     
    272323        }
    273324        ?>               
    274 </select>&nbsp;&nbsp;<?php echo __("(Default Helptopic on Contact Page:)", 'key4ce-osticket-bridge'); ?>
    275 </td>
    276 </tr>
    277 <?php
    278 }
     325</select>&nbsp;&nbsp;<?php echo __("(Default Helptopic on Contact Page)", 'key4ce-osticket-bridge'); ?>
     326</td>
     327</tr>
     328<?php
     329//}
    279330?>
    280331<!-- 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' : ''; ?>/>&nbsp;&nbsp;</td>
     336</tr>
     337<!-- Contact Page File Attachement Enable/Disable End Here -->
     338
    281339</table>
    282340<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'); ?>" />
    284342</div>
    285343</form>
  • key4ce-osticket-bridge/tags/1.3.1/admin/ost-postreplymail.php

    r1232492 r1236690  
    5252$admin_response=@Format::stripslashes($_REQUEST['message']); ///from post to thread-table to variable to email
    5353$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' );
    5657$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'));
    5758$thread_id = $ost_wpdb->insert_id;
     
    187188$phpmailer->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
    188189$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 }
    195190$phpmailer->AddAddress($to);
    196191$phpmailer->Send();
     
    208203$phpmailer->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
    209204$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 }
    241205$phpmailer->Send();
    242206}
    243 exit;
    244207?>
  • key4ce-osticket-bridge/tags/1.3.1/css/admin-style.css

    r1232501 r1236690  
    512512    color: #FF0000;
    513513}
     514.error {
     515    color: #FF0000;
     516}
    514517#key4ce_msg_notice {
    515518  margin: 20px 20px 20px 20px;
  • key4ce-osticket-bridge/tags/1.3.1/css/style.css

    r1232501 r1236690  
    675675    color: #FF0000;
    676676}
     677.error {
     678    color: #FF0000;
     679}
    677680#key4ce_msg_notice {
    678681  margin: 20px 20px 20px 20px;
  • key4ce-osticket-bridge/tags/1.3.1/includes/contactticketmail.php

    r1232492 r1236690  
    2222$os_admin_email_id = $os_admin_email->value;
    2323$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_defaultdepartmentsetting!="" && $keyost_defaultdepartmentsetting==0)
    25     $dep_id = @$_REQUEST['deptId'];
     24if($keyost_departmentsetting==1)
     25    $dep_id =$_REQUEST['deptId'];
    2626else
    27     $dep_id=@$keyost_defaultdepartmentsetting;
     27    $dep_id=$keyost_defaultdepartmentsetting;
    2828
    2929$sla_id = 1;
    3030$pri_id = 2;
    31 if($keyost_defaulthelptopicsetting!="" && $keyost_defaulthelptopicsetting==0)
    32     @$top_id = $_REQUEST['topicId'];
     31if($keyost_helptopicsetting==1)
     32    $top_id =$_REQUEST['topicId'];
    3333else
    34     $top_id=@$keyost_defaulthelptopicsetting;
     34    $top_id=$keyost_defaulthelptopicsetting;
    3535$staff_id = 0;
    3636$team_id = 0;
     
    5353$isoverdue = 0;
    5454$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' );
    5758@$user_message = Format::stripslashes($_REQUEST['message']);
    5859$prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id");
     
    6263if(isset($_POST['g-recaptcha-response']))
    6364{
     65?>
     66<?php
    6467    $captcha=$_POST['g-recaptcha-response'];
    6568    $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true);
    6669}
    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 }
     70if (isset($_REQUEST['create-contact-ticket']) && $response['success']==1) {
     71
    8472// Added by Pratik Maniar on 29-04-2014 Start Here
    8573    $dept_details = $ost_wpdb->get_row("SELECT dept_id,dept_name FROM $dept_table WHERE dept_id=$dep_id");
     
    10391        $last_ost_user_id = $ost_wpdb->insert_id;
    10492    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");     
    10994    }
    11095////End of new user info user_email_id email_id
     
    125110if (!empty($_FILES['file']['name'][0]))
    126111{   
     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    }
    127128   $fileids=array();
    128129   for ($i = 0; $i < count($_FILES['file']['name']); $i++)
  • key4ce-osticket-bridge/tags/1.3.1/includes/newticketmail.php

    r1232492 r1236690  
    1111get_currentuserinfo();
    1212$wp_user_email_id = $current_user->user_email;
    13 
    1413$tic_ID = key4ce_generateID();
    1514$checkUserID = $ost_wpdb->get_results("SELECT number from $ticket_table WHERE number = '$tic_ID'");
     
    4342$isoverdue = 0;
    4443$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' );
    4747@$user_message = Format::stripslashes($_REQUEST['message']);
    4848$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  
    2626$user_message=@Format::stripslashes($_REQUEST['message']);
    2727$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' );
    2930$ticket_details=$ost_wpdb->get_row("SELECT * FROM $ticket_table WHERE number=$usticketid");
    3031$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; }   }
     1function 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;  }}
     2function validateFormContactTicket()
     3{
     4var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") 
     5{  alert("Please enter your name!");  return false;  }
     6var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") 
     7{  alert("Please enter a email!");  return false;  }if(x!="")
     8{
     9var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");
     10if (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 }
     37var 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  
    88"Project-Id-Version: key4ce-osticket-bridge 1.0\n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2015-03-09 12:25+0200\n"
    11 "PO-Revision-Date: 2015-03-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"
    1212"Last-Translator: Muhammad Bashir Al-Noimi <[email protected]>\n"
    1313"Language-Team: none\n"
     
    2525"X-Poedit-SearchPath-1: ..\n"
    2626
    27 #: ../admin/admin_create_ticket.php:83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:22
    28 #: ../templates/view_ticket.php:26 ../templates/view_ticket.php:244
     27#: ../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
    2929msgid "Attachment"
    3030msgstr "مرفق"
    3131
    32 #: ../admin/admin_create_ticket.php:83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:22
    33 #: ../templates/view_ticket.php:26
     32#: ../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
    3434msgid "Remove"
    3535msgstr "إزالة"
    3636
    37 #: ../admin/admin_create_ticket.php:88 ../admin/ost-ticketview.php:27 ../templates/new_ticket.php:27
    38 #: ../templates/view_ticket.php:31
     37#: ../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
    3939msgid "You have exceeds your file upload limit"
    4040msgstr "لقد تجاوزت حد الرفع المسموح لك"
    4141
    42 #: ../admin/admin_create_ticket.php:115 ../admin/ost-ticketview.php:54 ../templates/new_ticket.php:54
    43 #: ../templates/view_ticket.php:58
     42#: ../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
    4444msgid "Please make sure your file is less than"
    4545msgstr "يرجى الـتأكد أن حجم الملف أقل من"
    4646
    47 #: ../admin/admin_create_ticket.php:121 ../admin/ost-ticketview.php:60 ../templates/new_ticket.php:60
    48 #: ../templates/view_ticket.php:64
     47#: ../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
    4949msgid "Please make sure your file extension should be :"
    5050msgstr "يرجى التأكد من أن امتداد الملف يجب أن يكون:"
    5151
    52 #: ../admin/admin_create_ticket.php:176
     52#: ../admin/admin_create_ticket.php:223
    5353msgid "Create A New Ticket"
    5454msgstr "إنشاء بطاقة جديدة"
    5555
    56 #: ../admin/admin_create_ticket.php:178 ../templates/contact_ticket.php:58 ../templates/new_ticket.php:98
     56#: ../admin/admin_create_ticket.php:225 ../templates/contact_ticket.php:167 ../templates/new_ticket.php:140
    5757msgid ""
    5858"Please fill in the form below to open a new ticket. All fields mark with [<font color=red>*</font>] <em>Are "
     
    6060msgstr "يرجى تعبئة النموذج أدناه لفتح بطاقة جديدة، جميع الحقول الملونة بالأحمر مطلوبة."
    6161
    62 #: ../admin/admin_create_ticket.php:187
     62#: ../admin/admin_create_ticket.php:233
    6363msgid "Select User Type :"
    6464msgstr "اختر نوع المستخدم: "
    6565
    66 #: ../admin/admin_create_ticket.php:189
     66#: ../admin/admin_create_ticket.php:235
    6767msgid "WP Users"
    6868msgstr "مستخدمي الوورد برس"
    6969
    70 #: ../admin/admin_create_ticket.php:190
     70#: ../admin/admin_create_ticket.php:236
    7171msgid "Osticket Users"
    72 msgstr "مستخدمي Osticket "
    73 
    74 #: ../admin/admin_create_ticket.php:191 ../admin/admin_create_ticket.php:196 ../admin/ost-ticketview.php:96
    75 #: ../templates/new_ticket.php:106
     72msgstr "مستخدمو 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
    7676msgid "Username"
    7777msgstr "اسم المستخدم"
    7878
    79 #: ../admin/admin_create_ticket.php:194
     79#: ../admin/admin_create_ticket.php:240
    8080msgid "WP Username"
    8181msgstr "اسم مستخدم الوورد برس"
    8282
    83 #: ../admin/admin_create_ticket.php:195
     83#: ../admin/admin_create_ticket.php:241
    8484msgid "Osticket Username"
    8585msgstr "اسم مستخدم Osticket "
    8686
    87 #: ../admin/admin_create_ticket.php:199 ../templates/new_ticket.php:109
     87#: ../admin/admin_create_ticket.php:245 ../templates/new_ticket.php:151
    8888msgid "Your Email"
    8989msgstr "البريد الالكتروني"
    9090
    91 #: ../admin/admin_create_ticket.php:202 ../admin/ost-tickets.php:86 ../admin/ost-ticketview.php:134
    92 #: ../templates/contact_ticket.php:83 ../templates/list_tickets.php:48 ../templates/new_ticket.php:112
    93 #: ../templates/view_ticket.php:145
     91#: ../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
    9494msgid "Subject"
    9595msgstr "العنوان"
    9696
    97 #: ../admin/admin_create_ticket.php:205 ../templates/new_ticket.php:115
     97#: ../admin/admin_create_ticket.php:251 ../templates/new_ticket.php:157
    9898msgid "Catagories"
    99 msgstr "التصنيفات"
    100 
    101 #: ../admin/admin_create_ticket.php:208 ../templates/contact_ticket.php:73 ../templates/new_ticket.php:118
     99msgstr "الأقسام"
     100
     101#: ../admin/admin_create_ticket.php:254 ../templates/contact_ticket.php:186 ../templates/new_ticket.php:161
    102102msgid "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
     103msgstr "اختر قسم"
     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
     108msgid "Help Topic"
     109msgstr "التصنيف"
     110
     111#: ../admin/admin_create_ticket.php:281 ../admin/ost-tickets.php:170 ../admin/ost-ticketview.php:132
     112#: ../templates/view_ticket.php:133
    107113msgid "Priority"
    108114msgstr "الأولوية"
    109115
    110 #: ../admin/admin_create_ticket.php:218 ../templates/new_ticket.php:128
     116#: ../admin/admin_create_ticket.php:283 ../templates/new_ticket.php:177
    111117msgid "Select a Priority"
    112118msgstr "اختر الأولولية"
    113119
    114 #: ../admin/admin_create_ticket.php:229
     120#: ../admin/admin_create_ticket.php:294
    115121msgid "To best assist you, please be specific and detailed in your message *"
    116122msgstr "لتقديم أفضل مساعدة لك، يرجى توضيح التفاصيل جيداً في الرسالة *"
    117123
    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
    119126msgid "Attachment 1:"
    120127msgstr "مرفق 1:"
    121128
    122 #: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160
    123 #: ../templates/view_ticket.php:244
     129#: ../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
    124131msgid "Add"
    125132msgstr "إضافة"
    126133
    127 #: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160
    128 #: ../templates/view_ticket.php:26 ../templates/view_ticket.php:244
     134#: ../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
    129136msgid "Max file upload size :"
    130137msgstr "الحد الأقصى لحجم الملف:"
    131138
    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
    133141msgid "Attachments on the Filesystem plugin can be downloaded here:"
    134142msgstr "مرفقات هذه الإضافة يمكن تحميلها من هنا:"
    135143
    136 #: ../admin/admin_create_ticket.php:257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167
    137 #: ../templates/view_ticket.php:251
     144#: ../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
    138146msgid "Attachement Filesystem Plugin"
    139147msgstr "إضافة الملفات المرفقة"
    140148
    141 #: ../admin/admin_create_ticket.php:264 ../admin/header_nav_ticket.php:18 ../ost-bridge.php:148
    142 #: ../templates/nav_bar.php:46 ../templates/new_ticket.php:174
     149#: ../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
    143151msgid "Create Ticket"
    144152msgstr "إنشاء بطاقة"
    145153
    146 #: ../admin/admin_create_ticket.php:265 ../templates/contact_ticket.php:110 ../templates/new_ticket.php:175
    147 #: ../templates/view_ticket.php:271
     154#: ../admin/admin_create_ticket.php:330 ../templates/contact_ticket.php:261 ../templates/new_ticket.php:224
     155#: ../templates/view_ticket.php:298
    148156msgid "Reset"
    149157msgstr "إعادة تعيين الافتراضيات"
    150158
    151159# ------------------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:456
    153 #: ../admin/db-settings.php:468
     160#: ../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
    154162msgid "Stand by while your"
    155163msgstr "انتظر قليلاً"
    156164
    157 #: ../admin/db-settings.php:394 ../ost-bridge.php:154
     165#: ../admin/db-settings.php:406 ../ost-bridge.php:162
    158166msgid "Settings"
    159167msgstr "إعدادات"
    160168
    161 #: ../admin/db-settings.php:394
     169#: ../admin/db-settings.php:406
    162170msgid "are being updated..."
    163171msgstr "يتم تحديث ..."
    164172
    165 #: ../admin/db-settings.php:403 ../admin/db-settings.php:422 ../admin/ost-config.php:28
     173#: ../admin/db-settings.php:415 ../admin/db-settings.php:434 ../admin/ost-config.php:35
    166174msgid "Error:"
    167175msgstr "خطأ:"
    168176
    169 #: ../admin/db-settings.php:403 ../admin/db-settings.php:422
     177#: ../admin/db-settings.php:415 ../admin/db-settings.php:434
    170178msgid ""
    171179"Message field cannot be empty, if you are closing the ticket, then enter: \"Closing Ticket\" in post a reply."
    172180msgstr "حقل الرسالة لا يمكن أن يكون فارغا, إن كنت تغلق البطاقة فأدخل: \"إغلاق البطاقة\" بحقل الرّد."
    173181
    174 #: ../admin/db-settings.php:407
     182#: ../admin/db-settings.php:419
    175183msgid "Thread updated successfully...Stand by: for auto refresh!"
    176184msgstr "تم تحديث الموضوع بنجاح.... انتظر قليلاً!"
    177185
    178 #: ../admin/db-settings.php:426
     186#: ../admin/db-settings.php:438
    179187msgid "Ticket created successfully...Stand by: for auto refresh!"
    180188msgstr "تم إنشاء البطاقة بنجاح.... انتظر قليلاً!"
    181189
    182 #: ../admin/db-settings.php:444 ../admin/ost-emailtemp.php:56
     190#: ../admin/db-settings.php:457 ../admin/ost-emailtemp.php:94
    183191msgid "Admin Response Email"
    184192msgstr "بريد رد المدير"
    185193
    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
    187196msgid "is being updated..."
    188197msgstr "جاري التحديث ..."
    189198
    190 #: ../admin/db-settings.php:456 ../admin/ost-emailtemp.php:38
     199#: ../admin/db-settings.php:470 ../admin/ost-emailtemp.php:75
    191200msgid "New Ticket Email"
    192201msgstr "بطاقة جديدة"
    193202
    194 #: ../admin/db-settings.php:468 ../admin/ost-emailtemp.php:75
     203#: ../admin/db-settings.php:483 ../admin/ost-emailtemp.php:115
    195204msgid "User Post Confirmation Email"
    196205msgstr "بريد تأكيد نشر المستخدم"
     206
     207#: ../admin/db-settings.php:496 ../admin/ost-emailtemp.php:55
     208msgid "Admin Create Ticket Email"
     209msgstr "رسالة إنشاء بطاقة للمدير"
    197210
    198211#: ../admin/header_nav.php:16
     
    204217msgstr "إعدادات osT"
    205218
    206 #: ../admin/header_nav.php:18 ../ost-bridge.php:164
     219#: ../admin/header_nav.php:18 ../ost-bridge.php:172
    207220msgid "Email Templates"
    208221msgstr "قوالب البريد"
    209222
    210 #: ../admin/header_nav.php:19 ../ost-bridge.php:70
     223#: ../admin/header_nav.php:19 ../ost-bridge.php:78
    211224msgid "Support Tickets"
    212225msgstr "بطاقات الدعم"
    213226
    214 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:42
     227#: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:45
    215228msgid "1 or more of your email templates is not setup"
    216229msgstr "واحد أو أكثر من قوالب البريد لم يتم إعداده"
    217230
    218 #: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:42
     231#: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:45
    219232msgid "Click Here"
    220233msgstr "انقر هنا"
    221234
    222 #: ../admin/header_nav_ticket.php:21 ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:50
    223 #: ../admin/ost-emailtemp.php:69 ../admin/ost-ticketview.php:90 ../templates/list_tickets.php:95
    224 #: ../templates/view_ticket.php:90
     235#: ../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
    225238msgid "Open"
    226239msgstr "فتح"
    227240
    228 #: ../admin/header_nav_ticket.php:22 ../admin/ost-ticketview.php:92 ../templates/list_tickets.php:98
    229 #: ../templates/view_ticket.php:92
     241#: ../admin/header_nav_ticket.php:25 ../admin/ost-ticketview.php:116 ../templates/list_tickets.php:110
     242#: ../templates/view_ticket.php:116
    230243msgid "Answered"
    231244msgstr "تمت الإجابة"
    232245
    233 #: ../admin/header_nav_ticket.php:23 ../admin/ost-ticketview.php:88 ../templates/list_tickets.php:92
    234 #: ../templates/nav_bar.php:53 ../templates/view_ticket.php:88
     246#: ../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
    235248msgid "Closed"
    236249msgstr "مغلق"
    237250
    238 #: ../admin/header_nav_ticket.php:24
     251#: ../admin/header_nav_ticket.php:27
    239252msgid "All"
    240253msgstr "الكل"
    241254
    242 #: ../admin/header_nav_ticket.php:30
     255#: ../admin/header_nav_ticket.php:33
    243256msgid "Search"
    244257msgstr "بحث"
    245258
    246 #: ../admin/header_nav_ticket.php:33
     259#: ../admin/header_nav_ticket.php:36
    247260msgid "Go >>"
    248261msgstr "اذهب >>"
    249262
    250 #: ../admin/header_nav_ticket.php:42
     263#: ../admin/header_nav_ticket.php:45
    251264msgid "Warning:"
    252265msgstr "تحذير:"
     
    275288"كذلك لا يمكن أن يكون اسمها بنفس اسم مجلد osTicket."
    276289
    277 #: ../admin/ost-config.php:28
     290#: ../admin/ost-config.php:35
    278291msgid "All fields are required below for the database..."
    279292msgstr "جميع الحقول أدناه مطلوبة لقاعدة البيانات..."
    280293
    281 #: ../admin/ost-config.php:89
     294#: ../admin/ost-config.php:94
    282295msgid "Your settings saved successfully...Thank you!"
    283296msgstr "تم حفظ إعداداتك بنجاح... شكراً لك"
    284297
    285 #: ../admin/ost-config.php:100
     298#: ../admin/ost-config.php:105
    286299msgid "Host Name:"
    287300msgstr "اسم المضيف:"
    288301
    289 #: ../admin/ost-config.php:101
     302#: ../admin/ost-config.php:106
    290303msgid "( Normally this is localhost )"
    291304msgstr "( عادة يكون localhost )"
    292305
    293 #: ../admin/ost-config.php:104
     306#: ../admin/ost-config.php:109
    294307msgid "Database Name:"
    295308msgstr "اسم قاعدة البيانات:"
    296309
    297 #: ../admin/ost-config.php:105
     310#: ../admin/ost-config.php:110
    298311msgid "( osTicket Database Name Goes Here )"
    299312msgstr "( اسم قاعدة بيانات osTicket هنا )"
    300313
    301 #: ../admin/ost-config.php:108
     314#: ../admin/ost-config.php:113
    302315msgid "Database Username:"
    303316msgstr "اسم المستخدم لقاعدة البيانات:"
    304317
    305 #: ../admin/ost-config.php:109
     318#: ../admin/ost-config.php:114
    306319msgid "( osTicket Database Username Goes Here )"
    307320msgstr "( اسم مستخدم قاعدة بيانات osTicket هنا )"
    308321
    309 #: ../admin/ost-config.php:112
     322#: ../admin/ost-config.php:117
    310323msgid "Database Password:"
    311324msgstr "كلمة المرور:"
    312325
    313 #: ../admin/ost-config.php:113
     326#: ../admin/ost-config.php:118
    314327msgid "( osTicket Database Password Goes Here )"
    315328msgstr "( كلمة مرور قاعدة بيانات osTicket هنا )"
    316329
    317 #: ../admin/ost-config.php:116
     330#: ../admin/ost-config.php:121
    318331msgid "Database Prefix:"
    319332msgstr "بادئة قاعدة البيانات:"
    320333
    321 #: ../admin/ost-config.php:117
     334#: ../admin/ost-config.php:122
    322335msgid "( osTicket Database Prefix Goes Here )"
    323336msgstr "( بادئة قاعدة البيانات osTicket هنا )"
    324337
    325 #: ../admin/ost-config.php:120
     338#: ../admin/ost-config.php:125
    326339msgid "Osticket Version:"
    327340msgstr "إصدار osTicket:"
    328341
    329 #: ../admin/ost-config.php:131
     342#: ../admin/ost-config.php:142
    330343msgid "(Select Osticket Version)"
    331344msgstr "(اختر إصدار Osticket)"
    332345
    333 #: ../admin/ost-config.php:135
     346#: ../admin/ost-config.php:146
    334347msgid "Enable Closing Ticket By User:"
    335348msgstr "تفعيل إغلاق البطاقة بواسطة المستخدم:"
    336349
    337 #: ../admin/ost-config.php:139
     350#: ../admin/ost-config.php:150
    338351msgid "Landing Page Name:"
    339352msgstr "اسم الصفحة الرئيسية:"
    340353
    341 #: ../admin/ost-config.php:141
     354#: ../admin/ost-config.php:152
    342355msgid "Landing Page Name( Create this page...read Landing Page Note above! )"
    343356msgstr "اسم الصفحة الرئيسية ( أنشئ هذه الصحفة... اقرأ حولها بالملاحظة أعلاه! )"
    344357
    345 #: ../admin/ost-config.php:144
     358#: ../admin/ost-config.php:155
    346359msgid "Contact Ticket Page:"
    347360msgstr "صفحة بطاقة الاتصال:"
    348361
    349 #: ../admin/ost-config.php:166
     362#: ../admin/ost-config.php:177
    350363msgid "(Select contact ticket page)"
    351364msgstr "(احتر صفحة بطاقة الاتصال)"
    352365
    353 #: ../admin/ost-config.php:170
     366#: ../admin/ost-config.php:181
    354367msgid "Thank You Page:"
    355368msgstr "صفحة الشكر:"
    356369
    357 #: ../admin/ost-config.php:192
     370#: ../admin/ost-config.php:203
    358371msgid "(Select thank you page)"
    359372msgstr "(اختر صفحة الشكر)"
    360373
    361 #: ../admin/ost-config.php:197
     374#: ../admin/ost-config.php:207
     375msgid "Google reCAPTCHA Secretkey:"
     376msgstr "المفتاح السري لكابتشا غوغل:"
     377
     378#: ../admin/ost-config.php:208
     379msgid "(Your Google reCAPTCHA Secretkey Goest Here)"
     380msgstr "(مكان إدخال المفتاح السري لكابتشا غوغل)"
     381
     382#: ../admin/ost-config.php:211
     383msgid "Google reCAPTCHA Sitekey:"
     384msgstr "مفتاح الموقع لكابتشا غوغل:"
     385
     386#: ../admin/ost-config.php:212
     387msgid "(Your Google reCAPTCHA Sitekey Goest Here)"
     388msgstr "(مكان إدخال مفتاح الموقع لكابتشا غوغل)"
     389
     390#: ../admin/ost-config.php:217
     391msgid "Enable Department on Contact Page:"
     392msgstr "تمكين القسم بصفحة الاتصال:"
     393
     394#: ../admin/ost-config.php:227
     395msgid "Default Department on Contact Page:"
     396msgstr "القسم الافتراضي بصفحة الاتصال:"
     397
     398#: ../admin/ost-config.php:235
     399msgid "Select a Department"
     400msgstr "تحديد قسم"
     401
     402#: ../admin/ost-config.php:245
     403msgid "(Default Department on Contact Page:)"
     404msgstr "(القسم الافتراضي بصفحة الاتصال:)"
     405
     406#: ../admin/ost-config.php:252
     407msgid "Enable Helptopic on Contact Page:"
     408msgstr "تمكين المساعدة بصفحة الاتصال:"
     409
     410#: ../admin/ost-config.php:262
     411msgid "Default Helptopic on Contact Page:"
     412msgstr "المساعدة الافتراضية بصفحة الاتصال:"
     413
     414#: ../admin/ost-config.php:265
     415msgid "Select a Help Topic"
     416msgstr "قم بتحديد التصنيف"
     417
     418#: ../admin/ost-config.php:274
     419msgid "(Default Helptopic on Contact Page:)"
     420msgstr "(المساعدة الافتراضية بصفحة الاتصال:)"
     421
     422#: ../admin/ost-config.php:283
    362423msgid "Save Changes"
    363424msgstr "حفظ التعديلات"
    364425
    365 #: ../admin/ost-emailtemp.php:8
     426#: ../admin/ost-emailtemp.php:9
    366427msgid "osTicket Email Templates"
    367428msgstr "قوالب بريد osTicket "
    368429
    369430# ------------------Email Template ost-emailtemp.php Start Here-----------------------------------
    370 #: ../admin/ost-emailtemp.php:11
     431#: ../admin/ost-emailtemp.php:12
    371432msgid ""
    372433"The \"Email Templates\" sent from site to client: new tickets confirmations, user post confirmations & admin "
     
    374435msgstr "\"قوالب البريد\" أرسلت من الموقع للزبون: تأكيدات البطاقات الجديدة و ملاحظات المستخدم و ردود المدير."
    375436
    376 #: ../admin/ost-emailtemp.php:11
     437#: ../admin/ost-emailtemp.php:12
    377438msgid ""
    378439"Note: Each input field will have a suggested default template, you can place any text & use the variables "
     
    380441msgstr "ملاحظة: كل حقل إدخال فيه قيم افتراضية مقترحة، يمكنك وضع أي نص واستخدام المتغيرات المدرجة أدناه."
    381442
    382 #: ../admin/ost-emailtemp.php:13
     443#: ../admin/ost-emailtemp.php:14
    383444msgid "$Variables You can use In Email"
    384445msgstr "$Variables يمكنك استخدام المتغيرات في البريد الإلكتروني"
    385446
    386 #: ../admin/ost-emailtemp.php:15
     447#: ../admin/ost-emailtemp.php:16
    387448msgid "$username=\"User Name\""
    388449msgstr "$username=\"اسم المستخدم\""
    389450
    390 #: ../admin/ost-emailtemp.php:16
     451#: ../admin/ost-emailtemp.php:17
    391452msgid "$usermail=\"User Email\""
    392453msgstr "$usermail=\"بريد المستخدم\""
    393454
    394 #: ../admin/ost-emailtemp.php:17
     455#: ../admin/ost-emailtemp.php:18
    395456msgid "$ticketid=\"Ticket #\""
    396457msgstr "$ticketid=\"رقم البطاقة\""
    397458
    398 #: ../admin/ost-emailtemp.php:18
     459#: ../admin/ost-emailtemp.php:19
    399460msgid "$ticketurl=\"Ticket Url\""
    400461msgstr "$ticketurl=\"رابط البطاقة\""
    401462
    402 #: ../admin/ost-emailtemp.php:19
     463#: ../admin/ost-emailtemp.php:20
    403464msgid "$ostitle=\"Support Title\""
    404465msgstr "$ostitle=\"عنوان الدعم\""
    405466
    406 #: ../admin/ost-emailtemp.php:20
     467#: ../admin/ost-emailtemp.php:21
    407468msgid "$siteurl=\"Support Url\""
    408469msgstr "$siteurl=\"رابط الدعم\""
    409470
    410 #: ../admin/ost-emailtemp.php:21
     471#: ../admin/ost-emailtemp.php:22
    411472msgid "$dname=\"Landing Page\""
    412473msgstr "$dname=\"الصفحة الرئيسية\""
    413474
    414 #: ../admin/ost-emailtemp.php:22
     475#: ../admin/ost-emailtemp.php:23
    415476msgid "$user_message=\"Users Message\""
    416477msgstr "$user_message=\"رسالة المستخدمين\""
    417478
    418 #: ../admin/ost-emailtemp.php:23
     479#: ../admin/ost-emailtemp.php:24
    419480msgid "$admin_response=\"Staff Message\""
    420481msgstr "$admin_response=\"رسالة الموظف\""
    421482
    422 #: ../admin/ost-emailtemp.php:24
     483#: ../admin/ost-emailtemp.php:25
    423484msgid "$signature=\"Staff/ Department Signature\""
    424485msgstr "$signature=\"توقيع القسم/الموظف\""
    425486
    426 #: ../admin/ost-emailtemp.php:25
     487#: ../admin/ost-emailtemp.php:26
    427488msgid "$ussubject=\"Ticket subject\""
    428489msgstr "$ussubject=\"عنوان البطاقة\""
    429490
    430 #: ../admin/ost-emailtemp.php:32
     491#: ../admin/ost-emailtemp.php:33
     492msgid "Admin Create Ticket Email Template"
     493msgstr "قالب رسالة إنشاء بطاقة للمدير"
     494
     495#: ../admin/ost-emailtemp.php:33
     496msgid "We suggest using this template in the admin create ticket email below."
     497msgstr "نقترح عليك استعمال هذا القالب أدناه."
     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
     503msgid "Close"
     504msgstr "إغلاق"
     505
     506#: ../admin/ost-emailtemp.php:64
     507msgid "Save - Admin Create Ticket Email"
     508msgstr "حفظ - رسالة إنشاء بطاقة للمدير"
     509
     510#: ../admin/ost-emailtemp.php:69
    431511msgid "New Ticket Email Template"
    432512msgstr "قالب رسالة بطاقة جديدة"
    433513
    434 #: ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:69
     514#: ../admin/ost-emailtemp.php:69 ../admin/ost-emailtemp.php:109
    435515msgid "We suggest using this template in the user confirmation email below."
    436516msgstr "نقترح عليك استخدام هذا القالب في رسالة تأكيد المستخدم أدناه."
    437517
    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
    445519msgid "Save - New Ticket Email"
    446520msgstr "حفظ - رسالة بطاقة جديدة"
    447521
    448 #: ../admin/ost-emailtemp.php:50
     522#: ../admin/ost-emailtemp.php:88
    449523msgid "Admin Response Email Template"
    450524msgstr "قالب بريد رد المشرف"
    451525
    452 #: ../admin/ost-emailtemp.php:50
     526#: ../admin/ost-emailtemp.php:88
    453527msgid "We suggest using this template in your post reply to user below."
    454528msgstr "نحن نقترح عليك استخدام هذا القالب في الرد على المقالة للمستخدم أدناه."
    455529
    456 #: ../admin/ost-emailtemp.php:69
     530#: ../admin/ost-emailtemp.php:109
    457531msgid "User Post Confirmation Email Template"
    458532msgstr "تأكيد قالب بريد الناشر"
    459533
    460 #: ../admin/ost-emailtemp.php:82
     534#: ../admin/ost-emailtemp.php:123
    461535msgid "Save - User Post Confirmation Email"
    462536msgstr "حفظ - رسالة تأكيد مقالة المستخدم"
    463537
    464 #: ../admin/ost-settings.php:8 ../ost-bridge.php:319 ../ost-bridge.php:333
     538#: ../admin/ost-settings.php:8 ../ost-bridge.php:340 ../ost-bridge.php:354
    465539msgid "osTicket Settings"
    466540msgstr " إعدادات osTicket"
     
    589663msgstr "حفظ الاعدادات"
    590664
    591 #: ../admin/ost-tickets.php:18
     665#: ../admin/ost-tickets.php:21
    592666#, php-format
    593667msgid "%d record(s) has been deleted successfully"
    594668msgstr "تم حذف %d سجل بنجاح"
    595669
    596 #: ../admin/ost-tickets.php:34
     670#: ../admin/ost-tickets.php:37
    597671#, php-format
    598672msgid "%d record(s) has been closed successfully"
    599673msgstr "تم إغلاق %d سجل بنجاح"
    600674
    601 #: ../admin/ost-tickets.php:50
     675#: ../admin/ost-tickets.php:53
    602676#, php-format
    603677msgid "%d record(s) has been re-opened successfully"
    604678msgstr "تم إعادة فتح %d سجل بنجاح"
    605679
    606 #: ../admin/ost-tickets.php:74 ../templates/list_tickets.php:41
     680#: ../admin/ost-tickets.php:141 ../templates/list_tickets.php:52
    607681msgid "Are you sure you want to continue?"
    608682msgstr "هل أنت متأكد أنك تريد المتابعة ؟"
    609683
    610 #: ../admin/ost-tickets.php:76 ../ost-bridge.php:140 ../ost-bridge.php:142
     684#: ../admin/ost-tickets.php:143 ../ost-bridge.php:148 ../ost-bridge.php:150
    611685msgid "Support/Request List"
    612686msgstr "الدعم/قائمة الطلبات"
    613687
    614 #: ../admin/ost-tickets.php:85
     688#: ../admin/ost-tickets.php:168
    615689msgid "Ticket #"
    616690msgstr "بطاقة"
    617691
    618 #: ../admin/ost-tickets.php:88 ../admin/ost-ticketview.php:100 ../templates/list_tickets.php:50
    619 #: ../templates/view_ticket.php:99
     692#: ../admin/ost-tickets.php:171 ../admin/ost-ticketview.php:124 ../templates/list_tickets.php:61
     693#: ../templates/view_ticket.php:123
    620694msgid "Department"
    621695msgstr "قسم"
    622696
    623 #: ../admin/ost-tickets.php:89 ../templates/list_tickets.php:51
     697#: ../admin/ost-tickets.php:173 ../templates/list_tickets.php:63
    624698msgid "Date"
    625699msgstr "تاريخ"
    626700
    627 #: ../admin/ost-tickets.php:129 ../admin/ost-ticketview.php:116 ../templates/view_ticket.php:114
    628 #: ../templates/view_ticket.php:128
     701#: ../admin/ost-tickets.php:218 ../admin/ost-ticketview.php:140 ../templates/view_ticket.php:138
     702#: ../templates/view_ticket.php:152
    629703msgid "Emergency"
    630704msgstr "عاجل"
    631705
    632 #: ../admin/ost-tickets.php:132 ../admin/ost-ticketview.php:118 ../templates/view_ticket.php:116
    633 #: ../templates/view_ticket.php:130
     706#: ../admin/ost-tickets.php:224 ../admin/ost-ticketview.php:142 ../templates/view_ticket.php:140
     707#: ../templates/view_ticket.php:154
    634708msgid "High"
    635709msgstr "مرتفع"
    636710
    637 #: ../admin/ost-tickets.php:135 ../admin/ost-tickets.php:138 ../admin/ost-ticketview.php:120
    638 #: ../admin/ost-ticketview.php:124 ../templates/view_ticket.php:118 ../templates/view_ticket.php:122
    639 #: ../templates/view_ticket.php:132 ../templates/view_ticket.php:136
     711#: ../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
    640714msgid "Normal"
    641715msgstr "عادي"
    642716
    643 #: ../admin/ost-tickets.php:141 ../admin/ost-ticketview.php:122 ../templates/view_ticket.php:120
    644 #: ../templates/view_ticket.php:134
     717#: ../admin/ost-tickets.php:236 ../admin/ost-ticketview.php:146 ../templates/view_ticket.php:144
     718#: ../templates/view_ticket.php:158
    645719msgid "Low"
    646720msgstr "منخفض"
    647721
    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
    653723msgid "Delete"
    654724msgstr "حذف"
    655725
    656 #: ../admin/ost-tickets.php:170 ../admin/ost-tickets.php:172 ../admin/ost-ticketview.php:239
    657 #: ../templates/view_ticket.php:260
     726#: ../admin/ost-tickets.php:278 ../admin/ost-tickets.php:280 ../admin/ost-ticketview.php:267
     727#: ../templates/view_ticket.php:287
    658728msgid "Reopen"
    659729msgstr "إعادة فتح"
    660730
    661 #: ../admin/ost-ticketview.php:70
     731#: ../admin/ost-ticketview.php:94
    662732msgid "Reply to Support Request"
    663733msgstr "رد على طلب الدعم"
    664734
    665 #: ../admin/ost-ticketview.php:77
     735#: ../admin/ost-ticketview.php:101
    666736msgid "Ticket ID"
    667737msgstr "رقم البطاقة"
    668738
    669 #: ../admin/ost-ticketview.php:78 ../admin/ost-ticketview.php:254 ../templates/view_ticket.php:270
     739#: ../admin/ost-ticketview.php:102 ../admin/ost-ticketview.php:282 ../templates/view_ticket.php:297
    670740msgid "Post Reply"
    671741msgstr "إضافة رد"
    672742
    673 #: ../admin/ost-ticketview.php:84 ../templates/view_ticket.php:85
     743#: ../admin/ost-ticketview.php:108 ../templates/view_ticket.php:109
    674744msgid "Ticket Status"
    675745msgstr "حالة البطاقة"
    676746
    677 #: ../admin/ost-ticketview.php:102
     747#: ../admin/ost-ticketview.php:126
    678748msgid "User Email"
    679749msgstr "بريد المستخدم"
    680750
    681 #: ../admin/ost-ticketview.php:106
     751#: ../admin/ost-ticketview.php:130
    682752msgid "Date Create"
    683753msgstr "تاريخ الإنشاء"
    684754
    685 #: ../admin/ost-ticketview.php:139 ../templates/view_ticket.php:150
     755#: ../admin/ost-ticketview.php:167 ../templates/view_ticket.php:177
    686756msgid "Ticket Thread"
    687757msgstr "موضوع البطاقة"
    688758
    689 #: ../admin/ost-ticketview.php:185 ../templates/view_ticket.php:201
     759#: ../admin/ost-ticketview.php:213 ../templates/view_ticket.php:228
    690760msgid "Post a Reply"
    691761msgstr "إضافة الرد"
    692762
    693 #: ../admin/ost-ticketview.php:239 ../admin/ost-ticketview.php:241 ../templates/view_ticket.php:260
    694 #: ../templates/view_ticket.php:263
     763#: ../admin/ost-ticketview.php:267 ../admin/ost-ticketview.php:269 ../templates/view_ticket.php:287
     764#: ../templates/view_ticket.php:290
    695765msgid "Ticket On Reply"
    696766msgstr "بطاقة رد"
    697767
    698 #: ../admin/ost-ticketview.php:248
     768#: ../admin/ost-ticketview.php:276
    699769msgid "My signature"
    700770msgstr "توقيعي"
    701771
    702 #: ../admin/ost-ticketview.php:249
     772#: ../admin/ost-ticketview.php:277
    703773msgid "Dept. Signature"
    704774msgstr "توقيع القسم"
    705775
    706 #: ../admin/ost-ticketview.php:255
     776#: ../admin/ost-ticketview.php:283
    707777msgid "Cancel - Go Back"
    708778msgstr "إلغاء - عودة للخلف"
    709779
    710 #: ../ost-bridge.php:53
     780#: ../ost-bridge.php:61
    711781msgid "Open Tickets"
    712782msgstr "فتح البطاقات"
    713783
    714 #: ../ost-bridge.php:132 ../ost-bridge.php:134
     784#: ../ost-bridge.php:140 ../ost-bridge.php:142
    715785msgid "Tickets"
    716786msgstr "بطاقات"
    717787
    718 #: ../ost-bridge.php:142
     788#: ../ost-bridge.php:150
    719789msgid "Email Tickets"
    720790msgstr "بطاقات البريد"
    721791
    722 #: ../ost-bridge.php:159
     792#: ../ost-bridge.php:167
    723793msgid "osT-Config"
    724794msgstr "تكوين osT"
    725795
    726 #: ../ost-bridge.php:298 ../ost-bridge.php:305 ../ost-bridge.php:315 ../ost-bridge.php:329 ../ost-bridge.php:343
     796#: ../ost-bridge.php:319 ../ost-bridge.php:326 ../ost-bridge.php:336 ../ost-bridge.php:350 ../ost-bridge.php:396
    727797msgid "You do not have sufficient permissions to access this page."
    728798msgstr "لا تملك صلاحيات الدخول لهذه الصفحة"
    729799
    730 #: ../ost-bridge.php:319 ../ost-bridge.php:333 ../ost-bridge.php:347
     800#: ../ost-bridge.php:340 ../ost-bridge.php:354 ../ost-bridge.php:400
    731801msgid ""
    732802"<p><b>Error:</b> You must complete \"osTicket Data Configure\" before this page will display... <a href="
     
    736806"هنا</a></p>"
    737807
    738 #: ../templates/contact_ticket.php:42 ../templates/new_ticket.php:80
     808#: ../templates/contact_ticket.php:66 ../templates/new_ticket.php:42
     809msgid "Max file upload size"
     810msgstr "الحد الأقصى لحجم الملف"
     811
     812#: ../templates/contact_ticket.php:150 ../templates/new_ticket.php:124
    739813msgid "A new request has been created successfully!"
    740814msgstr "تم إنشاء الطلب الجديد بنجاح!"
    741815
    742 #: ../templates/contact_ticket.php:45 ../templates/new_ticket.php:83
     816#: ../templates/contact_ticket.php:153 ../templates/new_ticket.php:127
    743817msgid "We are currently notifying the selected department staff..."
    744818msgstr "يجري حالياً تنبيه موظفي القسم المحدّد..."
    745819
    746 #: ../templates/contact_ticket.php:49 ../templates/new_ticket.php:87
     820#: ../templates/contact_ticket.php:157 ../templates/new_ticket.php:131
    747821msgid "Thank you for contacting us!"
    748822msgstr "نشكرك لتواصلك معنا!"
    749823
    750 #: ../templates/contact_ticket.php:64
     824#: ../templates/contact_ticket.php:173
    751825msgid "Full Name:"
    752826msgstr "الاسم الكامل:"
    753827
    754 #: ../templates/contact_ticket.php:67
     828#: ../templates/contact_ticket.php:176
    755829msgid "Your Email:"
    756830msgstr "بريدك الإلكتروني:"
    757831
    758 #: ../templates/contact_ticket.php:70
     832#: ../templates/contact_ticket.php:183
    759833msgid "Catagories:"
    760 msgstr "التصنيفات:"
    761 
    762 #: ../templates/contact_ticket.php:90 ../templates/new_ticket.php:139
     834msgstr "الأقسام:"
     835
     836#: ../templates/contact_ticket.php:217 ../templates/new_ticket.php:188
    763837msgid "To best assist you, please be specific and detailed in your message"
    764838msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في الرسالة"
    765839
    766 #: ../templates/contact_ticket.php:109
     840#: ../templates/contact_ticket.php:260
    767841msgid "Submit"
    768842msgstr "إرسال"
    769843
    770844# Listing Tickets
    771 #: ../templates/list_tickets.php:47
     845#: ../templates/list_tickets.php:58
    772846msgid "Tickets #"
    773847msgstr "بطاقات"
    774848
    775 #: ../templates/list_tickets.php:49
     849#: ../templates/list_tickets.php:60
    776850msgid "Status"
    777851msgstr "الحالة"
     852
     853#: ../templates/list_tickets.php:125
     854msgid "No Records Found."
     855msgstr "لم يتم العثور على سجلات"
    778856
    779857#: ../templates/message.php:7
     
    821899msgstr "أذهب"
    822900
    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
    828902msgid "Open a New Ticket"
    829903msgstr "فتح بطاقة جديدة"
    830904
    831 #: ../templates/new_ticket.php:126
     905#: ../templates/new_ticket.php:175
    832906msgid "Priority:"
    833907msgstr "الأولوية:"
    834908
    835 #: ../templates/view_ticket.php:80
     909#: ../templates/view_ticket.php:104
    836910msgid "Ticket ID #"
    837911msgstr "رقم البطاقة"
    838912
    839 #: ../templates/view_ticket.php:96
     913#: ../templates/view_ticket.php:120
    840914msgid "Name"
    841915msgstr "الاسم"
    842916
    843 #: ../templates/view_ticket.php:101
     917#: ../templates/view_ticket.php:125
    844918msgid "Email"
    845919msgstr "البريد الالكتروني"
    846920
    847 #: ../templates/view_ticket.php:107
     921#: ../templates/view_ticket.php:131
    848922msgid "Create Date"
    849923msgstr "تاريخ الانشاء"
    850924
    851 #: ../templates/view_ticket.php:202
     925#: ../templates/view_ticket.php:229
    852926msgid "To best assist you, please be specific and detailed in your reply."
    853927msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في ردكم."
    854928
    855 #: ../templates/view_ticket.php:251
     929#: ../templates/view_ticket.php:278
    856930msgid "Attachments on the Filesystem plugin can be downloaded here :"
    857931msgstr "يمكنك تحميل إضافة ملفات النظام من هنا:"
    858932
    859 #: ../templates/view_ticket.php:272
     933#: ../templates/view_ticket.php:299
    860934msgid "Cancel"
    861935msgstr "إلغاء"
    862936
    863 #: ../templates/view_ticket.php:281
     937#: ../templates/view_ticket.php:308
    864938msgid "No such ticket available."
    865939msgstr "لا تتوفر مثل هذه البطاقة."
  • key4ce-osticket-bridge/tags/1.3.1/ost-bridge.php

    r1232510 r1236690  
    33Plugin Name: Key4ce osTicket Bridge
    44Plugin URI: https://key4ce.com/projects/key4ce-osticket-bridge
    5 Description: Integrate osTicket (v1.9.3 - 1.9.11) into wordpress. including user integration and scp
    6 Version: 1.3.0
     5Description: Integrate osTicket (v1.9.3 - 1.9.12) into wordpress. including user integration and scp
     6Version: 1.3.1
    77Author: Key4ce
    88Author URI: https://key4ce.com
  • key4ce-osticket-bridge/tags/1.3.1/readme.txt

    r1232492 r1236690  
    102102- Fixed: Full name field properly adds full name.
    103103- Fixed: Google re-captcha fields in the right order.
     104- Fixed: Admin reply
     105- Fixed: Time related issues.
    104106
    105107= 1.3.0 =
  • key4ce-osticket-bridge/tags/1.3.1/templates/contact_ticket.php

    r1232501 r1236690  
    227227</tr>
    228228    <?php
     229    if($keyost_contactfilestatus==1)
     230    {
    229231if ($attachement_status==1 || $attachement_status==true) {
    230232    if(key4ce_getPluginValue('Attachments on the filesystem')==1)
     
    245247    }
    246248    }
     249}
    247250    ?>
    248251<?php
     
    250253{
    251254?>
    252 <script src='https://www.google.com/recaptcha/api.js'></script>
     255<script src="https://www.google.com/recaptcha/api.js"></script>
    253256<tr><td style="text-align: center;">
    254257<div class="g-recaptcha" data-sitekey="<?php echo $siteKey; ?>"></div>
     
    268271}
    269272?>
    270 
    271273<div class="key4ce_clear" style="padding: 10px;"></div>
  • key4ce-osticket-bridge/tags/1.3.1/templates/list_tickets.php

    r1232492 r1236690  
    2323     }
    2424 }
    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){
    2727   e.stopPropagation();
    2828});
    2929});
    3030</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 } ?>
    3175<?php
    3276$time_format=key4ce_getKeyValue('time_format');
     
    95139        $ticket_tr="?service=view&ticket=".$list->number;
    96140    }
    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';\">";
    98143    if($keyost_usercloseticket==1) 
    99     echo "<div id='key4ce_ticket_list' onclick=\"location.href='$ticket_view';\">";
    100144    echo "<div id='key4ce_ticket_list0' class=\"noEdit\"><input type='checkbox' name='tickets[]' value='".$list->ticket_id."'></div>";
    101145    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  
    3030$extimp = implode(',', array_map('add_quotes', $allowedExts));
    3131$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";
    3248?>
    3349<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  
    247247            <div style="clear: both"></div>
    248248            <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">&nbsp;*</font></div>
     249            <div id="key4ce_new_ticket_subject_input"><input class="ost" id="subject" type="text" name="subject" size="35"/><font class="error">&nbsp;*</font></div>
    250250            <div style="clear: both"></div>
    251251            <div id="key4ce_new_ticket_catagory"><?php echo __("Catagories", 'key4ce-osticket-bridge'); ?>:</div>
     
    258258                    }
    259259                    ?>
    260                 </select><font class="key4ce_error">&nbsp;*</font>
     260                </select><font class="error">&nbsp;*</font>
    261261                </div>
    262262                <div style="clear: both"></div>
     
    271271                   // }
    272272                    ?>
    273                 </select><font class="key4ce_error">&nbsp;*</font>
     273                </select><font class="error">&nbsp;*</font>
    274274            </div>
    275275            -->
     
    292292    <table class="key4ce_welcome key4ce_nobd" align="center" width="95%" cellpadding="3" cellspacing="3" border="0">
    293293        <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">&nbsp;*</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">&nbsp;*</font></div></td>
    295295        </tr>
    296296
  • key4ce-osticket-bridge/trunk/admin/adminticketmail.php

    r1232492 r1236690  
    3939$isoverdue = 0;
    4040$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' );
    4344@$user_message = Format::stripslashes($_REQUEST['message']);
    4445$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  
    2727    @$keyost_departmentsetting = ($_REQUEST['keyost_departmentsetting']=="on") ? '1' : '0';
    2828    @$keyost_defaultdepartmentsetting = $_REQUEST['keyost_defaultdepartmentsetting'];
    29     @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0';
     29    @$keyost_helptopicsetting = ($_REQUEST['keyost_helptopicsetting']=="on") ? '1' : '0';   
    3030    @$keyost_defaulthelptopicsetting = $_REQUEST['keyost_defaulthelptopicsetting'];
     31    @$keyost_contactfilestatus = ($_REQUEST['keyost_contactfilestatus']=="on") ? '1' : '0';
    3132    $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);         
    3334    if (($_REQUEST['host']=="") || ($_REQUEST['database']=="") || ($_REQUEST['username']=="") || ($_REQUEST['supportpage']=="") )
    3435    {
     
    100101extract($config);
    101102?>
    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">
    103146<table class="key4ce_cofigtb">
    104147<tr>
     
    221264$config = get_option('os_ticket_config');
    222265extract($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>               
     266if($keyost_departmentsetting=="0")
     267        $trdepartment="display:table-row";
     268else
     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">&nbsp;*</font></label></td>               
    228275<td>
    229276<?php
     
    243290}
    244291?>
    245 </select>&nbsp;&nbsp;<?php echo __("(Default Department on Contact Page:)", 'key4ce-osticket-bridge'); ?>
    246 </td>
    247 </tr>
    248 <?php } ?>
     292</select>&nbsp;&nbsp;<?php echo __("(Default Department on Contact Page)", 'key4ce-osticket-bridge'); ?>
     293</td>
     294</tr>
     295<?php //} ?>
    249296<!-- Department Configuration for Contact page end here-->
    250297<!-- Helptopic Configuration for Contact page start here-->
     
    254301</tr>
    255302<?php
    256 if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0")
    257 {
     303if($keyost_helptopicsetting=="0")
     304        $trhelptopic="display:table-row";
     305else
     306        $trhelptopic="display:none";
     307//if((($host!="") || ($database!="") || ($username!="") || ($password!="")) && $keyost_helptopicsetting=="0")
     308//{
    258309$topic_table=$keyost_prefix."help_topic";
    259310$topic_opt = $ost_wpdb->get_results("SELECT topic_id,topic FROM $topic_table  where ispublic=1 and isactive=1 ORDER BY `sort` ASC ");
    260311?>
    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">&nbsp;*</font></label></td>               
    263314<td>
    264315<select id="keyost_defaulthelptopicsetting" name="keyost_defaulthelptopicsetting">
     
    272323        }
    273324        ?>               
    274 </select>&nbsp;&nbsp;<?php echo __("(Default Helptopic on Contact Page:)", 'key4ce-osticket-bridge'); ?>
    275 </td>
    276 </tr>
    277 <?php
    278 }
     325</select>&nbsp;&nbsp;<?php echo __("(Default Helptopic on Contact Page)", 'key4ce-osticket-bridge'); ?>
     326</td>
     327</tr>
     328<?php
     329//}
    279330?>
    280331<!-- 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' : ''; ?>/>&nbsp;&nbsp;</td>
     336</tr>
     337<!-- Contact Page File Attachement Enable/Disable End Here -->
     338
    281339</table>
    282340<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'); ?>" />
    284342</div>
    285343</form>
  • key4ce-osticket-bridge/trunk/admin/ost-postreplymail.php

    r1232492 r1236690  
    5252$admin_response=@Format::stripslashes($_REQUEST['message']); ///from post to thread-table to variable to email
    5353$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' );
    5657$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'));
    5758$thread_id = $ost_wpdb->insert_id;
     
    187188$phpmailer->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
    188189$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 }
    195190$phpmailer->AddAddress($to);
    196191$phpmailer->Send();
     
    208203$phpmailer->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
    209204$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 }
    241205$phpmailer->Send();
    242206}
    243 exit;
    244207?>
  • key4ce-osticket-bridge/trunk/css/admin-style.css

    r1232501 r1236690  
    512512    color: #FF0000;
    513513}
     514.error {
     515    color: #FF0000;
     516}
    514517#key4ce_msg_notice {
    515518  margin: 20px 20px 20px 20px;
  • key4ce-osticket-bridge/trunk/css/style.css

    r1232501 r1236690  
    675675    color: #FF0000;
    676676}
     677.error {
     678    color: #FF0000;
     679}
    677680#key4ce_msg_notice {
    678681  margin: 20px 20px 20px 20px;
  • key4ce-osticket-bridge/trunk/includes/contactticketmail.php

    r1232492 r1236690  
    2222$os_admin_email_id = $os_admin_email->value;
    2323$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_defaultdepartmentsetting!="" && $keyost_defaultdepartmentsetting==0)
    25     $dep_id = @$_REQUEST['deptId'];
     24if($keyost_departmentsetting==1)
     25    $dep_id =$_REQUEST['deptId'];
    2626else
    27     $dep_id=@$keyost_defaultdepartmentsetting;
     27    $dep_id=$keyost_defaultdepartmentsetting;
    2828
    2929$sla_id = 1;
    3030$pri_id = 2;
    31 if($keyost_defaulthelptopicsetting!="" && $keyost_defaulthelptopicsetting==0)
    32     @$top_id = $_REQUEST['topicId'];
     31if($keyost_helptopicsetting==1)
     32    $top_id =$_REQUEST['topicId'];
    3333else
    34     $top_id=@$keyost_defaulthelptopicsetting;
     34    $top_id=$keyost_defaulthelptopicsetting;
    3535$staff_id = 0;
    3636$team_id = 0;
     
    5353$isoverdue = 0;
    5454$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' );
    5758@$user_message = Format::stripslashes($_REQUEST['message']);
    5859$prid = $ost_wpdb->get_row("SELECT priority_desc FROM $priority_table WHERE priority_id=$pri_id");
     
    6263if(isset($_POST['g-recaptcha-response']))
    6364{
     65?>
     66<?php
    6467    $captcha=$_POST['g-recaptcha-response'];
    6568    $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true);
    6669}
    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 }
     70if (isset($_REQUEST['create-contact-ticket']) && $response['success']==1) {
     71
    8472// Added by Pratik Maniar on 29-04-2014 Start Here
    8573    $dept_details = $ost_wpdb->get_row("SELECT dept_id,dept_name FROM $dept_table WHERE dept_id=$dep_id");
     
    10391        $last_ost_user_id = $ost_wpdb->insert_id;
    10492    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");     
    10994    }
    11095////End of new user info user_email_id email_id
     
    125110if (!empty($_FILES['file']['name'][0]))
    126111{   
     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    }
    127128   $fileids=array();
    128129   for ($i = 0; $i < count($_FILES['file']['name']); $i++)
  • key4ce-osticket-bridge/trunk/includes/newticketmail.php

    r1121801 r1236690  
    1111get_currentuserinfo();
    1212$wp_user_email_id = $current_user->user_email;
    13 
    1413$tic_ID = key4ce_generateID();
    1514$checkUserID = $ost_wpdb->get_results("SELECT number from $ticket_table WHERE number = '$tic_ID'");
     
    4342$isoverdue = 0;
    4443$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' );
    4747@$user_message = Format::stripslashes($_REQUEST['message']);
    4848$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  
    2626$user_message=@Format::stripslashes($_REQUEST['message']);
    2727$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' );
    2930$ticket_details=$ost_wpdb->get_row("SELECT * FROM $ticket_table WHERE number=$usticketid");
    3031$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; }   }
     1function 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;  }}
     2function validateFormContactTicket()
     3{
     4var x=document.forms["contactticket"]["cur-name"].value;if (x==null || x=="") 
     5{  alert("Please enter your name!");  return false;  }
     6var x=document.forms["contactticket"]["email"].value;if (x==null || x=="") 
     7{  alert("Please enter a email!");  return false;  }if(x!="")
     8{
     9var atpos=x.indexOf("@");var dotpos=x.lastIndexOf(".");
     10if (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 }
     37var 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  
    33Plugin Name: Key4ce osTicket Bridge
    44Plugin URI: https://key4ce.com/projects/key4ce-osticket-bridge
    5 Description: Integrate osTicket (v1.9.3 - 1.9.11) into wordpress. including user integration and scp
    6 Version: 1.3.0
     5Description: Integrate osTicket (v1.9.3 - 1.9.12) into wordpress. including user integration and scp
     6Version: 1.3.1
    77Author: Key4ce
    88Author URI: https://key4ce.com
  • key4ce-osticket-bridge/trunk/readme.txt

    r1232513 r1236690  
    55Requires at least: 3.5
    66Tested up to: 4.3
    7 Stable tag: 1.3.0
     7Stable tag: 1.3.1
    88License: GPLv3
    99License 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.11
     10Get your own advanced ticket system in Wordpress and Integrate osTicket into your wordpress site. Works with osTicket 1.9.3 - 1.9.12
    1111
    1212== Description ==
     
    102102- Fixed: Full name field properly adds full name.
    103103- Fixed: Google re-captcha fields in the right order.
     104- Fixed: Admin reply
     105- Fixed: Time related issues.
    104106
    105107= 1.3.0 =
  • key4ce-osticket-bridge/trunk/templates/contact_ticket.php

    r1232501 r1236690  
    227227</tr>
    228228    <?php
     229    if($keyost_contactfilestatus==1)
     230    {
    229231if ($attachement_status==1 || $attachement_status==true) {
    230232    if(key4ce_getPluginValue('Attachments on the filesystem')==1)
     
    245247    }
    246248    }
     249}
    247250    ?>
    248251<?php
     
    250253{
    251254?>
    252 <script src='https://www.google.com/recaptcha/api.js'></script>
     255<script src="https://www.google.com/recaptcha/api.js"></script>
    253256<tr><td style="text-align: center;">
    254257<div class="g-recaptcha" data-sitekey="<?php echo $siteKey; ?>"></div>
     
    268271}
    269272?>
    270 
    271273<div class="key4ce_clear" style="padding: 10px;"></div>
  • key4ce-osticket-bridge/trunk/templates/list_tickets.php

    r1226493 r1236690  
    2323     }
    2424 }
    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){
    2727   e.stopPropagation();
    2828});
    2929});
    3030</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 } ?>
    3175<?php
    3276$time_format=key4ce_getKeyValue('time_format');
     
    95139        $ticket_tr="?service=view&ticket=".$list->number;
    96140    }
    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';\">";
    98143    if($keyost_usercloseticket==1) 
    99     echo "<div id='key4ce_ticket_list' onclick=\"location.href='$ticket_view';\">";
    100144    echo "<div id='key4ce_ticket_list0' class=\"noEdit\"><input type='checkbox' name='tickets[]' value='".$list->ticket_id."'></div>";
    101145    echo "<div id='key4ce_ticket_list1'><a href=$ticket_view>".$list->number."</a></div>";
  • key4ce-osticket-bridge/trunk/templates/new_ticket.php

    r1232501 r1236690  
    3030$extimp = implode(',', array_map('add_quotes', $allowedExts));
    3131$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";
    3248?>
    3349<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.