Browse Source

Remove .tmp extension from thumbnail and explain database structure change

json
Trevor Slocum 7 years ago
parent
commit
ed0dc56093
  1. 2
      README.md
  2. 2
      imgboard.php

2
README.md

@ -9,7 +9,7 @@ TinyIB - A Lightweight and Efficient [Image Board](http://en.wikipedia.org/wiki/
For demos see the [TinyIB Installations](https://github.com/tslocum/TinyIB/wiki) page.
**Note to those who have recently upgraded:** Are you unable to create new posts? Run the SQL on [this page](https://github.com/tslocum/TinyIB/wiki/NewSQLStructure) to finish the upgrade process.
**Database structure was last modified on *7th Aug 2015*.** Are you unable to create new posts? Run the SQL on [this page](https://github.com/tslocum/TinyIB/wiki/NewSQLStructure) to finish the upgrade process.
Features
------------

2
imgboard.php

@ -101,7 +101,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
}
$post['file_hex'] = $service;
$temp_file = time() . substr(microtime(), 2, 3) . '.tmp';
$temp_file = time() . substr(microtime(), 2, 3);
$file_location = "thumb/" . $temp_file;
file_put_contents($file_location, file_get_contents($embed['thumbnail_url']));

Loading…
Cancel
Save