├── src
├── views
│ ├── layout
│ │ └── header.php
│ ├── Torrents
│ │ └── index.php
│ ├── Rss
│ │ └── index.php
│ ├── messagerie
│ │ ├── index.php
│ │ ├── message.php
│ │ └── chat.php
│ ├── Downloads
│ │ └── index.php
│ ├── Connect
│ │ └── index.php
│ ├── Admin
│ │ ├── newUser.php
│ │ ├── editUser.php
│ │ └── index.php
│ └── Compte
│ │ └── index.php
├── tornado
│ ├── BitTornado
│ │ ├── BT1
│ │ │ ├── __init__.py
│ │ │ ├── Filter.py
│ │ │ ├── fakeopen.py
│ │ │ ├── btformats.py
│ │ │ ├── StreamCheck.py
│ │ │ ├── Choker.py
│ │ │ ├── Uploader.py
│ │ │ └── DownloaderFeedback.py
│ │ ├── PSYCO.py
│ │ ├── clock.py
│ │ ├── torrentlistparse.py
│ │ ├── CurrentRateMeasure.py
│ │ ├── ConnChoice.py
│ │ ├── __init__.py
│ │ ├── piecebuffer.py
│ │ ├── RateMeasure.py
│ │ ├── selectpoll.py
│ │ ├── BTcrypto.py
│ │ ├── zurllib.py
│ │ ├── bitfield.py
│ │ ├── parseargs.py
│ │ ├── inifile.py
│ │ ├── RateLimiter.py
│ │ ├── parsedir.py
│ │ └── CreateIcons.py
│ ├── btmakemetafile.py
│ └── btshowmetainfo.py
├── favicon.ico
├── tmp
│ └── band.txt
├── theme
│ ├── images
│ │ ├── home.png
│ │ ├── token.gif
│ │ ├── loader.png
│ │ ├── token_x.gif
│ │ ├── login-colors.jpg
│ │ ├── token_hover.gif
│ │ ├── token_selected.gif
│ │ └── friendly-torrent-logo.png
│ ├── fonts
│ │ ├── glyphicons-regular.eot
│ │ ├── glyphicons-regular.eot@
│ │ ├── glyphicons-regular.ttf
│ │ └── glyphicons-regular.woff
│ ├── scripts
│ │ ├── plupload
│ │ │ └── js
│ │ │ │ ├── Descr.WD3
│ │ │ │ ├── plupload.flash.swf
│ │ │ │ ├── plupload.silverlight.xap
│ │ │ │ └── jquery.plupload.queue
│ │ │ │ ├── Descr.WD3
│ │ │ │ ├── img
│ │ │ │ ├── done.gif
│ │ │ │ ├── Descr.WD3
│ │ │ │ ├── error.gif
│ │ │ │ ├── buttons.png
│ │ │ │ ├── transp50.png
│ │ │ │ ├── backgrounds.gif
│ │ │ │ └── buttons-disabled.png
│ │ │ │ └── css
│ │ │ │ ├── Descr.WD3
│ │ │ │ └── jquery.plupload.queue.css
│ │ ├── load.js
│ │ ├── flot
│ │ │ ├── jquery.flot.resize.js
│ │ │ └── jquery.flot.tooltip.js
│ │ └── jquery.cookie.js
│ └── css
│ │ ├── jquery.pnotify.default.icons.css
│ │ ├── facelist_ie.css
│ │ ├── farbtastic.css
│ │ ├── jquery.pnotify.default.css
│ │ └── facelist.css
├── uploadify
│ ├── uploadify.swf
│ └── uploadify.css
├── bootstrap
│ └── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ └── glyphicons-halflings-regular.woff
├── controllers
│ ├── torrents.php
│ ├── rss.php
│ ├── connect.php
│ ├── compte.php
│ ├── layout
│ │ ├── external.php
│ │ └── default.php
│ ├── stats.php
│ ├── boxe.php
│ └── messagerie.php
├── .htaccess
├── index.php
├── models
│ ├── rssm.php
│ ├── download.php
│ ├── cloud.php
│ ├── xfer.php
│ ├── rss.php
│ ├── rpc.php
│ └── torrents.php
└── core
│ ├── core.php
│ ├── bdd.php
│ ├── controller.php
│ └── languages
│ ├── en.php
│ └── fr.php
├── .gitignore
├── rm.sh
├── install.sh
└── README.md
/src/views/layout/header.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/tornado/BitTornado/BT1/__init__.py:
--------------------------------------------------------------------------------
1 | # placeholder
--------------------------------------------------------------------------------
/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/favicon.ico
--------------------------------------------------------------------------------
/src/tmp/band.txt:
--------------------------------------------------------------------------------
1 | a:4:{i:0;s:0:"";i:1;s:6:"518.74";i:2;s:8:"12255.25";s:4:"time";i:1371564058;}}
--------------------------------------------------------------------------------
/src/theme/images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/home.png
--------------------------------------------------------------------------------
/src/theme/images/token.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/token.gif
--------------------------------------------------------------------------------
/src/theme/images/loader.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/loader.png
--------------------------------------------------------------------------------
/src/theme/images/token_x.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/token_x.gif
--------------------------------------------------------------------------------
/src/uploadify/uploadify.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/uploadify/uploadify.swf
--------------------------------------------------------------------------------
/src/theme/images/login-colors.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/login-colors.jpg
--------------------------------------------------------------------------------
/src/theme/images/token_hover.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/token_hover.gif
--------------------------------------------------------------------------------
/src/theme/images/token_selected.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/token_selected.gif
--------------------------------------------------------------------------------
/src/theme/fonts/glyphicons-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/fonts/glyphicons-regular.eot
--------------------------------------------------------------------------------
/src/theme/fonts/glyphicons-regular.eot@:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/fonts/glyphicons-regular.eot@
--------------------------------------------------------------------------------
/src/theme/fonts/glyphicons-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/fonts/glyphicons-regular.ttf
--------------------------------------------------------------------------------
/src/theme/fonts/glyphicons-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/fonts/glyphicons-regular.woff
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/Descr.WD3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/Descr.WD3
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ### PHPSTORM ###
2 | .idea
3 |
4 | ### MAC ###
5 | .com.apple.timemachine.supported
6 |
7 | ### CONFIG FOLDER ###
8 | /src/core/config/*
--------------------------------------------------------------------------------
/src/theme/images/friendly-torrent-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/images/friendly-torrent-logo.png
--------------------------------------------------------------------------------
/src/tornado/BitTornado/PSYCO.py:
--------------------------------------------------------------------------------
1 | # edit this file to enable/disable Psyco
2 | # psyco = 1 -- enabled
3 | # psyco = 0 -- disabled
4 |
5 | psyco = 0
6 |
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/plupload.flash.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/plupload.flash.swf
--------------------------------------------------------------------------------
/src/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/src/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/src/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/plupload.silverlight.xap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/plupload.silverlight.xap
--------------------------------------------------------------------------------
/rm.sh:
--------------------------------------------------------------------------------
1 | sudo apt-get remove apache2
2 | sudo apt-get remove php5
3 | sudo apt-get remove mysql-server
4 | sudo apt-get remove libapache2-mod-php5
5 | sudo apt-get remove php5-mysql
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/Descr.WD3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/Descr.WD3
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/done.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/done.gif
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/css/Descr.WD3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/css/Descr.WD3
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/Descr.WD3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/Descr.WD3
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/error.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/error.gif
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/buttons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/buttons.png
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/transp50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/transp50.png
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/backgrounds.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/backgrounds.gif
--------------------------------------------------------------------------------
/src/theme/scripts/plupload/js/jquery.plupload.queue/img/buttons-disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cclleemm/FriendlyTorrent/HEAD/src/theme/scripts/plupload/js/jquery.plupload.queue/img/buttons-disabled.png
--------------------------------------------------------------------------------
/src/tornado/BitTornado/BT1/Filter.py:
--------------------------------------------------------------------------------
1 | class Filter:
2 | def __init__(self, callback):
3 | self.callback = callback
4 |
5 | def check(self, ip, paramslist, headers):
6 |
7 | def params(key, default = None, l = paramslist):
8 | if l.has_key(key):
9 | return l[key][0]
10 | return default
11 |
12 | return None
13 |
--------------------------------------------------------------------------------
/src/theme/css/jquery.pnotify.default.icons.css:
--------------------------------------------------------------------------------
1 | /*
2 | Document : jquery.pnotify.default.icons.css
3 | Created on : Nov 24, 2009, 2:58:21 PM
4 | Author : Hunter Perrin
5 | Version : 1.2.0
6 | Link : http://pinesframework.org/pnotify/
7 | Description:
8 | Pines Icon styling for Pines Notify.
9 | */
10 |
11 | .ui-pnotify .picon {
12 | background-color: transparent;
13 | background-repeat: no-repeat;
14 | background-position: center center;
15 | width: 17px;
16 | height: 17px;
17 | }
18 | .ui-pnotify-title {
19 | line-height: 17px;
20 | min-height: 17px;
21 | }
--------------------------------------------------------------------------------
/src/tornado/BitTornado/clock.py:
--------------------------------------------------------------------------------
1 | # Written by John Hoffman
2 | # see LICENSE.txt for license information
3 |
4 | from time import *
5 | import sys
6 |
7 | _MAXFORWARD = 100
8 | _FUDGE = 1
9 |
10 | class RelativeTime:
11 | def __init__(self):
12 | self.time = time()
13 | self.offset = 0
14 |
15 | def get_time(self):
16 | t = time() + self.offset
17 | if t < self.time or t > self.time + _MAXFORWARD:
18 | self.time += _FUDGE
19 | self.offset += self.time - t
20 | return self.time
21 | self.time = t
22 | return t
23 |
24 | if sys.platform != 'win32':
25 | _RTIME = RelativeTime()
26 | def clock():
27 | return _RTIME.get_time()
--------------------------------------------------------------------------------
/src/controllers/torrents.php:
--------------------------------------------------------------------------------
1 | LANG_TITLE_MY_TORRENTS);
16 |
17 | ////////////////////////////////////
18 | // ACTION INDEX //
19 | ////////////////////////////////////
20 |
21 | function index(){
22 | $d = array();
23 |
24 | $this->set($d);
25 | $this->render('index');
26 | }
27 |
28 | }
29 | ?>
--------------------------------------------------------------------------------
/src/controllers/rss.php:
--------------------------------------------------------------------------------
1 | LANG_RSS);
16 |
17 | ////////////////////////////////////
18 | // ACTION INDEX //
19 | ////////////////////////////////////
20 |
21 | function index(){
22 | $d = array();
23 |
24 | $d['lien'] = $this->user->userData['rss'];
25 |
26 | $this->set($d);
27 | $this->render('index');
28 | }
29 |
30 | }
31 | ?>
--------------------------------------------------------------------------------
/src/views/Torrents/index.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | |
14 | Statut |
15 | |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
25 |
26 |
...
27 |
28 |
31 |
32 |
--------------------------------------------------------------------------------
/src/tornado/BitTornado/torrentlistparse.py:
--------------------------------------------------------------------------------
1 | # Written by John Hoffman
2 | # see LICENSE.txt for license information
3 |
4 | from binascii import unhexlify
5 |
6 | try:
7 | True
8 | except:
9 | True = 1
10 | False = 0
11 |
12 |
13 | # parses a list of torrent hashes, in the format of one hash per line in hex format
14 |
15 | def parsetorrentlist(filename, parsed):
16 | new_parsed = {}
17 | added = {}
18 | removed = parsed
19 | f = open(filename, 'r')
20 | while True:
21 | l = f.readline()
22 | if not l:
23 | break
24 | l = l.strip()
25 | try:
26 | if len(l) != 40:
27 | raise ValueError, 'bad line'
28 | h = unhexlify(l)
29 | except:
30 | print '*** WARNING *** could not parse line in torrent list: '+l
31 | if parsed.has_key(h):
32 | del removed[h]
33 | else:
34 | added[h] = True
35 | new_parsed[h] = True
36 | f.close()
37 | return (new_parsed, added, removed)
38 |
39 |
--------------------------------------------------------------------------------
/src/uploadify/uploadify.css:
--------------------------------------------------------------------------------
1 | /*
2 | Uploadify
3 | Copyright (c) 2012 Reactive Apps, Ronnie Garcia
4 | Released under the MIT License
5 | */
6 |
7 | .uploadify-queue {
8 | margin-bottom: 1em;
9 | }
10 | .uploadify-queue-item {
11 | background-color: #F5F5F5;
12 | -webkit-border-radius: 3px;
13 | -moz-border-radius: 3px;
14 | border-radius: 3px;
15 | font: 11px Verdana, Geneva, sans-serif;
16 | margin-top: 5px;
17 | max-width: 350px;
18 | padding: 10px;
19 | color:black;
20 | }
21 | .uploadify-error {
22 | background-color: #FDE5DD !important;
23 | }
24 | .uploadify-queue-item .cancel a {
25 | background: url('../img/uploadify-cancel.png') 0 0 no-repeat;
26 | float: right;
27 | height: 16px;
28 | text-indent: -9999px;
29 | width: 16px;
30 | }
31 | .uploadify-queue-item.completed {
32 | background-color: #E5E5E5;
33 | }
34 | .uploadify-progress {
35 | background-color: #E5E5E5;
36 | margin-top: 10px;
37 | width: 100%;
38 | }
39 | .uploadify-progress-bar {
40 | background-color: #0099FF;
41 | height: 3px;
42 | width: 1px;
43 | }
--------------------------------------------------------------------------------
/src/tornado/BitTornado/CurrentRateMeasure.py:
--------------------------------------------------------------------------------
1 | # Written by Bram Cohen
2 | # see LICENSE.txt for license information
3 |
4 | from clock import clock
5 |
6 | class Measure:
7 | def __init__(self, max_rate_period, fudge = 1):
8 | self.max_rate_period = max_rate_period
9 | self.ratesince = clock() - fudge
10 | self.last = self.ratesince
11 | self.rate = 0.0
12 | self.total = 0l
13 |
14 | def update_rate(self, amount):
15 | self.total += amount
16 | t = clock()
17 | self.rate = (self.rate * (self.last - self.ratesince) +
18 | amount) / (t - self.ratesince + 0.0001)
19 | self.last = t
20 | if self.ratesince < t - self.max_rate_period:
21 | self.ratesince = t - self.max_rate_period
22 |
23 | def get_rate(self):
24 | self.update_rate(0)
25 | return self.rate
26 |
27 | def get_rate_noupdate(self):
28 | return self.rate
29 |
30 | def time_until_rate(self, newrate):
31 | if self.rate <= newrate:
32 | return 0
33 | t = clock() - self.ratesince
34 | return ((self.rate * t) / newrate) - t
35 |
36 | def get_total(self):
37 | return self.total
--------------------------------------------------------------------------------
/src/tornado/BitTornado/ConnChoice.py:
--------------------------------------------------------------------------------
1 | connChoices=(
2 | {'name':'automatic',
3 | 'rate':{'min':0, 'max':5000, 'def': 0},
4 | 'conn':{'min':0, 'max':100, 'def': 0},
5 | 'automatic':1},
6 | {'name':'unlimited',
7 | 'rate':{'min':0, 'max':5000, 'def': 0, 'div': 50},
8 | 'conn':{'min':4, 'max':100, 'def': 4}},
9 | {'name':'dialup/isdn',
10 | 'rate':{'min':3, 'max': 8, 'def': 5},
11 | 'conn':{'min':2, 'max': 3, 'def': 2},
12 | 'initiate': 12},
13 | {'name':'dsl/cable slow',
14 | 'rate':{'min':10, 'max': 48, 'def': 13},
15 | 'conn':{'min':4, 'max': 20, 'def': 4}},
16 | {'name':'dsl/cable fast',
17 | 'rate':{'min':20, 'max': 100, 'def': 40},
18 | 'conn':{'min':4, 'max': 30, 'def': 6}},
19 | {'name':'T1',
20 | 'rate':{'min':100, 'max': 300, 'def':150},
21 | 'conn':{'min':4, 'max': 40, 'def':10}},
22 | {'name':'T3+',
23 | 'rate':{'min':400, 'max':2000, 'def':500},
24 | 'conn':{'min':4, 'max':100, 'def':20}},
25 | {'name':'seeder',
26 | 'rate':{'min':0, 'max':5000, 'def':0, 'div': 50},
27 | 'conn':{'min':1, 'max':100, 'def':1}},
28 | {'name':'SUPER-SEED', 'super-seed':1}
29 | )
30 |
31 | connChoiceList = map(lambda x:x['name'], connChoices)
32 |
--------------------------------------------------------------------------------
/src/tornado/btmakemetafile.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | # Written by Bram Cohen
4 | # multitracker extensions by John Hoffman
5 | # see LICENSE.txt for license information
6 |
7 | # $Id$
8 |
9 | from BitTornado import PSYCO
10 | if PSYCO.psyco:
11 | try:
12 | import psyco
13 | assert psyco.__version__ >= 0x010100f0
14 | psyco.full()
15 | except:
16 | pass
17 |
18 | from sys import argv, version, exit
19 | from os.path import split
20 | assert version >= '2', "Install Python 2.0 or greater"
21 | from BitTornado.BT1.makemetafile import make_meta_file, defaults, print_announcelist_details
22 | from BitTornado.parseargs import parseargs, formatDefinitions
23 |
24 |
25 | def prog(amount):
26 | print '%.1f%% complete\r' % (amount * 100),
27 |
28 | if len(argv) < 3:
29 | a,b = split(argv[0])
30 | print 'Usage: ' + b + ' [file...] [params...]'
31 | print
32 | print formatDefinitions(defaults, 80)
33 | print_announcelist_details()
34 | print ('')
35 | exit(2)
36 |
37 | try:
38 | config, args = parseargs(argv[1:], defaults, 2, None)
39 | for file in args[1:]:
40 | make_meta_file(file, args[0], config, progress = prog)
41 | except ValueError, e:
42 | print 'error: ' + str(e)
43 | print 'run with no args for parameter explanations'
44 |
--------------------------------------------------------------------------------
/src/views/messagerie/index.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
11 |
12 | '.LANG_MESSAGE_SENDED.'
13 |
';
14 | }
15 | ?>
16 |
17 |
18 |
32 |
33 |
--------------------------------------------------------------------------------
/src/views/messagerie/message.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
13 |
14 |
15 |
<>
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/views/Downloads/index.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/theme/scripts/load.js:
--------------------------------------------------------------------------------
1 | var seedbox = new Object;
2 | seedbox.interval = null;
3 | CTRL = false;
4 |
5 | $(function()
6 | {
7 |
8 | // tooltips
9 | $('[data-toggle="tooltip"]').tooltip();
10 |
11 | $('.popover-btn').popover();
12 |
13 |
14 | var ctrlDown = false;
15 | var ctrlKey = 17, aKey = 65;
16 |
17 | $(document).keydown(function(e)
18 | {
19 | if (e.keyCode == ctrlKey) ctrlDown = true;
20 | }).keyup(function(e)
21 | {
22 | if (e.keyCode == ctrlKey) ctrlDown = false;
23 | });
24 |
25 |
26 | $('body').click(function() {
27 | $('#context').hide();
28 | });
29 |
30 | $('#context').click(function(event){
31 | event.stopPropagation();
32 | });
33 |
34 | //$("#ajaxContent").css('min-height', $(window).height()+'px');
35 | });
36 |
37 | function loadUpload(){
38 | $('#file_upload').uploadify({
39 | 'swf' : adresse+'/uploadify/uploadify.swf',
40 | 'uploader' : adresse+'/action/addTorrent/',
41 | 'buttonClass' : 'btn btn-success btn-sm',
42 | 'buttonText' : ' Ajouter',
43 | 'height' : 27,
44 | 'queueID' : 'queue',
45 | 'itemTemplate' : '',
48 | 'onUploadSuccess' : function(file, data, response) {
49 | evalscript(data);
50 | }
51 | });
52 | }
--------------------------------------------------------------------------------
/src/controllers/compte.php:
--------------------------------------------------------------------------------
1 | LANG_TITLE_MY_ACCOUNT);
16 |
17 | ////////////////////////////////////
18 | // ACTION INDEX //
19 | ////////////////////////////////////
20 |
21 | function index(){
22 | $d = array();
23 |
24 | $d['user'] = $this->user->userData;
25 |
26 | if($this->post['oldPass'] != "" && $this->post['newPass'] != "" ){
27 | if(md5($this->post['oldPass']) == $d['user']['password']){
28 | if($this->post['newPass'] == $this->post['newPass2']){
29 | $this->user->changeMdp($this->post['newPass']);
30 | $d['java'] = '';
31 | }else{
32 | $d['error'] = LANG_PASSWORD_DIFERENT;
33 | }
34 | }else{
35 | $d['error'] = LANG_OLD_PASSWORD_DIFERENT;
36 | }
37 | }
38 |
39 | if($this->post['rss'] != $d['user']['rss'] && $this->post['rss']){
40 | $this->user->changeRss($this->post['rss']);
41 | $d['user']['rss'] = $this->post['rss'];
42 | }
43 |
44 | $this->set($d);
45 | $this->render('index');
46 | }
47 |
48 | }
49 | ?>
--------------------------------------------------------------------------------
/src/views/Connect/index.php:
--------------------------------------------------------------------------------
1 |
43 |
44 |
--------------------------------------------------------------------------------
/src/theme/css/farbtastic.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Farbtastic Color Picker 1.2
3 | * © 2008 Steven Wittens
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License as published by
7 | * the Free Software Foundation; either version 2 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU General Public License
16 | * along with this program; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 | .farbtastic {
20 | position: relative;
21 | }
22 | .farbtastic * {
23 | position: absolute;
24 | cursor: crosshair;
25 | }
26 | .farbtastic, .farbtastic .wheel {
27 | width: 195px;
28 | height: 195px;
29 | }
30 | .farbtastic .color, .farbtastic .overlay {
31 | top: 47px;
32 | left: 47px;
33 | width: 101px;
34 | height: 101px;
35 | }
36 | .farbtastic .wheel {
37 | background: url(../images/wheel.png) no-repeat;
38 | width: 195px;
39 | height: 195px;
40 | }
41 | .farbtastic .overlay {
42 | background: url(../images/mask.png) no-repeat;
43 | }
44 | .farbtastic .marker {
45 | width: 17px;
46 | height: 17px;
47 | margin: -8px 0 0 -8px;
48 | overflow: hidden;
49 | background: url(../images/marker.png) no-repeat;
50 | }
51 |
52 |
--------------------------------------------------------------------------------
/src/views/Admin/newUser.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | Attention ! '.$error.'
9 | ';
10 | }
11 | ?>
12 |
13 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 | '.LANG_USER_EDITED.'
14 |
';
15 | }
16 |
17 | if($_GET['alert'] == 'adminUserFail'){
18 | echo '
19 |
20 | '.LANG_YOU_ARE_THE_LAST_ADMIN.'
21 |
';
22 | }
23 |
24 | if($_GET['alert'] == 'newUser'){
25 | echo '
26 |
27 | '.LANG_USER_CREATED.'
28 |
';
29 | }
30 | ?>
31 |
32 |
33 |