}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> 
<head>

<style type="text/css"> 
	body, html {
		margin: 0px;
		padding: 0px;
	}
</style>

</head>
<body>

 <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH="300" HEIGHT="345" id="0m3ga_cave">
	<PARAM NAME="movie" VALUE="<?php 
echo GetFileDir($_SERVER['PHP_SELF']);
?>
includes/cheese.swf">
	<PARAM NAME="quality" VALUE="high">
	<PARAM NAME="bgcolor" VALUE="#FFFFFF">
	<EMBED src="<?php 
echo GetFileDir($_SERVER['PHP_SELF']);
?>
includes/cheese.swf" quality="high" bgcolor="#FFFFFF" WIDTH="300" HEIGHT="345" NAME="0m3ga_cave" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></EMBED>
</OBJECT>

</body>
</html>
Exemple #2
0
            echo '<div class="error"><div style="font-weight: bold;">Oops! There is an error:</div>' . $error . '</div><br />';
        }
    }
    require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "includes" . DIRECTORY_SEPARATOR . "integrations_db_list.php";
    if (isset($_SESSION['config_path'])) {
        $config_path = $_SESSION['config_path'];
        $config_table_user = $_SESSION['config_table_user'];
        $config_field_username = $_SESSION['config_field_username'];
        $config_field_userid = $_SESSION['config_field_userid'];
        $config_field_avatar = $_SESSION['config_field_avatar'];
        $config_table_friends = $_SESSION['config_table_friends'];
        $config_field_friend_userid = $_SESSION['config_field_friend_userid'];
        $config_field_friendid = $_SESSION['config_field_friendid'];
        $config_field_friend_check = $_SESSION['config_field_friend_check'];
    } else {
        $config_path = substr(GetFileDir($_SERVER['PHP_SELF']), 0, -8);
        $config_table_user = $installs[$_SESSION['version']][0];
        $config_field_username = $installs[$_SESSION['version']][1];
        $config_field_userid = $installs[$_SESSION['version']][2];
        $config_field_avatar = $installs[$_SESSION['version']][3];
        $config_table_friends = $installs[$_SESSION['version']][4];
        $config_field_friend_userid = $installs[$_SESSION['version']][5];
        $config_field_friendid = $installs[$_SESSION['version']][6];
        $config_field_friend_check = $installs[$_SESSION['version']][7];
    }
    if (!$success) {
        $next = array('0' => 'Next', '1' => 'onClick="document.forms[\'config_form\'].submit();"');
        require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "layout" . DIRECTORY_SEPARATOR . "pages_config.php";
    }
}
// ######################### START FINAL SETUP ##########################
function displayheader($pop = 0)
{
    $link = pathlink($pop);
    global $showclansearch;
    global $statstitle;
    global $logoheight;
    global $template;
    global $stylepicker;
    global $currentconfignumber;
    global $coddb;
    global $t;
    global $hide_menu_header;
    global $main_width;
    // variables for tabcontrol (playerstats tabs)
    global $ptab_backgroundColor;
    global $ptab_selectedBgColor;
    global $ptab_mouseOverColor;
    global $ptab_borderColor;
    global $ptab_borderSize;
    global $ptab_borderStyle;
    global $ptab_font;
    global $ptab_textAlign;
    global $ptab_fontSize;
    global $ptab_fontWeight;
    global $ptab_Color;
    global $text;
    if (isset($_SESSION['template'])) {
        $template = $_SESSION['template'];
    }
    $xlrpath = pathlink($pop);
    $csspath = $xlrpath . "templates/" . $template . "/style.css";
    $loadercsspath = $xlrpath . "templates/loader.css";
    // Include existing php dynamic css?
    $temp = abs_pathlink($pop) . "templates/" . $template . "/style-css.php";
    if (file_exists($temp)) {
        $template_dyn_css = $xlrpath . "templates/" . $template . "/style-css.php?config=" . $currentconfignumber;
    } else {
        $template_dyn_css = 'None';
    }
    // Is logob1.png used?
    if (file_exists(abs_pathlink($pop) . "templates/" . $template . "/logob1.png")) {
        $logob1 = "<td height=\"40\" align=\"left\" style=\"background-image:url(" . $xlrpath . "templates/" . $template . "/logob1.png);\" width=\"150\">&nbsp;</td>";
    } else {
        $logob1 = "<td height=\"40\" align=\"left\" width=\"150\">&nbsp;</td>";
    }
    // Lets get the holiday templates
    if (file_exists("templates/holidaypack/")) {
        $xlrpath = GetFileDir($_SERVER['PHP_SELF']);
        if (date("d.m") == "25.12" || date("d.m") == "26.12") {
            $csspath = $xlrpath . "templates/holidaypack/xmas.css";
            $template_dyn_css = "";
            $template = "holidaypack";
        } elseif (date("d.m") == "31.12" || date("d.m") == "01.01") {
            $csspath = $xlrpath . "templates/holidaypack/ny.css";
            $template_dyn_css = "";
            $template = "holidaypack";
        } elseif (date("d.m") == "31.10") {
            $csspath = $xlrpath . "templates/holidaypack/halloween.css";
            $template_dyn_css = "";
            $template = "holidaypack";
        }
    }
    // Do we have template specific settings?
    $templateconfig = "templates/" . $template . "/config.php";
    if (file_exists($templateconfig)) {
        include $templateconfig;
    }
    $main_width = $main_width ? $main_width : 800;
    // Tabcontrol variables for playerstats tabs
    $ptab_Color = $ptab_Color ? $ptab_Color : "#000000";
    $ptab_backgroundColor = $ptab_backgroundColor ? $ptab_backgroundColor : "#999999";
    $ptab_selectedBgColor = $ptab_selectedBgColor ? $ptab_selectedBgColor : "#CCCCCC";
    $ptab_mouseOverColor = $ptab_mouseOverColor ? $ptab_mouseOverColor : "#CCCCCC";
    $ptab_borderColor = $ptab_borderColor ? $ptab_borderColor : "black";
    $ptab_borderSize = $ptab_borderSize ? $ptab_borderSize : "1px";
    $ptab_borderStyle = $ptab_borderStyle ? $ptab_borderStyle : "solid";
    $ptab_font = $ptab_font ? $ptab_font : "Geneva, Arial, Helvetica, sans-serif";
    $ptab_textAlign = $ptab_textAlign ? $ptab_textAlign : "center";
    $ptab_fontSize = $ptab_fontSize ? $ptab_fontSize : "14px";
    $ptab_fontWeight = $ptab_fontWeight ? $ptab_fontWeight : "normal";
    // set up visitor counter
    counter();
    // Generate required pagecode (header)
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>XLRstats for B3 (www.xlr8or.com)</title>\n";
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . $text["charset"] . "\">\n";
    echo "<link rel=\"shortcut icon\" href=\"" . $xlrpath . "favicon.ico\">\n";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $xlrpath . "lib/autocomplete/jquery.autocomplete.css\" />\n";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $xlrpath . "lib/jquery-boxy/boxy.css\" media=\"screen\" />\n";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $xlrpath . "lib/tooltip/boxover.css\" media=\"screen\" />\n";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $xlrpath . "lib/tabber/tabber.css\" media=\"screen\" />\n";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $csspath . "\" media=\"screen\" />\n";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $loadercsspath . "\" media=\"screen\" />\n";
    // include the php dynamic css
    if ($template_dyn_css != 'None') {
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $template_dyn_css . "\" media=\"screen\" />\n";
    }
    // echo "<script type=\"text/JavaScript\" src=\"".$xlrpath."lib/sorttable/sorttable.js\"></script>\n";
    echo "<script type=\"text/JavaScript\" src=\"" . $xlrpath . "lib/jquery-1.2.6.min.js\"></script>\n";
    echo "<script type=\"text/JavaScript\" src=\"" . $xlrpath . "lib/jquery-boxy/jquery.boxy.js\"></script>\n";
    echo "<script type=\"text/javascript\" src=\"" . $xlrpath . "lib/autocomplete/jquery.autocomplete.js\"></script>\n";
    echo "<script type=\"text/JavaScript\" src=\"" . $xlrpath . "lib/tooltip/boxover.js\"></script>\n";
    echo "<script type=\"text/JavaScript\" src=\"" . $xlrpath . "lib/tabber/tabber.js\"></script>\n";
    echo "<style type=\"text/css\">\n";
    echo "<!--\n";
    /* IE6+7 hacks for the border. IE7 should support this natively but fails in conjuction with modal blackout bg. */
    /* NB: these must be absolute paths or URLs to your images */
    echo ".boxy-wrapper .top-left { #background: none; #filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . $xlrpath . "lib/jquery-boxy/images/boxy-nw.png'); }\n";
    echo ".boxy-wrapper .top-right { #background: none; #filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . $xlrpath . "lib/jquery-boxy/images/boxy-ne.png'); }\n";
    echo ".boxy-wrapper .bottom-right { #background: none; #filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . $xlrpath . "lib/jquery-boxy/images/boxy-se.png'); }\n";
    echo ".boxy-wrapper .bottom-left { #background: none; #filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . $xlrpath . "lib/jquery-boxy/images/boxy-sw.png'); }\n";
    echo "-->\n";
    echo "</style>\n";
    // Freelanders Autocomplete script insertion
    echo "<script type=\"text/JavaScript\">\n";
    echo "<!--\n";
    include "lib/autocomplete/localdata.php";
    ?>

$().ready(function() {  
  $("#searchplayer").autocomplete(players, {
    minChars: 3,
    width: 195,
    scrollHeight: 200,
    selectFirst: false,
    matchContains: true,
    autoFill: false,
    formatItem: function(row, i, max) {
      return row.name;
    },
  });
});
<?php 
    echo "//-->\n";
    echo "</script>\n";
    // Courgette's web2 worldmap script insertion
    echo "<script type=\"text/JavaScript\">\n";
    echo "<!--\n";
    ?>
$(document).ready(function(){
  $("<div id=\"web2worldmap\">"
  +"<iframe src=\"lib/worldmap/?config=<?php 
    echo $currentconfignumber;
    ?>
\"  scrolling=\"no\" frameborder=\"0\" width=\"550\" height=\"300\"></iframe></div>").appendTo('body').hide();
  
   $("a[@href='worldmap/']")
    .attr('href','#web2worldmap')
    .removeAttr('onclick')
    .boxy({title: 'World map'});});
<?php 
    echo "//-->\n";
    echo "</script>\n";
    // We need this to be in the header for our stylepicker
    if ($stylepicker != "0") {
        echo "<script type=\"text/JavaScript\">\n";
        echo "<!--\n";
        echo "function XLR_stylePicker(targ,selObj,restore){ //v3.0\n";
        echo "  eval(targ+\".location='\"+\"?style=\"+selObj.options[selObj.selectedIndex].value+\"'\");\n";
        echo "  if (restore) selObj.selectedIndex=0;\n";
        echo "}\n";
        echo "//-->\n";
        echo "</script>\n";
    }
    // We need this to be in the header for our configpicker
    echo "<script type=\"text/JavaScript\">\n";
    echo "<!--\n";
    echo "function XLR_configPicker(targ,selObj,restore){ //v3.0\n";
    echo "  eval(targ+\".location='\"+\"?config=\"+selObj.options[selObj.selectedIndex].value+\"'\");\n";
    echo "  if (restore) selObj.selectedIndex=0;\n";
    echo "}\n";
    echo "function XLR_reloadPage(init) {  //reloads the window if Nav4 resized\n";
    echo "  if (init==true) with (navigator) {if ((appName==\"Netscape\")&&(parseInt(appVersion)==4)) {\n";
    echo "    document.XLR_pgW=innerWidth; document.XLR_pgH=innerHeight; onresize=XLR_reloadPage; }}\n";
    echo "  else if (innerWidth!=document.XLR_pgW || innerHeight!=document.XLR_pgH) location.reload();\n";
    echo "}\n";
    echo "XLR_reloadPage(true);\n";
    echo "//-->\n";
    echo "</script>\n";
    echo "</head>\n";
    echo "<body bgcolor=\"#333333\">\n";
    // Here is the loader div and script
    echo "<div id=\"loading\" class=\"loading-invisible\">\n";
    echo "  <p><img src=\"./images/loader.gif\"></p>\n";
    echo "</div>\n";
    ?>
<script type="text/javascript">
  document.getElementById("loading").className = "loading-visible";
  var hideDiv = function(){document.getElementById("loading").className = "loading-invisible";};
  var oldLoad = window.onload;
  var newLoad = oldLoad ? function(){hideDiv.call(this);oldLoad.call(this);} : hideDiv;
  window.onload = newLoad;
</script>
<?php 
    // Start opening the MAIN table defining general look
    echo "<div id=\"page-body\"><div class=\"page-body-img\">";
    echo "<div id=\"page-footer\"><div class=\"page-footer-img\">";
    echo "<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"main\" width=\"" . $main_width . "px\">\n";
    echo "  <tr>\n";
    echo "    <td>\n";
    // Start Logo
    echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
    echo "  <tr valign=\"top\">\n";
    echo "  <td width=\"150\"><a href=\"{$link}\" title=\"XLRstats HomePage\"><img src=\"" . $xlrpath . "templates/" . $template . "/logo1.png\" border=\"0\"></a></td>";
    echo "  <td width=\"100%\" colspan=\"2\"><img src=\"" . $xlrpath . "templates/" . $template . "/logo2.png\" border=\"0\"></td>";
    //echo "    <td align=\"right\" valign=\"bottom\" class=\"header\"><span class=\"title\">$statstitle</span></td>\n";
    echo "  </tr>\n";
    echo "<tr height=\"40\">";
    if ($stylepicker == "left" && $template != "holidaypack") {
        echo $logob1;
        stylepicker();
        echo "</td>";
    } elseif ($stylepicker == "right" && $template != "holidaypack") {
        echo $logob1;
        configpicker();
        echo "</td>";
    } else {
        echo $logob1;
    }
    echo "<td align=left style=\"background-image:url(" . $xlrpath . "templates/" . $template . "/menubg.png);\" colspan=2>\n\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>\n      <font class=\"fontNormal\" size=\"2\">\n\t\t\t<font style=\"font-size: 12px; font-weight: bold;\" color=\"#ffffff\">&nbsp;&nbsp;&nbsp;\n    ";
    displayhomelink();
    echo "</font></font></td><td align=\"right\" valign=\"baseline\">";
    if ($stylepicker == "right" && $template != "holidaypack") {
        stylepicker();
    } else {
        configpicker();
    }
    //echo "&nbsp;";
    echo "</td></tr></table>\n  \t\t</td>\n  \t\t\n  \t\t</td>\n  \t</tr>\n  \t<tr>\n  \t\t<td colspan=3 style=\"background-image:url(" . $xlrpath . "templates/" . $template . "/menubar.png);\"><img src=\"" . $xlrpath . "templates/" . $template . "/menubar.png\" height=\"3px\" border=0></td>\n  \t</tr>\n  \t<tr>\n  \t<td colspan=3>\n  \t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n  \t\t<tr>\n  \t\t\t<td width=550 align=\"left\">\n    \t\t\t\t<form action=\"{$link}?func=search\" method=\"post\" class=\"aliassearch\">\n  \t  \t\t\t<input type=\"text\" id=\"searchplayer\" name=\"input_name\" size=\"30\" />&nbsp; <input type=\"submit\" value=\"" . $text["search"] . "\"></input>\n    \t\t\t\t<input type=\"checkbox\" name=\"aliases\" value=\"true\">" . $text["incalias"] . "</input>\n      ";
    if ($showclansearch == "1") {
        echo "<input type=\"checkbox\" name=\"clansearch\" value=\"true\">" . $text["clantag"] . "</input>";
    }
    echo "  \t\t\t\t</form>\n\t\t\t</td>\n\t\t\t<td><a href=\"http://www.bigbrotherbot.com\" target=\"_blank\" title=\"B3 game administration bot for cod, urbanterror, and quake3 games\"><div id=\"inea\"><div class=\"opis\">" . $text["poweredby"] . " </div></div></a>\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t</td>\n\t</tr>\n\n\n  ";
    echo "</table>\n";
    flush();
}
}
require_once $currentconfig;
require_once 'languages/languages.php';
// Determine debugmode
getdebugmode();
// Do we have template specific settings?
if (isset($_SESSION['template'])) {
    $template = $_SESSION['template'];
}
$xlrpath = pathlink($pop);
$csspath = $xlrpath . "templates/" . $template . "/style.css";
// Include existing php dynamic css?
$template_dyn_css = $xlrpath . "templates/" . $template . "/style-css.php?config=" . $currentconfignumber;
// Lets get the holiday templates
if (file_exists("templates/holidaypack/")) {
    $xlrpath = GetFileDir($_SERVER['PHP_SELF']);
    if (date("d.m") == "25.12" || date("d.m") == "26.12") {
        $csspath = $xlrpath . "templates/holidaypack/xmas.css";
        $template_dyn_css = "";
        $template = "holidaypack";
    } elseif (date("d.m") == "31.12" || date("d.m") == "01.01") {
        $csspath = $xlrpath . "templates/holidaypack/ny.css";
        $template_dyn_css = "";
        $template = "holidaypack";
    } elseif (date("d.m") == "31.10") {
        $csspath = $xlrpath . "templates/holidaypack/halloween.css";
        $template_dyn_css = "";
        $template = "holidaypack";
    }
}
$templateconfig = "templates/" . $template . "/config.php";
Exemple #5
0
    $filename2 = '';
    $filename = explode("/", $php_self);
    // THIS WILL BREAK DOWN THE PATH INTO AN ARRAY
    for ($i = 0; $i < count($filename) - 2; ++$i) {
        $filename2 .= $filename[$i] . '/';
    }
    return $filename2;
}
// General settings per resort from database
$general = array();
$general = querySQL('settings_inc');
if ($_SESSION['valid_user'] == TRUE) {
    $_SESSION['language'] = $general['language'];
}
// Set default timezone in PHP 5.
if (function_exists('date_default_timezone_set')) {
    date_default_timezone_set($general['timezone']);
}
/* Set PHP local */
setlocale(LC_TIME, $general['language']);
/* Set global base path */
$global_basedir = '';
if (isset($_SERVER['HTTPS'])) {
    $global_basedir = 'https://';
} else {
    $global_basedir = 'http://';
}
$global_basedir .= $_SERVER['SERVER_NAME'] . GetFileDir($_SERVER['PHP_SELF']);
?>

