示例#1
0
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  http://www.gnu.org/copyleft/gpl.html
 ***************************************************************************/
if (!isset($pop)) {
    $pop = 0;
}
if (file_exists("config/inc_constants.php")) {
    require_once "config/inc_constants.php";
}
if (file_exists("../config/inc_constants.php")) {
    require_once "../config/inc_constants.php";
}
$lang_path = abs_pathlink($pop) . "languages";
$default_lang = "en.php";
include $lang_path . "/" . $default_lang;
if (isset($_COOKIE['XLR_langfile'])) {
    $lang_file = $_COOKIE['XLR_langfile'];
    if (file_exists($lang_path . "/" . $lang_file)) {
        //include ($lang_path."/".$lang_file);
    } else {
        $lang_file = $default_lang;
    }
} elseif (file_exists($geoip_path . "GeoIP.dat")) {
    require_once "lib/geoip.inc";
    $client_ip = getvisitorip();
    $gi = geoip_open($geoip_path . "GeoIP.dat", GEOIP_STANDARD);
    $lang_file = geoip_country_code_by_addr($gi, $client_ip) . ".php";
    $lang_file = strtolower($lang_file);
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  http://www.gnu.org/copyleft/gpl.html
 ***************************************************************************/
include "../inc_mysql.php";
include "../func-globallogic.php";
echo "<td width=\"100%\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">";
echo "<tr><td align=\"left\" valign=\"top\">";
if (!isset($pop)) {
    $pop = 1;
}
$cpath = abs_pathlink($pop);
error_reporting(0);
//scan available configs and save the appropriate awardfiles
configscanner();
end_process();
//********************************************************************************
//  FUNCTIONS
//********************************************************************************
function identify_config()
{
    global $currentconfignumber;
    global $currentconfig;
    global $cpath;
    // If statsconfig.php exists, we won't enable multiconfig functionality
    if (file_exists($cpath . "config/statsconfig.php")) {
        $currentconfig = "statsconfig.php";
function displayfooter($pop = 0)
{
    global $currentconfignumber;
    global $stylepicker;
    global $template;
    global $pageviews;
    global $total_uniques;
    global $clan_name;
    global $rss_sortby;
    global $text;
    $versionfile = abs_pathlink($pop) . "version.txt";
    if (file_exists($versionfile)) {
        $version = "XLRstats " . file_get_contents($versionfile);
    } else {
        $version = "Unknown Version";
    }
    echo "  \t<br/>\n    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"footer\">\n  \t<tr class=\"footer\">\n  ";
    if ($stylepicker == "footer" && $template != "holidaypack") {
        echo "<td class=\"tiny\">" . stylepicker() . "</td>";
    } else {
        echo "<td class=\"tiny\">&nbsp;</td>";
    }
    $now = date('Y');
    echo "<td class=\"tiny\" width=\"85px\"><span class=\"footer\"><a href=\"http://www.xlr8or.com\" class=\"footer\" target=\"_blank\"><img src=\"" . pathlink($pop) . "images/ico/xlr8or.png\" border=\"0\" align=\"absbottom\" title=\"" . $text["visitxlr"] . "\"></a></span></td>\n";
    echo "<td class=\"tiny\" width=\"85px\"><span class=\"footer\"><a href=\"http://www.bigbrotherbot.com\" class=\"footer\" target=\"_blank\"><img src=\"" . pathlink($pop) . "images/ico/b3.png\" border=\"0\" align=\"absbottom\" title=\"" . $text["b3automated"] . "\"></a></span></td>\n";
    echo "<td class=\"tiny\" width=\"85px\"><span class=\"footer\"><a href=\"http://www.cback.de\" class=\"footer\" target=\"_blank\"><img src=\"" . pathlink($pop) . "images/ico/ctracker.png\" border=\"0\" align=\"absbottom\" title=\"" . $text["cracktrack"] . "\"></a></span></td>\n";
    echo "<td class=\"tiny\" width=\"20px\"><span class=\"footer\"><a href=\"" . pathlink($pop) . "reset.php?config=" . $currentconfignumber . "\" class=\"footer\" target=\"_blank\"><img src=\"" . pathlink($pop) . "images/ico/error_delete.png\" border=\"0\" align=\"absbottom\" title=\"" . $text["gettingerros"] . "\"></a></span></td>\n";
    echo "<td align=\"center\" class=\"tiny\"><span class=\"footer\">&nbsp;[" . $text["visitors"] . " {$total_uniques}, " . $text["pageview"] . " {$pageviews}]&nbsp;</span></td>\n";
    echo "<td align=\"center\" class=\"tiny\"><span class=\"footer\">&nbsp;[" . $text["pageloaded"] . " " . pageloader_end() . " " . $text["seconds"] . "]&nbsp;</span></td>\n";
    echo "<td align=\"right\" class=\"tiny\" title=\"" . $version . "\"><span class=\"footer\">&nbsp;&copy; 2005-{$now}&nbsp;</span><a href=\"http://www.xlr8or.com/\" target=\"_blank\" class=\"footer\">www.xlr8or.com</a> </td>\n";
    echo "</tr></table>\n";
    // Close the MAIN table
    echo "</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "</div></div>";
    echo "</div></div>";
    echo "</body>";
    echo "</html>";
}
            } else {
                $flag = "<img width=\"16\" height=\"11\" src=\"" . $images_folder . "/spacer.gif\" title=\"" . $country . "\" alt=\"" . $country . "\">";
            }
            geoip_close($gi);
            echo '<td style="background: ' . $onlineplayers_bgcolor . ' none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center">' . $flag . '</td>';
        }
        echo '<td style="background: ' . $onlineplayers_bgcolor . ' none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center">' . $client->level . '</td>';
        echo '<td style="background: ' . $onlineplayers_bgcolor . ' none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center">' . $client->connections . '</td>
    </tr>';
        $x++;
    }
}
if (!isset($pop)) {
    $pop = 1;
}
$currentpath = abs_pathlink($pop);
//Current map image
if ($game == 'bfbc2') {
    $mapname = explode("/", $mapname);
    $mapname = $mapname[1];
}
if (file_exists($currentpath . 'images/maps/' . $game . '/middle/' . $mapname . '.jpg')) {
    $img_map = $images_folder . '/maps/' . $game . '/middle/' . $mapname . '.jpg';
} else {
    $img_map = $images_folder . '/maps/nomapimage.jpg';
}
//Background pattern image
$img_pattern = $images_folder . '/pattern.gif';
?>
<style type="text/css">
.maintable{