@@ 234-249 (lines=16) @@ | ||
231 | * |
|
232 | * @return mixed |
|
233 | */ |
|
234 | public function topic_title($format = 'S') |
|
235 | { |
|
236 | $myts = MyTextSanitizer::getInstance(); |
|
237 | switch ($format) { |
|
238 | case 'S': |
|
239 | case 'E': |
|
240 | $title = $myts->htmlSpecialChars($this->topic_title); |
|
241 | break; |
|
242 | case 'P': |
|
243 | case 'F': |
|
244 | $title = $myts->htmlSpecialChars($myts->stripSlashesGPC($this->topic_title)); |
|
245 | break; |
|
246 | } |
|
247 | ||
248 | return $title; |
|
249 | } |
|
250 | ||
251 | /** |
|
252 | * @param string $format |
|
@@ 256-271 (lines=16) @@ | ||
253 | * |
|
254 | * @return mixed |
|
255 | */ |
|
256 | public function topic_imgurl($format = 'S') |
|
257 | { |
|
258 | $myts = MyTextSanitizer::getInstance(); |
|
259 | switch ($format) { |
|
260 | case 'S': |
|
261 | case 'E': |
|
262 | $imgurl = $myts->htmlSpecialChars($this->topic_imgurl); |
|
263 | break; |
|
264 | case 'P': |
|
265 | case 'F': |
|
266 | $imgurl = $myts->htmlSpecialChars($myts->stripSlashesGPC($this->topic_imgurl)); |
|
267 | break; |
|
268 | } |
|
269 | ||
270 | return $imgurl; |
|
271 | } |
|
272 | ||
273 | public function prefix() |
|
274 | { |