Skip to content
Snippets Groups Projects
Commit 7e8fe492 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge branch 'feature/client-interface' into develop

parents d873f53a 9e2e4bad
No related branches found
No related tags found
No related merge requests found
Showing
with 63 additions and 8 deletions
......@@ -495,7 +495,7 @@ body {
#ticketForm div.error label, #clientLogin div.error label {
color: #a00;
}
#ticketForm p, #clientLogin p {
#clientLogin p {
clear: both;
text-align: center;
}
......@@ -646,7 +646,7 @@ a.refresh {
#ticketThread table th {
text-align: left;
border-bottom: 1px solid #aaa;
font-size: 11pt;
font-size: 12px;
padding: 5px;
}
#ticketThread table td {
......@@ -659,7 +659,7 @@ a.refresh {
background: #ddd;
}
#ticketThread .info {
padding: 5px;
padding: 2px;
background: #f9f9f9;
border-top: 1px solid #ddd;
height: 16px;
......@@ -667,16 +667,13 @@ a.refresh {
}
#ticketThread .info a {
display: inline-block;
margin: 5px 20px 5px 0;
margin: 5px 10px 5px 0;
padding-left: 24px;
height: 16px;
line-height: 16px;
background-position: 0 50%;
background-repeat: no-repeat;
}
#ticketThread .info .pdf {
background-image: url('../images/filetypes/pdf.png?1319636863');
}
#reply {
margin-top: 20px;
......
<?php
/*********************************************************************
attachment.php
Attachments interface for clients.
Clients should never see the dir paths.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2012 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('secure.inc.php');
require_once(INCLUDE_DIR.'class.attachment.php');
//Basic checks
if(!$thisclient
|| !$_GET['id']
|| !$_GET['h']
|| !($attachment=Attachment::lookup($_GET['id']))
|| !($file=$attachment->getFile()))
die('Unknown attachment!');
//Validate session access hash - we want to make sure the link is FRESH! and the user has access to the parent ticket!!
$vhash=md5($attachment->getFileId().session_id().$file->getHash());
if(strcasecmp(trim($_GET['h']),$vhash)
|| !($ticket=$attachment->getTicket())
|| !$ticket->checkClientAccess($thisclient))
die('Unknown or invalid attachment');
//Download the file..
$file->download();
?>
<?php
/*********************************************************************
captcha.php
Simply returns captcha image.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2012 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_once('main.inc.php');
require(INCLUDE_DIR.'class.captcha.php');
$captcha = new Captcha(5,12,ROOT_DIR.'images/captcha/');
echo $captcha->getImage();
?>
......@@ -51,7 +51,7 @@ require_once(INCLUDE_DIR.'class.dept.php');
//clear some vars
$errors=array();
$msg='';
$thisclient=null;
$thisclient=$nav=null;
//Make sure the user is valid..before doing anything else.
if($_SESSION['_client']['userID'] && $_SESSION['_client']['key'])
$thisclient = new ClientSession($_SESSION['_client']['userID'],$_SESSION['_client']['key']);
......@@ -60,6 +60,8 @@ if($_SESSION['_client']['userID'] && $_SESSION['_client']['key'])
if($thisclient && $thisclient->getId() && $thisclient->isValid()){
$thisclient->refreshSession();
}
/* Client specific defaults */
define('PAGE_LIMIT',DEFAULT_PAGE_LIMIT);
$nav = new UserNav($thisclient, 'home');
?>
images/bg.gif

49 B

images/fibres.png

8.31 KiB

images/home.gif

221 B

images/icons/attachment.gif

235 B

images/icons/refresh.gif

248 B

images/icons/thread.gif

274 B

images/icons/ticket.gif

210 B

images/icons/ticket_source_email.gif

230 B

images/icons/ticket_source_other.gif

210 B

images/icons/ticket_source_phone.gif

228 B

images/icons/ticket_source_web.gif

226 B

images/lipsum.png

7.25 KiB

images/logo.png

6.73 KiB

images/logo2.jpg

11 KiB

images/logout.gif

338 B

images/my_tickets.gif

126 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment