+++ /dev/null
---- eventum-20051227/include/class.misc.php 2005-12-27 15:35:26.000000000 +0200
-+++ /tmp/class.misc.php 2005-12-27 15:34:41.000000000 +0200
-@@ -504,10 +497,15 @@
- * @param string $class The CSS class to use on the actual links
- * @return string The parsed string
- */
-- function activateLinks($text, $class = "link")
-+ function activateLinks($text, $class = 'link')
- {
-- $text = preg_replace("'(\w+)://([\w\+\-\@\=\?\.\%\/\:\&\;~\|]+)(\.)?'", "<a title=\"open \\1://\\2 in a new window\" class=\"$class\" href=\"\\1://\\2\" target=\"_\\2\">\\1://\\2</a>", $text);
-- $text = preg_replace("'(\s+)www\.([\w\+\-\@\=\?\.\%\/\:\&\;~\|]+)(\.\s|\s)'", "\\1<a title=\"open http://www.\\2 in a new window\" class=\"$class\" href=\"http://www.\\2\" target=\"_\\2\">www.\\2</a>\\3" , $text);
-+ $range = '[-\w+@=?.%/:&;~|,#]+';
-+ $text = preg_replace("'(\w+)://($range)(\.)?'", '<a title="open $1://$2 in a new window" class="' . $class . '" href="$1://$2" target="_$2">$1://$2</a>', $text);
-+ $text = preg_replace("'(\s+)(www\.$range)(\.\s|\s)'", '$1<a title="open http://$2 in a new window" class="' . $class . '" href="http://$2" target="_$2">$2</a>$3' , $text);
-+
-+ $mail_pat = '/([-+a-z0-9_.]+@(?:[-a-z0-9_.]{2,63}\.)+[a-z]{2,6})/i';
-+ $text = preg_replace($mail_pat, '<a title="open mailto:$1 in a new window" class="' . $class . '" href="mailto:$1" target="_$1">$1</a>' , $text);
-+
- return $text;
- }
-
---- ./include/class.attachment.php~ 2006-03-28 12:19:20.000000000 +0300
-+++ ./include/class.attachment.php 2006-03-28 12:19:23.434862171 +0300
-@@ -403,7 +403,7 @@
- return "";
- } else {
- for ($i = 0; $i < count($res); $i++) {
-- $res[$i]["iat_description"] = Link_Filter::processText(Issue::getProjectID($issue_id), nl2br(Misc::activateLinks(htmlspecialchars($res[$i]["iat_description"]))));
-+ $res[$i]["iat_description"] = Link_Filter::processText(Issue::getProjectID($issue_id), nl2br(htmlspecialchars($res[$i]["iat_description"])));
- $res[$i]["files"] = Attachment::getFileList($res[$i]["iat_id"]);
- $res[$i]["iat_created_date"] = Date_API::getFormattedDate($res[$i]["iat_created_date"]);
-
+++ /dev/null
---- eventum-1.7.0/templates/en/reports/recent_activity.tpl.html 2005-12-30 19:26:42.000000000 +0200
-+++ /tmp/recent_activity.tpl.html 2005-12-30 19:46:14.000000000 +0200
-@@ -141,7 +141,7 @@
- <tr>
- <td class="default" bgcolor="{$row_color}" NOWRAP>{include file="expandable_cell/buttons.tpl.html" ec_id="phone" list_id=$row.phs_id}</td>
- <td class="default" bgcolor="{$row.sta_color}" align="right">
-- <a target="_blank" href="{$rel_url}view.php?id={$row.phs_iss_id}" class="link">{$row.phs_iss_id}</a>
-+ <a target="_blank" href="{$rel_url}view.php?id={$row.phs_iss_id}" class="link">{$row.phs_iss_id}</a>
- </td>
- {if $has_customer_integration}
- <td class="default" bgcolor="{$row_color}">{$row.customer}</td>
-@@ -190,7 +190,7 @@
- <tr>
- <td class="default" bgcolor="{$row_color}" NOWRAP>{include file="expandable_cell/buttons.tpl.html" ec_id="note" list_id=$row.not_id}</td>
- <td class="default" bgcolor="{$row.sta_color}" align="right">
-- <a target="_blank" href="{$rel_url}view.php?id={$row.not_iss_id}" class="link">{$row.not_iss_id}</a>
-+ <a target="_blank" href="{$rel_url}view.php?id={$row.not_iss_id}" class="link" title="{$row.iss_summary|htmlspecialchars}">{$row.not_iss_id}</a>
- </td>
- {if $has_customer_integration}
- <td class="default" bgcolor="{$row_color}">{$row.customer}</td>
-@@ -240,7 +240,7 @@
- {include file="expandable_cell/buttons.tpl.html" ec_id="email" list_id=$row.composite_id}
- </td>
- <td class="default" bgcolor="{$row.sta_color}" align="right">
-- <a target="_blank" href="{$rel_url}view.php?id={$row.sup_iss_id}" class="link">{$row.sup_iss_id}</a>
-+ <a target="_blank" href="{$rel_url}view.php?id={$row.sup_iss_id}" class="link" title="{$row.iss_summary|htmlspecialchars}">{$row.sup_iss_id}</a>
- </td>
- {if $has_customer_integration}
- <td class="default" bgcolor="{$row_color}">{$row.customer}</td>
-@@ -296,7 +296,7 @@
- <tr {if $row.emd_status != 'pending'}style="text-decoration: line-through;"{/if}>
- <td class="default" NOWRAP bgcolor="{$row_color}">{include file="expandable_cell/buttons.tpl.html" ec_id="draft" list_id=$row.emd_id}</td>
- <td class="default" bgcolor="{$row.sta_color}" align="right">
-- <a target="_blank" href="{$rel_url}view.php?id={$row.emd_iss_id}" class="link">{$row.emd_iss_id}</a>
-+ <a target="_blank" href="{$rel_url}view.php?id={$row.emd_iss_id}" class="link">{$row.emd_iss_id}</a>
- </td>
- {if $has_customer_integration}
- <td class="default" bgcolor="{$row_color}">{$row.customer}</td>
-@@ -346,7 +346,7 @@
- {cycle values=$cycle assign="row_color"}
- <tr>
- <td class="default" bgcolor="{$row.sta_color}" align="right">
-- <a target="_blank" href="{$rel_url}view.php?id={$row.ttr_iss_id}" class="link">{$row.ttr_iss_id}</a>
-+ <a target="_blank" href="{$rel_url}view.php?id={$row.ttr_iss_id}" class="link" title="{$row.iss_summary|htmlspecialchars}">{$row.ttr_iss_id}</a>
- </td>
- {if $has_customer_integration}
- <td class="default" bgcolor="{$row_color}">{$row.customer}</td>
-@@ -391,7 +391,7 @@
- {cycle values=$cycle assign="row_color"}
- <tr>
- <td class="default" bgcolor="{$row.sta_color}" align="right">
-- <a target="_blank" href="{$rel_url}view.php?id={$row.rmh_iss_id}" class="link">{$row.rmh_iss_id}</a>
-+ <a target="_blank" href="{$rel_url}view.php?id={$row.rmh_iss_id}" class="link">{$row.rmh_iss_id}</a>
- </td>
- {if $has_customer_integration}
- <td class="default" bgcolor="{$row_color}">{$row.customer}</td>
+++ /dev/null
-get_display_style should not be used in add time tracking popup window
-
-to reproduce:
-1. click hide on issue details screen of time tracking
-2. click show it again
-3. click hide once again to set cookie being in state "do not show"
-4. click add time tracking. you'll get add time tracking popup with just footer
-
---- eventum/templates/en/add_phone_entry.tpl.html~ 2006-02-09 19:19:28.000000000 +0200
-+++ eventum/templates/en/add_phone_entry.tpl.html 2006-02-10 13:40:01.641181506 +0200
-@@ -65,10 +65,10 @@
- <td>
- <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2">
- {if $current_role > $roles.customer}
-- <tr id="phone_support2" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td colspan="2" class="default"><b>Record Phone Call:</b></td>
- </tr>
-- <tr id="phone_support3" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Date of Call:</b></td>
- <td bgcolor="{$light_color}" width="100%">
- {html_select_date start_year='-1' day_value_format='%02d' field_array='date' prefix='' all_extra=' class="default"'}
-@@ -76,7 +76,7 @@
- <a href="javascript:void(null);" onClick="javascript:updateTimeFields('add_phone_form', 'date[Year]', 'date[Month]', 'date[Day]', 'date[Hour]', 'date[Minute]');"><img src="images/icons/refresh.gif" border="0"></a>
- </td>
- </tr>
-- <tr id="phone_support4" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Reason:</b></td>
- <td bgcolor="{$light_color}" width="100%">
- <select name="phone_category" class="default">
-@@ -85,21 +85,21 @@
- {include file="error_icon.tpl.html" field="phone_category"}
- </td>
- </tr>
-- <tr id="phone_support5" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Call From:</b></td>
- <td bgcolor="{$light_color}" width="100%">
- <input type="text" class="default" name="from_lname" value="last name" onFocus="javascript:if (this.value == 'last name') this.value='';"><span class="default">,</span>
- <input type="text" class="default" name="from_fname" value="first name" onFocus="javascript:if (this.value == 'first name') this.value='';">
- </td>
- </tr>
-- <tr id="phone_support6" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Call To:</b></td>
- <td bgcolor="{$light_color}" width="100%">
- <input type="text" class="default" name="to_lname" value="last name" onFocus="javascript:if (this.value == 'last name') this.value='';"><span class="default">,</span>
- <input type="text" class="default" name="to_fname" value="first name" onFocus="javascript:if (this.value == 'first name') this.value='';">
- </td>
- </tr>
-- <tr id="phone_support7" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Type:</b></td>
- <td bgcolor="{$light_color}" width="100%">
- <select class="default" name="type">
-@@ -108,7 +108,7 @@
- </select>
- </td>
- </tr>
-- <tr id="phone_support8" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Customer Phone Number:</b></td>
- <td bgcolor="{$light_color}" width="100%">
- <input type="text" size="20" maxlength="32" name="phone_number" class="default">
-@@ -122,18 +122,18 @@
- </select>
- </td>
- </tr>
-- <tr id="phone_support9" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Time Spent:</b></td>
- <td bgcolor="{$light_color}" width="100%"><input type="text" size="5" name="call_length" class="default"> {include file="error_icon.tpl.html" field="call_length"} <span class="small_default"><i>(in minutes)</i></span></td>
- </tr>
-- <tr id="phone_support10" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td bgcolor="{$internal_color}" class="default_white" width="190" nowrap><b>Description:</b></td>
- <td bgcolor="{$light_color}">
- <textarea name="description" rows="8" style="width: 97%"></textarea>
- {include file="error_icon.tpl.html" field="description"}
- </td>
- </tr>
-- <tr id="phone_support11" {get_display_style element_name="phone_support"}>
-+ <tr>
- <td colspan="2" bgcolor="{$internal_color}" align="center">
- <input type="submit" value="Save Phone Call" class="button">
- </td>
---- eventum/templates/en/mail_queue.tpl.html~ 2006-02-10 16:26:46.000000000 +0200
-+++ eventum/templates/en/mail_queue.tpl.html 2006-02-10 18:35:28.462720077 +0200
-@@ -12,7 +12,7 @@
- <b>Mail Queue for Issue #{$issue_id}</b>
- </td>
- </tr>
-- <tr id="drafts1" {get_display_style element_name="drafts"}>
-+ <tr>
- <td>
- <table width="100%" cellpadding="2" cellspacing="1">
- <tr bgcolor="{$cell_color}">