示例#1
0
        if ($use_geoip == 1 && !file_exists($geoip_path . "GeoIP.dat")) {
            echo "- GeoIP path seems to be wrong!<br />";
        }
        echo "Please check and try again!</font><br /><br />";
        echo "<input name=\"back\" type=\"button\" class=\"line1\" id=\"back\" onClick=\"history.go(-1)\" value=\"Go Back\" /></center></td></tr>";
    } else {
        echo "<td width=\"100%\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">\n                <tr>\n                  <td align=\"left\" valign=\"top\"><p><span class=\"fontTitle\">Advanced XLRstats Settings:</span><br />\n                    <br />\n                  You can modify the following settings to your taste or simply go to the bottom of the page and click &quot;Next&quot; to use default settings. If you want to modify those settings later, you should manually change the statsconfig.php located in &quot;xlrstats/config&quot; folder.</p></td>\n                </tr><form action=\"index.php\" method=\"POST\">\n                <tr>\n                  <td valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n                    <tr>\n                      <td class=\"status-spectators\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\">\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Number of Players to list in Top Lists</strong></td>\n                          <td><label>\n                            <input name=\"toplist_max\" type=\"text\" id=\"toplist_max\" value=\"25\" />\n                            </label></td>\n                          <td width=\"50%\" class=\"fontSmall\">Enter the number of players you want to list under &quot;Top Skill&quot;, &quot;Top Kills&quot; and &quot;Top Ratio&quot; sections.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Number of Maps to list in Top Maps Lists</strong></td>\n                          <td><label>\n                            <input name=\"maplist_max\" type=\"text\" id=\"maplist_max\" value=\"13\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter the number of maps you want to list under &quot;Top Maps&quot; section.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Number of Weapons to list in Top Weapons Lists</strong></td>\n                          <td><label>\n                            <input name=\"weaplist_max\" type=\"text\" id=\"weaplist_max\" value=\"13\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter the number of weapons you want to list under &quot;Top Weapons&quot; section.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Seperator Line</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"separatorline\" type=\"radio\" id=\"seperatorline_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <input type=\"radio\" name=\"separatorline\" value=\"0\" id=\"seperatorline_1\" />\n                            No<br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want to draw a 1 pixel separator line in the toplist between rows?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Number of Players in block.php</strong></td>\n                          <td><label>\n                            <input name=\"toplist_block\" type=\"text\" id=\"toplist_block\" value=\"5\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter number of players in block.php an inclusion file for websites.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Number of characters in username</strong></td>\n                          <td><label>\n                            <input name=\"user_length\" type=\"text\" id=\"user_length\" value=\"14\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter number of characters in username (block) before breaking off.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Minimum Kills</strong></td>\n                          <td><label>\n                            <input name=\"minkills\" type=\"text\" id=\"minkills\" value=\"1000\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter minimum amount of kills before a player is included in the mainpage player statistics and awards</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Minimum Rounds</strong></td>\n                          <td><label>\n                            <input name=\"minrounds\" type=\"text\" id=\"minrounds\" value=\"50\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter minimum amount of rounds before a player is included in the mainpage player statistics and awards</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Exclude Banned Player?</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"exclude_ban\" type=\"radio\" id=\"exclude_ban_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <label>\n                              <input type=\"radio\" name=\"exclude_ban\" value=\"0\" id=\"exclude_ban_1\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want to exclude currently banned player from top lists and ranking?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Ratio Graph</strong></td>\n                          <td><label>\n                            <select name=\"ShowRatioGraph\" id=\"ShowRatioGraph\">\n                              <option value=\"0\">Values Only</option>\n                              <option value=\"1\" selected=\"selected\">Inline Bar</option>\n                              <option value=\"2\">Double Bar</option>\n                              <option value=\"3\">Simple Inline Bar</option>\n                            </select>\n                          </label></td>\n                          <td class=\"fontSmall\">Select how you want to display the ratio bar.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Maximum Kill Ratio</strong></td>\n                          <td><label>\n                            <input name=\"MaxKillRatio\" type=\"text\" id=\"MaxKillRatio\" value=\"0\" />\n                          </label></td>\n                          <td class=\"fontSmall\">For the ratio bar - leave at 0 for automatic detection of the maximum ratio</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Maximum Days</strong></td>\n                          <td><label>\n                            <input name=\"maxdays\" type=\"text\" id=\"maxdays\" value=\"14\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter number of days a player is still displayed if he/she hasn't played anymore.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Minimum Map Kills</strong></td>\n                          <td><label>\n                            <input name=\"map_minkills\" type=\"text\" id=\"map_minkills\" value=\"100\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter minimum kills before a player is displayed on map-page</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Minimum Map Rounds</strong></td>\n                          <td><label>\n                            <input name=\"map_minrounds\" type=\"text\" id=\"map_minrounds\" value=\"20\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter minimum rounds before a player is displayed on map-page</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Minimum Weapon Kills</strong></td>\n                          <td><label>\n                            <input name=\"weap_minkills\" type=\"text\" id=\"weap_minkills\" value=\"25\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter minimum kills before a player is displayed on weapon-page</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Alias Hide Level</strong></td>\n                          <td><label>\n                            <input name=\"aliashide_level\" type=\"text\" id=\"aliashide_level\" value=\"2\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Minimum grouplevel to hide aliases on playerpages, this will show aliases for players with a lower level. Disable aliases by setting it to 0</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Limit Player Stats</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"limitplayerstats\" type=\"radio\" id=\"limitplayerstats_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <label>\n                              <input type=\"radio\" name=\"limitplayerstats\" value=\"0\" id=\"limitplayerstats_1\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want to limit playerspecific stats for unregistered players</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Enemies Maximum</strong></td>\n                          <td><label>\n                            <input name=\"enemies_max\" type=\"text\" id=\"enemies_max\" value=\"13\" />\n                          </label></td>\n                          <td class=\"fontSmall\">Enter number of worst enemies in personal playerpages</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Clan Search</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"showclansearch\" type=\"radio\" id=\"showclansearch_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <label>\n                              <input type=\"radio\" name=\"showclansearch\" value=\"0\" id=\"showclansearch_1\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want a Clan search filter on the index page?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Use Localtime</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"use_localtime\" type=\"radio\" id=\"use_localtime_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <label>\n                              <input type=\"radio\" name=\"use_localtime\" value=\"0\" id=\"use_localtime_1\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want to display times for your local timezone?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Show Current Player List?</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"useppllist\" type=\"radio\" id=\"useppllist_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <label>\n                              <input type=\"radio\" name=\"useppllist\" value=\"0\" id=\"useppllist_1\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want to display current player list?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Show Teams?</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"pll_noteams\" type=\"radio\" id=\"pll_noteams_0\" value=\"0\" checked=\"checked\" />\n                              Yes</label>\n                            <label>\n                              <input name=\"pll_noteams\" type=\"radio\" id=\"pll_noteams_1\" value=\"1\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Do you want to display teams in current player list?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Show Stylepicker?</strong></td>\n                          <td><label>\n                            <select name=\"stylepicker\" id=\"stylepicker\">\n                              <option value=\"0\" selected=\"selected\">No</option>\n                              <option value=\"left\">Left</option>\n                              <option value=\"right\">Right</option>\n                              <option value=\"footer\">Footer</option>\n                            </select>\n                          </label></td>\n                          <td class=\"fontSmall\">Do you want to display stylepicker?</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Disable Config Selector?</strong></td>\n                          <td><p>\n                            <label>\n                              <input type=\"radio\" name=\"disable_configpicker\" value=\"1\" id=\"disable_configpicker_0\" />\n                              Yes</label>\n                            <label>\n                              <input name=\"disable_configpicker\" type=\"radio\" id=\"disable_configpicker_1\" value=\"0\" checked=\"checked\" />\n                              No</label>\n                            <br />\n                          </p></td>\n                          <td class=\"fontSmall\">Disable the config selector, even though we have set up multi configs (ie if we want to deeplink to each config/server from our homepage)</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Show Debuggin Info?</strong></td>\n                          <td><p>\n                            <label>\n                              <input name=\"debug\" type=\"radio\" id=\"debug_0\" value=\"1\" checked=\"checked\" />\n                              Yes</label>\n                            <input type=\"radio\" name=\"debug\" value=\"0\" id=\"debug_1\" />No</p></td>\n                          <td class=\"fontSmall\">Selecting &quot;Yes&quot; will enable all php-error reporting and phpinfo to show for debugging purposes. If you find that your XLRstats is okay, set it to 0. If you need support make sure you set this to 1 before posting requests in the support forums.</td>\n                        </tr>\n                        <tr>\n                          <td class=\"fontNormal\"><strong>Award Cache Time (second)</strong></td>\n                          <td><label>\n                            <input name=\"award_cache_time\" type=\"text\" id=\"award_cache_time\" value=\"3600\" />\n                          </label></td>\n                          <td class=\"fontSmall\">How long (in seconds) to cache awards, lower = slower. 3600=1hr, 7200=2hrs, 10800=3hrs, 14400=4hrs etc.</td>\n                        </tr>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"hostname\" value=\"{$db_host}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"username\" value=\"{$db_user}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"password\" value=\"{$db_pass}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"databasename\" value=\"{$db_db}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"game\" value=\"{$game}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"publicip\" value=\"{$public_ip}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"statusurl\" value=\"{$b3_status_url}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"websiteurl\" value=\"{$mysiteurl}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"websitename\" value=\"{$mysitelinkname}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"template\" value=\"{$template}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"sigmodule\" value=\"{$sig}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"pagetitle\" value=\"{$statstitle}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"teambased\" value=\"{$teambased}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"actionbased\" value=\"{$actionbased}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"use_geoip\" value=\"{$use_geoip}\"></input>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"geoip_path\" value=\"{$geoip_path}\"></input>\n                      </table></td>\n                    </tr>\n                  </table>\n                    <table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"5\">\n                      <tr>\n                        <td>&nbsp;</td>\n                        <td width=\"80\" align=\"center\" valign=\"middle\">\n                          <label>\n                            <input name=\"back\" type=\"button\" class=\"line1\" id=\"back\" onClick=\"history.go(-1)\" value=\"Back\" />\n                          </label>\n                        </a></td>\n                        <td width=\"80\" align=\"center\" valign=\"middle\">\n                          <label>\n                            <input name=\"step4\" type=\"submit\" class=\"line1\" id=\"step4\" value=\"Save Config\" />\n                          </label>\n                        </a></td>\n                      </tr>\n                    </table>\n                    <table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"5\">\n                      <tr> </tr>\n                    </table></td>\n                  </tr></form>\n  ";
    }
} elseif (isset($step4)) {
    create_statsconfig();
    echo "<p class=\"fontNormal\">If you have another game server and want to configure it now, please click &quot;New Server&quot; button\n                    or click \"Finish\" to generate awards file and finish installation</p></td>\n                </tr><form action=\"index.php\" method=\"POST\">\n                <tr>\n                  <td valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"5\">\n                    <tr>\n                        <td>&nbsp;</td>\n                        <td width=\"80\" align=\"center\" valign=\"middle\">\n                          <label>\n                            <input name=\"newserver\" type=\"button\" class=\"line1\" id=\"newserver\" onClick=\"history.go(-3)\" value=\"New Server\" />\n                          </label>\n                        </a></td>\n                        <td width=\"80\" align=\"center\" valign=\"middle\">\n                          <label>\n                            <input name=\"step5\" type=\"submit\" class=\"line1\" id=\"step5\" value=\"Finish\" />\n                          </label>\n                        </a></td>\n                      </tr>\n                    </table>\n                    <table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"5\">\n                      <tr> </tr>\n                    </table></td>\n                  </tr></form>\n";
} elseif (isset($step5)) {
    require_once "../inc_install_award_idents.php";
    $cpath = "../";
    echo "<td width=\"100%\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">\n                <tr>\n                  <td align=\"left\" valign=\"top\"><p><span class=\"fontTitle\">Identify Awards:</span>";
    install_award_idents();
    echo "</td>\n          </tr>";
} else {
    //Licence and Readme Page
    echo "<td width=\"100%\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">";
    echo "<tr>";
    echo "<td align=\"center\" valign=\"top\"><strong class=\"fontTitle\">Thank you for choosing XLRstats<br />";
    echo "the only REAL TIME stats keeping program!</strong></td>";
    echo "</tr>";
    echo "<tr>";
    echo "<td align=\"center\" valign=\"top\"><span class=\"fontNormal\">You can install XLRstats in 4 easy steps!</span></td>";
    echo "</tr>";
    echo "<tr>";
    echo "<td align=\"center\" valign=\"top\" class=\"fontNormal\"><strong>Licence and Read Me:</strong></td>";
    echo "</tr>";
    echo "<tr>";
function run_cronjobs()
{
    require_once "inc_install_award_idents.php";
    install_award_idents();
}