/[gnuheter]/gnuheter/diary.php
ViewVC logotype

Diff of /gnuheter/diary.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by metaur, Tue Aug 20 17:10:35 2002 UTC revision 1.5 by metaur, Tue Sep 3 14:25:22 2002 UTC
# Line 169  function diary_recent () { Line 169  function diary_recent () {
169    
170    
171  function diary_edit ($did=0) {  function diary_edit ($did=0) {
172        include('config.php');
173      global $did,$loggeduser,$diary,$REQUEST_METHOD,$action,$op;      global $did,$loggeduser,$diary,$REQUEST_METHOD,$action,$op;
174      dbconnect();      dbconnect();
175      $diary['title'] = strip_tags($diary['title']);      $diary['title'] = strip_tags($diary['title']);
# Line 176  function diary_edit ($did=0) { Line 177  function diary_edit ($did=0) {
177      if (($op == "add") or ($did == 0)) {      if (($op == "add") or ($did == 0)) {
178          $result = mysql_query("SELECT did,NOW()-time FROM diary WHERE aid='$loggeduser' ORDER BY did DESC LIMIT 1");          $result = mysql_query("SELECT did,NOW()-time FROM diary WHERE aid='$loggeduser' ORDER BY did DESC LIMIT 1");
179          list($yourdid,$secs) = @mysql_fetch_row($result);          list($yourdid,$secs) = @mysql_fetch_row($result);
180          if ($secs < 86400 and @mysql_num_rows($result)) {          if ($secs < $diaryseconds and @mysql_num_rows($result)) {
181              include ('header.php');              include ('header.php');
182              echo "<h1>Generalfel</h1>\n";              echo "<h1>Generalfel</h1>\n";
183              echo "Man får bara göra ett dagboksinlägg per dag.<br>\n";              echo "Man får bara göra ett dagboksinlägg per dag.<br>\n";

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26