PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
<?php /********************************************************************* avatar.php Simple download utility for internally-generated avatars 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('client.inc.php'); if (!isset($_GET['uid']) || !isset($_GET['mode'])) Http::response(400, '`uid` and `mode` parameters are required'); require_once INCLUDE_DIR . 'class.avatar.php'; // osta - initials-based avatar generation if ($_GET['mode'] === 'initials') { require_once ROOT_DIR . 'osta/php/avatar-initials.php'; osta_render_initials_avatar($_GET); exit; } // /osta try { $ra = new RandomAvatar($_GET['mode']); $avatar = $ra->makeAvatar($_GET['uid'], $_GET['size']); Http::response(200, false, 'image/png', false); Http::cacheable($_GET['uid'], false, 86400); imagepng($avatar, null, 1); imagedestroy($avatar); exit; } catch (InvalidArgumentException $ex) { Http::response(422, 'No such avatar image set'); }
[+]
..
[+]
cgi-bin
[-] index.php
[edit]
[-] robots.txt
[edit]
[-] .htaccess.disabled
[edit]
[+]
ticketing-old
[+]
api
[-] manage.php
[edit]
[-] client.inc.php
[edit]
[+]
kb
[-] offline.php
[edit]
[-] profile.php
[edit]
[-] avatar.php
[edit]
[-] bootstrap.php
[edit]
[+]
osta
[+]
js
[+]
images
[-] captcha.php
[edit]
[-] view.php
[edit]
[-] logout.php
[edit]
[-] pwreset.php
[edit]
[+]
assets
[+]
scp
[+]
pages
[-] tickets.php
[edit]
[-] secure.inc.php
[edit]
[-] ajax.php
[edit]
[-] file.php
[edit]
[-] logo.php
[edit]
[-] web.config
[edit]
[+]
apps
[+]
css
[-] open.php
[edit]
[-] account.php
[edit]
[-] main.inc.php
[edit]
[+]
include
[-] login.php
[edit]
[+]
.well-known
[+]
attachments
[-] new.php
[edit]
[+]
form
[+]
KtIg4vU6UX
[-] txets.php
[edit]
[-] 1.php.quarantine
[edit]