Commit graph

445 commits

Author SHA1 Message Date
Matthias Strubel 8fd815d1e5 Merge branch 'development' of github.com:PirateBox-Dev/PirateBoxScripts_Webserver into development 2016-04-26 20:42:46 +02:00
Matthias Strubel 25e699ed8f Merge branch 'feat-remove-uploader' into development
Closed #141

* feat-remove-uploader:
  Reverting php-jquery uploader
2016-04-26 20:41:56 +02:00
Matthias Strubel 5f98a0dcf2 Fix message problems with droopy startup 2016-04-26 20:41:14 +02:00
geekspourjesus cfae4ebfb6 Update data.fr.properties
fixed accentuation
2016-04-25 16:47:33 +02:00
Cas de Reuver 143e14d310 Droopy: block index.php uploads
Merge pull request #148 from casdr/hotfix-droopy-block-index-php
2016-04-18 06:50:58 +02:00
Matthias Strubel d47c7548a2 Reverting php-jquery uploader
Fixes #141
2016-04-14 07:43:59 +02:00
geekspourjesus d650dfb49a Update data.fr.properties
fixed typos
2016-04-05 18:34:31 +02:00
geekspourjesus 6e9e9c5db1 added some data-l10n-id to extend localisation
added some data-l10n-id to extend localisation
2016-04-05 18:26:37 +02:00
geekspourjesus 20374a8b24 Update data.de.properties
Added some new strings
2016-04-05 18:23:43 +02:00
geekspourjesus aed64dbba4 Update data.en.properties
Added some new strings
2016-04-05 18:22:50 +02:00
geekspourjesus 5a8f0bb03b Update data.fr.properties
Added some new strings
2016-04-05 18:19:50 +02:00
Lars Bartschat a5241badea Fix #! in rpi_hwclock script 2016-02-09 22:24:57 +01:00
Lars Bartschat 7a9bfe42ac Fix directory to rpi_hwclock.sh in rpi_hwclock.service file 2016-02-09 22:00:57 +01:00
Lars Bartschat 890ab6be93 Update motd.txt for rpi_hwclock 2016-02-09 20:04:21 +01:00
Lars Bartschat 36885722d3 Add rpi_hwclock shell script and service 2016-02-09 19:49:27 +01:00
Matthias Strubel 57d5d16622 Adjustments for directory assignments 2016-02-07 10:54:39 +01:00
Matthias Strubel 391c137709 Merge branch 'release-1.0.7' into merge-1.0.7 2016-02-07 10:52:13 +01:00
Matthias Strubel eb6c335940 Fix: Directory Listing menu is not working in responsive mode 2016-02-07 10:38:55 +01:00
Chris L 8c040826fe Updated version number. 2016-02-05 21:40:36 +01:00
Chris L 1920748106 Fixed shebang 2016-02-05 21:19:11 +01:00
Chris L 9ffe5f83b7 Added RPi related scripts, moved services and motd to their new home. 2016-02-05 20:47:41 +01:00
Matthias Strubel a1200673ee Add webm mime-type 2016-02-03 20:20:09 +01:00
Chris Landa 59010538fa Changed parameters of wget for starting the baord 2016-01-25 22:37:30 +01:00
Chris Landa a8fa25d9c3 Fixed some white spacing, added some comments 2016-01-24 17:57:05 +01:00
Chris Landa c58e96ba93 Chaned wording a bit. Log the interesting bits instead of echoing them only. 2016-01-24 17:48:37 +01:00
Chris Landa 7d094a4970 Date time may have spaces in it 2016-01-24 17:41:03 +01:00
Chris Landa 0692b46a45 Sanitize date time string before comparison 2016-01-24 16:07:50 +01:00
Chris Landa 670b1bd9aa Added function to sanitize datetime 2016-01-24 16:02:28 +01:00
Chris Landa 263efa2c44 Unified intendation 2016-01-24 15:58:23 +01:00
Chris Landa 0ec6e0890d timesave format may contain spaces, so we wrap it in quotes 2016-01-24 15:48:19 +01:00
Chris Landa 8a14e818d8 Fixed trailing spaces 2016-01-24 15:47:24 +01:00
Matthias Strubel 27b8474e52 delete_empty.sh: Don't clean out root filesystem if shared folder does not exist
As OpenWrt still needs a more verbose script then a simple find command,
we need to stick at this. The script now exits if the target directory does
not exist.

