$sUserAgent = "FormMail/{$FM_VERS} (from www.tectite.com)";
if (DEBUG) {
    error_reporting(E_ALL);
    // trap everything!
    if (IsPHPAtLeast("5.0.0")) {
        ini_set("display_errors", "stdout");
    } else {
        ini_set("display_errors", "1");
    }
    ini_set("display_startup_errors", "1");
    assert_options(ASSERT_ACTIVE, true);
    assert_options(ASSERT_BAIL, true);
    LoadLanguage();
} else {
    $iOldLevel = error_reporting(E_ALL ^ E_WARNING);
    LoadLanguage();
    //
    // report everyting except warnings and notices
    //
    error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
}
function SetRealDocumentRoot()
{
    global $aServerVars, $REAL_DOCUMENT_ROOT;
    if (isset($aServerVars['SCRIPT_FILENAME'])) {
        $REAL_DOCUMENT_ROOT = $aServerVars['SCRIPT_FILENAME'];
    } elseif (isset($aServerVars['PATH_TRANSLATED'])) {
        $REAL_DOCUMENT_ROOT = $aServerVars['PATH_TRANSLATED'];
    } else {
        $REAL_DOCUMENT_ROOT = "";
    }
Exemplo n.º 2
0
build_champ_profile()
		-gets and formats the data for members acrade stats and the arcade popup window

template_poparc_stats()
		-the output for the popup

Arcade_pro_stats()
		-sets up the popup window

hhmmss()
		-turns seconds in to readable time

/********************************************************************************/
//Make sure we have language
LoadLanguage('Arcade');
global $sourcedir;
require_once $sourcedir . '/Subs-Arcade.php';
loadArcadeSettings();
function arcade_champs_post_profile($message)
{
    global $context, $settings, $scripturl, $sourcedir, $arcSettings, $txt, $user_info;
    if ($user_info['id'] != 0) {
        $icon_type = $arcSettings['arcade_champion_pp'];
        if (!$message['member']['is_guest']) {
            echo '&nbsp;<a href="#" onclick="window.open(\'', $scripturl, '?action=arcade;sa=pro_stats;ta=', $message['member']['id'], '\',\'PopupWindow\',\'height=300,width=700,scrollbars=1\');return false;"><img src="' . $settings['images_url'] . '/arc_icons/arc.gif" width="18" height="18" border="0" alt="Stats" title="' . $txt['arcade_champions_stats'] . '" ></a>';
            if ($icon_type != 2) {
                if (@is_array($context['arcade']['championsGold'][$message['member']['id']])) {
                    $k = 0;
                    $j = 0;
                    echo $icon_type == 1 ? "<br /><br />" . $txt['arcade_champions_cho'] . '<br />' : "<br /><br />" . $txt['arcade_champions_tro'] . '<br />';