This repository was archived by the owner on Feb 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddYSserver.php
More file actions
128 lines (123 loc) · 5.87 KB
/
Copy pathaddYSserver.php
File metadata and controls
128 lines (123 loc) · 5.87 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html>
<body>
<a href="index.php"><<-- Back to the server list</a>
<br>
<script language=javascript>
<!--
function showcountry()
{
document.images.newcountry.src= 'im/flags/'+
document.form.country.options[document.form.country.selectedIndex].value
}
// -->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
<form name="form" method="post" action="addYSserver2.php">
<?php include("inc/func.php"); ?>
<table cellpadding="3" cellspacing="3">
<tr>
<td width="144"><input name="name" type="text" id="name" value="<?php if (isset($_COOKIE["name"])) {echo $_COOKIE["name"];} ?>" maxlength="30"></td>
<td width="449"><strong><font size="2"><< Server name <em> Mandatory
field.</em></font></strong></td>
</tr>
<tr bgcolor="#EEEEEE">
<td>
<input name="owner" type="text" id="name" value="<?php if (isset($_COOKIE["owner"])) {echo $_COOKIE["owner"];} ?>" maxlength="30"></td>
<td> <strong><font size="2"><< Owner</font></strong></td>
</tr>
<tr>
<td><input name="website" type="text" id="website" value="<?php if (isset($_COOKIE["website"])) {echo $_COOKIE["website"];} ?>" maxlength="70"></td>
<td><font size="2"><strong><< Website </strong></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td>
<input name="ip" type="text" id="ip" value="<?php echo $_SERVER["HTTP_CF_CONNECTING_IP"] ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"]; ?>" maxlength="30"></td>
<td><strong><font size="2"><< IP<font color="#FF0000">* </font>
<em>Mandatory field.</em></font></strong></td>
</tr>
<tr>
<td><input name="port" type="text" id="port" value="<?php if (isset($_COOKIE["port"])) {echo $_COOKIE["port"];} else {echo "7915"; } ?>" maxlength="6"></td>
<td><font size="2"><strong><< Port <em> Mandatory
field.</em></strong></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td><input name="TS_ip" type="text" id="TS_ip" value="<?php echo $_SERVER["HTTP_CF_CONNECTING_IP"] ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"]; ?>" maxlength="30"></td>
<td><strong><font size="2"><< TS (service disabled)** IP</font></strong></td>
</tr>
<tr>
<td>
<input name="TS_port" type="text" id="TS_port" value="<?php if (isset($_COOKIE["TS_port"])) {echo $_COOKIE["TS_port"];} else {echo "0"; } ?>" maxlength="8"></td>
<td><font size="2"><strong><< TS (service disabled)*** Port</strong></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td><font size="2">
<select name="country" onChange=showcountry() onkeydown=showcountry()>
<?php $dir=opendir('im/flags');
while ($read_file = readdir($dir)) {
if (($read_file!=".")&&($read_file!="..")){
echo"<option value=\"$read_file\""; if (get_lang().".gif"==$read_file) {echo "SELECTED";} echo" >".substr($read_file,0,-4)."</option>", "\n";
}
}
closedir($dir);
?>
</select>
<img src=" <?php echo "im/flags/".get_lang().".gif"; ?>" name="newcountry">
</font></td>
<td><font size="2"><strong><< Country </strong>(given by your browser)</font></td>
</tr>
<tr>
<td height="21"><font size="2"><?php echo get_OS($_SERVER['HTTP_USER_AGENT']) ?> </font></td>
<td><font size="2"><strong><< OS</strong> (given by your browser)</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="21"><input name="lat" type="text" id="lat" value="<?php if (isset($_COOKIE["lat"])) {echo $_COOKIE["lat"];} ?>" maxlength="10"></td>
<td><font size="2"><strong><< <a href="http://www.yougetsignal.com/tools/network-location/" target="_blank">Latitude</a></strong>
(of the closest city, not of your home!)</font></td>
</tr>
<tr>
<td height="21">
<input name="long" type="text" id="long" value="<?php if (isset($_COOKIE["long"])) {echo $_COOKIE["long"];} ?>" maxlength="10"></td>
<td><font size="2"><strong><< <a href="http://www.yougetsignal.com/tools/network-location/" target="_blank">Longitude</a>
</strong>(of the closest city, not of your home!)<strong> </strong></font></td>
</tr>
<tr>
<td height="21"></td>
<td><font size="2"> </font></td>
</tr>
</table>
<strong><font size="2"> </font></strong>
<p>
<input type="submit" name="Submit" value="Add the server">
<br>
<font size="2"><br>
<font color="#FF0000">* It should <strong>NOT</strong> start with <strong>192.x.x.x</strong>
or <strong>169.x.x.x</strong> (local network ip) else, have a look to <a href="http://www.yougetsignal.com/tools/network-location/" target="_blank">this
page</a>.</font><br>
<font color="#FF0000">** A static IP is an IP address which does no change
after a disconnection. In Europe, most of the IP are dynamic.</font><br>
<br>
** TS=Team Speak, let blank if you don't have one.<br>
*** Let "0" if you don't have one</font> <br>
<font size="2"><br>
<strong>I recommend you to use a <a href="http://www.dyndn.org">DNS</a> or
any <a href="http://www.no-ip.com/">no ip address</a> if you don't have a
static ip address, else you won't be able to edit your server from the serverlist.
</strong></font> </p>
</form>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8462049-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>