I have an idea to use bash command which on output give day of week:
date -R| awk '{print $1}'| sed -e 's/,$//'
And now there is a job to change function called duedate in newticket.inc.php
IF 'my code above' == Thu set strtotime("+5 days")
IF 'my code above' == Fri set strtotime("+4 days")
ELSE set strtotime("+3 days")
But I am not php programmer, so can anyone help me to write this properly?
Due date in newticket.inc.php:
<tr>
<td align="left" valign="top"><br/>Due Date:</td>
<td>
<i>Time is based on your time zone (GM <?=$thisuser->getTZoffset()?>)</i> <font class="error"> <?=$errors?></font><br>
<input id="duedate" name="duedate"
value="<?=Format:($info==""?date("d-m-Y", strtotime("+2 days")):$info)?>"
onclick="event.cancelBubble=true;calendar(this);" autocomplete=OFF>
<a href="#" onclick="event.cancelBubble=true;calendar(getObj('duedate')); return false;"><img src='images/cal.png'border=0 alt=""></a>
<?php
$min=$hr=null;
if($info)
list($hr,$min)=explode(':',$info);
echo Misc:($hr,$min,'time');
?>
<font class="error"> <?=$errors?></font>
</td>
</tr>