Fix warning when calling ob_end_flush

This commit is contained in:
Trevor Slocum 2014-11-04 15:53:06 -08:00
parent df2342fc49
commit e7c69c9a95
2 changed files with 8 additions and 4 deletions

View File

@ -36,7 +36,7 @@ Installing
- `git clone git://github.com/tslocum/TinyIB.git ./`
4. Copy **settings.default.php** to **settings.php**
5. Configure **settings.php**
- To remove the play icon from .SWF/.WebM thumbnails, delete or rename **video_overlay.png**.
- To remove the play icon from .SWF/.WebM thumbnails, delete or rename **video_overlay.png**
- To allow WebA/WebM upload:
- Ensure your web host is running Linux.
- Install [mediainfo](http://mediaarea.net/en/MediaInfo) and [ffmpegthumbnailer](https://code.google.com/p/ffmpegthumbnailer/). On Ubuntu, run ``sudo apt-get install mediainfo ffmpegthumbnailer``.
@ -52,11 +52,11 @@ Installing
- ./src/
- ./thumb/
- ./res/
- ./inc/flatfile/ (only if you use flat file for the database)
- ./inc/flatfile/ (only if you use the ``flatfile`` database mode)
7. Navigate your browser to **imgboard.php** and the following will take place:
- The database structure will be created.
- Directories will be verified to be writable.
- The file index.html will be created containing the new image board.
- The file **index.html** will be created containing the new image board.
Moderating
------------

View File

@ -7,7 +7,11 @@ error_reporting(E_ALL);
ini_set("display_errors", 1);
session_start();
ob_implicit_flush();
ob_end_flush();
if (function_exists('ob_get_level')) {
while (ob_get_level() > 0) {
ob_end_flush();
}
}
if (get_magic_quotes_gpc()) {
foreach ($_GET as $key => $val) {