summaryrefslogtreecommitdiff
path: root/includes/story.inc
blob: dff58a4a18a054b3e0c67635d2f2ba1debb2b37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

class Story {
  function Story($userid, $subject, $abstract, $article, $section, $timestamp) {
    $this->userid = $userid;
    $this->subject = $subject;
    $this->abstract = $abstract;
    $this->article = $article;
    $this->section = $section;
    $this->timestamp = $timestamp;
  }
}

function story_visible($story) {
  global $user;
  return ($story->status == 2) || ($story->status == 1 && $user->id) || user_access($user, "story");
}

?>