-
Notifications
You must be signed in to change notification settings - Fork 10
/
links.php
62 lines (61 loc) · 2.3 KB
/
links.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* ------- U-232 Codename Trinity ----------*
* ---------------------------------------------*
* -------- @authors U-232 Team --------------*
* ---------------------------------------------*
* ----- @site https://u-232.duckdns.org/ ----*
* ---------------------------------------------*
* ----- @copyright 2020 U-232 Team ----------*
* ---------------------------------------------*
* ------------ @version V6 ------------------*
*/
require_once(__DIR__.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once(INCL_DIR.'user_functions.php');
dbconn(false);
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('links'));
function add_link($url, $title, $description = "")
{
$text = "<a class='altlink' href=$url>$title</a>";
if ($description) {
$text = "$text - $description";
}
return "<li>$text</li>\n";
}
$HTMLOUT = '';
if ($CURUSER) {
$HTMLOUT .= "{$lang['links_dead']}";
}
$HTMLOUT .= "<table class='table table-bordered'><tr><td class='embedded'>";
$HTMLOUT .= "{$lang['links_other_pages_header']}
<table class='table table-bordered'><tr><td class='text'><ul>
{$lang['links_other_pages_body']}
</ul></td></tr></table>";
$HTMLOUT .= "{$lang['links_bt_header']}
<table class='table table-bordered'><tr><td class='text'><ul>
{$lang['links_bt_body']}
</ul></td></tr></table>";
$HTMLOUT .= "{$lang['links_software_header']}
<table class='table table-bordered'><tr><td class='text'><ul>
{$lang['links_software_body']}
</ul></td></tr></table>";
$HTMLOUT .= "{$lang['links_download_header']}
<table class='table table-bordered'><tr><td class='text'><ul>
{$lang['links_download_body']}
</ul></td></tr></table>";
$HTMLOUT .= "{$lang['links_forums_header']}
<table class='table table-bordered'><tr><td class='text'><ul>
{$lang['links_forums_body']}
</ul></td></tr></table>";
$HTMLOUT .= "{$lang['links_other_header']}
<table class='table table-bordered'><tr><td class='text'><ul>
{$lang['links_other_body']}
</ul></td></tr></table>";
$HTMLOUT .= "{$lang['links_tbdev_header']}>
<table class='table table-bordered'><tr><td class='text'>
{$lang['links_tbdev_body']}
</td></tr></table>";
$HTMLOUT .= "</td></tr></table>";
echo stdhead("Links").$HTMLOUT.stdfoot();
?>