diff -ur forum-server/feed.php forum-server.new/feed.php
--- forum-server/feed.php 2009-09-05 04:52:49.000000000 -0400
+++ forum-server.new/feed.php 2010-02-10 01:04:50.000000000 -0500
@@ -50,14 +50,14 @@
//$title = __("Topic:", "vasthtml")." ".$vasthtml->get_subject($post->parent_id);
$title = $post->subject;
echo "- \n
- " . htmlspecialchars($title) . "\n
+ " . stripslashes(htmlspecialchars($title)) . "\n
".htmlspecialchars($vasthtml->output_filter($post->text, ENT_NOQUOTES))."\n
".htmlspecialchars($link)."\n
- feeds@r.us\n
+ ".$user->user_login."\n
".date("r", strtotime($post->date))."\n
".htmlspecialchars($link."&guid=$post->id")."
\n\n";
}
?>
-
\ No newline at end of file
+
diff -ur forum-server/wpf.class.php forum-server.new/wpf.class.php
--- forum-server/wpf.class.php 2009-09-05 04:52:49.000000000 -0400
+++ forum-server.new/wpf.class.php 2010-03-03 16:38:48.000000000 -0500
@@ -65,11 +65,11 @@
$this->login_link = $this->path."/wp-login.php?redirect_to=".PHP_SELF."";
$this->profile_link = $this->path."/wp-admin/profile.php";
- $this->thread_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=showthread&thread";
+ $this->thread_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=showthread&thread";
- $this->profil_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=showprofile&user";
- $this->search_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=search&";
- $this->grouplogin_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=grouplogin&group";
+ $this->profil_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=showprofile&user";
+ $this->search_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=search&";
+ $this->grouplogin_link = $this->path."/?page_id=$this->page_id&vasthtmlaction=grouplogin&group";
$this->t_groups = $table_prefix."forum_groups";
$this->t_forums = $table_prefix."forum_forums";
@@ -120,11 +120,11 @@
// Add admin pages
function add_admin_pages(){
add_menu_page('Forum Server', 'Forum Server', 8, 'forum-server/fs-admin/fs-admin.php', '', WPFURL."images/logo.png");
- add_submenu_page('forum-server/fs-admin/fs-admin.php', 'Skins', 'Skins', 8,"admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=skins");
- add_submenu_page('forum-server/fs-admin/fs-admin.php', 'Categories & Forums', 'Categories & Forums', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=structure");
- add_submenu_page('forum-server/fs-admin/fs-admin.php', 'Moderators', 'Moderators', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=moderators");
- add_submenu_page('forum-server/fs-admin/fs-admin.php', 'User Groups', 'User Groups', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=usergroups");
- add_submenu_page('forum-server/fs-admin/fs-admin.php', 'About', 'About', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=about");
+ add_submenu_page('forum-server/fs-admin/fs-admin.php', 'Skins', 'Skins', 8,"admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=skins");
+ add_submenu_page('forum-server/fs-admin/fs-admin.php', 'Categories & Forums', 'Categories & Forums', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=structure");
+ add_submenu_page('forum-server/fs-admin/fs-admin.php', 'Moderators', 'Moderators', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=moderators");
+ add_submenu_page('forum-server/fs-admin/fs-admin.php', 'User Groups', 'User Groups', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=usergroups");
+ add_submenu_page('forum-server/fs-admin/fs-admin.php', 'About', 'About', 8, "admin.php?page=forum-server/fs-admin/fs-admin.php&vasthtml_action=about");
}
// ... and some styling and meta
@@ -226,14 +226,14 @@
if($wp_rewrite->using_permalinks())
$delim = "?";
else
- $delim = "&";
+ $delim = "&";
$perm = get_permalink($this->page_id);
- $this->forum_link = $perm.$delim."vasthtmlaction=viewforum&f=";
- $this->group_link = $perm.$delim."vasthtmlaction=vforum&g=";
- $this->thread_link = $perm.$delim."vasthtmlaction=viewtopic&t=";
- $this->add_topic_link = $perm.$delim."vasthtmlaction=addtopic&forum=$this->current_forum";
- $this->post_reply_link = $perm.$delim."vasthtmlaction=postreply&thread=$this->current_thread";
+ $this->forum_link = $perm.$delim."vasthtmlaction=viewforum&f=";
+ $this->group_link = $perm.$delim."vasthtmlaction=vforum&g=";
+ $this->thread_link = $perm.$delim."vasthtmlaction=viewtopic&t=";
+ $this->add_topic_link = $perm.$delim."vasthtmlaction=addtopic&forum=$this->current_forum";
+ $this->post_reply_link = $perm.$delim."vasthtmlaction=postreply&thread=$this->current_thread";
$this->base_url = $perm.$delim."vasthtmlaction=";
$this->reg_link = $this->path."/wp-register.php?redirect_to=";
$this->topic_feed_url = WPFURL."feed.php?topic=";
@@ -247,14 +247,14 @@
if($wp_rewrite->using_permalinks())
$delim = "?";
else
- $delim = "&";
+ $delim = "&";
- $this->forum_link = $perm.$delim."vasthtmlaction=viewforum&f=";
- $this->group_link = $perm.$delim."vasthtmlaction=vforum&g=";
- $this->thread_link = $perm.$delim."vasthtmlaction=viewtopic&t=";
- $this->add_topic_link = $perm.$delim."vasthtmlaction=addtopic&forum=$this->current_forum";
- $this->post_reply_link = $perm.$delim."vasthtmlaction=postreply&thread=$this->current_thread";
+ $this->forum_link = $perm.$delim."vasthtmlaction=viewforum&f=";
+ $this->group_link = $perm.$delim."vasthtmlaction=vforum&g=";
+ $this->thread_link = $perm.$delim."vasthtmlaction=viewtopic&t=";
+ $this->add_topic_link = $perm.$delim."vasthtmlaction=addtopic&forum=$this->current_forum";
+ $this->post_reply_link = $perm.$delim."vasthtmlaction=postreply&thread=$this->current_thread";
$this->base_url = $perm.$delim."vasthtmlaction=";
$this->reg_link = $this->path."/wp-register.php?redirect_to=";
$this->topic_feed_url = WPFURL."feed.php?topic=";
@@ -276,7 +276,8 @@
return $this->group_link.$id.".$this->curr_page";
}
function get_threadlink($id){
- return $this->thread_link.$id.".$this->curr_page";
+ //return $this->thread_link.$id.".$this->curr_page";
+ return $this->thread_link.$id.".0";
}
function get_pageid(){
global $wpdb;
@@ -434,6 +435,7 @@
$load
";
+ $this->o = str_replace('$', '\$', $this->o);
return preg_replace('||', "
".$this->o."
", $content);
}
@@ -535,7 +537,7 @@
.$this->output_filter($thread->subject)."".$this->get_pagelinks($thread->id)." $image $del
".$this->profile_link($thread->starter)." |
- ".$this->num_posts($thread->id)." |
+ ".($this->num_posts($thread->id)-1)." |
".$thread->views." |
".$this->get_lastpost($thread->id)." |
";
@@ -568,7 +570,7 @@
.$this->output_filter($thread->subject)."".$this->get_pagelinks($thread->id)." $image $del
".$this->profile_link($thread->starter)." |
- ".$this->num_posts($thread->id)." |
+ ".($this->num_posts($thread->id)-1)." |
".$thread->views." |
".$this->get_lastpost($thread->id)." |
";
@@ -699,11 +701,11 @@
$image ".$this->get_postname($post_id)." on: ".$this->get_postdate($post_id)." | ";
if(is_user_logged_in())
- $o .= " ".__("Quote", "vasthtml")." | ";
+ $o .= " ".__("Quote", "vasthtml")." | ";
if($this->is_moderator($user_ID, $this->current_forum) || $user_ID == $author_id)
- $o .= " ".__("Remove", "vasthtml")." |
- " .__("Edit", "vasthtml")." | ";
+ $o .= " ".__("Remove", "vasthtml")." |
+ " .__("Edit", "vasthtml")." | ";
$o .= "
";
@@ -988,20 +990,21 @@
// Some SEO friendly stuff
function get_pagetitle($bef_title){
global $wpdb;
- $default_title = " » ";
+ $default_title = " | ";
switch($_GET['vasthtmlaction']){
case "viewforum":
- $title = $default_title.$this->get_groupname($this->get_parent_id(FORUM, $this->check_parms($_GET['f'])))." » ".$this->get_forumname($this->check_parms($_GET['f']));
+ $title = $default_title.$this->get_groupname($this->get_parent_id(FORUM, $this->check_parms($_GET['f'])))." | ".$this->get_forumname($this->check_parms($_GET['f']));
break;
case "viewtopic":
$group = $this->get_groupname($this->get_parent_id(FORUM, $this->get_parent_id(THREAD, $this->check_parms($_GET['t']))));
- $title = $default_title.$group." » ".$this->get_forumname($this->get_parent_id(THREAD, $this->check_parms($_GET['t'])))." » ".$this->get_threadname($this->check_parms($_GET['t']));
+ //$title = $default_title.$group." | ".$this->get_forumname($this->get_parent_id(THREAD, $this->check_parms($_GET['t'])))." | ".$this->get_threadname($this->check_parms($_GET['t']));
+ $title = $default_title.$group." | ".$this->get_threadname($this->check_parms($_GET['t']));
break;
case "search":
$terms = $wpdb->escape($_POST['wpf_search_string']);
- $title = $default_title.__("Search Results", "vasthtml"). " » $terms";
+ $title = $default_title.__("Search Results", "vasthtml"). " | $terms";
break;
case "profile":
$title = $default_title.__("Profile", "vasthtml")."";
@@ -1240,14 +1243,14 @@
$class= "maintab";
if($this->is_moderator($user_ID, $this->current_forum)){
if($this->is_sticky())
- $stick = "".__("Unmark as Sticky", "vasthtml")." | ";
+ $stick = "".__("Unmark as Sticky", "vasthtml")." | ";
else
- $stick = "".__("Mark as sticky", "vasthtml")." | ";
+ $stick = "".__("Mark as sticky", "vasthtml")." | ";
}
$menu .= "