Configuration option for ServerChecker IP

This commit is contained in:
Travis Burtrum 2012-12-26 18:15:38 -05:00
parent 7dcda29684
commit c3f9527d83
2 changed files with 5 additions and 3 deletions

View File

@ -26,7 +26,7 @@ if (!defined('SS_PAGE'))
//error_reporting(E_ALL);
# you need to set these regardless
global $g_source_dir, $g_sql_host, $g_sql_user, $g_sql_pass, $g_sql_db, $g_versions, $g_default_port, $g_theme, $g_img_dir, $g_admin_contact;
global $g_source_dir, $g_sql_host, $g_sql_user, $g_sql_pass, $g_sql_db, $g_versions, $g_default_port, $g_theme, $g_img_dir, $g_admin_contact, $g_checker_ip;
# path to ss_sources
$g_source_dir = './ss_sources';
$g_img_dir = './images';
@ -39,6 +39,8 @@ $g_sql_db = 'serverstat';
$g_versions = array(317, 508);
$g_default_port = 43594;
$g_admin_contact = '<a href="/smf/index.php?action=profile;u=youruid">yourname</a>';
# IP address the ServerChecker application connects from
$g_checker_ip = '69.39.224.55';
define('SS_PAGE', 1);

View File

@ -131,7 +131,7 @@ function register2() {
If you have problems with this, PM $g_admin_contact on the forums.";
}
global $uname, $g_admin_contact;
global $uname, $g_admin_contact, $g_checker_ip;
// don't bother with pic_url, they can edit it if they are sponsored
$sql = 'INSERT INTO `toadd` (`uid`, `uname`, `name`, `ip`, `port`, `version`, `time`, `info`, `ipaddress`, `rs_name`, `rs_pass`, `key`, `verified`) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
$stmt = $g_mysqli->prepare($sql) or debug($g_mysqli->error);
@ -140,7 +140,7 @@ function register2() {
Username: <strong class=\"highlight\">$rs_name</strong>\n<br />
Password: <strong class=\"highlight\">$rs_pass</strong>\n<br />
to make sure it is online, and if successful, it will be posted. <br />
You must register this username and password for me on your server and allow it to be logged into from the IP 69.39.224.55<br />
You must register this username and password for me on your server and allow it to be logged into from the IP $g_checker_ip<br />
The server will be deleted from the queue if not verified and logged into within 24 hours of posting.<br />" . $verify_msg;
$fail_msg = 'Registration failed, PM ' . $g_admin_contact . ' on the forums to with details so he can fix it.';
}