forked from Bigjoos/U-232-V5
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathok.php
67 lines (67 loc) · 3.16 KB
/
ok.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
63
64
65
66
67
<?php
/**
|--------------------------------------------------------------------------|
| https://github.com/Bigjoos/ |
|--------------------------------------------------------------------------|
| Licence Info: WTFPL |
|--------------------------------------------------------------------------|
| Copyright (C) 2010 U-232 V5 |
|--------------------------------------------------------------------------|
| A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon. |
|--------------------------------------------------------------------------|
| Project Leaders: Mindless, Autotron, whocares, Swizzles. |
|--------------------------------------------------------------------------|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
*/
require_once (__DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php');
require_once (INCL_DIR . 'user_functions.php');
global $CURUSER;
if (!$CURUSER) {
get_template();
}
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((!EMAIL_CONFIRM ? $lang['ok_email'] : $lang['ok_email_confirm']) , htmlsafechars($_GET['email'], ENT_QUOTES)));
} elseif ($type == "invite" && isset($_GET['email'])) {
stderr("{$lang['ok_invsuccess']}", sprintf($lang['ok_email2'], htmlsafechars($_GET['email'], ENT_QUOTES)));
} 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();
echo $HTMLOUT;
} elseif ($type == "confirmed") {
$HTMLOUT.= stdhead("{$lang['ok_confirmed']}");
$HTMLOUT.= "<h1>{$lang['ok_confirmed']}</h1>\n";
$HTMLOUT.= "{$lang['ok_user_confirmed']}";
$HTMLOUT.= stdfoot();
echo $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='{$INSTALLER09['baseurl']}/index.php'><b>{$lang['ok_account_active_login_link']}</b></a>") . "</p>\n";
$HTMLOUT.= sprintf($lang['ok_read_rules'], $INSTALLER09['site_name']);
$HTMLOUT.= stdfoot();
echo $HTMLOUT;
} else {
$HTMLOUT.= stdhead("{$lang['ok_signup_confirm']}");
$HTMLOUT.= "<h1>{$lang['ok_success_confirmed']}</h1>\n";
$HTMLOUT.= "{$lang['ok_account_cookies']}";
$HTMLOUT.= stdfoot();
echo $HTMLOUT;
}
} else {
stderr("{$lang['ok_user_error']}", "{$lang['ok_no_action']}");
}
?>