} print "</p>"; } else { print "<p>{$original}</p>"; } } else { print "<i>empty</i>"; } print "</blockquote><hr/>"; } print "</form>"; print "<i>Powered by the <b>Google Toolbar</b> spell checker - language is set to English</i>"; exit; } //what style should we use? $style = $USER->getStyle(); if (!$smarty->is_cached($template, $cacheid)) { function smarty_function_hidekeywords($input) { return preg_replace('/(^|[\\n\\r\\s]+)(Keywords?[\\s:][^\\n\\r>]+)$/', '<span class="keywords">$2</span>', $input); } $smarty->register_modifier("hidekeywords", "smarty_function_hidekeywords"); $smarty->assign('maincontentclass', 'content_photo' . $style); $image->assignToSmarty($smarty); } } else { header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); $template = 'static_404.tpl'; } $smarty->display($template, $cacheid);