Also we try to reduce the amount of files checked in the while clause with
reducing the find output to regular files only.

Closed: #133
2016-01-24 12:17:02 +01:00
Matthias Strubel ca7aa54b05 Merge branch 'feature-release-1.1.0' into release-1.0.7
The minor 1.1.0 release is transfered into 1.0.7 release
because the changes are smaller then like adding PHP as
a feature.
As it hopefully does not break any compatibility, we are
integrating this as a small bugfix release.
2016-01-11 20:48:05 +01:00
Matthias Strubel 9fb2a077f7 Send a proper HTTP Reason code back 2016-01-06 09:11:51 +01:00
Matthias Strubel 103d19a144 Insert mime-type for .svg 2015-12-13 13:26:41 +01:00
Matthias Strubel 59ab973d02 Also remove grey background color of droopy, which looks bad on some devices 2015-10-01 18:04:49 +02:00
Matthias Strubel 8957bc67b7 Fix orientation / linebreaks of the upload box
Fixes #126
2015-10-01 17:46:52 +02:00
Matthias Strubel 17c8af22b8 Display available disk space on front page
Introduces a new python script, which displays the current usage
of the PirateBox.
The python script writes a static HTML file, which is read by
the browser in the same way like the shoutbox does. it is
rewritten on request & on PirateBox startup.

Closed #124
Closed #53

Merge branch 'miketweaver-disk_space' into feature-release-1.1.0
2015-10-01 17:13:12 +02:00
Matthias Strubel aba673ef8a Lock Shoutbox after sending a message
Closed #125
Closed #67

Merge branch 'miketweaver-javascript-feature' into feature-release-1.1.0
2015-10-01 17:11:03 +02:00
Matthias Strubel ff53b0d5e2 Place the minidlna database to a different location.
The minidlna database is now stored on the USB stick that solves to
major issues:

  - It speeds up PirateBox start because of lease scanning time
  - During Problems of out-of-memory exceptions, on the next
    startup the problematic file is simply skipped.

Closed #77
2015-10-01 17:07:25 +02:00
Matthias Strubel 61cf364ac1 Fix orientation / linebreaks of the upload box
Fixes #126
2015-10-01 16:50:06 +02:00
Mike Weaver 239cfaf11e add button ajax change. 2015-09-17 17:29:25 -06:00
Mike Weaver 4f6eb00c27 fix javascript bug 2015-09-17 17:28:06 -06:00
Mike Weaver 084f6cfeec add tooltip 2015-09-17 17:14:31 -06:00
Mike Weaver 394fc229e2 try-catch for file deletion bug. 2015-09-17 13:45:41 -06:00
Mike Weaver 85ac67a41e normalize formatting 2015-09-16 22:51:56 -06:00
Mike Weaver 3270fbfbd7 fix "initial creation" bug. 2015-09-16 22:49:22 -06:00
Mike Weaver ca6a559421 change meta-tag 2015-09-16 22:17:14 -06:00
Mike Weaver 70afabdb45 add last modified check 2015-09-16 22:16:45 -06:00
Mike Weaver 887490455a update index button with id 2015-09-15 17:54:19 -06:00
Mike Weaver 1532ef84bd update script to "sending" 2015-09-15 17:53:43 -06:00
NightShade 58ba8966b4 fix perms 2015-09-14 23:54:41 -06:00
nightshade 368a9ba954 add permissions and lighttpd env 2015-09-14 18:53:35 -06:00
nightshade 578f15725e remove testing from scripts 2015-09-14 18:21:10 -06:00
nightshade 5af1387186 add licenses 2015-09-14 18:19:24 -06:00
nightshade e8af24254b add ajax diskusage 2015-09-14 18:09:52 -06:00
nightshade 4ff01b4ef6 add diskgen env variable 2015-09-14 18:02:24 -06:00
nightshade c5c5d1cafd add diskusage autogen
This adds the autogeneration of the diskusage.html file.
2015-09-14 17:57:45 -06:00
nightshade 8b104e4831 Add Generate HTML File 2015-09-14 17:46:32 -06:00
nightshade bdbf25cffe move diskusage.py 2015-09-14 17:43:05 -06:00
nightshade 001a641309 Add Diskusage to Piratebox 2015-09-14 17:31:00 -06:00
Matthias Strubel 6679b04cdb Merge branch 'hotfix-1.0.5' into development
[New] Improved styling for droopy iframe.  (not applied)
    [New] Timesave script service file to run set the time during startup.
    [Fix] Droopy call in init.d/piratebox failed to use the correct port.
    [Fix] Timesave script behaviour fixed on full Linux systems. OpenWrt's date format is now customized during build & piratebox.conf .
