* finish task #1575.

This commit is contained in:
wyd621
2013-07-17 11:05:28 +08:00
parent d31842a4c8
commit c920eeb60f
5 changed files with 30 additions and 10 deletions
+6 -2
View File
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<table width='98%' align='center'>
<tr class='header'>
<td>
@@ -24,8 +28,7 @@
<?php
if(strpos($testtask->desc, 'src="data/upload'))
{
$testtask->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
$testtask->desc = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
$testtask->desc = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
}
echo $testtask->desc;
?>
@@ -37,3 +40,4 @@
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>