This repository was archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathok.php
More file actions
83 lines (76 loc) · 2.46 KB
/
ok.php
File metadata and controls
83 lines (76 loc) · 2.46 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/*
+------------------------------------------------
| TBDev.net BitTorrent Tracker PHP
| =============================================
| by CoLdFuSiOn
| (c) 2003 - 2011 TBDev.Net
| http://www.tbdev.net
| =============================================
| svn: http://sourceforge.net/projects/tbdevnet/
| Licence Info: GPL
+------------------------------------------------
| $Date$
| $Revision$
| $Author$
| $URL$
+------------------------------------------------
*/
require_once "include/bittorrent.php" ;
require_once "include/user_functions.php" ;
dbconn();
$lang = array_merge( load_language('global'), load_language('ok') );
$type = isset($_GET['type']) ? $_GET['type'] : '';
$HTMLOUT = '';
if ( $type == "signup" && isset($_GET['email']) )
{
stderr( "{$lang['ok_success']}", sprintf($lang['ok_email'], htmlsafechars($_GET['email'])) );
}
elseif ($type == "sysop")
{
$HTMLOUT = stdhead("{$lang['ok_sysop_account']}");
$HTMLOUT .= "{$lang['ok_sysop_activated']}";
if (isset($CURUSER))
{
$HTMLOUT .= "{$lang['ok_account_activated']}";
}
else
{
$HTMLOUT .= "{$lang['ok_account_login']}";
}
$HTMLOUT .= stdfoot();
print $HTMLOUT;
}
elseif ($type == "confirmed")
{
$HTMLOUT .= stdhead("{$lang['ok_confirmed']}");
$HTMLOUT .= "<h1>{$lang['ok_confirmed']}</h1>\n";
$HTMLOUT .= "{$lang['ok_user_confirmed']}";
$HTMLOUT .= stdfoot();
print $HTMLOUT;
}
elseif ($type == "confirm")
{
if (isset($CURUSER))
{
$HTMLOUT .= stdhead("{$lang['ok_signup_confirm']}");
$HTMLOUT .= "<h1>{$lang['ok_success_confirmed']}</h1>\n";
$HTMLOUT .= "<p>".sprintf($lang['ok_account_active_login'], "<a href='{$TBDEV['baseurl']}/index.php'><b>{$lang['ok_account_active_login_link']}</b></a>")."</p>\n";
$HTMLOUT .= sprintf($lang['ok_read_rules'], $TBDEV['site_name']);
$HTMLOUT .= stdfoot();
print $HTMLOUT;
}
else
{
$HTMLOUT .= stdhead("{$lang['ok_signup_confirm']}");
$HTMLOUT .= "<h1>{$lang['ok_success_confirmed']}</h1>\n";
$HTMLOUT .= "{$lang['ok_account_cookies']}";
$HTMLOUT .= stdfoot();
print $HTMLOUT;
}
}
else
{
stderr("{$lang['ok_user_error']}", "{$lang['ok_no_action']}");
}
?>