$hidden = isset($record['hidden']) ? $record['hidden'] : 0; $logo = isset($record['statpic_logo']) ? $record['statpic_logo'] : 0; $logotext = isset($record['statpic_text']) ? $record['statpic_text'] : 'Opencaching'; $text_counterstat = $translate->t('Finds: %1 Hidden: %2', '', '', 0, '', 0, $lang); $text_counterstat = str_replace('%1', $found, $text_counterstat); $text_counterstat = str_replace('%2', $hidden, $text_counterstat); } else { $userid = 0; $username = $translate->t('<User not known>', '', '', 0, '', 0, $lang); $found = 0; $hidden = 0; $logo = 0; $logotext = 'Opencaching'; } sql_free_result($rs); $filename = GetFilename($userid, $lang); // Bild existiert nicht => neu erstellen $rs = sql("SELECT `tplpath`, `maxtextwidth` FROM `statpics` WHERE `id`='&1'", $logo); if (sql_num_rows($rs) == 1) { $record = sql_fetch_array($rs); $tplpath = $opt['rootpath'] . $record['tplpath']; $maxtextwidth = $record['maxtextwidth']; } else { $tplpath = $opt['rootpath'] . 'images/ocstats1.gif'; $maxtextwidth = 60; $logo = 1; } sql_free_result($rs); $im = ImageCreateFromGIF($tplpath); $clrWhite = ImageColorAllocate($im, 255, 255, 255); $clrBorder = ImageColorAllocate($im, 70, 70, 70);
if ($r['userid']) { $username = "******" . $r['userid'] . "' target=_blank>" . $r['username'] . "</a>"; } $fpath = 0; $getfpath = 0; $record = "<!--record-->"; $field = "<!--field--->"; $er = explode($record, $br['enter']); $count = count($er); for ($i = 0; $i < $count - 1; $i++) { $er1 = explode($field, $er[$i]); //附件 if (strstr($br['filef'], "," . $er1[1] . ",")) { if ($r[$er1[1]]) { if (!$getfpath) { $filename = GetFilename($r[$er1[1]]); $filer = $empire->fetch1("select fpath from {$dbtbpre}enewsfile where path='{$r['filepath']}' and filename='{$filename}' limit 1"); $fpath = $filer[fpath]; $getfpath = 1; } $fspath = ReturnFileSavePath(0, $fpath); $fileurl = $fspath['fileurl'] . $r[$er1[1]]; $val = "<b>附件:</b><a href='" . $fileurl . "' target=_blank>" . $r[$er1[1]] . "</a>"; } else { $val = ""; } } else { $val = $r[$er1[1]]; } $feedbackinfo .= "<tr bgcolor='#FFFFFF'><td height=25>" . $er1[0] . ":</td><td>" . nl2br($val) . "</td></tr>"; }