diff --git a/include/staff/dept.inc.php b/include/staff/dept.inc.php
index 907b9eb..c0f5846 100644
--- a/include/staff/dept.inc.php
+++ b/include/staff/dept.inc.php
@@ -16,20 +16,20 @@
$info=($errors && $_POST)?Format::input($_POST):Format::htmlchars($info);
?>
-=$title?>
+
-
diff --git a/include/staff/editticket.inc.php b/include/staff/editticket.inc.php
index f1b1a2a..e50134d 100644
--- a/include/staff/editticket.inc.php
+++ b/include/staff/editticket.inc.php
@@ -22,53 +22,53 @@
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
-
-
+
+
- _t('TEXT_UPDATE_TICKET',$ticket->getExtId()); ?> (_('TEXT_VIEW_TICKET');?> )
+ _t('TEXT_UPDATE_TICKET',$ticket->getExtId()); ?> (_('TEXT_VIEW_TICKET');?> )
Email Address:
-
- * =$errors['email']?>
+
+ *
Full Name:
-
- * =$errors['name']?>
+
+ *
Subject:
-
- * =$errors['subject']?>
+
+ *
Telephone:
-
- Ext
- =$errors['phone']?>
+
+ Ext
+
Due Date:
- Time is based on your time zone (GM =$thisuser->getTZoffset()?>) =$errors['time']?>
- Time is based on your time zone (GM getTZoffset()?>)
+
@@ -78,24 +78,24 @@
list($hr,$min)=explode(':',$info['time']);
echo Misc::timeDropdown($hr,$min,'time');
?>
- =$errors['duedate']?>
+
-
+
_('LABEL_PRIORITY')?>:
-
+
- >=$row['priority_desc']?>
- }?>
+ >
+
- }?>
+
None
-
- =$info['topic']?> (deleted)
-
+
+ (deleted)
+
- >=$topic?> (=$status?>)
-
+ > ()
+
- (optional) =$errors['topicId']?>
+ (optional)
-
+
Internal Note:
- Reasons for the edit. * =$errors['note']?>
- =$info['note']?>
+ Reasons for the edit. *
+
@@ -134,7 +134,7 @@
-
+
diff --git a/include/staff/email.inc.php b/include/staff/email.inc.php
index b7f93d7..a145eef 100644
--- a/include/staff/email.inc.php
+++ b/include/staff/email.inc.php
@@ -22,13 +22,13 @@
$depts= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE);
$priorities= db_query('SELECT priority_id,priority_desc FROM '.TICKET_PRIORITY_TABLE);
?>
-=$title?>
+
-
-
-
+
+
+
-
+
-
+ 0): //Show options..
?>
@@ -74,7 +74,7 @@
onClick=' return confirm("Are you sure you want to DELETE selected emails?");'>
-
+
diff --git a/include/staff/filters.inc.php b/include/staff/filters.inc.php
index e8e9122..a1a0fff 100644
--- a/include/staff/filters.inc.php
+++ b/include/staff/filters.inc.php
@@ -56,27 +56,27 @@
$negorder=$order=='DESC'?'ASC':'DESC'; //Negate the sorting..
$showadd=($errors && $_POST['a']=='add')?true:false;
?>
-
+
-
+
-
=$result_type?>: =$showing?>
+
:
-
+ 0): //Show options..
?>
@@ -129,7 +129,7 @@
All
Toggle
None
- page:=$pageNav->getPageLinks()?>
+ page:getPageLinks()?>
@@ -139,7 +139,7 @@
onClick='return confirm("Are you sure you wan to REMOVE selected email from ban list?");'>
-
+
diff --git a/include/staff/footer.inc.php b/include/staff/footer.inc.php
index 2837780..b8f2245 100644
--- a/include/staff/footer.inc.php
+++ b/include/staff/footer.inc.php
@@ -1,14 +1,14 @@
-
-isStaff()) {?>
+
+isStaff()) {?>
-}?>
+
diff --git a/include/staff/group.inc.php b/include/staff/group.inc.php
index d65f949..c460689 100644
--- a/include/staff/group.inc.php
+++ b/include/staff/group.inc.php
@@ -14,42 +14,42 @@
?>
-
-
+
+
-
-
+
+
-
+ 0): //Show options..
?>
@@ -75,7 +75,7 @@
onClick=' return confirm("Are you sure you want to DELETE selected services?");'>
-
+
diff --git a/include/staff/login.tpl.php b/include/staff/login.tpl.php
index 1d065ce..8f3b663 100644
--- a/include/staff/login.tpl.php
+++ b/include/staff/login.tpl.php
@@ -13,12 +13,12 @@
-
=$msg?>
+
diff --git a/include/staff/mypref.inc.php b/include/staff/mypref.inc.php
index 8613b52..00fbf54 100644
--- a/include/staff/mypref.inc.php
+++ b/include/staff/mypref.inc.php
@@ -5,23 +5,23 @@
-
+
Maximum page size:
-
+ getPageSize();
for ($i = 5; $i <= 50; $i += 5) {?>
- >=$i?>
- }?>
+ >
+
Tickets/items per page.
Auto Refresh Rate:
-
+
in Mins. (Tickets page refresh rate in minutes. Enter 0 to disable )
@@ -29,7 +29,7 @@
Preferred Timezone:
-
+ getTZOffset():$rep['timezone_offset'];
echo"Server Time (GMT $gmoffset:00) "; //Default if all fails.
@@ -37,19 +37,19 @@
while (list($offset,$tz) = db_fetch_row($timezones)){
$selected = ($currentoffset==$offset) ?'SELECTED':'';
$tag=($offset)?"GMT $offset ($tz)":" GMT ($tz)"; ?>
- >=$tag?>
- }?>
+ >
+
Daylight Savings:
- >Observe daylight saving
+ >Observe daylight saving
Current Time:
- =Format::date($cfg->getDateTimeFormat(),Misc::gmtime(),$rep['timezone_offset'],$rep['daylight_saving'])?>
+ getDateTimeFormat(),Misc::gmtime(),$rep['timezone_offset'],$rep['daylight_saving'])?>
diff --git a/include/staff/myprofile.inc.php b/include/staff/myprofile.inc.php
index f0fc59b..57bf447 100644
--- a/include/staff/myprofile.inc.php
+++ b/include/staff/myprofile.inc.php
@@ -6,42 +6,42 @@
-
+
- =$trl->translate('LABEL_USERNAME') ?>:
- =$thisuser->getUserName()?>
+ translate('LABEL_USERNAME') ?>:
+ getUserName()?>
First Name:
-
- * =$errors['firstname']?>
+
+ *
Last Name:
-
- * =$errors['lastname']?>
+
+ *
Email Address:
-
- * =$errors['email']?>
+
+ *
Office Phone:
- =$errors['phone']?> Ext
-
- =$errors['phone_ext']?>
+ Ext
+
+
Cell Phone:
-
- =$errors['mobile']?>
+
+
Signature:
- =$rep['signature']?>
+
diff --git a/include/staff/newticket.inc.php b/include/staff/newticket.inc.php
index 6c35901..30c7ae6 100644
--- a/include/staff/newticket.inc.php
+++ b/include/staff/newticket.inc.php
@@ -3,13 +3,13 @@
$info=($_POST && $errors)?Format::input($_POST):array(); //on error...use the post data
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
@@ -18,26 +18,26 @@
_('LABEL_EMAIL_ADDRESS')?>:
-
- * =$errors['email']?>
- if($cfg->notifyONNewStaffTicket()) {?>
+
+ *
+ notifyONNewStaffTicket()) {?>
- >Send alert to user.
- }?>
+ >Send alert to user.
+
_('LABEL_FULL_NAME');?>:
-
- * =$errors['name']?>
+
+ *
_('LABEL_TELEPHONE')?>:
-
- Ext
- =$errors['phone']?>
+
+ Ext
+
@@ -45,11 +45,11 @@
_('LABEL_SELECT_SOURCE')?>
- >_('LABEL_PHONE')?>
- >_('LABEL_EMAIL')?>
- >_('LABEL_OTHER')?>
+ >_('LABEL_PHONE')?>
+ >_('LABEL_EMAIL')?>
+ >_('LABEL_OTHER')?>
- * =$errors['source']?>
+ *
@@ -57,29 +57,29 @@
_('LABEL_SELECT_DEPARTMENT')?>
-
+
- >=$dept?>
-
+ >
+
- * =$errors['deptId']?>
+ *
_('LABEL_SUBJECT')?>:
-
- * =$errors['subject']?>
+
+ *
_('LABEL_ISSUE_SUMMARY')?>:
- _('TEXT_Visible to client')?> * =$errors['issue']?>
-
+ _('TEXT_Visible to client')?> *
+
Select a premade reply/issue
-
- =Format::htmlchars($title)?>
- }?>
+
+
+
Append
- }?>
- =$info['issue']?>
+
+
- canUploadFiles()) {
+ canUploadFiles()) {
?>
Attachment:
- =$errors['attachment']?>
+
- }?>
+
Internal Note:
- Optional Internal note(s). =$errors['note']?>
- =$info['note']?>
+ Optional Internal note(s).
+
Due Date:
- Time is based on your time zone (GM =$thisuser->getTZoffset()?>) =$errors['time']?>
- Time is based on your time zone (GM getTZoffset()?>)
+
@@ -125,26 +125,26 @@
list($hr,$min)=explode(':',$info['time']);
echo Misc::timeDropdown($hr,$min,'time');
?>
- =$errors['duedate']?>
+
-
+
Priority:
-
+ getDefaultPriorityId();
while($row=db_fetch_array($priorities)){ ?>
- >=$row['priority_desc']?>
- }?>
+ >
+
- }?>
+
@@ -153,35 +153,35 @@
Select One
-
+
- >=$topic?>
-
+ >
+
- =$errors['topicId']?>
+
-
+
Assign To:
-Assign To Staff-
-
+
- >=$staffName?>
-
+ >
+
- =$errors['staffId']?>
+
- >Send alert to assigned staff.
+ >Send alert to assigned staff.
@@ -192,10 +192,10 @@
?>
None
-
- > My signature
- }?>
- > Dept Signature (if any)
+
+ > My signature
+
+ > Dept Signature (if any)
diff --git a/include/staff/preference.inc.php b/include/staff/preference.inc.php
index 8e901d8..5e9cea7 100644
--- a/include/staff/preference.inc.php
+++ b/include/staff/preference.inc.php
@@ -26,7 +26,7 @@
$depts= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE.' WHERE ispublic=1');
$templates=db_query('SELECT tpl_id,name FROM '.EMAIL_TEMPLATE_TABLE.' WHERE cfg_id='.db_input($cfg->getId()));
?>
- (v=$config['ostversion']?>)
+ (v)
@@ -38,54 +38,54 @@
- />Online
- />Offline
- =$config['isoffline']?'osTicket offline':''?>
+ />Online
+ />Offline
+
-
- * =$errors['helpdesk_url']?>
+
+ *
-
+
-
+
- >=$name?>
-
+ >
+
- * =$errors['default_template_id']?>
+ *
-
+
- >=$name?> Dept
-
+ > Dept
+
- * =$errors['default_dept_id']?>
+ *
-
+
- value="=$i?>">=$i?>
-
+ value="">
+
@@ -93,19 +93,19 @@
- >
- > DEBUG
- > WARN
- > ERROR
+ >
+ > DEBUG
+ > WARN
+ > ERROR
-
+
- value="=$i?>">=$i?> =($i>1)?t('LABEL_MONTHS'):t('LABEL_MONTH')?>
-
+ value=""> 1)?t('LABEL_MONTHS'):t('LABEL_MONTH')?>
+
@@ -130,13 +130,13 @@
-
+
- >
+ >
Bind staff's session to login IP.
@@ -163,19 +163,19 @@
-
+
- >
+ >
- >
+ >
@@ -188,32 +188,32 @@
:
-
- * =$errors['time_format']?>
- =Format::date($config['time_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?>
+
+ *
+
:
-
- * =$errors['date_format']?>
- =Format::date($config['date_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?>
+
+ *
+
:
-
- * =$errors['datetime_format']?>
- =Format::date($config['datetime_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?>
+
+ *
+
:
-
- * =$errors['daydatetime_format']?>
- =Format::date($config['daydatetime_format'],$gmtime,$config['timezone_offset'],$config['enable_daylight_saving'])?>
+
+ *
+
:
-
+ Server Time (GMT $gmoffset:00)"; //Default if all fails.
$timezones= db_query('SELECT offset,timezone FROM '.TIMEZONE_TABLE);
@@ -221,8 +221,8 @@
$selected = ($config['timezone_offset'] ==$offset) ?'SELECTED':'';
$tag=($offset)?"GMT $offset ($tz)":" GMT ($tz)";
?>
- >=$tag?>
-
+ >
+
@@ -230,7 +230,7 @@
:
- >
+ >
@@ -240,73 +240,73 @@
Ticket IDs:
- /> Sequential
- />Random (recommended)
+ /> Sequential
+ />Random (recommended)
Ticket Priority:
-
+
- >=$tag?>
-
+ >
+
Default priority
- >
+ >
Allow user to overwrite/set priority (new web tickets)
- >
+ >
Use email priority when available (new emailed tickets)
Maximum Open Tickets:
-
+
per email. (Helps with spam and flood control. Enter 0 for unlimited )
Auto-Lock Time:
-
- =$errors['autolock_minutes']?>
+
+
(Minutes to lock a ticket on activity. Enter 0 to disable locking )
Ticket Grace Period:
-
+
(Hours before ticket is marked overdue. Enter 0 to disable aging. )
Reopened Tickets:
- >
+ >
Auto-assign reopened tickets to last respondent 'available'. ( 3 months limit )
Assigned Tickets:
- >
+ >
Show assigned tickets on open queue.
Answered Tickets:
- >
+ >
Show answered tickets on open queue.
Ticket Activity Log:
- >
+ >
Log ticket's activity as internal notes.
Staff Identity:
- >
+ >
Hide staff's name on responses.
@@ -315,9 +315,9 @@
- }?>
- >
- Enable captcha on new web tickets. =$errors['enable_captcha']?>
+
+ >
+ Enable captcha on new web tickets.
@@ -327,14 +327,14 @@
Incoming Emails :
For mail fetcher (POP/IMAP) to work you must set a cron job or simply enable auto-cron
- > Enable POP/IMAP email fetch
+ > Enable POP/IMAP email fetch
(Global setting which can be disabled at email level )
- > Enable email piping
+ > Enable email piping
(You pipe we accept policy )
- >
+ >
Strip quoted reply (depends on the tag below )
- Reply Separator Tag
- =$errors['reply_separator']?>
+ Reply Separator Tag
+
Outgoing Emails :
@@ -342,63 +342,63 @@
Default Email: Only applies to outgoing emails with no SMTP settings.
- = $trl->translate('TEXT_SELECT_ONE_TOPIC') ?>
+ translate('TEXT_SELECT_ONE_TOPIC') ?>
None: Use PHP mail function
-
+
- >=$email?>
-
+ >
+
- =$errors['default_smtp_id']?>
-
- >
- Allow spoofing (No Overwrite). =$errors['spoof_default_smtp']?>
+
+
+ >
+ Allow spoofing (No Overwrite).
Default System Email:
- = $trl->translate('TEXT_SELECT_ONE_TOPIC') ?>
-
+ translate('TEXT_SELECT_ONE_TOPIC') ?>
+
- >=$email?>
-
+ >
+
- * =$errors['default_email_id']?>
+ *
Default Alert Email:
- = $trl->translate('TEXT_SELECT_ONE_TOPIC') ?>
+ translate('TEXT_SELECT_ONE_TOPIC') ?>
Use Default System Email (above)
-
+
- >=$email?>
-
+ >
+
- * =$errors['alert_email_id']?>
+ *
Used to send out alerts and notices to staff.
System Admin Email Address:
-
- * =$errors['admin_email']?>
+
+ *
@@ -407,26 +407,26 @@
New Ticket:
Autoresponse includes the ticket ID required to check status of the ticket
- />Enable
- />Disable
+ />Enable
+ />Disable
New Ticket by Staff:
Notice sent when staff creates a ticket on behalf of the user (Staff can disable)
- />Enable
- />Disable
+ />Enable
+ />Disable
New Message:
Message appended to an existing ticket confirmation
- />Enable
- />Disable
+ />Enable
+ />Disable
Overlimit notice:
Ticket denied notice sent only once on limit violation to the user.
- />Enable
- />Disable
+ />Enable
+ />Disable
Note: Admin gets alerts on ALL denials by default.
@@ -438,49 +438,49 @@
New Ticket Alert:
- />Enable
- />Disable
- Select recipients =$errors['ticket_alert_active']?>
- > Admin Email
- > Department Manager
- > Department Members (spammy)
+ />Enable
+ />Disable
+ Select recipients
+ > Admin Email
+ > Department Manager
+ > Department Members (spammy)
New Message Alert:
- />Enable
- />Disable
- Select recipients =$errors['message_alert_active']?>
- > Last Respondent
- > Assigned Staff
- > Department Manager (spammy)
+ />Enable
+ />Disable
+ Select recipients
+ > Last Respondent
+ > Assigned Staff
+ > Department Manager (spammy)
New Internal Note Alert:
- />Enable
- />Disable
- Select recipients =$errors['note_alert_active']?>
- > Last Respondent
- > Assigned Staff
- > Department Manager (spammy)
+ />Enable
+ />Disable
+ Select recipients
+ > Last Respondent
+ > Assigned Staff
+ > Department Manager (spammy)
Overdue Ticket Alert:
- />Enable
- />Disable
- Admin Email gets an alert by default. Select additional recipients below =$errors['overdue_alert_active']?>
- > Assigned Staff
- > Department Manager
- > Department Members (spammy)
+ />Enable
+ />Disable
+ Admin Email gets an alert by default. Select additional recipients below
+ > Assigned Staff
+ > Department Manager
+ > Department Members (spammy)
System Errors:
Enabled errors are sent to admin email set above
- disabled>System Errors
- >SQL errors
- >Excessive Login attempts
+ disabled>System Errors
+ >SQL errors
+ >Excessive Login attempts
diff --git a/include/staff/premade.inc.php b/include/staff/premade.inc.php
index e21a678..3836510 100644
--- a/include/staff/premade.inc.php
+++ b/include/staff/premade.inc.php
@@ -56,33 +56,33 @@
$negorder=$order=='DESC'?'ASC':'DESC'; //Negate the sorting..
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
- _('LABEL_SEARCH_FOR')?>:
+ _('LABEL_SEARCH_FOR')?>:
_('LABEL_CATEGORY')?>
_('LABEL_ALL_DEPARTMENTS')?>
-
+
- > =$deptName?>
- }?>
+ >
+
-=$result_type?> =$showing?>
+
-
+ 0): //Show options..
?>
@@ -137,7 +137,7 @@
_('LABEL_ALL')?>
_('LABEL_TOGGLE')?>
_('LABEL_NONE')?>
- page:=$pageNav->getPageLinks()?>
+ page:getPageLinks()?>
-
+
diff --git a/include/staff/reply.inc.php b/include/staff/reply.inc.php
index 5087c13..5f53d22 100644
--- a/include/staff/reply.inc.php
+++ b/include/staff/reply.inc.php
@@ -12,49 +12,49 @@
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
-=$title?>
+
-
-
+
+
_('LABEL_TITLE')?>:
-
- * =$errors['title']?>
+
+ *
_('LABEL_STATUS')?>:
- /> Active
- />Offline
- =$errors['isenabled']?>
+ /> Active
+ />Offline
+
_('LABEL_CATEGORY')?>:
- Department under which the 'answer' will be made available. =$errors['depts']?>
+ Department under which the 'answer' will be made available.
_('LABEL_ALL_DEPARTMENTS') ?>
-
+
- >=$name?>
-
+ >
+
_('LABEL_ANSWER')?>:
- Premade Reply - Ticket's base variables are supported. * =$errors['answer']?>
- =$info['answer']?>
+ Premade Reply - Ticket's base variables are supported. *
+
diff --git a/include/staff/smtp.inc.php b/include/staff/smtp.inc.php
index 3c64634..055fae5 100644
--- a/include/staff/smtp.inc.php
+++ b/include/staff/smtp.inc.php
@@ -4,7 +4,7 @@
$info=($_POST && $errors)?Format::input($_POST):Format::htmlchars($cfg->getSMTPInfo());
?>
-=$title?>
+
@@ -18,49 +18,49 @@
Please be patient, the system will try to login to SMTP server to validate the entered login info.
Enable SMTP
- />Yes
- />No
- =$errors['isenabled']?>
+ />Yes
+ />No
+
SMTP Host
-
- * =$errors['host']?>
+
+ *
SMTP Port
-
- * =$errors['port']?>
+
+ *
Encryption
/>None
+ />None
/>TLS (secure)
- =$errors['issecure']?>
+ />TLS (secure)
+
- =$trl->translate('LABEL_USERNAME') ?>
-
- * =$errors['userid']?>
+ translate('LABEL_USERNAME') ?>
+
+ *
- =$trl->translate('LABEL_PASSWORD') ?>
-
- * =$errors['userpass']?>
+ translate('LABEL_PASSWORD') ?>
+
+ *
Email Address
-
- * =$errors['fromaddress']?>
+
+ *
Email Name:
- =$errors['fromname']?>
+
(Optional email's FROM name. )
diff --git a/include/staff/staff.inc.php b/include/staff/staff.inc.php
index 04eef82..5635645 100644
--- a/include/staff/staff.inc.php
+++ b/include/staff/staff.inc.php
@@ -25,34 +25,34 @@
$depts= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE);
?>
-=$title?>
+
Staff
@@ -113,26 +113,26 @@
Subject
-
- =$errors['ticket_alert_subj']?>
+
+
Message Body:
- =$tpl['ticket_alert_body']?>
- =$errors['ticket_alert_body']?>
+
+
Subject
-
- =$errors['message_alert_subj']?>
+
+
Message Body:
- =$tpl['message_alert_body']?>
- =$errors['message_alert_body']?>
+
+
@@ -141,13 +141,13 @@
Subject
-
- =$errors['note_alert_subj']?>
+
+
Message Body:
- =$tpl['note_alert_body']?>
- =$errors['note_alert_body']?>
+
+
@@ -155,26 +155,26 @@
Subject
-
- =$errors['assigned_alert_subj']?>
+
+
Message Body:
- =$tpl['assigned_alert_body']?>
- =$errors['assigned_alert_body']?>
+
+
Subject
-
- =$errors['ticket_overdue_subj']?>
+
+
Message Body:
- =$tpl['ticket_overdue_body']?>
- =$errors['ticket_overdue_body']?>
+
+
diff --git a/include/staff/templates.inc.php b/include/staff/templates.inc.php
index 9629f39..e483f53 100644
--- a/include/staff/templates.inc.php
+++ b/include/staff/templates.inc.php
@@ -35,7 +35,7 @@
?>
Email Templates
-=$showing?>
+
-
+ 0 && $deletable): //Show options..
?>
@@ -97,7 +97,7 @@
onClick='return confirm("Are you sure you want to DELETE selected template(s)?");'>
-
+
@@ -111,18 +111,18 @@
Name:
-
- * =$errors['name']?>
+
+ *
Copy:
Select Template to Copy
-
+
- =$name?>
-
+
+
- * =$errors['copy_template']?>
+ *
diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php
index cb63532..2282508 100644
--- a/include/staff/tickets.inc.php
+++ b/include/staff/tickets.inc.php
@@ -249,37 +249,37 @@
//YOU BREAK IT YOU FIX IT.
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
-
+
-
+
_('LABEL_DATE_SPAN');?>:
- _('LABEL_FROM');?>
_('LABEL_FROM');?>
_('LABEL_TO');?>
-
@@ -320,34 +320,34 @@
_('LABEL_TYPE');?>:
- >Scan (%)
- >Fulltext
+ >Scan (%)
+ >Fulltext
translate('LABEL_SORT_BY');?>::
-
+
- >translate(LABEL_TICKET_NUMBER)?>
- >translate(LABEL_PRIORITY)?>
- >translate(LABEL_DATE)?>
- >translate(LABEL_DEPT)?>
+ >translate(LABEL_TICKET_NUMBER)?>
+ >translate(LABEL_PRIORITY)?>
+ >translate(LABEL_DATE)?>
+ >translate(LABEL_DEPT)?>
- >translate(LABEL_DESCENDING)?>
- >translate(LABEL_ASCENDING)?>
+ >translate(LABEL_DESCENDING)?>
+ >translate(LABEL_ASCENDING)?>
translate(LABEL_RESULTS_PER_PAGE)?>:
-
+
- >=$x?>
- }?>
+ >
+
@@ -373,7 +373,7 @@
- =$showing?> =$results_type?>
+
@@ -382,25 +382,25 @@
-
+
-
-
+
+
-
+
diff --git a/include/staff/viewticket.inc.php b/include/staff/viewticket.inc.php
index a946154..d2a4adf 100644
--- a/include/staff/viewticket.inc.php
+++ b/include/staff/viewticket.inc.php
@@ -27,13 +27,13 @@
?>
- Ticket #=$ticket->getExtId()?> Ticket #getExtId()?>
- if($thisuser->canEditTickets() || ($thisuser->isManager() && $dept->getId()==$thisuser->getDeptId())) { ?>
- Edit Ticket }?>
+ canEditTickets() || ($thisuser->isManager() && $dept->getId()==$thisuser->getDeptId())) { ?>
+ Edit Ticket
@@ -42,19 +42,19 @@ class="Icon editTicket">Edit Ticket }?>
cellpadding="3" width="100%" border=0>
Status:
- =$ticket->getStatus()?>
+ getStatus()?>
Priority:
- =$ticket->getPriority()?>
+ getPriority()?>
Department:
- =Format::htmlchars($ticket->getDeptName())?>
+ getDeptName())?>
Create Date:
- =Format::db_datetime($ticket->getCreateDate())?>
+ getCreateDate())?>
@@ -63,7 +63,7 @@ class="Icon editTicket">Edit Ticket }?>
cellpadding="3" width="100%" border=0>
Name:
- =Format::htmlchars($ticket->getName())?>
+ getName())?>
Email:
@@ -78,17 +78,17 @@ class="Icon editTicket">Edit Ticket }?>
Phone:
- =Format::phone($ticket->getPhoneNumber())?>
+ getPhoneNumber())?>
Source:
- =$ticket->getSource()?>
+ getSource()?>
- Subject: =Format::htmlchars($ticket->getSubject())?>
+ Subject: getSubject())?>
@@ -97,24 +97,24 @@ class="Icon editTicket">Edit Ticket }?>
cellpadding="3" width="100%" border=0>
Assigned Staff:
- =$staff?Format::htmlchars($staff->getName()):'- unassigned -'?>
+ getName()):'- unassigned -'?>
Last Response:
- =Format::db_datetime($ticket->getLastResponseDate())?>
+ getLastResponseDate())?>
isOpen()){ ?>
Due Date:
- =Format::db_datetime($ticket->getDueDate())?>
+ getDueDate())?>
Close Date:
- =Format::db_datetime($ticket->getCloseDate())?>
+ getCloseDate())?>
Edit Ticket }?>
cellpadding="3" width="100%" border=0>
Help Topic:
-
+ getHelpTopic();
echo Format::htmlchars($ht?$ht:'N/A');
?>
@@ -134,94 +134,94 @@ class="Icon editTicket">Edit Ticket }?>
IP Address:
- =$ticket->getIP()?>
+ getIP()?>
Last Message:
- =Format::db_datetime($ticket->getLastMessageDate())?>
+ getLastMessageDate())?>
-
+
- =$errors['err']?>
+
- }elseif($msg && $_POST['a']=='process' || $_POST['a']=='update' ) {?>
+
- =$msg?>
+
- }elseif($warn) {?>
+
- =$warn?>
+
- }?>
+
-
+ canManageTickets() || $thisuser->isManager()){ ?>
- }?>
+
-
+
?>
Internal Notes (=$notes?>)
+ onClick="toggleLayer('ticketnotes'); return false;">Internal Notes ()
-
-
+
+
- =Format::db_daydatetime($row['created'])?> - posted
- by =$row['source']?>
+ - posted
+ by
- if($row['title']) {?>
+
- } ?>
+
- =Format::display($row['note'])?>
+
- } ?>
+
- } ?>
+
Ticket Thread
-
+
- =Format::db_daydatetime($msg_row['created'])?>
+
- 0){ ?>
+ 0){ ?>
- }?>
+
- =Format::display($msg_row['message'])?>
+
-
+
- =Format::db_daydatetime($resp_row['created'])?> - =$resp_row['staff_name']?>
+ -
- 0){ ?>
+ 0){ ?>
- }?>
+
- =Format::display($resp_row['response'])?>
+
- }
+
-
+
-
+
- =$errors['err']?>
-
}elseif($msg) {?>
+
+
- =$msg?>
-
}?>
+
+
- }?>
+
-
+ canTransferTickets()) {
?>
- }?>
-
+
+ isAssigned() || $thisuser->isadmin() || $thisuser->isManager() || $thisuser->getId()==$ticket->getStaffId()) {
?>
- }?>
+
diff --git a/index.php b/index.php
index 5fab55f..54a6dd0 100644
--- a/index.php
+++ b/index.php
@@ -62,4 +62,4 @@
-
+
diff --git a/main.inc.php b/main.inc.php
index 10c8575..45c8014 100644
--- a/main.inc.php
+++ b/main.inc.php
@@ -149,8 +149,6 @@
$ferror='Unable to connect to the database';
}elseif(!($cfg=Sys::getConfig())){
$ferror='Unable to load config info from DB. Get tech support.';
- }elseif(!ini_get('short_open_tag')) {
- $ferror='Short open tag disabled! - osTicket requires it turned ON.';
}
if($ferror){ //Fatal error
diff --git a/scp/admin.php b/scp/admin.php
index c50e8ec..21df247 100644
--- a/scp/admin.php
+++ b/scp/admin.php
@@ -696,30 +696,30 @@
require(STAFFINC_DIR.'header.inc.php');
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
-
+
- Problems loading requested admin page. (=Format::htmlchars($thistab)?>)
+ Problems loading requested admin page. ()
Possibly access denied, if you believe this is in error please get technical support.
- }?>
+
-
+
diff --git a/scp/directory.php b/scp/directory.php
index a02e1ef..d43460c 100644
--- a/scp/directory.php
+++ b/scp/directory.php
@@ -47,33 +47,33 @@
require_once(STAFFINC_DIR.'header.inc.php');
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
- Search for :
+ Search for :
Dept.
All Department
-
+
- >=$deptName?>
- }?>
+ >
+
- if($users && db_num_rows($users)):?>
+
Staff Members
@@ -83,25 +83,25 @@
Phone
Mobile
-
+
-
- =$name?>
- =$row['dept_name']?>
- =$row['email']?>
- =Format::phone($row['phone'])?> =$ext?>
- =Format::phone($row['mobile'])?>
+
+
+
+
+
+
-
+
-
+Problems displaying directory";
endif;
diff --git a/scp/profile.php b/scp/profile.php
index dc81f46..dd643b1 100644
--- a/scp/profile.php
+++ b/scp/profile.php
@@ -164,17 +164,17 @@
require_once(STAFFINC_DIR.'header.inc.php');
?>
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
- require(STAFFINC_DIR.$inc); ?>
+
-
+
diff --git a/setup/inc/install.inc.php b/setup/inc/install.inc.php
index 595b457..a727a14 100644
--- a/setup/inc/install.inc.php
+++ b/setup/inc/install.inc.php
@@ -57,15 +57,15 @@
osTicket web path and title
Url to osTicket installation on your server and the title.
- HelpDesk URL: =URL?>
+ HelpDesk URL:
- HelpDesk Title:
- =$errors['title']?>
+ HelpDesk Title:
+
System email
Default system email (e.g support@yourdomain.com) You can change or add more emails later.
- Default Email:
- =$errors['sysemail']?>
+ Default Email:
+
Admin user
Min of six characters for the password. You can change or add more users later.
@@ -73,35 +73,35 @@
Database
MySQL (version 4.4+) is the only database supported at the moment.
- =$errors['mysql']?>
+
diff --git a/setup/inc/install.inc.php.orig b/setup/inc/install.inc.php.orig
index 3ac0be2..2879805 100644
--- a/setup/inc/install.inc.php.orig
+++ b/setup/inc/install.inc.php.orig
@@ -21,10 +21,10 @@ if(!isset($info['prefix'])) {
osTicket web path and title
Url to osTicket installation on your server and the title.
- HelpDesk URL: =URL?>
+ HelpDesk URL:
- HelpDesk Title:
- =$errors['title']?>
+ HelpDesk Title:
+
OSTicket Language:
@@ -46,13 +46,13 @@ if(!isset($info['prefix'])) {
}
?>
-
- =$errors['ostlang']?>
+
+
System email
Default system email (e.g support@yourdomain.com) You can change or add more emails later.
- Default Email:
- =$errors['sysemail']?>
+ Default Email:
+
Admin user
Min of six characters for the password. You can change or add more users later.
@@ -60,35 +60,35 @@ if(!isset($info['prefix'])) {
Database
MySQL (version 4.4+) is the only database supported at the moment.
- =$errors['mysql']?>
+
diff --git a/setup/inc/shortopentag.inc.php b/setup/inc/shortopentag.inc.php
deleted file mode 100755
index beb368c..0000000
--- a/setup/inc/shortopentag.inc.php
+++ /dev/null
@@ -1,5 +0,0 @@
-osTicket requires short open tags enabled
-Unfortunately osTicket requires that short_open_tag be on. We plan on removing the requirement in the upcoming version(s). Our apologies for the inconvienence.
-Enabling short_open_tag
-Depending on your server permission level - the directive can be set on in php.ini, .htaccess or httpd.conf.
-
diff --git a/setup/inc/upgradedone.inc.php b/setup/inc/upgradedone.inc.php
index d031abb..b112b4b 100755
--- a/setup/inc/upgradedone.inc.php
+++ b/setup/inc/upgradedone.inc.php
@@ -5,7 +5,7 @@
Delete setup directory
After verifying that the upgrade completed correctly please delete setup folder.
-
+
Disable register globals (optional)
If you don't have a good reason why register globals is enabled then please disable it.
diff --git a/setup/install.php b/setup/install.php
index e17cd1a..ee6e82b 100644
--- a/setup/install.php
+++ b/setup/install.php
@@ -52,9 +52,6 @@
}elseif((double)phpversion()<4.3){ //Old PHP installation
$errors['err']='PHP installation seriously out of date';
$inc='php.inc.php';
-}elseif(!ini_get('short_open_tag')) {
- $errors['err']='Short open tag disabled! - osTicket requires it turned on.';
- $inc='shortopentag.inc.php';
}elseif(!file_exists(CONFIGFILE)) {
$errors['err']=sprintf('Configuration file (%s) missing!',basename(CONFIGFILE));
$inc='missing.inc.php';
@@ -226,23 +223,23 @@
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
-
+
diff --git a/setup/upgrade.php b/setup/upgrade.php
index cb30de0..39f1ced 100644
--- a/setup/upgrade.php
+++ b/setup/upgrade.php
@@ -5,7 +5,7 @@
osTicket upgrade script
Peter Rotich
- Copyright (c) 2006-2010 osTicket
+ Copyright (c) 2006-2010 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
@@ -33,7 +33,7 @@
//Let's roll.
$errors=array();
$fp=null;
-define('VERSION','1.6 ST'); //Current version number
+define('VERSION','1.6 ST'); //Current version number
define('SCHEMAFILE','./inc/v16rc5.sql'); //osTicket upgrade SQL schema.
define('PREFIX',TABLE_PREFIX);
@@ -48,31 +48,28 @@
}elseif((double)phpversion()<4.3){ //Old PHP installation
$errors['err']='PHP installation seriously out of date';
$inc='php.inc.php';
-}elseif(!ini_get('short_open_tag')) {
- $errors['err']='Short open tag disabled! - osTicket requires it turned on.';
- $inc='shortopentag.inc.php';
}elseif($_POST && !$errors){
- $step=(!strcasecmp($cfg->getVersion(),'1.6 RC5'))?2:1; //gods help us!
- //die("Step #$step");
-
- switch($step):
- case 1: //Upgrading to RC5 from any old version.. RC1-RC4.
- $schema='./inc/v1.6rc5-upgrade.sql';
+ $step=(!strcasecmp($cfg->getVersion(),'1.6 RC5'))?2:1; //gods help us!
+ //die("Step #$step");
+
+ switch($step):
+ case 1: //Upgrading to RC5 from any old version.. RC1-RC4.
+ $schema='./inc/v1.6rc5-upgrade.sql';
$vars=$errors=array();
-
+
$result=db_query('SELECT alert_email,noreply_email,api_whitelist,api_key,default_dept FROM '.CONFIG_TABLE.' WHERE id=1');
if($result && db_num_rows($result)) {
$vars=db_fetch_array($result);
- if(!load_sql_schema($schema,$errors) && !$errors['err'])
+ if(!load_sql_schema($schema,$errors) && !$errors['err'])
$errors['err']='Error parsing SQL schema! Get help from developers';
- }else{
- $errors['err']='Db problems - Get help from developers';
+ }else{
+ $errors['err']='Db problems - Get help from developers';
}
if(!$errors) {
//update version.
- db_query('UPDATE '.CONFIG_TABLE.' SET ostversion='.db_input('1.6 RC5'));
+ db_query('UPDATE '.CONFIG_TABLE.' SET ostversion='.db_input('1.6 RC5'));
//API keys
$ips=array_filter(explode(',',ereg_replace(' ','',$vars['api_whitelist'])));
foreach($ips as $ip) {
@@ -130,68 +127,68 @@
db_query('ALTER TABLE '.PREFIX.'config DROP `noreply_email` ,DROP `alert_email` ,DROP `api_whitelist`');
db_query('TRUNCATE TABLE '.PREFIX.'email_pop3');
db_query('DROP TABLE '.PREFIX.'email_pop3');
- }
- if($errors) break; //break on any errors.
- case 2: //upgrading v1.6 ST (latest release).
- $schema='./inc/v1.6st-upgrade.sql';
- $vars=$errors=array();
-
- if(!load_sql_schema($schema,$errors) && !$errors['err'])
- $errors['err']='Error parsing SQL schema! Get help from developers';
-
- if(!$errors) {
- //update the version to the latest
- $sendnotices=$cfg->autoRespONNewTicket()?1:0;
- db_query('UPDATE '.CONFIG_TABLE.' SET ostversion='.db_input(VERSION).',ticket_notice_active='.db_input($sendnotice));
- //Fix attachment issues.
- require_once(INCLUDE_DIR.'class.ticket.php');
- $sql='SELECT ticket.ticket_id, count(attach_id) as attachments FROM '.TICKET_TABLE.' ticket '.
- 'LEFT JOIN '.TICKET_ATTACHMENT_TABLE.' attach ON ticket.ticket_id=attach.ticket_id '.
- 'GROUP BY ticket.ticket_id';
- //echo $sql;
- $resp = db_query($sql);
- if($resp && db_num_rows($resp)){
- while(list($id,$files)=db_fetch_row($resp)){
- if(!$files) continue;
- $ticket = new Ticket($id);
- $ticket->fixAttachments();
- }
- }
- $sql='SELECT tpl_id,ticket_overlimit_subj,ticket_overlimit_body FROM '.PREFIX.'email_template';
- if(($result=db_query($sql)) && db_num_rows($result)) {
- while($row=db_fetch_array($result)) {
-
- $sql='UPDATE '.PREFIX.'email_template SET updated=NOW() '.
- ',ticket_overlimit_subj='.db_input(str_replace('%ticket','%id',$row['ticket_overlimit_subj'])).
- ',ticket_overlimit_body='.db_input(str_replace('%ticket','%id',$row['ticket_overlimit_body'])).
- ' WHERE tpl_id='.db_input($row['tpl_id']);
- db_query($sql);
- }
- //Update
- $sql='UPDATE '.PREFIX.'email_template SET updated=NOW() '.
- ',ticket_notice_subj = "[#%ticket] %subject"'.
- ',ticket_notice_body = "%name,\r\n\r\nOur customer care team personnel has created a ticket #%ticket on your behalf, with the following message;\r\n\r\n%message\r\n\r\nIf you wish to provide additional comments or information regarding this issue, please don\'t open a new ticket. You can update or view this ticket\'s progress online here: %url/view.php?e=%email&t=%ticket.\r\n\r\n%signature"';
- db_query($sql);
- }
- }
-
- endswitch;
-
- if(!$errors) { //upgrade went smooth!
+ }
+ if($errors) break; //break on any errors.
+ case 2: //upgrading v1.6 ST (latest release).
+ $schema='./inc/v1.6st-upgrade.sql';
+ $vars=$errors=array();
+
+ if(!load_sql_schema($schema,$errors) && !$errors['err'])
+ $errors['err']='Error parsing SQL schema! Get help from developers';
+
+ if(!$errors) {
+ //update the version to the latest
+ $sendnotices=$cfg->autoRespONNewTicket()?1:0;
+ db_query('UPDATE '.CONFIG_TABLE.' SET ostversion='.db_input(VERSION).',ticket_notice_active='.db_input($sendnotice));
+ //Fix attachment issues.
+ require_once(INCLUDE_DIR.'class.ticket.php');
+ $sql='SELECT ticket.ticket_id, count(attach_id) as attachments FROM '.TICKET_TABLE.' ticket '.
+ 'LEFT JOIN '.TICKET_ATTACHMENT_TABLE.' attach ON ticket.ticket_id=attach.ticket_id '.
+ 'GROUP BY ticket.ticket_id';
+ //echo $sql;
+ $resp = db_query($sql);
+ if($resp && db_num_rows($resp)){
+ while(list($id,$files)=db_fetch_row($resp)){
+ if(!$files) continue;
+ $ticket = new Ticket($id);
+ $ticket->fixAttachments();
+ }
+ }
+ $sql='SELECT tpl_id,ticket_overlimit_subj,ticket_overlimit_body FROM '.PREFIX.'email_template';
+ if(($result=db_query($sql)) && db_num_rows($result)) {
+ while($row=db_fetch_array($result)) {
+
+ $sql='UPDATE '.PREFIX.'email_template SET updated=NOW() '.
+ ',ticket_overlimit_subj='.db_input(str_replace('%ticket','%id',$row['ticket_overlimit_subj'])).
+ ',ticket_overlimit_body='.db_input(str_replace('%ticket','%id',$row['ticket_overlimit_body'])).
+ ' WHERE tpl_id='.db_input($row['tpl_id']);
+ db_query($sql);
+ }
+ //Update
+ $sql='UPDATE '.PREFIX.'email_template SET updated=NOW() '.
+ ',ticket_notice_subj = "[#%ticket] %subject"'.
+ ',ticket_notice_body = "%name,\r\n\r\nOur customer care team personnel has created a ticket #%ticket on your behalf, with the following message;\r\n\r\n%message\r\n\r\nIf you wish to provide additional comments or information regarding this issue, please don\'t open a new ticket. You can update or view this ticket\'s progress online here: %url/view.php?e=%email&t=%ticket.\r\n\r\n%signature"';
+ db_query($sql);
+ }
+ }
+
+ endswitch;
+
+ if(!$errors) { //upgrade went smooth!
//Log a message.
$log=sprintf("Congratulations osTicket upgraded to version %s by %s \n\nThank you for choosing osTicket!",VERSION,$thisuser->getName());
$sql='INSERT INTO '.PREFIX.'syslog SET created=NOW(),updated=NOW() '.
- ',title="osTicket upgraded!",log_type="Debug" '.
+ ',title="osTicket upgraded!",log_type="Debug" '.
',log='.db_input($log).
',ip_address='.db_input($_SERVER['REMOTE_ADDR']);
mysql_query($sql);
//Create a ticket
$sql='INSERT INTO '.PREFIX.'ticket SET created=NOW(),ticketID='.db_input(Misc::randNumber(6)).
- ',dept_id='.db_input($deptId?$deptId:$cfg->getDefaultDeptId()).
+ ',dept_id='.db_input($deptId?$deptId:$cfg->getDefaultDeptId()).
",priority_id=2,email='support@osticket.com',name='osTicket Support' ".
- ",subject='osTicket Upgraded!',helptopic='osTicket Support',status='open',source='Web'";
-
+ ",subject='osTicket Upgraded!',helptopic='osTicket Support',status='open',source='Web'";
+
if(db_query($sql) && ($id=db_insert_id())){
$sql='INSERT INTO '.PREFIX.'ticket_message SET created=NOW(), updated=NOW(), source="Web" '.
',ticket_id='.db_input($id).
@@ -202,13 +199,13 @@
//Report the good news.
$inc='upgradedone.inc.php';
$msg='osTicket upgraded to version '.VERSION;
- }else{ //errors....aborting.
+ }else{ //errors....aborting.
$inc='abortedupgrade.inc.php';
$errors['err']=$errors['err']?$errors['err']:'Yikes! upgrade error(s) occured';
$_SESSION['abort']=true;
}
}
-$title=sprintf('osTicket upgrade wizard v %s','1.6 ST (stable)');
+$title=sprintf('osTicket upgrade wizard v %s','1.6 ST (stable)');
?>
@@ -220,23 +217,23 @@
-
-
=$errors['err']?>
- }elseif($msg) {?>
-
=$msg?>
- }elseif($warn) {?>
-
=$warn?>
- }?>
+
+
+
+
+
+
+
-
+