inclusion d'un word of the day + style lego plus abouti + nouveaux mots-clefs

This commit is contained in:
nojhan 2008-04-25 22:03:21 +00:00
commit e21409a5e0
6 changed files with 158 additions and 63 deletions

View file

@ -306,6 +306,7 @@ class strip_manager
// link for posting a new comment
$this->forum_post_url = $this->general->forum . '/post.php?ttitle='.$this->title.'&fid='.$this->general->punbb_forum_id;
}
}
@ -342,6 +343,20 @@ class strip_manager
$this->nav_last = $this->nav_base_url.($this->strips_count-1).$this->nav_lang_url;
$this->nav_first = $this->nav_base_url."0".$this->nav_lang_url;
// if one want to use punbb as forum
if( $this->general->use_punbb ) {
// get the word of the day
$fh = fopen( $this->general->forum.'/extern.php?action=new&show=1&fid='.$this->general->punbb_wotd_id, 'r');
if (!$fh) {
$this->general->wotd = $this->lang-forum_error;
} else {
$this->general->wotd = stream_get_contents($fh);
fclose($fh);
}
}
$this->strip_info_get( $element_asked );
}