Changeset 818

Show
Ignore:
Timestamp:
08/14/09 00:20:54 (13 months ago)
Author:
lordlamer
Message:

- date in download is now chown for sqlite as database (Closes: #137)

Location:
branches/knowledgeroot-0.9.9
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/knowledgeroot-0.9.9/doc/CHANGELOG

    r817 r818  
    430430 
    43143120090812 - fhabermann 
    432 - added missing counter field to sqlite dump 
    433 - fixed download problems with sqlite as database 
     432- added missing counter field to sqlite dump (Closes: #134) 
     433- fixed download problems with sqlite as database (Closes: #134) 
     434- date in download is now chown for sqlite as database (Closes: #137) 
  • branches/knowledgeroot-0.9.9/include/class-knowledgeroot-header.php

    r817 r818  
    754754                                //import for sqlite 
    755755                                if($this->CLASS['db']->dbtype == "sqlite") { 
    756                                         $res = $this->CLASS['db']->query(sprintf("INSERT INTO files(belongs_to,file,filename,filesize,filetype,owner) VALUES (%d,'%s','%s', %d,'%s',%d)",$_POST['contentid'],base64_encode($buffer),addslashes($_FILES['datei']['name']),$_FILES['datei']['size'],addslashes($_FILES['datei']['type']),$_SESSION['userid'])); 
     756                                        $res = $this->CLASS['db']->query(sprintf("INSERT INTO files(belongs_to,file,filename,filesize,filetype,owner,date) VALUES (%d,'%s','%s', %d,'%s',%d,'%s')",$_POST['contentid'],base64_encode($buffer),addslashes($_FILES['datei']['name']),$_FILES['datei']['size'],addslashes($_FILES['datei']['type']),$_SESSION['userid'],date('Y-m-d H:i:s', time()))); 
    757757                                } 
    758758