Plugin Directory

Changeset 1119633


Ignore:
Timestamp:
03/24/2015 01:03:44 PM (11 years ago)
Author:
m.tiggelaar
Message:

releasing bridge 1.2.8

Location:
key4ce-osticket-bridge
Files:
104 added
18 edited

Legend:

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

    r1107959 r1119633  
    55$dept_opt = $ost_wpdb->get_results("SELECT dept_name,dept_id FROM $dept_table where ispublic=1");
    66wp_enqueue_script('ost-bridge-validate',plugins_url('../js/validate.js', __FILE__));
    7 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    8 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     7
     8// Start File system changes
     9$fileconfig=key4ce_FileConfigValue();
     10$filedata=json_decode($fileconfig);
     11if($keyost_version==193)
     12{
     13$attachement_status=key4ce_getKeyValue('allow_attachments');
     14$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     15$agent_max_file_size=key4ce_getKeyValue('max_staff_file_uploads');
     16$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     17}
     18else
     19{
     20$attachement_status=$filedata->attachments;
     21$max_user_file_uploads=$filedata->max;
     22$agent_max_file_size=key4ce_getKeyValue('max_file_size');
     23$fileextesnions=$filedata->extensions;
     24}   
     25// End file system changes
     26
     27$alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     28$strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    929$allowedExts = explode(",", $strplc);
    1030function add_quotes($str) {
     
    7797        var addDiv = j('#addinput');
    7898        var i = j('#addinput p').size() + 1;
    79         var MaxFileInputs = <?php echo key4ce_getKeyValue('max_staff_file_uploads'); ?>;
     99        var MaxFileInputs = <?php echo $agent_max_file_size; ?>;
    80100        j('#addNew').live('click', function() {
    81101            if (i <= MaxFileInputs)
    82102            {
    83                 j('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;">Max file upload size : <?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
     103                j('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;">Max file upload size : <?php echo ($agent_max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
    84104                i++;
    85105            }
     
    111131        var FileSizeMB = (FileSize / 10485760).toFixed(2);
    112132        var FileExts = new Array(<?php echo $extimp; ?>);
    113         if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))
     133        if ((FileSize > <?php echo $agent_max_file_size; ?>))
    114134        {
    115             alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB.");
     135            alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo ($agent_max_file_size * .0009765625) * .0009765625; ?>MB.");
    116136            document.getElementById(FileId).value = "";
    117137            return false;
     
    241261        </tr>
    242262    <?php
    243 if (key4ce_getKeyValue('allow_attachments') == 1) {
     263if ($attachement_status==1 || $attachement_status==true) {
    244264    if(key4ce_getPluginValue('Attachments on the filesystem')==1)
    245265    {
     
    248268                    <div id="addinput">
    249269                        <p>
    250                             <span style="color:#000;"><?php echo __("Attachment 1:", 'key4ce-osticket-bridge'); ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span>
     270                            <span style="color:#000;"><?php echo __("Attachment 1:", 'key4ce-osticket-bridge'); ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ($agent_max_file_size * .0009765625) * .0009765625; ?>MB</span>
    251271                        </p>
    252272                    </div>
  • key4ce-osticket-bridge/trunk/admin/adminticketmail.php

    r1107959 r1119633  
    2929@$newtickettemp = Format::stripslashes($_REQUEST['newtickettemp']);
    3030$ip_add = $_SERVER['REMOTE_ADDR'];
    31 if($keyost_version==194)
     31if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    3232{
    3333$ticketstate = "1";
     
    4949$dept_name = $dept_details->dept_name;
    5050// Added by Pratik Maniar on 29-04-2014 End Here
     51
     52// Start File system changes
     53if($keyost_version==193)
     54{
     55$attachement_status=key4ce_getKeyValue('allow_attachments');
     56$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     57$max_file_size=key4ce_getKeyValue('max_file_size');
     58$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     59}
     60else
     61{
     62$fileconfig=key4ce_FileConfigValue();
     63$filedata=json_decode($fileconfig);
     64$attachement_status=$filedata->attachments;
     65$max_user_file_uploads=$filedata->max;
     66$max_file_size=$filedata->size;
     67$fileextesnions=$filedata->extensions;
     68}   
     69// End file system changes
     70
     71
    5172/////New user info > check if user exists or create a new user...
    5273$result1 = $ost_wpdb->get_results("SELECT address FROM " . $keyost_prefix . "user_email WHERE address = '" . $wp_user_email_id . "'");
     
    7697////End of new user info user_email_id email_id
    7798if (count($result1) > 0) {
    78 if($keyost_version==194)
     99if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    79100{
    80101 $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $usid, 'user_email_id' => $usid, 'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $usid, 'ip_address' => $ip_add, 'status_id' => $ticketstate, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s'));
     
    86107   
    87108} else {
    88 if($keyost_version==194)
     109if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    89110{
    90111 $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $last_ost_user_id, 'user_email_id' => $last_ost_user_email_id, 'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $last_ost_user_email_id, 'ip_address' => $ip_add, 'status_id' => $ticketstate, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s'));
     
    102123$ost_wpdb->insert($ticket_event_table, array('ticket_id' => $lastid, 'staff_id' => $staff_id, 'team_id' => $team_id, 'dept_id' => $dep_id, 'topic_id' => $top_id, 'state' => $stat, 'staff' => $staf, 'annulled' => $annulled, 'timestamp' => $cre), array('%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s'));
    103124// File Table Entry Code Start Here By Pratik Maniar on 29/08/2014
     125
    104126if (!empty($_FILES['file']['name'][0]))
    105127{   
     
    107129   for ($i = 0; $i < count($_FILES['file']['name']); $i++)
    108130    {   
    109     $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration
    110     $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration
    111131    $fullfinalpath= key4ce_getKeyValue('uploadpath');
    112132    $key4ce_generateHashKey = key4ce_generateHashKey(33);
     
    117137        mkdir($structure, 0355);
    118138    }
    119    $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    120     $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     139   $alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     140    $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    121141    $allowedExts = explode(",", $strplc);
    122142    $temp = explode(".", $_FILES['file']['name'][$i]);
     
    154174    }
    155175}
    156 if($keyost_version==194)
     176if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    157177{
    158178$ost_wpdb->insert($ticket_cdata, array('ticket_id' => $lastid, 'subject' => $sub, 'priority' =>$pri_id), array('%d', '%s',  '%d'));
  • key4ce-osticket-bridge/trunk/admin/db-settings.php

    r1107959 r1119633  
    210210LEFT JOIN $ticket_cdata ON $ticket_cdata.ticket_id = $ticket_table.ticket_id
    211211INNER JOIN $dept_table ON $dept_table.dept_id=$ticket_table.dept_id");
    212 if($keyost_version==194)
     212if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    213213{
    214214$ticket_count_open = $ost_wpdb->get_var("SELECT COUNT(*) FROM $ticket_table
     
    250250# Collecting info for threads listed in ost-ticketview
    251251# ==============================================================================================
    252 if($keyost_version=="194")
     252if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    253253{
    254254$ticketinfo=$ost_wpdb->get_row("SELECT $thread_table.poster,$ticket_table.user_id,$ticket_table.number,$ticket_table.created,$ticket_table.ticket_id,$ticket_table.isanswered,$ost_user.name,$dept_table.dept_name,$ost_ticket_status.state as status,$ticket_cdata.priority,$ticket_cdata.subject,$ost_useremail.address FROM $ticket_table
     
    295295    $status_opt='closed';
    296296    }
    297 if($keyost_version=="194")
     297if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    298298{
    299299$sql="SELECT $ticket_table.user_id,$ticket_table.number,$ticket_table.created, $ticket_table.updated, $ticket_table.ticket_id,$ticket_table.isanswered,$ticket_cdata.subject,$ticket_cdata.priority, $dept_table.dept_name
     
    314314if($status_opt && ($status_opt!="all") && @$search=="")
    315315{
    316     if($keyost_version=="194")
     316    if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    317317    {
    318318        $sql.=" and $ost_ticket_status.state = '".$status_opt."'";
  • key4ce-osticket-bridge/trunk/admin/ost-config.php

    r1107959 r1119633  
    121121<td>
    122122<?php
    123 if(@$keyost_version==194)
    124         @$keyost_version_194="selected='selected'";
    125     else
    126         @$keyost_version_19="selected='selected'";
     123if(@$keyost_version==193)
     124        @$keyost_version_193="selected='selected'";
     125else if(@$keyost_version==194)
     126        @$keyost_version_194="selected='selected'";     
     127else if(@$keyost_version==195)
     128        @$keyost_version_195="selected='selected'";
     129else
     130        @$keyost_version_1951="selected='selected'";
    127131?>
    128132<select name="keyost_version" id="keyost_version">
    129 <option value="19" <?php echo @$keyost_version_19; ?>>Ver. <=1.9.4</option>
    130 <option value="194" <?php echo @$keyost_version_194; ?>>Ver. >=1.9.4</option>
     133<option value="193" <?php echo @$keyost_version_193; ?>>Ver. 1.9.3</option>
     134<option value="194" <?php echo @$keyost_version_194; ?>>Ver. 1.9.4</option>
     135<option value="195" <?php echo @$keyost_version_195; ?>>Ver. 1.9.5</option>
     136<option value="1951" <?php echo @$keyost_version_1951; ?>>Ver. >=1.9.5.1</option>
    131137</select>&nbsp;&nbsp;<?php echo __("(Select Osticket Version)", 'key4ce-osticket-bridge'); ?>
    132138</td>
  • key4ce-osticket-bridge/trunk/admin/ost-postreplymail.php

    r1107959 r1119633  
    1212$signature=$ticket_details->dept_signature;
    1313$department_id=$ticket_details->dept_id;
     14// Start File system changes
     15$fileconfig=key4ce_FileConfigValue();
     16$filedata=json_decode($fileconfig);
     17if($keyost_version==194 || $keyost_version==195 || $keyost_version==193)
     18{
     19$attachement_status=key4ce_getKeyValue('allow_attachments');
     20$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     21$max_file_size=key4ce_getKeyValue('max_file_size');
     22$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     23}
     24else
     25{
     26$attachement_status=$filedata->attachments;
     27$max_user_file_uploads=$filedata->max;
     28$max_file_size=$filedata->size;
     29$fileextesnions=$filedata->extensions;
     30}   
     31// End file system changes
    1432if($signature_type=="mine")
    1533    $signature = $ost_wpdb->get_var("SELECT signature FROM $staff_table WHERE email='".$current_user->user_email."'");
     
    3553   for ($i = 0; $i < count($_FILES['file']['name']); $i++)
    3654    {
    37     $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration
    38     $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration
    3955    $fullfinalpath= key4ce_getKeyValue('uploadpath');
    4056    $key4ce_generateHashKey = key4ce_generateHashKey(33);
     
    4561        mkdir($structure, 0355);
    4662    }
    47     $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    48     $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     63    $alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     64    $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    4965    $allowedExts = explode(",", $strplc);
    5066    $temp = explode(".", $_FILES['file']['name'][$i]);
     
    8399$ost_wpdb->query($ost_wpdb->prepare("UPDATE $ticket_table SET isanswered = 1 WHERE number = %s",$ticket_number));
    84100/* Added by Pratik Maniar End Here On 28-04-2014*/
    85 if($keyost_version==194)
     101if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    86102{
    87103if(isset($_REQUEST['reply_ticket_status'])) {
  • key4ce-osticket-bridge/trunk/admin/ost-tickets.php

    r1107959 r1119633  
    2626    foreach($close_ticket_list as $close_ticket)
    2727    {               
    28         if($keyost_version==194)
     28        if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    2929            $ost_wpdb->update($ticket_table, array('status_id'=>'3'), array('ticket_id'=>$close_ticket), array('%s'));
    3030        else
     
    4242    foreach($reopen_ticket_list as $reopen_ticket)
    4343    {               
    44         if($keyost_version==194)
     44        if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    4545            $ost_wpdb->update($ticket_table, array('status_id'=>'1'), array('ticket_id'=>$reopen_ticket), array('%s'));
    4646        else   
     
    122122    echo "<div id='key4ce_ticket_list2'>".key4ce_truncate($sub_str,60,'...')."</div>
    123123    <div id='key4ce_ticket_list3'>";
    124     if($keyost_version==194)
     124    if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    125125            $priority=$list->priority;
    126126    else   
  • key4ce-osticket-bridge/trunk/admin/ost-ticketview.php

    r1107959 r1119633  
    11<?php
    22require_once( WP_PLUGIN_DIR . '/key4ce-osticket-bridge/includes/functions.php' );
    3  $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    4     $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     3// Start File system changes
     4if($keyost_version==193)
     5{
     6$attachement_status=key4ce_getKeyValue('allow_attachments');
     7$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     8$max_file_size=key4ce_getKeyValue('max_file_size');
     9$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     10}
     11else
     12{
     13$fileconfig=key4ce_FileConfigValue();
     14$filedata=json_decode($fileconfig);
     15$attachement_status=$filedata->attachments;
     16$max_user_file_uploads=$filedata->max;
     17$max_file_size=$filedata->size;
     18$fileextesnions=$filedata->extensions;
     19}
     20// End file system changes
     21$alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     22$strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    523$allowedExts = explode(",", $strplc);
    624
     
    2038            if (i <= MaxFileInputs)
    2139            {
    22                 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;">Max file upload size : <?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
     40                $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?>' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;">Max file upload size : <?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
    2341                i++;
    2442            }
     
    5270        if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))
    5371        {
    54             alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB.");
     72            alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB.");
    5573            document.getElementById(FileId).value = "";
    5674            return false;
     
    109127                <td>
    110128                    <div><?php
    111                         if($keyost_version==194)
     129                        if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    112130                                $priority=$ticketinfo->priority;
    113131                        else   
     
    214232                ?>
    215233      <?php
    216 if (key4ce_getKeyValue('allow_attachments') == 1) {
     234if ($attachement_status==1 || $attachement_status==true) {
    217235    if(key4ce_getPluginValue('Attachments on the filesystem')==1)
    218236    {
  • key4ce-osticket-bridge/trunk/includes/database.php

    r1107959 r1119633  
    2424/*Add user id of ticket instead of wordpress end here*/
    2525
    26 if($keyost_version==194)
     26if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    2727{
    2828$getNumOpenTickets=$ost_wpdb->get_var("SELECT COUNT(*) FROM $ticket_table INNER JOIN $ost_ticket_status ON $ost_ticket_status.id=$ticket_table.status_id WHERE user_id='$user_id' and $ost_ticket_status.state='open'");
     
    3939}
    4040//////Ticket Info
    41 if($keyost_version==194)
     41if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    4242{
    4343$ticketinfo=$ost_wpdb->get_row("SELECT $ticket_table.user_id,$ost_ticket_status.state as status,$ticket_table.number,$ticket_table.created,$ticket_table.ticket_id,$ticket_table.isanswered,$ost_user.name,$dept_table.dept_name,$ticket_cdata.priority,$ticket_cdata.subject,$ost_useremail.address FROM $ticket_table INNER JOIN $dept_table ON $dept_table.dept_id=$ticket_table.dept_id INNER JOIN $ost_user ON $ost_user.id=$ticket_table.user_id INNER JOIN $ost_ticket_status ON $ost_ticket_status.id=$ticket_table.status_id INNER JOIN $ost_useremail ON $ost_useremail.user_id=$ticket_table.user_id LEFT JOIN $ticket_cdata on $ticket_cdata.ticket_id = $ticket_table.ticket_id WHERE `number` ='$ticket'");
     
    8181if($user_id!="")       
    8282{
    83 if($keyost_version==194)
     83if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    8484{
    8585$sql="";
     
    104104if($status_opt && ($status_opt!="all") && $search=="")
    105105{
    106 if($keyost_version==194)
     106if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    107107    $sql.=" and $ost_ticket_status.state = '".$status_opt."'";
    108108else   
  • key4ce-osticket-bridge/trunk/includes/functions.php

    r1107959 r1119633  
    4949    return $getKeyvalue;
    5050}
     51
     52
    5153function key4ce_getPluginValue($plugin)
    5254{   
     
    101103    return $getUserEmail;
    102104}
     105//1.9.5.1 Functions
     106function key4ce_FileConfigValue()
     107{   
     108    $config = get_option('os_ticket_config');
     109    extract($config);
     110    $ost_wpdb = new wpdb($username, $password, $database, $host);   
     111    $getConfigValue=$ost_wpdb->get_var("SELECT configuration FROM ".$keyost_prefix."form_field WHERE `type` = 'thread' AND label='Issue Details' AND name='message'");
     112    return $getConfigValue;
     113   
     114}
     115
    103116?>
  • key4ce-osticket-bridge/trunk/includes/newticketmail.php

    r1107959 r1119633  
    3333@$newtickettemp = Format::stripslashes($_REQUEST['newtickettemp']);
    3434$ip_add = $_SERVER['REMOTE_ADDR'];
    35 if($keyost_version==194)
     35if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    3636{
    3737$ticketstate = "1";
    3838}
    3939else{
    40 $ticketstate = "open";
    41 }
    42 
     40$ticketstate = "open";
     41}
    4342$sour = "Web";
    4443$isoverdue = 0;
    4544$isans = 0;
    46 $las_msg = date("Y-m-d g:i:s",strtotime('+1 hours'))."<br>";
     45$las_msg = date("Y-m-d g:i:s",strtotime('+1 hours'));
    4746$cre = date("Y-m-d g:i:s",strtotime('+1 hours'));
    4847@$user_message = Format::stripslashes($_REQUEST['message']);
     
    6160    @$last_ost_user_email_id = $ost_wpdb->insert_id;
    6261}
    63 
    6462$result2 = $ost_wpdb->get_results("SELECT default_email_id,name FROM " . $keyost_prefix . "user WHERE default_email_id = '" . @$last_ost_user_email_id . "'");
    6563if (count($result2) > 0) {
     
    8078////End of new user info user_email_id email_id
    8179if (count($result1) > 0) {
    82 if($keyost_version==194)
     80if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    8381{
    8482     $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $usid, 'user_email_id' => $usid,'status_id' => $ticketstate,'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $usid, 'ip_address' => $ip_add, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s'));
     
    9088   
    9189} else {
    92 if($keyost_version==194)
     90if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    9391{
    9492  $ost_wpdb->insert($ticket_table, array('number' => $tic_ID, 'user_id' => $last_ost_user_id, 'user_email_id' => $last_ost_user_email_id, 'status_id' => $ticketstate,'dept_id' => $dep_id, 'sla_id' => $sla_id, 'topic_id' => $top_id, 'staff_id' => $staff_id, 'team_id' => $team_id, 'email_id' => $last_ost_user_email_id, 'ip_address' => $ip_add, 'status_id' => $ticketstate, 'source' => $sour, 'isoverdue' => $isoverdue, 'isanswered' => $isans, 'lastmessage' => $las_msg, 'created' => $cre), array('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s'));
     
    104102$annulled = 0;
    105103$ost_wpdb->insert($ticket_event_table, array('ticket_id' => $lastid, 'staff_id' => $staff_id, 'team_id' => $team_id, 'dept_id' => $dep_id, 'topic_id' => $top_id, 'state' => $stat, 'staff' => $staf, 'annulled' => $annulled, 'timestamp' => $cre), array('%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s'));
     104if($keyost_version==193)
     105{
     106$attachement_status=key4ce_getKeyValue('allow_attachments');
     107$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     108$max_file_size=key4ce_getKeyValue('max_file_size');
     109$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     110}
     111else
     112{
     113$fileconfig=key4ce_FileConfigValue();
     114$filedata=json_decode($fileconfig);
     115$attachement_status=$filedata->attachments;
     116$max_user_file_uploads=$filedata->max;
     117$max_file_size=$filedata->size;
     118$fileextesnions=$filedata->extensions;
     119}
    106120// File Table Entry Code Start Here By Pratik Maniar on 29/08/2014
    107121if (!empty($_FILES['file']['name'][0]))
     
    110124   for ($i = 0; $i < count($_FILES['file']['name']); $i++)
    111125    {   
    112     $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration
    113     $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration
    114126    $fullfinalpath= key4ce_getKeyValue('uploadpath');
    115127    $key4ce_generateHashKey = key4ce_generateHashKey(33);
     
    117129    $dir_name = substr($key4ce_generateHashKey, 0, 1);
    118130    $structure = $fullfinalpath."/".$dir_name;
     131    //$structure."<br>";
    119132    if (!is_dir($structure)) {
    120133        mkdir($structure, 0355);
    121134    }
    122    $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    123     $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     135    $alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     136    $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    124137    $allowedExts = explode(",", $strplc);
    125138    $temp = explode(".", $_FILES['file']['name'][$i]);
     
    129142    $filetype = $_FILES["file"]["type"][$i];
    130143    $filesize = $_FILES["file"]["size"][$i];
     144    //$structure . "/" . $newfilename;
    131145    if (($_FILES["file"]["size"][$i] < $max_file_size) && in_array($extension, $allowedExts)) {
    132146        if ($_FILES["file"]["error"][$i] > 0) {
    133147            echo "Return Code: " . $_FILES["file"]["error"][$i] . "<br>";
     148            exit;
    134149        } else {
    135150            move_uploaded_file($_FILES["file"]["tmp_name"][$i], $structure . "/" . $newfilename);
     
    157172    }
    158173}
    159 if($keyost_version==194)
     174if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    160175{
    161176$ost_wpdb->insert($ticket_cdata, array('ticket_id' => $lastid, 'subject' => $sub, 'priority' =>$pri_id), array('%d', '%s',  '%d'));
  • key4ce-osticket-bridge/trunk/includes/postreplymail.php

    r1107959 r1119633  
    3232$dept_details=$ost_wpdb->get_row("SELECT * FROM $dept_table WHERE dept_id=$dep_id");
    3333$dept_name=$dept_details->dept_name;
    34 
     34// Start File system changes
     35$fileconfig=key4ce_FileConfigValue();
     36$filedata=json_decode($fileconfig);
     37if($keyost_version==193)
     38{
     39$attachement_status=key4ce_getKeyValue('allow_attachments');
     40$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     41$max_file_size=key4ce_getKeyValue('max_file_size');
     42$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     43}
     44else
     45{
     46$attachement_status=$filedata->attachments;
     47$max_user_file_uploads=$filedata->max;
     48$max_file_size=$filedata->size;
     49$fileextesnions=$filedata->extensions;
     50}   
     51// End file system changes
    3552$ost_wpdb->insert($thread_table, array('pid' => $pid,'ticket_id' => $ticid,'staff_id' => $staffid,'user_id' => $usid,'thread_type' => $thread_type,'poster' => $poster,'source' => $source,'title' => "",'body' => key4ce_wpetss_forum_text($user_message),'ip_address' => $ipaddress,'created' => $date),  array('%d','%d','%d','%d','%s','%s','%s','%s','%s','%s','%s'));
    3653$thread_id = $ost_wpdb->insert_id;
     
    4259   for ($i = 0; $i < count($_FILES['file']['name']); $i++)
    4360    {     
    44     $allowed_filetypes = key4ce_getKeyValue('allowed_filetypes'); //Return allowed file types from Osticket configuration
    45     $max_file_size = key4ce_getKeyValue('max_file_size'); //Return max file size from Osticket configuration
    46    $fullfinalpath= key4ce_getKeyValue('uploadpath');
     61    $fullfinalpath= key4ce_getKeyValue('uploadpath');
    4762    $key4ce_generateHashKey = key4ce_generateHashKey(33);
    4863    $key4ce_generateHashSignature = key4ce_generateHashSignature(33);
     
    5267        mkdir($structure, 0355);
    5368    }
    54     $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    55     $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     69    $alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     70    $strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    5671    $allowedExts = explode(",", $strplc);
    5772    $temp = explode(".", $_FILES['file']['name'][$i]);
     
    6479        if ($_FILES["file"]["error"][$i] > 0) {
    6580            echo "Return Code: " . $_FILES["file"]["error"][$i] . "<br>";
     81            exit;
    6682        } else {
    6783            move_uploaded_file($_FILES["file"]["tmp_name"][$i], $structure . "/" . $newfilename);
     
    88104$ost_wpdb->query($ost_wpdb->prepare("UPDATE $ticket_table SET isanswered = 0 WHERE number = %d",$usticketid));
    89105/* Added by Pratik Maniar End Here On 28-04-2014*/
    90 if($keyost_version==194)
     106if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    91107{
    92108if(isset($_REQUEST['reply_ticket_status'])) {
  • key4ce-osticket-bridge/trunk/languages/key4ce-osticket-bridge-ar.po

    r1111101 r1119633  
    904904#~ msgid "Support Center Status"
    905905#~ msgstr "حالة مركز الدعم"
     906# English translations for PACKAGE package.
     907# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
     908# This file is distributed under the same license as the PACKAGE package.
     909# Automatically generated, 2012.
     910#
     911msgid ""
     912msgstr ""
     913"Project-Id-Version: key4ce-osticket-bridge 1.0\n"
     914"Report-Msgid-Bugs-To: \n"
     915"POT-Creation-Date: 2015-03-09 12:25+0200\n"
     916"PO-Revision-Date: 2015-03-10 13:23+0200\n"
     917"Last-Translator: Muhammad Bashir Al-Noimi <[email protected]>\n"
     918"Language-Team: none\n"
     919"Language: ar\n"
     920"MIME-Version: 1.0\n"
     921"Content-Type: text/plain; charset=UTF-8\n"
     922"Content-Transfer-Encoding: 8bit\n"
     923"X-Poedit-SourceCharset: UTF-8\n"
     924"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n"
     925"%100<=99 ? 4 : 5);\n"
     926"X-Generator: Poedit 1.7.4\n"
     927"X-Poedit-KeywordsList: __\n"
     928"X-Poedit-Basepath: .\n"
     929"X-Poedit-SearchPath-0: .\n"
     930"X-Poedit-SearchPath-1: ..\n"
     931
     932#: ../admin/admin_create_ticket.php:83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:22
     933#: ../templates/view_ticket.php:26 ../templates/view_ticket.php:244
     934msgid "Attachment"
     935msgstr "مرفق"
     936
     937#: ../admin/admin_create_ticket.php:83 ../admin/ost-ticketview.php:22 ../templates/new_ticket.php:22
     938#: ../templates/view_ticket.php:26
     939msgid "Remove"
     940msgstr "إزالة"
     941
     942#: ../admin/admin_create_ticket.php:88 ../admin/ost-ticketview.php:27 ../templates/new_ticket.php:27
     943#: ../templates/view_ticket.php:31
     944msgid "You have exceeds your file upload limit"
     945msgstr "لقد تجاوزت حد الرفع المسموح لك"
     946
     947#: ../admin/admin_create_ticket.php:115 ../admin/ost-ticketview.php:54 ../templates/new_ticket.php:54
     948#: ../templates/view_ticket.php:58
     949msgid "Please make sure your file is less than"
     950msgstr "يرجى الـتأكد أن حجم الملف أقل من"
     951
     952#: ../admin/admin_create_ticket.php:121 ../admin/ost-ticketview.php:60 ../templates/new_ticket.php:60
     953#: ../templates/view_ticket.php:64
     954msgid "Please make sure your file extension should be :"
     955msgstr "يرجى التأكد من أن امتداد الملف يجب أن يكون:"
     956
     957#: ../admin/admin_create_ticket.php:176
     958msgid "Create A New Ticket"
     959msgstr "إنشاء بطاقة جديدة"
     960
     961#: ../admin/admin_create_ticket.php:178 ../templates/contact_ticket.php:58 ../templates/new_ticket.php:98
     962msgid ""
     963"Please fill in the form below to open a new ticket. All fields mark with [<font color=red>*</font>] <em>Are "
     964"Required!"
     965msgstr "يرجى تعبئة النموذج أدناه لفتح بطاقة جديدة، جميع الحقول الملونة بالأحمر مطلوبة."
     966
     967#: ../admin/admin_create_ticket.php:187
     968msgid "Select User Type :"
     969msgstr "اختر نوع المستخدم: "
     970
     971#: ../admin/admin_create_ticket.php:189
     972msgid "WP Users"
     973msgstr "مستخدمي الوورد برس"
     974
     975#: ../admin/admin_create_ticket.php:190
     976msgid "Osticket Users"
     977msgstr "مستخدمي Osticket "
     978
     979#: ../admin/admin_create_ticket.php:191 ../admin/admin_create_ticket.php:196 ../admin/ost-ticketview.php:96
     980#: ../templates/new_ticket.php:106
     981msgid "Username"
     982msgstr "اسم المستخدم"
     983
     984#: ../admin/admin_create_ticket.php:194
     985msgid "WP Username"
     986msgstr "اسم مستخدم الوورد برس"
     987
     988#: ../admin/admin_create_ticket.php:195
     989msgid "Osticket Username"
     990msgstr "اسم مستخدم Osticket "
     991
     992#: ../admin/admin_create_ticket.php:199 ../templates/new_ticket.php:109
     993msgid "Your Email"
     994msgstr "البريد الالكتروني"
     995
     996#: ../admin/admin_create_ticket.php:202 ../admin/ost-tickets.php:86 ../admin/ost-ticketview.php:134
     997#: ../templates/contact_ticket.php:83 ../templates/list_tickets.php:48 ../templates/new_ticket.php:112
     998#: ../templates/view_ticket.php:145
     999msgid "Subject"
     1000msgstr "العنوان"
     1001
     1002#: ../admin/admin_create_ticket.php:205 ../templates/new_ticket.php:115
     1003msgid "Catagories"
     1004msgstr "التصنيفات"
     1005
     1006#: ../admin/admin_create_ticket.php:208 ../templates/contact_ticket.php:73 ../templates/new_ticket.php:118
     1007msgid "Select a Category"
     1008msgstr "اختر تصنيف"
     1009
     1010#: ../admin/admin_create_ticket.php:216 ../admin/ost-tickets.php:87 ../admin/ost-ticketview.php:108
     1011#: ../templates/view_ticket.php:109
     1012msgid "Priority"
     1013msgstr "الأولوية"
     1014
     1015#: ../admin/admin_create_ticket.php:218 ../templates/new_ticket.php:128
     1016msgid "Select a Priority"
     1017msgstr "اختر الأولولية"
     1018
     1019#: ../admin/admin_create_ticket.php:229
     1020msgid "To best assist you, please be specific and detailed in your message *"
     1021msgstr "لتقديم أفضل مساعدة لك، يرجى توضيح التفاصيل جيداً في الرسالة *"
     1022
     1023#: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160
     1024msgid "Attachment 1:"
     1025msgstr "مرفق 1:"
     1026
     1027#: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160
     1028#: ../templates/view_ticket.php:244
     1029msgid "Add"
     1030msgstr "إضافة"
     1031
     1032#: ../admin/admin_create_ticket.php:250 ../admin/ost-ticketview.php:223 ../templates/new_ticket.php:160
     1033#: ../templates/view_ticket.php:26 ../templates/view_ticket.php:244
     1034msgid "Max file upload size :"
     1035msgstr "الحد الأقصى لحجم الملف:"
     1036
     1037#: ../admin/admin_create_ticket.php:257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167
     1038msgid "Attachments on the Filesystem plugin can be downloaded here:"
     1039msgstr "مرفقات هذه الإضافة يمكن تحميلها من هنا:"
     1040
     1041#: ../admin/admin_create_ticket.php:257 ../admin/ost-ticketview.php:230 ../templates/new_ticket.php:167
     1042#: ../templates/view_ticket.php:251
     1043msgid "Attachement Filesystem Plugin"
     1044msgstr "إضافة الملفات المرفقة"
     1045
     1046#: ../admin/admin_create_ticket.php:264 ../admin/header_nav_ticket.php:18 ../ost-bridge.php:148
     1047#: ../templates/nav_bar.php:46 ../templates/new_ticket.php:174
     1048msgid "Create Ticket"
     1049msgstr "إنشاء بطاقة"
     1050
     1051#: ../admin/admin_create_ticket.php:265 ../templates/contact_ticket.php:110 ../templates/new_ticket.php:175
     1052#: ../templates/view_ticket.php:271
     1053msgid "Reset"
     1054msgstr "إعادة تعيين الافتراضيات"
     1055
     1056# ------------------Email Template ost-emailtemp.php End Here half file remain-----------------------------------
     1057#: ../admin/db-settings.php:394 ../admin/db-settings.php:444 ../admin/db-settings.php:456
     1058#: ../admin/db-settings.php:468
     1059msgid "Stand by while your"
     1060msgstr "انتظر قليلاً"
     1061
     1062#: ../admin/db-settings.php:394 ../ost-bridge.php:154
     1063msgid "Settings"
     1064msgstr "إعدادات"
     1065
     1066#: ../admin/db-settings.php:394
     1067msgid "are being updated..."
     1068msgstr "يتم تحديث ..."
     1069
     1070#: ../admin/db-settings.php:403 ../admin/db-settings.php:422 ../admin/ost-config.php:28
     1071msgid "Error:"
     1072msgstr "خطأ:"
     1073
     1074#: ../admin/db-settings.php:403 ../admin/db-settings.php:422
     1075msgid ""
     1076"Message field cannot be empty, if you are closing the ticket, then enter: \"Closing Ticket\" in post a reply."
     1077msgstr "حقل الرسالة لا يمكن أن يكون فارغا, إن كنت تغلق البطاقة فأدخل: \"إغلاق البطاقة\" بحقل الرّد."
     1078
     1079#: ../admin/db-settings.php:407
     1080msgid "Thread updated successfully...Stand by: for auto refresh!"
     1081msgstr "تم تحديث الموضوع بنجاح.... انتظر قليلاً!"
     1082
     1083#: ../admin/db-settings.php:426
     1084msgid "Ticket created successfully...Stand by: for auto refresh!"
     1085msgstr "تم إنشاء البطاقة بنجاح.... انتظر قليلاً!"
     1086
     1087#: ../admin/db-settings.php:444 ../admin/ost-emailtemp.php:56
     1088msgid "Admin Response Email"
     1089msgstr "بريد رد المدير"
     1090
     1091#: ../admin/db-settings.php:444 ../admin/db-settings.php:456 ../admin/db-settings.php:468
     1092msgid "is being updated..."
     1093msgstr "جاري التحديث ..."
     1094
     1095#: ../admin/db-settings.php:456 ../admin/ost-emailtemp.php:38
     1096msgid "New Ticket Email"
     1097msgstr "بطاقة جديدة"
     1098
     1099#: ../admin/db-settings.php:468 ../admin/ost-emailtemp.php:75
     1100msgid "User Post Confirmation Email"
     1101msgstr "بريد تأكيد نشر المستخدم"
     1102
     1103#: ../admin/header_nav.php:16
     1104msgid "Data Config"
     1105msgstr "تكوين البيانات"
     1106
     1107#: ../admin/header_nav.php:17
     1108msgid "osT-Settings"
     1109msgstr "إعدادات osT"
     1110
     1111#: ../admin/header_nav.php:18 ../ost-bridge.php:164
     1112msgid "Email Templates"
     1113msgstr "قوالب البريد"
     1114
     1115#: ../admin/header_nav.php:19 ../ost-bridge.php:70
     1116msgid "Support Tickets"
     1117msgstr "بطاقات الدعم"
     1118
     1119#: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:42
     1120msgid "1 or more of your email templates is not setup"
     1121msgstr "واحد أو أكثر من قوالب البريد لم يتم إعداده"
     1122
     1123#: ../admin/header_nav.php:26 ../admin/header_nav_ticket.php:42
     1124msgid "Click Here"
     1125msgstr "انقر هنا"
     1126
     1127#: ../admin/header_nav_ticket.php:21 ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:50
     1128#: ../admin/ost-emailtemp.php:69 ../admin/ost-ticketview.php:90 ../templates/list_tickets.php:95
     1129#: ../templates/view_ticket.php:90
     1130msgid "Open"
     1131msgstr "فتح"
     1132
     1133#: ../admin/header_nav_ticket.php:22 ../admin/ost-ticketview.php:92 ../templates/list_tickets.php:98
     1134#: ../templates/view_ticket.php:92
     1135msgid "Answered"
     1136msgstr "تمت الإجابة"
     1137
     1138#: ../admin/header_nav_ticket.php:23 ../admin/ost-ticketview.php:88 ../templates/list_tickets.php:92
     1139#: ../templates/nav_bar.php:53 ../templates/view_ticket.php:88
     1140msgid "Closed"
     1141msgstr "مغلق"
     1142
     1143#: ../admin/header_nav_ticket.php:24
     1144msgid "All"
     1145msgstr "الكل"
     1146
     1147#: ../admin/header_nav_ticket.php:30
     1148msgid "Search"
     1149msgstr "بحث"
     1150
     1151#: ../admin/header_nav_ticket.php:33
     1152msgid "Go >>"
     1153msgstr "اذهب >>"
     1154
     1155#: ../admin/header_nav_ticket.php:42
     1156msgid "Warning:"
     1157msgstr "تحذير:"
     1158
     1159#: ../admin/ost-config.php:8
     1160msgid "osTicket Data Configuration"
     1161msgstr "تكوين بيانات osTicket "
     1162
     1163#: ../admin/ost-config.php:11
     1164msgid ""
     1165"View or edit your OSTicket database information, you should already have osTicket installed to your server, "
     1166"view the osticket-folder/include/ost-config.php file. Look for DBHOST, DBNAME & DBUSER for the info required "
     1167"below."
     1168msgstr ""
     1169"عرض أو تعديل معلومات قاعدة بيانات OSTicket، يجب أن يكون OSTicket قد تم تنصيبه مسبقاً على مخدّمك، راجع الملف "
     1170"osticket-folder/include/ost-config.php و ابحث عن المتغيرات DBHOST، DBNAME ،DBUSER"
     1171
     1172#: ../admin/ost-config.php:11
     1173msgid ""
     1174"Landing Page Name: The welcome page can be any name you want: Support, Helpdesk, Contact-Us, ext...the plugin "
     1175"will create this page. Note: If this page exists it will be over written, also this cannot be the same name as "
     1176"your osTicket folder."
     1177msgstr ""
     1178"اسم الصفحة الرئيسية: الصفحة الترحيبية يمكن أن تكون بأي اسم تريده: الدعم، المساعدة، اتصل بنا... إلخ ستقوم "
     1179"الإضافة بإنشاء هذه الصفحة في حالة عدم تواجدها. ملاحظة: في حال وجود الصفحة مسبقاً ستقوم الإضافة بالكتابة فوقها "
     1180"كذلك لا يمكن أن يكون اسمها بنفس اسم مجلد osTicket."
     1181
     1182#: ../admin/ost-config.php:28
     1183msgid "All fields are required below for the database..."
     1184msgstr "جميع الحقول أدناه مطلوبة لقاعدة البيانات..."
     1185
     1186#: ../admin/ost-config.php:89
     1187msgid "Your settings saved successfully...Thank you!"
     1188msgstr "تم حفظ إعداداتك بنجاح... شكراً لك"
     1189
     1190#: ../admin/ost-config.php:100
     1191msgid "Host Name:"
     1192msgstr "اسم المضيف:"
     1193
     1194#: ../admin/ost-config.php:101
     1195msgid "( Normally this is localhost )"
     1196msgstr "( عادة يكون localhost )"
     1197
     1198#: ../admin/ost-config.php:104
     1199msgid "Database Name:"
     1200msgstr "اسم قاعدة البيانات:"
     1201
     1202#: ../admin/ost-config.php:105
     1203msgid "( osTicket Database Name Goes Here )"
     1204msgstr "( اسم قاعدة بيانات osTicket هنا )"
     1205
     1206#: ../admin/ost-config.php:108
     1207msgid "Database Username:"
     1208msgstr "اسم المستخدم لقاعدة البيانات:"
     1209
     1210#: ../admin/ost-config.php:109
     1211msgid "( osTicket Database Username Goes Here )"
     1212msgstr "( اسم مستخدم قاعدة بيانات osTicket هنا )"
     1213
     1214#: ../admin/ost-config.php:112
     1215msgid "Database Password:"
     1216msgstr "كلمة المرور:"
     1217
     1218#: ../admin/ost-config.php:113
     1219msgid "( osTicket Database Password Goes Here )"
     1220msgstr "( كلمة مرور قاعدة بيانات osTicket هنا )"
     1221
     1222#: ../admin/ost-config.php:116
     1223msgid "Database Prefix:"
     1224msgstr "بادئة قاعدة البيانات:"
     1225
     1226#: ../admin/ost-config.php:117
     1227msgid "( osTicket Database Prefix Goes Here )"
     1228msgstr "( بادئة قاعدة البيانات osTicket هنا )"
     1229
     1230#: ../admin/ost-config.php:120
     1231msgid "Osticket Version:"
     1232msgstr "إصدار osTicket:"
     1233
     1234#: ../admin/ost-config.php:131
     1235msgid "(Select Osticket Version)"
     1236msgstr "(اختر إصدار Osticket)"
     1237
     1238#: ../admin/ost-config.php:135
     1239msgid "Enable Closing Ticket By User:"
     1240msgstr "تفعيل إغلاق البطاقة بواسطة المستخدم:"
     1241
     1242#: ../admin/ost-config.php:139
     1243msgid "Landing Page Name:"
     1244msgstr "اسم الصفحة الرئيسية:"
     1245
     1246#: ../admin/ost-config.php:141
     1247msgid "Landing Page Name( Create this page...read Landing Page Note above! )"
     1248msgstr "اسم الصفحة الرئيسية ( أنشئ هذه الصحفة... اقرأ حولها بالملاحظة أعلاه! )"
     1249
     1250#: ../admin/ost-config.php:144
     1251msgid "Contact Ticket Page:"
     1252msgstr "صفحة بطاقة الاتصال:"
     1253
     1254#: ../admin/ost-config.php:166
     1255msgid "(Select contact ticket page)"
     1256msgstr "(احتر صفحة بطاقة الاتصال)"
     1257
     1258#: ../admin/ost-config.php:170
     1259msgid "Thank You Page:"
     1260msgstr "صفحة الشكر:"
     1261
     1262#: ../admin/ost-config.php:192
     1263msgid "(Select thank you page)"
     1264msgstr "(اختر صفحة الشكر)"
     1265
     1266#: ../admin/ost-config.php:197
     1267msgid "Save Changes"
     1268msgstr "حفظ التعديلات"
     1269
     1270#: ../admin/ost-emailtemp.php:8
     1271msgid "osTicket Email Templates"
     1272msgstr "قوالب بريد osTicket "
     1273
     1274# ------------------Email Template ost-emailtemp.php Start Here-----------------------------------
     1275#: ../admin/ost-emailtemp.php:11
     1276msgid ""
     1277"The \"Email Templates\" sent from site to client: new tickets confirmations, user post confirmations & admin "
     1278"post replies."
     1279msgstr "\"قوالب البريد\" أرسلت من الموقع للزبون: تأكيدات البطاقات الجديدة و ملاحظات المستخدم و ردود المدير."
     1280
     1281#: ../admin/ost-emailtemp.php:11
     1282msgid ""
     1283"Note: Each input field will have a suggested default template, you can place any text & use the variables "
     1284"listed below."
     1285msgstr "ملاحظة: كل حقل إدخال فيه قيم افتراضية مقترحة، يمكنك وضع أي نص واستخدام المتغيرات المدرجة أدناه."
     1286
     1287#: ../admin/ost-emailtemp.php:13
     1288msgid "$Variables You can use In Email"
     1289msgstr "$Variables يمكنك استخدام المتغيرات في البريد الإلكتروني"
     1290
     1291#: ../admin/ost-emailtemp.php:15
     1292msgid "$username=\"User Name\""
     1293msgstr "$username=\"اسم المستخدم\""
     1294
     1295#: ../admin/ost-emailtemp.php:16
     1296msgid "$usermail=\"User Email\""
     1297msgstr "$usermail=\"بريد المستخدم\""
     1298
     1299#: ../admin/ost-emailtemp.php:17
     1300msgid "$ticketid=\"Ticket #\""
     1301msgstr "$ticketid=\"رقم البطاقة\""
     1302
     1303#: ../admin/ost-emailtemp.php:18
     1304msgid "$ticketurl=\"Ticket Url\""
     1305msgstr "$ticketurl=\"رابط البطاقة\""
     1306
     1307#: ../admin/ost-emailtemp.php:19
     1308msgid "$ostitle=\"Support Title\""
     1309msgstr "$ostitle=\"عنوان الدعم\""
     1310
     1311#: ../admin/ost-emailtemp.php:20
     1312msgid "$siteurl=\"Support Url\""
     1313msgstr "$siteurl=\"رابط الدعم\""
     1314
     1315#: ../admin/ost-emailtemp.php:21
     1316msgid "$dname=\"Landing Page\""
     1317msgstr "$dname=\"الصفحة الرئيسية\""
     1318
     1319#: ../admin/ost-emailtemp.php:22
     1320msgid "$user_message=\"Users Message\""
     1321msgstr "$user_message=\"رسالة المستخدمين\""
     1322
     1323#: ../admin/ost-emailtemp.php:23
     1324msgid "$admin_response=\"Staff Message\""
     1325msgstr "$admin_response=\"رسالة الموظف\""
     1326
     1327#: ../admin/ost-emailtemp.php:24
     1328msgid "$signature=\"Staff/ Department Signature\""
     1329msgstr "$signature=\"توقيع القسم/الموظف\""
     1330
     1331#: ../admin/ost-emailtemp.php:25
     1332msgid "$ussubject=\"Ticket subject\""
     1333msgstr "$ussubject=\"عنوان البطاقة\""
     1334
     1335#: ../admin/ost-emailtemp.php:32
     1336msgid "New Ticket Email Template"
     1337msgstr "قالب رسالة بطاقة جديدة"
     1338
     1339#: ../admin/ost-emailtemp.php:32 ../admin/ost-emailtemp.php:69
     1340msgid "We suggest using this template in the user confirmation email below."
     1341msgstr "نقترح عليك استخدام هذا القالب في رسالة تأكيد المستخدم أدناه."
     1342
     1343#: ../admin/ost-emailtemp.php:38 ../admin/ost-emailtemp.php:56 ../admin/ost-emailtemp.php:75
     1344#: ../admin/ost-tickets.php:167 ../admin/ost-tickets.php:169 ../admin/ost-tickets.php:174
     1345#: ../admin/ost-ticketview.php:241 ../templates/list_tickets.php:122 ../templates/view_ticket.php:263
     1346msgid "Close"
     1347msgstr "إغلاق"
     1348
     1349#: ../admin/ost-emailtemp.php:45
     1350msgid "Save - New Ticket Email"
     1351msgstr "حفظ - رسالة بطاقة جديدة"
     1352
     1353#: ../admin/ost-emailtemp.php:50
     1354msgid "Admin Response Email Template"
     1355msgstr "قالب بريد رد المشرف"
     1356
     1357#: ../admin/ost-emailtemp.php:50
     1358msgid "We suggest using this template in your post reply to user below."
     1359msgstr "نحن نقترح عليك استخدام هذا القالب في الرد على المقالة للمستخدم أدناه."
     1360
     1361#: ../admin/ost-emailtemp.php:69
     1362msgid "User Post Confirmation Email Template"
     1363msgstr "تأكيد قالب بريد الناشر"
     1364
     1365#: ../admin/ost-emailtemp.php:82
     1366msgid "Save - User Post Confirmation Email"
     1367msgstr "حفظ - رسالة تأكيد مقالة المستخدم"
     1368
     1369#: ../admin/ost-settings.php:8 ../ost-bridge.php:319 ../ost-bridge.php:333
     1370msgid "osTicket Settings"
     1371msgstr " إعدادات osTicket"
     1372
     1373#: ../admin/ost-settings.php:11
     1374msgid "Some simple plugin settings for Wordpress."
     1375msgstr "بعض إعدادات الإضافة البسيطة لوورد برس"
     1376
     1377#: ../admin/ost-settings.php:24
     1378msgid "Support Center Status:"
     1379msgstr "حالة مركز الدعم:"
     1380
     1381#: ../admin/ost-settings.php:25
     1382msgid "Online"
     1383msgstr "متصل"
     1384
     1385#: ../admin/ost-settings.php:25
     1386msgid "(Active)"
     1387msgstr "(نشط)"
     1388
     1389#: ../admin/ost-settings.php:25
     1390msgid "Offline"
     1391msgstr "غير متصل"
     1392
     1393#: ../admin/ost-settings.php:25
     1394msgid "( offline will display maintenance message on website )"
     1395msgstr "( غير متصل سيتم عرض رسالة الصيانة على الموقع )"
     1396
     1397#: ../admin/ost-settings.php:28
     1398msgid "Helpdesk Name/Title:"
     1399msgstr "الاسم/العنوان مكتب المساعدة:"
     1400
     1401#: ../admin/ost-settings.php:29
     1402msgid "( displayed in emails & welcome/user pages )"
     1403msgstr "( تم عرضه في البريد & ترحيب/صفحات المستخدم )"
     1404
     1405#: ../admin/ost-settings.php:32
     1406msgid "Maximum Open Tickets:"
     1407msgstr "الحد الأقصى للبطاقات المفتوحة:"
     1408
     1409#: ../admin/ost-settings.php:33
     1410msgid "( per/user - enter 0 for unlimited )"
     1411msgstr "( لكل مستخدم - أدخل 0 من أجل عدد لا نهائي )"
     1412
     1413#: ../admin/ost-settings.php:36
     1414msgid "Reply Separator Tag:"
     1415msgstr "وسم فاصل الرّد:"
     1416
     1417#: ../admin/ost-settings.php:37
     1418msgid "( should be blank - if you are email polling...read"
     1419msgstr "( يجب أن تكون فارغة - إن كنت رسالة اقتراع... اقرأ"
     1420
     1421#: ../admin/ost-settings.php:37
     1422msgid "[+]"
     1423msgstr "[+]"
     1424
     1425#: ../admin/ost-settings.php:37
     1426msgid " )"
     1427msgstr " )"
     1428
     1429#: ../admin/ost-settings.php:42
     1430msgid ""
     1431"Note: If email polling, login to: osTicket->Emails->Templates->Response/Reply Template remove %{ticket."
     1432"client_link}"
     1433msgstr ""
     1434"ملاحظة: إذا كان رسالة اقتراع، سجل دخول لـ: osTicket->رسائل->قوالب->إجابة/قالب رد و أزل %{ticket.client_link}"
     1435
     1436#: ../admin/ost-settings.php:43
     1437msgid "Replace with"
     1438msgstr "استبدال بـ"
     1439
     1440#: ../admin/ost-settings.php:43
     1441msgid "%{ticket.number}"
     1442msgstr "%{ticket.number}"
     1443
     1444#: ../admin/ost-settings.php:48
     1445msgid "SMTP Status"
     1446msgstr "حالة SMTP "
     1447
     1448#: ../admin/ost-settings.php:57
     1449msgid "Enable"
     1450msgstr "تفعيل"
     1451
     1452#: ../admin/ost-settings.php:58
     1453msgid "Disable"
     1454msgstr "تعطيل"
     1455
     1456#: ../admin/ost-settings.php:59
     1457msgid "(Please select smtp status.)"
     1458msgstr "(الرجاء تحديد حالة SMTP.)"
     1459
     1460#: ../admin/ost-settings.php:62
     1461msgid "SMTP Username"
     1462msgstr "اسم مستخدم SMTP "
     1463
     1464#: ../admin/ost-settings.php:63
     1465msgid "Please enter smtp username."
     1466msgstr "يرجى كتابة اسم مستخدم SMTP"
     1467
     1468#: ../admin/ost-settings.php:66
     1469msgid "SMTP Password"
     1470msgstr "كلمة مرور SMTP"
     1471
     1472#: ../admin/ost-settings.php:67
     1473msgid "Please enter smtp password."
     1474msgstr "يرجى ادخال كلمة مرور SMTP"
     1475
     1476#: ../admin/ost-settings.php:70
     1477msgid "SMTP Host"
     1478msgstr "مضيف SMTP"
     1479
     1480#: ../admin/ost-settings.php:71
     1481msgid "Please enter smtp host."
     1482msgstr "يرجى كتابة اسم مضيف SMTP"
     1483
     1484#: ../admin/ost-settings.php:74
     1485msgid "SMTP Port"
     1486msgstr "منفذ SMTP"
     1487
     1488#: ../admin/ost-settings.php:75
     1489msgid "Please enter smtp port."
     1490msgstr "يرجى كتابة منفذ SMTP"
     1491
     1492#: ../admin/ost-settings.php:79
     1493msgid "Save Settings"
     1494msgstr "حفظ الاعدادات"
     1495
     1496#: ../admin/ost-tickets.php:18
     1497#, php-format
     1498msgid "%d record(s) has been deleted successfully"
     1499msgstr "تم حذف %d سجل بنجاح"
     1500
     1501#: ../admin/ost-tickets.php:34
     1502#, php-format
     1503msgid "%d record(s) has been closed successfully"
     1504msgstr "تم إغلاق %d سجل بنجاح"
     1505
     1506#: ../admin/ost-tickets.php:50
     1507#, php-format
     1508msgid "%d record(s) has been re-opened successfully"
     1509msgstr "تم إعادة فتح %d سجل بنجاح"
     1510
     1511#: ../admin/ost-tickets.php:74 ../templates/list_tickets.php:41
     1512msgid "Are you sure you want to continue?"
     1513msgstr "هل أنت متأكد أنك تريد المتابعة ؟"
     1514
     1515#: ../admin/ost-tickets.php:76 ../ost-bridge.php:140 ../ost-bridge.php:142
     1516msgid "Support/Request List"
     1517msgstr "الدعم/قائمة الطلبات"
     1518
     1519#: ../admin/ost-tickets.php:85
     1520msgid "Ticket #"
     1521msgstr "بطاقة"
     1522
     1523#: ../admin/ost-tickets.php:88 ../admin/ost-ticketview.php:100 ../templates/list_tickets.php:50
     1524#: ../templates/view_ticket.php:99
     1525msgid "Department"
     1526msgstr "قسم"
     1527
     1528#: ../admin/ost-tickets.php:89 ../templates/list_tickets.php:51
     1529msgid "Date"
     1530msgstr "تاريخ"
     1531
     1532#: ../admin/ost-tickets.php:129 ../admin/ost-ticketview.php:116 ../templates/view_ticket.php:114
     1533#: ../templates/view_ticket.php:128
     1534msgid "Emergency"
     1535msgstr "عاجل"
     1536
     1537#: ../admin/ost-tickets.php:132 ../admin/ost-ticketview.php:118 ../templates/view_ticket.php:116
     1538#: ../templates/view_ticket.php:130
     1539msgid "High"
     1540msgstr "مرتفع"
     1541
     1542#: ../admin/ost-tickets.php:135 ../admin/ost-tickets.php:138 ../admin/ost-ticketview.php:120
     1543#: ../admin/ost-ticketview.php:124 ../templates/view_ticket.php:118 ../templates/view_ticket.php:122
     1544#: ../templates/view_ticket.php:132 ../templates/view_ticket.php:136
     1545msgid "Normal"
     1546msgstr "عادي"
     1547
     1548#: ../admin/ost-tickets.php:141 ../admin/ost-ticketview.php:122 ../templates/view_ticket.php:120
     1549#: ../templates/view_ticket.php:134
     1550msgid "Low"
     1551msgstr "منخفض"
     1552
     1553#: ../admin/ost-tickets.php:158 ../templates/list_tickets.php:112
     1554msgid "No Records Found."
     1555msgstr "لم يتم العثور على سجلات"
     1556
     1557#: ../admin/ost-tickets.php:165
     1558msgid "Delete"
     1559msgstr "حذف"
     1560
     1561#: ../admin/ost-tickets.php:170 ../admin/ost-tickets.php:172 ../admin/ost-ticketview.php:239
     1562#: ../templates/view_ticket.php:260
     1563msgid "Reopen"
     1564msgstr "إعادة فتح"
     1565
     1566#: ../admin/ost-ticketview.php:70
     1567msgid "Reply to Support Request"
     1568msgstr "رد على طلب الدعم"
     1569
     1570#: ../admin/ost-ticketview.php:77
     1571msgid "Ticket ID"
     1572msgstr "رقم البطاقة"
     1573
     1574#: ../admin/ost-ticketview.php:78 ../admin/ost-ticketview.php:254 ../templates/view_ticket.php:270
     1575msgid "Post Reply"
     1576msgstr "إضافة رد"
     1577
     1578#: ../admin/ost-ticketview.php:84 ../templates/view_ticket.php:85
     1579msgid "Ticket Status"
     1580msgstr "حالة البطاقة"
     1581
     1582#: ../admin/ost-ticketview.php:102
     1583msgid "User Email"
     1584msgstr "بريد المستخدم"
     1585
     1586#: ../admin/ost-ticketview.php:106
     1587msgid "Date Create"
     1588msgstr "تاريخ الإنشاء"
     1589
     1590#: ../admin/ost-ticketview.php:139 ../templates/view_ticket.php:150
     1591msgid "Ticket Thread"
     1592msgstr "موضوع البطاقة"
     1593
     1594#: ../admin/ost-ticketview.php:185 ../templates/view_ticket.php:201
     1595msgid "Post a Reply"
     1596msgstr "إضافة الرد"
     1597
     1598#: ../admin/ost-ticketview.php:239 ../admin/ost-ticketview.php:241 ../templates/view_ticket.php:260
     1599#: ../templates/view_ticket.php:263
     1600msgid "Ticket On Reply"
     1601msgstr "بطاقة رد"
     1602
     1603#: ../admin/ost-ticketview.php:248
     1604msgid "My signature"
     1605msgstr "توقيعي"
     1606
     1607#: ../admin/ost-ticketview.php:249
     1608msgid "Dept. Signature"
     1609msgstr "توقيع القسم"
     1610
     1611#: ../admin/ost-ticketview.php:255
     1612msgid "Cancel - Go Back"
     1613msgstr "إلغاء - عودة للخلف"
     1614
     1615#: ../ost-bridge.php:53
     1616msgid "Open Tickets"
     1617msgstr "فتح البطاقات"
     1618
     1619#: ../ost-bridge.php:132 ../ost-bridge.php:134
     1620msgid "Tickets"
     1621msgstr "بطاقات"
     1622
     1623#: ../ost-bridge.php:142
     1624msgid "Email Tickets"
     1625msgstr "بطاقات البريد"
     1626
     1627#: ../ost-bridge.php:159
     1628msgid "osT-Config"
     1629msgstr "تكوين osT"
     1630
     1631#: ../ost-bridge.php:298 ../ost-bridge.php:305 ../ost-bridge.php:315 ../ost-bridge.php:329 ../ost-bridge.php:343
     1632msgid "You do not have sufficient permissions to access this page."
     1633msgstr "لا تملك صلاحيات الدخول لهذه الصفحة"
     1634
     1635#: ../ost-bridge.php:319 ../ost-bridge.php:333 ../ost-bridge.php:347
     1636msgid ""
     1637"<p><b>Error:</b> You must complete \"osTicket Data Configure\" before this page will display... <a href="
     1638"\"admin.php?page=ost-config\">click here</a></p>"
     1639msgstr ""
     1640"<p><b>خطأ:</b> يجب إكمال إعدادات \"osTicket\" قبل عرض هذه الصفحة... <a href=\"admin.php?page=ost-config\">انقر "
     1641"هنا</a></p>"
     1642
     1643#: ../templates/contact_ticket.php:42 ../templates/new_ticket.php:80
     1644msgid "A new request has been created successfully!"
     1645msgstr "تم إنشاء الطلب الجديد بنجاح!"
     1646
     1647#: ../templates/contact_ticket.php:45 ../templates/new_ticket.php:83
     1648msgid "We are currently notifying the selected department staff..."
     1649msgstr "يجري حالياً تنبيه موظفي القسم المحدّد..."
     1650
     1651#: ../templates/contact_ticket.php:49 ../templates/new_ticket.php:87
     1652msgid "Thank you for contacting us!"
     1653msgstr "نشكرك لتواصلك معنا!"
     1654
     1655#: ../templates/contact_ticket.php:64
     1656msgid "Full Name:"
     1657msgstr "الاسم الكامل:"
     1658
     1659#: ../templates/contact_ticket.php:67
     1660msgid "Your Email:"
     1661msgstr "بريدك الإلكتروني:"
     1662
     1663#: ../templates/contact_ticket.php:70
     1664msgid "Catagories:"
     1665msgstr "التصنيفات:"
     1666
     1667#: ../templates/contact_ticket.php:90 ../templates/new_ticket.php:139
     1668msgid "To best assist you, please be specific and detailed in your message"
     1669msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في الرسالة"
     1670
     1671#: ../templates/contact_ticket.php:109
     1672msgid "Submit"
     1673msgstr "إرسال"
     1674
     1675# Listing Tickets
     1676#: ../templates/list_tickets.php:47
     1677msgid "Tickets #"
     1678msgstr "بطاقات"
     1679
     1680#: ../templates/list_tickets.php:49
     1681msgid "Status"
     1682msgstr "الحالة"
     1683
     1684#: ../templates/message.php:7
     1685msgid "You currently have the maximum amount allowed open:"
     1686msgstr "أكبر قدر مسموح به من البطاقات المفتوحة هو:"
     1687
     1688#: ../templates/message.php:7 ../templates/message.php:8
     1689msgid ""
     1690"Visit your open tickets and see if any has been resolved, if so you can close any ticket(s) and submit a new "
     1691"one."
     1692msgstr ""
     1693"زيارة بطاقاتك المفتوحة ومعرفة ما إذا كان أياً منها قد تم حلها، إذا كان الأمر كذلك يمكنك إغلاق أي بطاقة وتقديم "
     1694"واحدة جديدة."
     1695
     1696#: ../templates/message.php:7 ../templates/message.php:8
     1697msgid "View open tickets"
     1698msgstr "عرض البطاقات المفتوحة"
     1699
     1700#: ../templates/message.php:8
     1701msgid "You are currently over the maximum amount allowed open:"
     1702msgstr "لقد وصلت لأكبر قدر مسموح به من البطاقات المفتوحة:"
     1703
     1704#: ../templates/message.php:9
     1705msgid "Thank you for your interest in contacting us."
     1706msgstr "شكرا لاهتمامك والاتصال بنا."
     1707
     1708#: ../templates/message.php:9
     1709msgid "Our system is currently offline for maintenance, please check back later."
     1710msgstr "النظام حالياً غير متصل للصيانة، يرجى العودة لاحقاً."
     1711
     1712#: ../templates/nav_bar.php:44
     1713msgid "View Tickets"
     1714msgstr "عرض البطاقات"
     1715
     1716#: ../templates/nav_bar.php:52
     1717msgid "Open / Answered"
     1718msgstr "فتح / اجابة"
     1719
     1720#: ../templates/nav_bar.php:57
     1721msgid "Search..."
     1722msgstr "بحث..."
     1723
     1724#: ../templates/nav_bar.php:58
     1725msgid "Go"
     1726msgstr "أذهب"
     1727
     1728#: ../templates/new_ticket.php:22
     1729msgid "Max file upload size"
     1730msgstr "الحد الأقصى لحجم الملف"
     1731
     1732#: ../templates/new_ticket.php:96
     1733msgid "Open a New Ticket"
     1734msgstr "فتح بطاقة جديدة"
     1735
     1736#: ../templates/new_ticket.php:126
     1737msgid "Priority:"
     1738msgstr "الأولوية:"
     1739
     1740#: ../templates/view_ticket.php:80
     1741msgid "Ticket ID #"
     1742msgstr "رقم البطاقة"
     1743
     1744#: ../templates/view_ticket.php:96
     1745msgid "Name"
     1746msgstr "الاسم"
     1747
     1748#: ../templates/view_ticket.php:101
     1749msgid "Email"
     1750msgstr "البريد الالكتروني"
     1751
     1752#: ../templates/view_ticket.php:107
     1753msgid "Create Date"
     1754msgstr "تاريخ الانشاء"
     1755
     1756#: ../templates/view_ticket.php:202
     1757msgid "To best assist you, please be specific and detailed in your reply."
     1758msgstr "لتقديم أفضل مساعدة لكم، يرجى توضيح التفاصيل جيداً في ردكم."
     1759
     1760#: ../templates/view_ticket.php:251
     1761msgid "Attachments on the Filesystem plugin can be downloaded here :"
     1762msgstr "يمكنك تحميل إضافة ملفات النظام من هنا:"
     1763
     1764#: ../templates/view_ticket.php:272
     1765msgid "Cancel"
     1766msgstr "إلغاء"
     1767
     1768#: ../templates/view_ticket.php:281
     1769msgid "No such ticket available."
     1770msgstr "لا تتوفر مثل هذه البطاقة."
     1771
     1772#~ msgid "Please fill in the form below to open a new ticket. All fields mark with [*] Are Required!"
     1773#~ msgstr ""
     1774#~ "يرجى تعبئة جمع الحقول أدناه لفتح بطاقة جديدة، جميع الحقول التي لها علامة (*) هي حقول مطلوب تعبئتها اجباريا"
     1775
     1776#~ msgid "Select User Type"
     1777#~ msgstr "اختر نوع المستخدم"
     1778
     1779#~ msgid "Database Name:( osTicket Database Name Goes Here )"
     1780#~ msgstr "اسم قاعدة البيانات :( اسم قاعدة البيانات osTicket هنا)"
     1781
     1782#~ msgid "New Ticket Email  [Close]"
     1783#~ msgstr "بطاقة إغلاق بريد  جديدة"
     1784
     1785#~ msgid "Admin Response Email [Close]"
     1786#~ msgstr "بريد رد المشرف (إغلاق)"
     1787
     1788#~ msgid "Save - Admin Response Email"
     1789#~ msgstr "حفظ - بريد رد  المشرف"
     1790
     1791#~ msgid "User Post Confirmation Email [Close]"
     1792#~ msgstr "تأكيد مقالة المستخدم"
     1793
     1794#~ msgid "Close Ticket On Reply"
     1795#~ msgstr "إغلاق بطاقة الرد"
     1796
     1797#~ msgid "Dept. Signature (Support)"
     1798#~ msgstr "توقيع قسم الدعم"
     1799
     1800#~ msgid "\"$Variables\" You can use In Email"
     1801#~ msgstr "/ يمكنك استخدام المتغيرات في البريد الإلكتروني"
     1802
     1803#~ msgid "*New Ticket Email Template"
     1804#~ msgstr "بطاقة قالب بريد جديد"
     1805
     1806#~ msgid "Maximum Open Tickets"
     1807#~ msgstr "الحد الأقصى للبطاقات المفتوحة"
     1808
     1809#~ msgid "Support Center Status"
     1810#~ msgstr "حالة مركز الدعم"
  • key4ce-osticket-bridge/trunk/ost-bridge.php

    r1110762 r1119633  
    33Plugin Name: Key4ce osTicket Bridge
    44Plugin URI: https://key4ce.com/projects/key4ce-osticket-bridge
    5 Description: Integrate osTicket (v1.9.3 - 1.9.5) into wordpress. including user integration and scp
    6 Version: 1.2.7
     5Description: Integrate osTicket (v1.9.3 - 1.9.6) into wordpress. including user integration and scp
     6Version: 1.2.8
    77Author: Key4ce
    88Author URI: https://key4ce.com
  • key4ce-osticket-bridge/trunk/readme.txt

    r1109917 r1119633  
    55Requires at least: 3.5
    66Tested up to: 4.1
    7 Stable tag: 1.2.7
     7Stable tag: 1.2.8
    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.5
     10Get your own advanced ticket system in Wordpress and Integrate osTicket into your wordpress site. Works with osTicket 1.9.3 - 1.9.6
    1111
    1212== Description ==
    1313This is a rebuild of the original OSTicket WP Bridge plugin
    14 Because the original plugin was no longer developped we desided to make a new plugin out of it.
     14Because the original plugin was no longer developed we decided to make a new plugin out of it.
    1515adding new features, fixing old bugs and security flaws.
    1616
    1717= Basic Features: =
    18 * Compatible with osTicket 1.9.3 - 1.9.4 - 1.9.5
     18* Compatible with osTicket 1.9.3 - 1.9.6
    1919* POP / IMAP functionality stays intact
    2020* You can use both osTicket scp, reply to email OR use Wordpress for all tickets
    2121* Integrates with your Wordpress users
    22 * Good workflow of Open, Answered and Closed tickets.
     22* Good work-flow of Open, Answered and Closed tickets.
    2323* Contact form shortcode
    2424* Multiple file attachments
     
    4343
    4444== Installation ==
     45
    4546= Prerequisites: =
    4647* Make sure that osTicket is installed
    47 * Make sure that your osTicket version is 1.9.3, 1.9.4 or 1.9.5 (all subversions should work).
     48* Make sure that your osTicket version is 1.9.3, 1.9.4 1.9.5 or 1.9.6 (all subversions should work).
    4849* osTicket can be downloaded from http://osticket.com/download
    4950* For Attachments to work with the Key4ce osTicket Bridge plugin, please download and configure the osTicket plugin: Storage :: Attachments on the Filesystem
     
    61621. Install key4ce-osticket-bridge folder to the /wp-content/plugins/ directory.
    62632. Activate the plugin through the "Plugins" menu in WordPress.
    63 3. osTicket Bridge plugin settings are located in Dashboard--> Tickets --> osT-Config (DO NOT name your "Landing Page Name" the same name as the folder you have osTicket installed)
     643. osTicket Bridge plugin settings are located in Dashboard--> Tickets --> osT-Config (DO NOT name your "Landing Page Name" the same name as the folder you have osTicket installed).
    64654. osTicket DB configuration settings are located in Dashboard--> Tickets --> Settings
    65665. Email template settings are located in Dashboard--> Tickets--> Email Templates
     
    6970
    7071== Frequently Asked Questions ==
     72
    7173= Where does the osTicket need to be Installed? =
    72 Can be anywhere, just make sure you know it's Database settings and fill them in accodringly in osT-Config page.
     74Can be anywhere, just make sure you know it's Database settings and fill them in accordingly in osT-Config page.
    7375
    7476= What version of osTicket can i use? =
    75 osTicket v1.9.x (all 1.9 subversions are supported)
    76 We always recommend the latest osticket version.
     77osTicket v1.9.3 to v1.9.6 (all subversions are generally supported).
    7778
    7879= Where can I download the tested osTicket versions? =
    7980http://osticket.com/download
     81
    8082== Screenshots ==
     83
    81841. Shows the Client ticket list.
    82852. Shows how the client views the ticket.
     
    8790
    8891== Changelog ==
     92= 1.2.8 =
     93- Added support for 1.9.5.1 and 1.9.6
     94- fixed Attachment support for higher versions
     95
    8996= 1.2.7 =
    9097- Functions all have prefixes to avoid conflicts with other plugins
     
    94101- Fixes for 1.9.4 fresh installation
    95102- Email customer reply fix
     103
    96104= 1.2.5 =
    97105- osticket 1.9.4 support added
    98106- added osticket version selection
     107
    99108= 1.2.4 =
    100109- Open ticket count fixed
     
    103112- Client main page fixed
    104113- Small other changes in code.
     114
    105115= 1.2.3 =
    106116- Admin can create tickets with auto search in WP Database.
     
    110120- Bugged users will now be automatically updated and fixed.
    111121- contact form bug fixed.
     122
    112123= 1.2.2 =
    113124- Multiple file attachments
    114125- File attachment location from osTicket
    115 - mysql query fix
    116 - contact form sender name and email fix.
    117 - minor issues fixed.
    118 - updated installations (Contributed by: DivaVocals)
     126- mysql query fix- contact form sender name and email fix.
     127- minor issues fixed.- updated installations (Contributed by: DivaVocals)
     128
    119129= 1.2.1 =
    120130- Fixed infected javascript files.
     131
    121132= 1.2.0 =
    122133- Single file Attachments
     
    129140- Fixed time equal to osTicket settings.
    130141- Tested with Wordpress 4.0
     142
    131143= 1.1.5 =
    132144- Shortcode for Contact style form with captcha
     
    134146- CSS/ JS inclusion fix ** Submitted by Steffen Andre Langnes **
    135147- Login Redirect ** Submitted by Steffen Andre Langnes **
     148
    136149= 1.1.4 =
    137150- Prefix fix for existing plugin users
    138 - mysql DB errors fixed
    139 - RevSlider conflict fixed
     151- mysql DB errors fixed- RevSlider conflict fixed
    140152- Activate / Deactivate warning messages fixed.
    141153- If wrong database info blank page issue fixed.
     154
    142155= 1.1.3 =
    143156- Added database keyost_prefix field
     
    146159- Headers already sent fixed.
    147160- Creating multiple ticket pages on save has been resolved.
     161
    148162= 1.1.2 =
    149163- Shows name in ticket threads.
    150 - SMTP save field fix
    151 - Offline / Offline mode fix
     164- SMTP save field fix- Offline / Offline mode fix
    152165- Cleaned up legacy code
     166
    153167= 1.1.1 =
    154168- Shortcode redirect fix
     
    158172- Adding new users to OSticket fixed
    159173- Form validation fixed
     174
    160175= 1.1 =
    161176- Shortcode implementation
    162177- Cleaned up code issues
    163178- Admin Alert Email now looks into group members aswell
    164 - implemented Reply Separator Tag
    165 - Fixed: Email From name
    166 - Fixed: Many code warnings and errors in Debug mode
    167 - And much more..
     179- implemented Reply Separator Tag- Fixed: Email From name
     180- Fixed: Many code warnings and errors in Debug mode- And much more..
     181
    168182= 1.0 =
    169183- New design for both Admin and Client end
     
    179193
    180194== Upgrade Notice ==
     195= 1.2.8 =
     196Added support for 1.9.5.1 and 1.9.6
     197
     198= 1.2.7 =
     199Added multi language support.
     200
    181201= 1.2.6 =
    182202Added osticket 1.9.4 fresh installation support and small email customer reply bug.
     203
    183204= 1.2.5 =
    184205Added osticket 1.9.4 support.
     206
    185207= 1.2.4 =
    186208Option to enable or disable client close ticket feature, and small bug fixes.
     209
    187210= 1.2.3 =
    188211Several minor bug fixes, new Admin create ticket functionality, and more..
    189 = 1.2.2 =
     212
     213= 1.2.2 =
    190214Multiple file atachment now possible, and small bug fixes have been made.
    191 = 1.2.1 =
    192 Emergency update: Javascripts where infected please update asap. Our appologies for the inconvenience
     215
     216= 1.2.1 =
     217Emergency update: Javascripts where infected please update asap. Our apologies for the inconvenience
     218
    193219= 1.2.0 =
    194220Multiple new and convenient features, Attachments, signatures and more.
     221
    195222= 1.1.5 =
    196223Shortcode fixes, css/js inclusion fixes, new Contact style shortcode
     224
    197225= 1.1.4 =
    198226Urgent update fixing multiple issues caused by update 1.1.3.
     227
    199228= 1.1.3 =
    200229Database keyost_prefix field added, and mysql bugs fixed.
     230
    201231= 1.1.2 =
    202232Minor update: Cleaned up legacy code and fixed:smtp fields and offline mode
     233
    203234= 1.1.1 =
    204235Shortcode related issues fixed, osTicket user related issues fixed.
     236
    205237= 1.1 =
    206238Shortcode implementation and many code fixes.
     239
    207240= 1.0 =
    208241Initial version
  • key4ce-osticket-bridge/trunk/templates/list_tickets.php

    r1107959 r1119633  
    2828    foreach($close_ticket_list as $close_ticket)
    2929    {               
    30         if($keyost_version==194)
     30        if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    3131            $ost_wpdb->update($ticket_table, array('status_id'=>'3'), array('ticket_id'=>$close_ticket), array('%s'));
    3232        else
  • key4ce-osticket-bridge/trunk/templates/nav_bar.php

    r1107959 r1119633  
    11<?php
    2 if($keyost_version=="194")
     2if($keyost_version==194 || $keyost_version==195 || $keyost_version==1951)
    33{
    44    $ticket_count_open=$ost_wpdb->get_var("SELECT COUNT(*) FROM $ticket_table INNER JOIN $ost_ticket_status ON $ost_ticket_status.id=$ticket_table.status_id WHERE user_id='$user_id' and $ost_ticket_status.state='open'");
  • key4ce-osticket-bridge/trunk/templates/new_ticket.php

    r1107959 r1119633  
    11<?php
    22/* Template Name: new_ticket.php */
    3 $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    4 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     3
     4if($keyost_version==193)
     5{
     6$attachement_status=key4ce_getKeyValue('allow_attachments');
     7$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     8$max_file_size=key4ce_getKeyValue('max_file_size');
     9$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     10}
     11else
     12{
     13$fileconfig=key4ce_FileConfigValue();
     14$filedata=json_decode($fileconfig);
     15$attachement_status=$filedata->attachments;
     16$max_user_file_uploads=$filedata->max;
     17$max_file_size=$filedata->size;
     18$fileextesnions=$filedata->extensions;
     19}
     20$alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     21$strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    522$allowedExts = explode(",", $strplc);
    623function add_quotes($str) {
     
    1633        var addDiv = $('#addinput');
    1734        var i = $('#addinput p').size() + 1;
    18         var MaxFileInputs = <?php echo key4ce_getKeyValue('max_user_file_uploads'); ?>;
     35        var MaxFileInputs = <?php echo $max_user_file_uploads; ?>;
    1936        $('#addNew').live('click', function() {
    2037            if (i <= MaxFileInputs)
    2138            {
    22                 $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __("Max file upload size", 'key4ce-osticket-bridge'); ?> : <?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
     39                $('<p><span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __("Max file upload size", 'key4ce-osticket-bridge'); ?> : <?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
    2340                i++;
    2441            }
     
    5067        var FileSizeMB = (FileSize / 10485760).toFixed(2);
    5168        var FileExts = new Array(<?php echo $extimp; ?>);
    52         if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))
     69        if ((FileSize > <?php echo $max_file_size; ?>))
    5370        {
    54             alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB.");
     71            alert("<?php echo __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?> <?php echo ($max_file_size* .0009765625) * .0009765625; ?>MB.");
    5572            document.getElementById(FileId).value = "";
    5673            return false;
     
    90107} else {
    91108$user_id=$ost_wpdb->get_var("SELECT user_id FROM " . $keyost_prefix . "user_email WHERE `address` = '" . $current_user->user_email . "'");
    92 echo date_default_timezone_set('UTC')."<br>";
    93 echo date('d-m-Y g:i a',strtotime('+1 hours'));
    94109    ?>
    95110    <div id="key4ce_new_ticket">
     
    150165        <div class="key4ce_clear" style="padding: 5px;"></div></td>
    151166        </tr>
    152     <?php 
    153 if (key4ce_getKeyValue('allow_attachments') == 1) {
     167    <?php
     168if ($attachement_status==1 || $attachement_status==true) {
    154169    if(key4ce_getPluginValue('Attachments on the filesystem')==1)
    155170    {
     
    158173                    <div id="addinput">
    159174                        <p>
    160                             <span style="color:#000;"><?php echo __('Attachment 1:','key4ce-osticket-bridge'); ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="addNew"><?php echo __('Add','key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __('Max file upload size :','key4ce-osticket-bridge'); ?><?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span>
     175                            <span style="color:#000;"><?php echo __('Attachment 1:','key4ce-osticket-bridge'); ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="addNew"><?php echo __('Add','key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __('Max file upload size :','key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span>
    161176                        </p>
    162177                    </div>
  • key4ce-osticket-bridge/trunk/templates/view_ticket.php

    r1107959 r1119633  
    44get_currentuserinfo();
    55if ($ticketinfo->address == $current_user->user_email) {
    6     $alowaray = explode(".",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
    7 $strplc = str_replace(".", "",str_replace(' ', '',key4ce_getKeyValue('allowed_filetypes')));
     6if($keyost_version==193)
     7{
     8$attachement_status=key4ce_getKeyValue('allow_attachments');
     9$max_user_file_uploads=key4ce_getKeyValue('max_user_file_uploads');
     10$max_file_size=key4ce_getKeyValue('max_file_size');
     11$fileextesnions=key4ce_getKeyValue('allowed_filetypes');
     12}
     13else
     14{
     15$fileconfig=key4ce_FileConfigValue();
     16$filedata=json_decode($fileconfig);
     17$attachement_status=$filedata->attachments;
     18$max_user_file_uploads=$filedata->max;
     19$max_file_size=$filedata->size;
     20$fileextesnions=$filedata->extensions;
     21}
     22    $alowaray = explode(".",str_replace(' ', '',$fileextesnions));
     23$strplc = str_replace(".", "",str_replace(' ', '',$fileextesnions));
    824    $allowedExts = explode(",", $strplc);
    925
     
    2036            var addDiv = $('#addinput');
    2137            var i = $('#addinput p').size() + 1;
    22             var MaxFileInputs = <?php echo key4ce_getKeyValue('max_user_file_uploads'); ?>;
     38            var MaxFileInputs = <?php echo $max_user_file_uploads; ?>;
    2339            $('#addNew').live('click', function() {
    2440                if (i <= MaxFileInputs)
    2541                {
    26                     $('<p><span style="color:#000;"><?php echo  __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo  __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo  __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
     42                    $('<p><span style="color:#000;"><?php echo  __("Attachment", 'key4ce-osticket-bridge'); ?> ' + i + ':</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new_' + i + '" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="remNew"><?php echo  __("Remove", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo  __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span></p>').appendTo(addDiv);
    2743                    i++;
    2844                }
     
    5470            var FileSizeMB = (FileSize / 10485760).toFixed(2);
    5571            var FileExts = new Array(<?php echo $extimp; ?>);
    56             if ((FileSize > <?php echo key4ce_getKeyValue('max_file_size'); ?>))
     72            if ((FileSize > <?php echo $max_file_size; ?>))
    5773            {
    58                 alert("<?php echo  __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB.");
     74                alert("<?php echo  __("Please make sure your file is less than", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB.");
    5975                document.getElementById(FileId).value = "";
    6076                return false;
     
    235251                </tr>
    236252    <?php
    237 if (key4ce_getKeyValue('allow_attachments') == 1) {
     253if ($attachement_status==1 || $attachement_status==true) {
    238254    if(key4ce_getPluginValue('Attachments on the filesystem')==1)
    239255    {
     
    242258                    <div id="addinput">
    243259                        <p>
    244                             <span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> 1:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo (key4ce_getKeyValue('max_file_size') * .0009765625) * .0009765625; ?>MB</span>
     260                            <span style="color:#000;"><?php echo __("Attachment", 'key4ce-osticket-bridge'); ?> 1:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" id="p_new" name="file[]" onchange="return checkFile(this);"/>&nbsp;&nbsp;&nbsp;<a href="#" id="addNew"><?php echo __("Add", 'key4ce-osticket-bridge'); ?></a>&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 11px;"><?php echo __("Max file upload size :", 'key4ce-osticket-bridge'); ?><?php echo ($max_file_size * .0009765625) * .0009765625; ?>MB</span>
    245261                        </p>
    246262                    </div>
Note: See TracChangeset for help on using the changeset viewer.