Changeset 818
- Timestamp:
- 08/14/09 00:20:54 (13 months ago)
- Location:
- branches/knowledgeroot-0.9.9
- Files:
-
- 2 modified
-
doc/CHANGELOG (modified) (1 diff)
-
include/class-knowledgeroot-header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/knowledgeroot-0.9.9/doc/CHANGELOG
r817 r818 430 430 431 431 20090812 - 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 754 754 //import for sqlite 755 755 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()))); 757 757 } 758 758
