예제 #1
0
파일: mainfile.php 프로젝트: npds/npds_dune
function import_css($tmp_theme, $language, $site_font, $css_pages_ref, $css)
{
    return str_replace("'", "\"", import_css_javascript($tmp_theme, $language, $site_font, $css_pages_ref, $css));
}
예제 #2
0
            $thing .= "<div class='chatnom'>{$username}</div>";
        }
        $message = smilie($message);
        $chat_forbidden_words = array("'\"'i" => '&quot;', "'OxOA'i" => '', "'OxOD'i" => '', "'\n'i" => '', "'\r'i" => '', "'\t'i" => '');
        $message = preg_replace(array_keys($chat_forbidden_words), array_values($chat_forbidden_words), $message);
        $message = str_replace('"', '\\"', make_clickable($message));
        $thing .= "<div class='chattexte'>" . removeHack($message) . "</div></div>";
        $repere = $date_message;
    }
    $thing = "\"" . $thing . "\"";
}
if ($aff_entetes == "1") {
    $meta_op = true;
    include "meta/meta.php";
    $Xthing .= $l_meta;
    $Xthing .= str_replace("\n", "", import_css_javascript($tmp_theme, $language, $site_font, basename($_SERVER['PHP_SELF']), ""));
    $Xthing .= "</head><body id='chat'>";
    $Xthing = "\"" . str_replace("'", "\\'", $Xthing) . "\"";
}
$result = sql_query("SELECT DISTINCT ip FROM " . $NPDS_Prefix . "chatbox WHERE id='{$id}' and date >= " . (time() - 60 * 2) . "");
$numofchatters = sql_num_rows($result);
$rafraich_connectes = 0;
if (intval($connectes) != $numofchatters) {
    $rafraich_connectes = 1;
    if ($numofchatters == 1 or $numofchatters == 0) {
        $nbre_connectes = "'" . $numofchatters . " " . utf8_java(translate("person chatting right now.")) . " GP [{$id}]'";
    } else {
        $nbre_connectes = "'" . $numofchatters . " " . utf8_java(translate("people chatting right now.")) . " GP [{$id}]'";
    }
}
$commande = "self.location='chatrafraich.php?repere={$repere}&aff_entetes=0&connectes={$numofchatters}&id={$id}&auto={$auto}'";