diff --git a/ext/alias_editor/theme.php b/ext/alias_editor/theme.php
index 7b6bfb49..dfb24f44 100644
--- a/ext/alias_editor/theme.php
+++ b/ext/alias_editor/theme.php
@@ -12,8 +12,8 @@ class AliasEditorTheme extends Themelet {
$can_manage = $user->can("manage_alias_list");
if($can_manage) {
- $action = "
Action | ";
- $add = "
+ $h_action = "Action | ";
+ $h_add = "
".make_form(make_link("alias/add"))."
|
@@ -24,8 +24,8 @@ class AliasEditorTheme extends Themelet {
";
}
else {
- $action = "";
- $add = "";
+ $h_action = "";
+ $h_add = "";
}
$h_aliases = "";
@@ -49,15 +49,10 @@ class AliasEditorTheme extends Themelet {
$h_aliases .= "
";
}
$html = "
-
-
- From | To | $action
+
+ From | To | $h_action
$h_aliases
- $add
+ $h_add
Download as CSV
";
diff --git a/ext/comment/theme.php b/ext/comment/theme.php
index acdabed2..0da3f240 100644
--- a/ext/comment/theme.php
+++ b/ext/comment/theme.php
@@ -167,7 +167,6 @@ class CommentListTheme extends Themelet {
if($i_uid == $config->get_int("anon_id")) {
$anoncode = "";
- $style = "";
$anoncode2 = "";
if($this->show_anon_id) {
$anoncode = ''.$this->anon_id.'';
@@ -181,7 +180,7 @@ class CommentListTheme extends Themelet {
}
}
}
- $h_userlink = "" . $h_name . $anoncode . $anoncode2 . "";
+ $h_userlink = "" . $h_name . $anoncode . $anoncode2 . "";
$this->anon_id++;
}
else {
@@ -197,10 +196,10 @@ class CommentListTheme extends Themelet {
';
}
else {
- $avatar = "";
+ $h_avatar = "";
if(!empty($comment->owner_email)) {
$hash = md5(strtolower($comment->owner_email));
- $avatar = "![](\"http://www.gravatar.com/avatar/$hash.jpg\")
";
+ $h_avatar = "![](\"http://www.gravatar.com/avatar/$hash.jpg\")
";
}
$h_reply = " - Reply";
$h_ip = $user->can("view_ip") ? "
".show_ip($comment->poster_ip, "Comment posted {$comment->posted}") : "";
@@ -211,7 +210,7 @@ class CommentListTheme extends Themelet {
@@ -135,8 +135,8 @@ class UserPageTheme extends Themelet {
assert(is_array($stats));
$stats[] = 'User ID: '.$duser->id;
- $page->set_title($duser->name."'s Page");
- $page->set_heading($duser->name."'s Page");
+ $page->set_title(html_escape($duser->name)."'s Page");
+ $page->set_heading(html_escape($duser->name)."'s Page");
$page->add_block(new NavBlock());
$page->add_block(new Block("Stats", join("
", $stats), "main", 0));
diff --git a/ext/view/theme.php b/ext/view/theme.php
index 7e0bd8b9..4bce845d 100644
--- a/ext/view/theme.php
+++ b/ext/view/theme.php
@@ -7,11 +7,11 @@ class ViewImageTheme extends Themelet {
public function display_page(Image $image, $editor_parts) {
global $page;
- $metatags = str_replace(" ", ", ", html_escape($image->get_tag_list()));
+ $h_metatags = str_replace(" ", ", ", html_escape($image->get_tag_list()));
$page->set_title("Image {$image->id}: ".html_escape($image->get_tag_list()));
- $page->add_html_header("");
- $page->add_html_header("");
+ $page->add_html_header("");
+ $page->add_html_header("");
$page->add_html_header("");
$page->add_html_header("get_thumb_link())."\">");
$page->add_html_header("id}"))."\">");
'; diff --git a/ext/ext_manager/theme.php b/ext/ext_manager/theme.php index 7dd74d5c..879380cb 100644 --- a/ext/ext_manager/theme.php +++ b/ext/ext_manager/theme.php @@ -3,7 +3,7 @@ class ExtManagerTheme extends Themelet { public function display_table(Page $page, /*array*/ $extensions, /*bool*/ $editable) { global $user; - $en = $editable ? "
'.$tac.'
';} - $reca = "