Text Formatted Code
Index: system/classes/story.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/story.class.php,v
retrieving revision 1.29
diff -u -r1.29 story.class.php
--- system/classes/story.class.php 22 Jun 2008 20:23:07 -0000 1.29
+++ system/classes/story.class.php 3 Jul 2008 18:58:29 -0000
@@ -495,6 +495,8 @@
return STORY_PERMISSION_DENIED;
} elseif ($this->_access == 2 && $mode != 'view') {
return STORY_EDIT_DENIED;
+ } elseif ((($this->_access == 2) && ($mode == 'view')) && (($this->_draft_flag == 1) || ($this->_date > time()))) {
+ return STORY_INVALID_SID;
}
} else {
return STORY_INVALID_SID;
@@ -801,6 +803,9 @@
function loadSubmission()
{
$array = $_POST;
+
+ $this->_expire = time();
+ $this->_expiredate = 0;
// Handle Magic GPC Garbage:
while (list($key, $value) = each($array))