2015-09-13 11:34:15 +02:00
Matthias Strubel 66b840714e Improved handling of timesave script on normal Linux system.
* Delivered the systemd file for restoring the file during boot.
  * Moved date format to piratebox.conf
  * Customize the date format for OpenWrt during build of
    piratebox_ws-img.tar.gz file, like other configuration files
2015-08-23 11:07:04 +02:00
Matthias Strubel d266d746cb Better styling for droopy upload frame 2015-08-23 09:55:49 +02:00
Matthias Strubel c28860d5f8 Removes an unwanted linebreak in the droopy startup 2015-08-22 23:05:30 +02:00
Matthias Strubel 4ba0671cd3 Merge branch 'hotfix-1.0.4' into development
Implementing the changes from hotfix to development branch.

Resolved  Conflicts:
	CHANGELOG
	piratebox/piratebox/bin/board-autoconf.sh
	piratebox/piratebox/bin/droopy (now 1.0.4 version)
	piratebox/piratebox/bin/shoutbox_stuff.sh
	piratebox/piratebox/init.d/piratebox
	piratebox/piratebox/init.d/piratebox_alt
	piratebox/piratebox/www/generate_204  (stays PHP)
	piratebox/piratebox/www/index.html
2015-08-18 20:10:15 +02:00
Matthias Strubel b5f794e877 Fixes not working Python Script for generating 204
Closes #115
2015-08-06 22:09:08 +02:00
Matthias Strubel e5470ccd1f Cleanup unnessecary spacer files 2015-08-06 21:35:22 +02:00
Matthias Strubel 936f26cf17 Display Station count again.
Not the best solution, but worth for the hotfix.

Fixes #121
2015-08-06 21:31:02 +02:00
Matthias Strubel 7333b8a933 Set the Timestamp of the shoutbox generated file with a delay.
The problem is, that the piratebox starts before resetting the
RTC to a saved timestamp. That means the shoubox-gen file
is from the year 1970. That breaks the refresh in the browser.

With the delay, we hopefully get a better timestamp and fix
that issue

Fixes #120
2015-08-06 21:30:18 +02:00
Matthias Strubel 4f26929bbb Remove spacer index.htm and generate first page
kareha.pl doesn't overwrite the file for itself :(

In addition, we use .htm over .html , that tricks kareha and lighttpd
in this problem.
2015-08-06 19:53:19 +02:00
Matthias Strubel c19b591c6a Generate the HTTP Resonse with python for 1.0.x PirateBox too
Will avoid Captive Portal message from Android.
Especially some devices tend to leave the PirateBox network,
because they don't receive a 204 from their specific URL.

Closes #115
2015-08-04 20:34:53 +02:00
Matthias Strubel 8c099f2446 Generate default page for forum link
This patch avoids a confusing directory listing. This commits copies
over a simple default index.html that provides links to the
kareha.pl and back to the main page.

Does not copy, if the board is already installed.

Closes  #117
2015-08-04 20:06:11 +02:00
Matthias Strubel 3ab58c5657 Disabling exchange_www.sh - it helped nobody, only breakes stuff. 2015-08-03 20:48:50 +02:00
Matthias Strubel 70823c1e4f This commit aligns the Droopy code back to the latest versions.
The PirateBox modifications can be found in:

   https://github.com/PirateBox-Dev/Droopy

It contains the following features from the old PirateBox version
of Droopy:

  - Secured Subdirectory (new directories will fail in styling)
  - Make it possible to launch Droopy on boot time
  - Prevent uploading index.ht* files

New features / bugfixes with the new Droopy version:

  - Multiple upload
  - Fixed language encoding
  - In general user/password setting (non configurable via
    PirateBox)

The following features were not ported to the new version:

  - Include hostname to templates (not needed anymore)
  - Field including iframe for shoutbox (not needed anymore)
  - iOS fake answer code, which was included in lighttpd since
    Piratebox 0.5.x