Exemple #6
0
// Application Settings File
// This file will be loaded when the user clicks on settings in the admin panel
// THE PHP AND HTML BELOW ARE AN EXAMPLE OF HOW THIS CAN BE USED
/*
 */
// Gets the folder path without filename
function GetFileDir($php_self)
{
    $filename2 = "";
    $filename = explode("/", $php_self);
    for ($i = 0; $i < count($filename) - 1; ++$i) {
        $filename2 .= $filename[$i] . '/';
    }
    return $filename2;
}
$base_url2 = GetFileDir($_SERVER['PHP_SELF']);
if (isset($_POST['stream_url'])) {
    $stringData = "<?php\n\n// The stream URL\n\$stream = '" . $_POST['stream_url'] . "';\n\n?>";
    // Write new Config File
    $myFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . "config.php";
    $fh = fopen($myFile, 'w') or die("Can't open config.php file.  Please make this file writable.");
    fwrite($fh, $stringData);
    fclose($fh);
}
$writable = false;
if (is_writable(dirname(__FILE__) . DIRECTORY_SEPARATOR . "config.php")) {
    $writable = true;
}
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "config.php";
?>
Exemple #7
0
        $currentconfignumber = 1;
    }
}
require_once $currentconfig;
// pop should hold the subdir depth of this file in relation to the xlrstats root.
$pop = 1;
include "../languages/languages.php";
displaysimpleheader(1);
opentablerow('100');
opentablecell('100');
echo "<h1 align=\"center\">XLRstats - Signature Builder </h1>";
if (isset($_POST['submit'])) {
    if (strlen($_POST['id']) == 0) {
        die("Please enter a player ID");
    }
    $ptemp = explode("/", GetFileDir($_SERVER['PHP_SELF']));
    array_pop($ptemp);
    array_pop($ptemp);
    $link = "http://" . $_SERVER['HTTP_HOST'] . implode("/", $ptemp);
    extract($_POST, EXTR_PREFIX_ALL, "in");
    $in_id = stripslashes($in_id);
    $player_id = $in_id;
    if ($currentconfignumber != 0) {
        $url = $link . "/sig/?config=" . $currentconfignumber . "&id=" . urlencode($player_id);
        $stats_url = $link . "/index.php?func=player&config=" . $currentconfignumber . "&playerid=" . urlencode($player_id);
    } else {
        $url = $link . "/sig/?id=" . urlencode($player_id);
        $stats_url = $link . "/index.php?func=player&playerid=" . urlencode($player_id);
    }
    if (strlen($in_b) > 0) {
        $url .= "&b=" . $in_b;
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  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
 ***************************************************************************/
global $currentconfignumber;
echo "<a href=\"http://{$mysiteurl}\"  class = \"breadcrumb-a\">{$mysitelinkname}</a><span class=\"breadcrumb-a\"> : </span>";
if ($_SERVER['PHP_SELF'] == GetFileDir($_SERVER['PHP_SELF']) . "index.php") {
    echo "<a href=\"" . $link . "\" class = \"breadcrumb-a\">XLRStats</a><span class=\"breadcrumb-a\"> : </span>";
    //echo "<a href=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "\" class = \"breadcrumb-a\">XLRStats</a><span class=\"breadcrumb-a\"> : </span>";
} elseif ($_SERVER['PHP_SELF'] == GetFileDir($_SERVER['PHP_SELF']) . "build.php") {
    echo "<a href=\"" . $link . "\" class = \"breadcrumb-a\">XLRStats</a><span class=\"breadcrumb-a\"> : </span><a href=\"" . baselink() . "\" class = \"breadcrumb-a\">Signature Builder</a><span class=\"breadcrumb-a\"> : </span>";
    //echo "<a href=\"http://" . $_SERVER['HTTP_HOST'] . GetFileDir($_SERVER['PHP_SELF']) . "\" class = \"breadcrumb-a\">XLRStats</a><span class=\"breadcrumb-a\"> : </span><a href=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "\" class = \"breadcrumb-a\">Signature Builder</a><span class=\"breadcrumb-a\"> : </span>";
}
if (isset($myplayerid)) {
    echo "<a href=\"{$link}?func=player&playerid={$myplayerid}&config={$currentconfignumber}\" class = \"breadcrumb-a\">MyStats</a><span class=\"breadcrumb-a\"> : </span>";
}
if (strlen($statstitle) > 30 && $disable_configpicker != 1) {
    $statstitle = substr($statstitle, 0, 30) . "...";
}
echo "<a class = \"breadcrumb-b\">{$statstitle}</a>";
//echo $xlrstats_url;
//echo $_SERVER['PHP_SELF'];
//echo $_SERVER['HTTP_HOST'];
//echo GetFileDir($_SERVER['PHP_SELF']);
echo "</font>";
Exemple #9
0
    return $filename2;
}
define('INCHARBROWSER', true);
include_once "include/config.php";
include_once "include/language.php";
include_once "include/functions.php";
include_once "include/global.php";
if (!SERVER_HAS_GD) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_NO_GD']);
}
//drop page
$d_title = " - " . $language['PAGE_TITLES_SIGBUILD'];
include "include/header.php";
$template->set_filenames(array('settings' => 'settings_body.tpl'));
$template->set_filenames(array('sigbuild' => 'signature_builder_body.tpl'));
$template->assign_vars(array('SIGNATURE_DIR' => "http://" . $_SERVER['HTTP_HOST'] . GetFileDir($_SERVER['PHP_SELF']), 'CAN_CHANGE_FONT_SIZE' => SERVER_HAS_FREETYPE ? "" : "Disabled", 'L_SIGNATURE_BUILDER' => $language['SIGNATURE_SIGNATURE_BUILDER'], 'L_NAME' => $language['SIGNATURE_NAME'], 'L_FONT_ONE' => $language['SIGNATURE_FONT_ONE'], 'L_FONT_SIZE_ONE' => $language['SIGNATURE_FONT_SIZE_ONE'], 'L_FONT_COLOR_ONE' => $language['SIGNATURE_FONT_COLOR_ONE'], 'L_FONT_SHADOW_ONE' => $language['SIGNATURE_FONT_SHADOW_ONE'], 'L_FONT_TWO' => $language['SIGNATURE_FONT_TWO'], 'L_FONT_SIZE_TWO' => $language['SIGNATURE_FONT_SIZE_TWO'], 'L_FONT_COLOR_TWO' => $language['SIGNATURE_FONT_COLOR_TWO'], 'L_FONT_SHADOW_TWO' => $language['SIGNATURE_FONT_SHADOW_TWO'], 'L_EPIC_BORDER' => $language['SIGNATURE_EPIC_BORDER'], 'L_STAT_BORDER' => $language['SIGNATURE_STAT_BORDER'], 'L_STAT_COLOR' => $language['SIGNATURE_STAT_COLOR'], 'L_STATS' => $language['SIGNATURE_STATS'], 'L_MAIN_BORDER' => $language['SIGNATURE_MAIN_BORDER'], 'L_MAIN_BACKGROUND' => $language['SIGNATURE_MAIN_BACKGROUND'], 'L_MAIN_COLOR' => $language['SIGNATURE_MAIN_COLOR'], 'L_MAIN_SCREEN' => $language['SIGNATURE_MAIN_SCREEN'], 'L_PREVIEW' => $language['SIGNATURE_PREVIEW'], 'L_CREATE' => $language['SIGNATURE_CREATE'], 'L_BBCODE' => $language['SIGNATURE_BBCODE'], 'L_HTML' => $language['SIGNATURE_HTML'], 'L_NEED_NAME' => $language['SIGNATURE_NEED_NAME']));
//pull font files
if (SERVER_HAS_FREETYPE) {
    $filehandle = opendir("./fonts");
} else {
    $filehandle = opendir("./fontsold");
}
while (false != ($file = readdir($filehandle))) {
    $name = explode(".", $file);
    if ($name[0]) {
        $template->assign_block_vars("font", array('TEXT' => $name[0], 'VALUE' => $name[0]));
    }
}
closedir($filehandle);
//pull epic background files
$template->assign_block_vars("epicborders", array('TEXT' => $language['SIGNATURE_OPTION_EPIC'], 'VALUE' => 0));