$picdb[imgurl] = tempdir("{$picdb['imgurl']}"); $picdb[width] && ($width = " width='{$picdb['width']}'"); $picdb[height] && ($height = " height='{$picdb['height']}'"); if ($picdb['imglink']) { $value = "<a href='{$picdb['imglink']}' target=_blank><img src='{$picdb['imgurl']}' {$width} {$height} border='0' /></a>"; } else { $value = "<img src='{$picdb['imgurl']}' {$width} {$height} border='0' />"; } } elseif ($rs[type] == 'swf') { $flashdb = unserialize($rs[code]); $flashdb[flashurl] = tempdir($flashdb[flashurl]); $flashdb[width] && ($width = " width='{$flashdb['width']}'"); $flashdb[height] && ($height = " height='{$flashdb['height']}'"); $value = "<object type='application/x-shockwave-flash' data='{$flashdb['flashurl']}' {$width} {$height} wmode='transparent'><param name='movie' value='{$flashdb['flashurl']}' /><param name='wmode' value='transparent' /></object>"; } elseif ($rs[type] == 'rollpic') { $value = rollPic_flash(unserialize($rs[code])); } else { $value = stripslashes($rs[code]); //真实地址还原 $value = En_TruePath($value, 0); } } $show = stripslashes($value); if (!is_dir(dirname($FileName))) { makepath(dirname($FileName)); } if (time() - filemtime($FileName) > $webdb["cache_time_js"] * 60) { if ($webdb["cache_time_js"] != -1) { write_file($FileName, "<?php \r\n\$show=stripslashes('" . addslashes($show) . "'); ?>"); } }
$detail[piclink][$key] = En_TruePath($value, 0); } if ($detail[rolltype] == 2) { //自定义样式 unset($_listdb); foreach ($detail[picurl] as $key => $value) { $_listdb[] = array('picurl' => tempdir($value), 'link' => $detail[piclink][$key], 'url' => $detail[piclink][$key], 'title' => $detail[picalt][$key]); } $_listdb[0][tpl_1code] = En_TruePath($detail[tplpart_1code], 0); $value = run_label_php($_listdb); } elseif ($detail[picalt][1] == '') { //没有标题的情况 $value = rollPic_no_title_js($detail); } else { if ($detail[rolltype] == 1) { $value = rollPic_flash($detail); } else { $value = rollpic_2js($detail); } } } else { $value = stripslashes($rs[code]); //真实地址还原 $value = En_TruePath($value, 0); } //更新标签时显示的页面 if ($jobs == 'show') { if (!$value) { $value = ' '; } $divdb = unserialize($rs[divcode]);