1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-12 09:13:07 +01:00
This commit is contained in:
8chan 2015-03-29 22:36:34 +00:00
commit cd8abc3461
2 changed files with 18 additions and 4 deletions

View File

@ -9,6 +9,8 @@ Most things (other than installation) that apply to upstream vichan also apply t
If you are not interested in letting your users make their own boards, install vichan instead of infinity. If you are not interested in letting your users make their own boards, install vichan instead of infinity.
**Much like Arch Linux, infinity should be considered ``rolling release''. Unlike upstream vichan, we have no install.php. Database schema and templates are changed often and it is on you to read the Git log before updating!**
Installation Installation
------------ ------------
Basic requirements: Basic requirements:
@ -48,6 +50,17 @@ Step 4. Infinity can function in a *very* barebones fashion after the first two
apt-get install graphicsmagick gifsicle php5-fpm mysql-client php5-mysql php5-cli php-pear php5-apcu php5-dev; add-apt-repository ppa:jon-severinsson/ffmpeg; add-apt-repository ppa:nginx/stable; apt-get update; apt-get install nginx ffmpeg; pear install Net_DNS2; pecl install "channel://pecl.php.net/dio-0.0.7" apt-get install graphicsmagick gifsicle php5-fpm mysql-client php5-mysql php5-cli php-pear php5-apcu php5-dev; add-apt-repository ppa:jon-severinsson/ffmpeg; add-apt-repository ppa:nginx/stable; apt-get update; apt-get install nginx ffmpeg; pear install Net_DNS2; pecl install "channel://pecl.php.net/dio-0.0.7"
``` ```
Step 5. The current captcha provider listed inc/config.php is dead. You may want to work around this. Page Generation
------------
A lot of the static pages (claim.html, boards.html, index.html) need to be regenerated every so often. You can do this with a crontab.
```cron
*/10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php > /srv/http/claim.html
*/20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");'
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php
```
Also, main.js is empty by default. Run tools/rebuild.php to create it every time you update one of the JS files.
Have fun! Have fun!

View File

@ -141,11 +141,12 @@ $(document).on('click', '.dropzone .remove-btn', function (e) {
removeFile(file); removeFile(file);
}); });
$(document).on('keypress click', '.dropzone, .dropzone .file-hint', function (e) { $(document).on('keypress click', '.dropzone', function (e) {
e.stopPropagation(); e.stopPropagation();
// accept mosue click or Enter // accept mouse click or Enter
if (e.which != 1 && e.which != 13) if ((e.which != 1 || e.target.className != 'file-hint') &&
e.which != 13)
return; return;
var $fileSelector = $('<input type="file" multiple>'); var $fileSelector = $('<input type="file" multiple>');