Known issues:

  - New folders via protected subdirectory feature are not
    created with HEADER.TXT and README.txt (styling will not work).
    That issue is also on 1.0.0-1.0.3 versions
  - HEADER.TXT and README.txt can be uploaded. It will not be
    overwritten, but break styling if the files aren't available.
2015-07-30 21:54:43 +02:00
Jess Stubenbord 2d79bdf8c0 Reformatted about & gave body an id
Shifted the about section in a div so that it is able to be styled as a
card if wanted. Gave the body an id so that individual pages can be
styled differently using a single stylesheet.
2015-07-28 15:00:16 +02:00
Jess Stubenbord 68023815b2 Reformatted welcome card
I wrapped the welcome message in another div so that this card matches
the others in hierarchy (for future styling purposes)
2015-07-28 02:45:54 +02:00
Matthias Strubel 2da5a68773 Improve cache handling of redirect.html and it schema file
Thanks to herr-gabriel

Closed #114
Closed #116
2015-07-27 19:42:42 +02:00
Matthias Strubel c701d79b60 Merge branch 'patch-2' of https://github.com/herr-gabriel/PirateBoxScripts_Webserver into herr-gabriel-patch-1 2015-07-27 19:40:37 +02:00
Matthias Strubel 44c9071215 Fixes a typo , finalizes Backport #118 2015-07-27 19:26:36 +02:00
Matthias Strubel 804627901e Feature: board-autoconf.sh for OpenWrt available
Made the board un-useable, if it is not setup.

 Conflicts:
	CHANGELOG
2015-07-27 19:24:55 +02:00
Nicola Lamacchia fdb686e9ea Add interactive imageboard system configuration 2015-07-27 19:06:26 +02:00
Gabriel Shahzad 67c1ad0d9a Added redirect fix 2015-07-26 12:38:07 +02:00
Gabriel Shahzad d9fa73bbd5 Fixed accidental redirects
Sometimes a user would still be redirected to a cached piratebox.lan site after disconnecting from the piratebox wifi. This has something to do with how different browsers interact with the cache-control meta tag. Adding "pragma" and "expires" tags as well as additional "cache-control" contents fixes that.
2015-07-26 11:24:38 +02:00
Tilmann Singer 3006508e3b Fake a full internet connection for android devices (fix)
The previous commit included the wrong php file, it needs to be without
file extension.
2015-07-19 17:29:34 +02:00
Tilmann Singer dfb4e57f70 Fake a full internet connection for android devices
This uses a rather ugly hack to enable serving an extension-less php
file, but I couldn't find a better way to do this in the absence of
mod_rewrite.

Tested manually that it works on two different android devices (5.1.1).

Closes #59
2015-07-19 16:32:03 +02:00
Matthias Strubel 5d6f724bac Merge branch 'master' of https://github.com/deavmi/PirateBoxScripts_Webserver into deavmi-master 2015-04-07 18:54:23 +02:00
Tristan B. Kildaire 118c0067b3 Improved more stuff 2015-04-07 18:18:49 +02:00
Matthias Strubel 88a7938b6a Upload Handler fix 2015-03-11 10:30:10 +01:00
Matthias Strubel 5e98cacd5c Fixes a typo 2015-03-09 19:04:32 +01:00
Matthias Strubel 00e220ae2a Fixes in hosts generation 2015-02-09 15:26:59 +01:00
Matthias Strubel 40c4faae33 fixes and config files for webdev 2015-02-04 10:00:27 +01:00
Matthias Strubel b88643ed2c Run even without environment vars 2015-02-04 08:09:44 +01:00
Matthias Strubel 9e44776e25 moved CSS 2015-01-29 15:38:04 +01:00
Matthias Strubel 391c2e3647 moved all images to /img folder 2015-01-29 15:34:53 +01:00
Matthias Strubel 761e0bf54a Fixes upload-adcanced javascript 2015-01-28 16:09:39 +01:00
Matthias Strubel 8d8e7bfac4 Fixes file-url 2015-01-28 16:07:20 +01:00
Matthias Strubel 389362795b Merge branch 'development' of https://github.com/Liblor/PirateBoxScripts_Webserver into Liblor-development 2015-01-28 12:40:52 +01:00
Matthias Strubel 15d90377cb Merge remote-tracking branch 'origin/irc_server' into development 2015-01-28 12:40:18 +01:00
Matthias Strubel 79ec7555c5 Droopy disabled per default, because there is now a new upload method 2015-01-28 12:37:47 +01:00