diff --git a/api.php b/api.php
index 8eeff2f..69e1e33 100644
--- a/api.php
+++ b/api.php
@@ -1,13 +1,9 @@
html();
\ No newline at end of file
+echo (new SYSTEM\SAI\saigui())->html();
\ No newline at end of file
diff --git a/setup.php b/setup.php
new file mode 100644
index 0000000..e920ae1
--- /dev/null
+++ b/setup.php
@@ -0,0 +1,8 @@
+'.
- ''.
- ''.
- ''.
- '';
+ return \SYSTEM\HTML\html::script(\LIB\lib_jquery::js()).
+ \SYSTEM\HTML\html::script(\LIB\lib_bootstrap::js()).
+ \SYSTEM\HTML\html::script(\SYSTEM\WEBPATH(new \PLIB(),'webtorrent/webtorrent.min.js')).
+ \SYSTEM\HTML\html::script(\LIB\lib_system::js()).
+ \SYSTEM\HTML\html::script(\SYSTEM\WEBPATH(new \PPAGE(),'default_page/js/default_page.js'));
}
private static function css(){
- return ''.
- ''.
- '';
+ return \SYSTEM\HTML\html::link(\LIB\lib_bootstrap::css()).
+ \SYSTEM\HTML\html::link(\SYSTEM\WEBPATH(new \PPAGE(),'default_page/css/default_page.css'));
}
public function html($_escaped_fragment_ = null){
@@ -21,6 +20,6 @@ class default_page extends \SYSTEM\PAGE\Page {
$vars['js'] = self::js();}
$vars['css'] = self::css();
$vars['langswitcher'] = \SYSTEM\SAI\saimod_sys_langswitcher::lang_menu();
- return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/tpl/default_page.tpl'), $vars);
+ return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new \PPAGE(),'default_page/tpl/default_page.tpl'), $vars);
}
}
\ No newline at end of file
diff --git a/slingit/page/default_start/js/default_log.js b/slingit/page/default_start/js/default_log.js
index 4d124a1..f28ae6f 100644
--- a/slingit/page/default_start/js/default_log.js
+++ b/slingit/page/default_start/js/default_log.js
@@ -76,13 +76,13 @@ LogContext.prototype.log_file_done = function(torrent,url,file){
'
' +
'' +
- 'Download ' + file.name +
+ 'Save ' + file.name +
'' +
' | ' +
'' +
'' +
- 'direct link: ' +
+ 'Share: ' +
'' +
' | ' +
'' +
diff --git a/slingit/page/default_start/js/default_start.js b/slingit/page/default_start/js/default_start.js
index ae066a8..ec3db8e 100644
--- a/slingit/page/default_start/js/default_start.js
+++ b/slingit/page/default_start/js/default_start.js
@@ -19,20 +19,10 @@ function init_start(){
var files = e.dataTransfer.files; // Array of all files
slingit_upload(client,files);
});
-
- //download
- $('#btn_load_infohash').click(function(e){
- if ($('#input_load_infohash').val()){
- e.preventDefault();
- slingit_download(client,$('#input_load_infohash').val());
- } else {
- $('#input_load_infohash').focus();
- }});
-
//start download if hash provided
- if($('#input_load_infohash').val() !== ''){
- slingit_download(client,$('#input_load_infohash').val());}
+ if($('#dropZone').attr('hash') !== ''){
+ slingit_download(client,$('#dropZone').attr('hash'));}
}
function handleFileSelect(evt) {
var files = evt.target.files; // FileList object
@@ -61,7 +51,7 @@ function log_file_start(torrent){
' | ' +
'' +
- 'direct link: ' +
+ 'Share: ' +
'' +
'' +
' ' +
@@ -84,7 +74,7 @@ function log_file_add(torrent){
' | ' +
'' +
- 'direct link: ' +
+ 'Share: ' +
'' +
'' +
' ' +
@@ -108,7 +98,7 @@ function log_file_upd(torrent){
' | ' +
'' +
- 'direct link: ' +
+ 'Share: ' +
'' +
'' +
' | ');
@@ -140,13 +130,13 @@ function log_file_done(torrent,url,file){
'' +
'' +
- 'Download ' + file.name +
+ 'Save: ' + file.name +
'' +
' | ' +
'' +
'' +
- 'direct link: ' +
+ 'Share: ' +
'' +
'' +
' ' +
diff --git a/slingit/page/default_start/tpl/default_start.tpl b/slingit/page/default_start/tpl/default_start.tpl
index 3b02c8a..b0cdd30 100644
--- a/slingit/page/default_start/tpl/default_start.tpl
+++ b/slingit/page/default_start/tpl/default_start.tpl
@@ -1,10 +1,10 @@
- |