install script, changed main text, look & feel

This commit is contained in:
Ulf Gebhardt 2015-10-04 01:21:04 +02:00
parent d01ace5d1b
commit db5ae7742d
11 changed files with 68 additions and 16 deletions

View File

@ -4,5 +4,5 @@
require_once dirname(__FILE__).'/path/autoload.inc';
require_once dirname(__FILE__).'/page/autoload.inc';
require_once dirname(__FILE__).'/files/autoload.inc';
require_once dirname(__FILE__).'/dbd/autoload.inc';
require_once dirname(__FILE__).'/sql/autoload.inc';
require_once dirname(__FILE__).'/api/autoload.inc';

View File

@ -1,2 +0,0 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/tbl/','DBD');

View File

@ -1,10 +0,0 @@
<?php
namespace DBD;
class locale_string extends \SYSTEM\DBD\system_locale_string {
const VALUE_CATEGORY_MAINPAGE = 100;
const VALUE_CATEGORY_TEXT = 110;
}

View File

@ -27,11 +27,12 @@
font-size: 8pt;
margin: auto;
width: 62%;
border: 1px dashed background;
}
#link_container tr{
height: 40px;
background: white;
border: solid 2px background;
border: 1px dashed background;
border-radius: 20px;
}

View File

@ -69,7 +69,7 @@ function log_file_add(torrent){
progress + '%' +
'</td>' +
'<td>' +
'speed: ' + torrent.swarm.downloadSpeed() + '/s' +
'speed: ' + Math.round(torrent.swarm.downloadSpeed() * 100) / 100 + ' kb/s' +
'</td>' +
'<td>' +
'<a href="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '"' +
@ -93,7 +93,7 @@ function log_file_upd(torrent){
progress + '%' +
'</td>' +
'<td>' +
'speed: ' + torrent.swarm.downloadSpeed() + '/s / ' + torrent.swarm.uploadSpeed() + '/s' +
'speed: ' + Math.round(torrent.swarm.downloadSpeed() * 100) / 100 + ' / ' + Math.round(torrent.swarm.uploadSpeed() * 100) / 100 + ' kb/s' +
'</td>' +
'<td>' +
'<a href="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '"' +

5
slingit/path/PSQL.php Normal file
View File

@ -0,0 +1,5 @@
<?php
class PSQL extends \SYSTEM\PATH {
public static function getPath(){
return \SYSTEM\C_ROOT.'slingit/sql/'.\SYSTEM\C_SUBPATH;}
}

View File

@ -0,0 +1,10 @@
<?php
namespace SQL;
class DATA_SLINGIT extends \SYSTEM\DB\QI {
public static function get_class(){return \get_class();}
public static function files_mysql(){
return array( \SYSTEM\SERVERPATH(new \PSQL(),'/mysql/system_page.sql'),
\SYSTEM\SERVERPATH(new \PSQL(),'/mysql/system_text.sql'),
\SYSTEM\SERVERPATH(new \PSQL(),'/mysql/system_api.sql'));
}
}

4
slingit/sql/autoload.inc Normal file
View File

@ -0,0 +1,4 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'SQL');
\SYSTEM\SQL\setup::register('SQL\\DATA_SLINGIT');

View File

@ -0,0 +1,2 @@
INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (90, 1, 4, -1, NULL, '_lang', 'LANG');
INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (124, 1, 3, 1, 'start', 'hash', 'STRING');

File diff suppressed because one or more lines are too long