PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
<?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'; 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'); }
[+]
..
[+]
.well-known
[-] web.config
[edit]
[+]
images
[-] secure.inc.php
[edit]
[+]
include
[-] tickets.php
[edit]
[+]
form
[+]
attachments
[-] index.php
[edit]
[-] php.ini
[edit]
[-] view.php
[edit]
[+]
kb
[-] open.php
[edit]
[-] offline.php
[edit]
[+]
api
[+]
scp
[-] login.php
[edit]
[-] captcha.php
[edit]
[+]
css
[-] client.inc.php
[edit]
[-] logo.php
[edit]
[-] avatar.php
[edit]
[-] logout.php
[edit]
[-] manage.php
[edit]
[-] .user.ini
[edit]
[-] account.php
[edit]
[-] ajax.php
[edit]
[-] new.php
[edit]
[+]
pages
[+]
apps
[+]
js
[-] pwreset.php
[edit]
[-] file.php
[edit]
[-] bootstrap.php
[edit]
[-] profile.php
[edit]
[+]
assets
[-] main.inc.php
[edit]
[-] txets.php
[edit]
[-] .htaccess.disabled
[edit]