Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Fix warning when calling ob_end_flush
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocum committed Nov 4, 2014
1 parent df2342f commit e7c69c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand All @@ -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
------------
Expand Down
6 changes: 5 additions & 1 deletion imgboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
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) {
Expand Down

0 comments on commit e7c69c9

Please sign in to comment.