summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BitBlog.php3
-rw-r--r--BitBlogPost.php12
-rw-r--r--blogs_rss.php4
-rw-r--r--post.php4
-rw-r--r--view.php5
5 files changed, 15 insertions, 13 deletions
diff --git a/BitBlog.php b/BitBlog.php
index 07cfa7d..8be498f 100644
--- a/BitBlog.php
+++ b/BitBlog.php
@@ -192,7 +192,8 @@ class BitBlog extends BitBase {
function replace_blog($title, $description, $user_id, $public, $max_posts, $blog_id, $heading, $use_title, $use_find,
$allow_comments, $creation_date = NULL) {
- $now = date("U");
+ global $gBitSystem;
+ $now = $gBitSystem->getUTCTime();
if ($creation_date == NULL)
$creation_date = (int)$now;
diff --git a/BitBlogPost.php b/BitBlogPost.php
index 6d7dd5b..046c45e 100644
--- a/BitBlogPost.php
+++ b/BitBlogPost.php
@@ -1,12 +1,12 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_blogs/BitBlogPost.php,v 1.6 2005/08/24 20:49:32 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_blogs/BitBlogPost.php,v 1.7 2005/08/30 22:14:46 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitBlogPost.php,v 1.6 2005/08/24 20:49:32 squareing Exp $
+ * $Id: BitBlogPost.php,v 1.7 2005/08/30 22:14:46 squareing Exp $
*
* Virtual base class (as much as one can have such things in PHP) for all
* derived tikiwiki classes that require database access.
@@ -16,7 +16,7 @@
*
* @author drewslater <andrew@andrewslater.com>, spiderr <spider@steelsun.com>
*
- * @version $Revision: 1.6 $ $Date: 2005/08/24 20:49:32 $ $Author: squareing $
+ * @version $Revision: 1.7 $ $Date: 2005/08/30 22:14:46 $ $Author: squareing $
*/
/**
@@ -166,11 +166,11 @@ class BitBlogPost extends LibertyAttachable {
LibertyContent::store( $pParamHash );
}
if (empty($pParamHash['post_id'])) {
- global $gBitSmarty;
+ global $gBitSmarty, $gBitSystem;
global $feature_user_watches;
$tracks = serialize(explode(',', $pParamHash['trackback']));
$pParamHash['edit'] = strip_tags($pParamHash['edit'], '<a><b><i><h1><h2><h3><h4><h5><h6><ul><li><ol><br><p><table><tr><td><img><pre>');
- $now = date("U");
+ $now = $gBitSystem->getUTCTime();
if (empty($pParamHash['post_date']))
$pParamHash['post_date'] = (int)$now;
$pParamHash['post_id'] = $this->mDb->GenID('tiki_blog_posts_post_id_seq');
@@ -200,7 +200,7 @@ class BitBlogPost extends LibertyAttachable {
$gBitSmarty->assign('mail_title', $this->mInfo['title']);
$gBitSmarty->assign('mail_blogid', $this->mInfo['blog_id']);
$gBitSmarty->assign('mail_postid', $this->mPostId);
- $gBitSmarty->assign('mail_date', date("U"));
+ $gBitSmarty->assign('mail_date', $gBitSystem->getUTCTime());
$gBitSmarty->assign('mail_user', $this->mInfo['user']);
$gBitSmarty->assign('mail_data', $this->mInfo['data']);
$gBitSmarty->assign('mail_hash', $not['hash']);
diff --git a/blogs_rss.php b/blogs_rss.php
index b771916..588dd1b 100644
--- a/blogs_rss.php
+++ b/blogs_rss.php
@@ -1,6 +1,6 @@
<?php
/**
-* @version $Header: /cvsroot/bitweaver/_bit_blogs/blogs_rss.php,v 1.3 2005/07/17 17:35:56 squareing Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_blogs/blogs_rss.php,v 1.4 2005/08/30 22:14:46 squareing Exp $
* @package blogs
* @subpackage functions
@@ -38,7 +38,7 @@ if (!empty($_REQUEST['blog_id'])) {
$title = "Blogs RSS feed for ".$gBitSystem->getPreference("siteTitle","Tiki");
$desc = $gBitSystem->getPreference( 'desc_rss_blog', "Last modifications to the Blogs" );
}
-$now = date("U");
+$now = $gBitSystem->getUTCTime();
$id = "blog_id";
$desc_id = "parsed_data";
$dateId = "created";
diff --git a/post.php b/post.php
index baee6be..b6b948b 100644
--- a/post.php
+++ b/post.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.7 2005/08/24 20:49:32 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.8 2005/08/30 22:14:46 squareing Exp $
* @package blogs
* @subpackage functions
@@ -91,7 +91,7 @@ if (count($blogs) == 0) {
}
$gBitSmarty->assign('data', '');
-$gBitSmarty->assign('created', date("U"));
+$gBitSmarty->assign('created', $gBitSystem->getUTCTime());
$blog_data = $gBlog->get_blog($blog_id);
$gBitSmarty->assign_by_ref('blog_data', $blog_data);
diff --git a/view.php b/view.php
index 903de1d..73e871f 100644
--- a/view.php
+++ b/view.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/view.php,v 1.5 2005/08/24 20:49:32 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/view.php,v 1.6 2005/08/30 22:14:46 squareing Exp $
* @package blogs
* @subpackage functions
@@ -133,7 +133,7 @@ if (isset($_REQUEST["remove"])) {
}
-$now = date("U");
+$now = $gBitSystem->getUTCTime();
$blogPost = new BitBlogPost();
$listHash['blog_id'] = $_REQUEST['blog_id'];
@@ -141,6 +141,7 @@ $listHash['parse_data'] = TRUE;
$listHash['max_records'] = $blog_data['max_posts'];
$listHash['load_num_comments'] = TRUE;
$listHash['page'] = (!empty($_REQUEST['page']) ? $_REQUEST['page'] : 1);
+$listHash['offset'] = (!empty($_REQUEST['offset']) ? $_REQUEST['offset'] : 0);
$blogPosts = $blogPost->getList( $listHash );
//$blogPosts = $blogPost->getList($_REQUEST["blog_id"], $offset, $blog_data["max_posts"], $sort_mode, $find );
if (!empty($_REQUEST['offset'])) {