diff --git a/files/.htaccess b/files/.htaccess
new file mode 100644
index 0000000..83fca55
--- /dev/null
+++ b/files/.htaccess
@@ -0,0 +1,23 @@
+# The following directives prevent the execution of script files
+# in the context of the website.
+# They also force the content-type application/octet-stream and
+# force browsers to display a download dialog for non-image files.
+SetHandler default-handler
+ForceType application/octet-stream
+Header set Content-Disposition attachment
+
+# The following unsets the forced type and Content-Disposition headers
+# for known image files:
+
+ ForceType none
+ Header unset Content-Disposition
+
+
+# The following directive prevents browsers from MIME-sniffing the content-type.
+# This is an important complement to the ForceType directive above:
+Header set X-Content-Type-Options nosniff
+
+# Uncomment the following lines to prevent unauthorized download of files:
+#AuthName "Authorization required"
+#AuthType Basic
+#require valid-user
diff --git a/inc/spot.php b/inc/spot.php
index b2397ba..b374db8 100755
--- a/inc/spot.php
+++ b/inc/spot.php
@@ -80,8 +80,8 @@ class Spot extends Main
private function getFeed($sRefFeedId=self::FEED_ID)
{
$sUrl = self::FEED_HOOK.$sRefFeedId.self::FEED_TYPE_JSON;
- //$sContent = file_get_contents($sUrl);
- $sContent = '{"response":{"feedMessageResponse":{"count":1,"feed":{"id":"0Y5LrvigElWeAieBGnFol0KBEuOTkFJmm","name":"Te Araroa","description":"Te Araroa","status":"ACTIVE","usage":0,"daysRange":7,"detailedMessageShown":false},"totalCount":1,"activityCount":0,"messages":{"message":{"@clientUnixTime":"0","id":477259564,"messengerId":"0-2489517","messengerName":"Francois","unixTime":1449002345,"messageType":"OK","latitude":48.85129,"longitude":2.40491,"modelId":"SPOT3","showCustomMsg":"N","dateTime":"2015-12-01T20:39:05+0000","messageDetail":"","batteryState":"GOOD","hidden":0,"messageContent":"Jusque là , tout va bien ! Click sur le lien en dessous pour voir où je suis :)\r\n\r\n@Clara: <3"}}}}}';
+ $sContent = file_get_contents($sUrl);
+ //$sContent = '{"response":{"feedMessageResponse":{"count":1,"feed":{"id":"0Y5LrvigElWeAieBGnFol0KBEuOTkFJmm","name":"Te Araroa","description":"Te Araroa","status":"ACTIVE","usage":0,"daysRange":7,"detailedMessageShown":false},"totalCount":1,"activityCount":0,"messages":{"message":{"@clientUnixTime":"0","id":477259564,"messengerId":"0-2489517","messengerName":"Francois","unixTime":1449002345,"messageType":"OK","latitude":48.85129,"longitude":2.40491,"modelId":"SPOT3","showCustomMsg":"N","dateTime":"2015-12-01T20:39:05+0000","messageDetail":"","batteryState":"GOOD","hidden":0,"messageContent":"Jusque là , tout va bien ! Click sur le lien en dessous pour voir où je suis :)\r\n\r\n@Clara: <3"}}}}}';
return json_decode($sContent, true);
}
diff --git a/inc/uploader.php b/inc/uploader.php
index 521714d..db79f4b 100644
--- a/inc/uploader.php
+++ b/inc/uploader.php
@@ -4,12 +4,17 @@ class Uploader extends UploadHandler
{
private $sBody;
- function __construct($asOptions = null, $bInitialize = true, $asErrorMessages = null)
+ function __construct($asOptions = null, $bInitialize = false, $asErrorMessages = null)
{
parent::__construct($asOptions, $bInitialize, $asErrorMessages);
$this->sBody = '';
}
+ public function init()
+ {
+ $this->initialize();
+ }
+
protected function body($sText)
{
$this->sBody .= $sText;
diff --git a/masks/upload.html b/masks/upload.html
index c28cd14..7b7d932 100644
--- a/masks/upload.html
+++ b/masks/upload.html
@@ -3,6 +3,7 @@
+