File o_chat_baixo.php
-----------------------------------------------------------
$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
if(!isset($action)){
$action = "";
}
include("config.php") ;
include $lang;
if ($action == "sair"){
$fp = fopen ("transcricao.php", "r");
$fs = filesize ("transcricao.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
$mensagem_formatada = "
" . $string_41 . " : " . $string_35. "";
$fp = fopen ("transcricao.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
// Duplica
$fp = fopen ("transcricao2.php", "r");
$fs = filesize ("transcricao2.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
$mensagem_formatada = "
" . $string_41 . " : " . $string_35. "";
$fp = fopen ("transcricao2.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
// Triplica
$fp = fopen ("transcricao3.php", "r");
$fs = filesize ("transcricao3.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
$mensagem_formatada = "
" . $string_41 . " : " . $string_35. "";
$fp = fopen ("transcricao3.php", "w+");
fwrite ($fp, $buffer);
//fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
print " \n";
exit;
}
if(!isset($mensagem)){
$mensagem = "";
}
if ($mensagem != "" ) {
$mensagem = str_replace("\'", "'", "$mensagem");
$mensagem = str_replace("\\\"", "\"", "$mensagem");
$fp = fopen ("transcricao.php", "r");
$fs = filesize ("transcricao.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
////////////
$numero_de_linhas = $num_linhas; //aqui entra o numero de linhas desejado
$array_chat = explode("
", $buffer);
$counter = count ($array_chat);
if($counter <= $numero_de_linhas){
$desejo = 1;
}else{
$desejo = $counter - $numero_de_linhas;
}
//echo "";
$texto = $array_chat[0] . "
"; // cabecalho
for ($i=$desejo; $i<=$counter; $i++) {
$texto .= $array_chat[$i] . "
";
};
$buffer = rtrim($texto,"
");
////////////
$mensagem_formatada = "
" . $nome . " : " . $mensagem . "";
$fp = fopen ("transcricao.php", "w");
fwrite ($fp, $buffer);
//fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
//duplica
$fp = fopen ("transcricao2.php", "r");
$fs = filesize ("transcricao2.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
////////////
$numero_de_linhas = $num_linhas; //aqui entra o numero de linhas desejado
$array_chat = explode("
", $buffer);
$counter = count ($array_chat);
if($counter <= $numero_de_linhas){
$desejo = 1;
}else{
$desejo = $counter - $numero_de_linhas;
}
//echo "";
$texto = $array_chat[0] . "
"; // cabecalho
for ($i=$desejo; $i<=$counter; $i++) {
$texto .= $array_chat[$i] . "
";
};
$buffer = rtrim($texto,"
");
////////////
$mensagem_formatada = "
" . $nome . " : " . $mensagem . "";
$fp = fopen ("transcricao2.php", "w");
fwrite ($fp, $buffer);
//fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
//triplica
$fp = fopen ("transcricao3.php", "r");
$fs = filesize ("transcricao3.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
////////////
$mensagem_formatada = "
" . $nome . " : " . $mensagem . "";
$fp = fopen ("transcricao3.php", "w");
fwrite ($fp, $buffer);
//fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
}
?>
-----------------------------------------------------------
file ocupado.php
-----------------------------------------------------------
//include("patch.php");
include("config.php");
include $lang;
?>
echo "$string_4"; ?>
| | | echo $string_43; ?> | | " onclick="window.close()" style="cursor:hand; margin:1; border-width:1; border-style:solid;">
| Powered By Xoops©
|
|
-----------------------------------------------------------
file patch.php
-----------------------------------------------------------
$erro1 = ini_set ("display_errors", "0");
$erro2 = ini_set ("error_reporting", "2");
$action = $_GET['action'];
$loginf = $_GET['loginf'];
$senhaf = $_GET['senhaf'];
$mensagem = $_GET['mensagem'];
$nome = $_GET['nome'];
?>
-----------------------------------------------------------
file phpinfo.php
-----------------------------------------------------------
phpinfo();
?>
-----------------------------------------------------------
file prechat.php
-----------------------------------------------------------
$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
include("config.php");
include $lang;
// primeiro verifica se realmente o operador está online
$texto = file ('status_image.php'); // resgata em um array o conteudo do arquivo
if($texto[0]{0} != "1"){ // operador offline
echo "\n";
echo "\n";
exit;
}
?>
echo "$string_4"; ?>.......................................................................................
-----------------------------------------------------------
file pull.php
-----------------------------------------------------------
//include("patch.php");
include("config.php");
include $lang;
?>
echo "$string_4 - $string_21"; ?>..........-----------------------------------------------------------
File pull_fechar.php
-----------------------------------------------------------
//include("patch.php");
include("config.php") ;
?>
-----------------------------------------------------------
file pull_home.php
-----------------------------------------------------------
$erro1 = ini_set ("display_errors", "0");
$erro2 = ini_set ("error_reporting", "2");
$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
include("config.php");
include $lang;
?>
echo "$string_4 - $string_21"; ?>..........include("config.php") ;
$tempo_chamadas = $tempo_chamadas * 1000;
print " \n";
$fm = filemtime ("vida.php");
$tp = time();
$df = $tp - $fm;
if ($df > $tempo){ // reinicia o chat
if ( file_exists( "transcricao.php" )){
$un = unlink ("transcricao.php");
$un = unlink ("transcricao2.php");
$un = unlink ("transcricao3.php");
}
if ( file_exists( "alerta2.php" )){
$un = unlink ("alerta2.php");
}
if ( file_exists( "avisado.php" )){
$un = unlink ("avisado.php");
}
if ( file_exists( "alerta.php" )){
$un = unlink ("alerta.php");
}
if ( file_exists( "fecha_janela.php" )){
$un = unlink ("fecha_janela.php");
}
}
if ( file_exists( "alerta2.php" )){
print "
$string_22";
print "
$string_23
";
exit;
}
if ( file_exists( "transcricao.php" )){
if ( !file_exists( "avisado.php" )){
$fp = fopen ("alerta.php", "w+");
fwrite ($fp, " ");
fclose ($fp);
print "
$string_24: [$string_26]