1
jrjperu
live help
  • 2005/3/15 20:54

  • jrjperu

  • Just popping in

  • Posts: 11

  • Since: 2004/1/14


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);


}

?>

















: 
" onclick="envia()" style="cursor:hand; margin:1; border-width:1; border-style:solid;">


" onclick="save()" style="cursor:hand; margin:1; border-width:1; border-style:solid;">    " onclick="sair()" style="cursor:hand; margin:1; border-width:1; border-style:solid;">







-----------------------------------------------------------
file ocupado.php
-----------------------------------------------------------
//include("patch.php");
include("config.php");
include $lang;
?>



<? echo "$string_4"; ?>

































 



 





 




 " 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"; ?>.......................................................................................




































 



:   



 



" onclick="window.location = 'chat.php?action=novo&nome='+converte_string(nome.value)" style="cursor:hand; margin:1; border-width:1; border-style:solid;">
  
  " onclick="window.close()" style="cursor:hand; margin:1; border-width:1; border-style:solid;">




Powered
By Xoops©




 






-----------------------------------------------------------
file pull.php
-----------------------------------------------------------

//include("patch.php");
include("config.php");
include $lang;
?>



<? echo "$string_4 - $string_21"; ?>..........






<br> <body><br><br> <p>Quetions.</p><br><br> </body><br>




-----------------------------------------------------------
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]

\n";
exit;
}else{
print "

$string_24: [$string_26]\n";
exit;
}
}else{
print "

$string_22";
print "
$string_23

";
exit;
}


?>




-----------------------------------------------------------
File status_image.php
-----------------------------------------------------------




----------------------------------------------------------
file vida.php
----------------------------------------------------------
1059945722

----------------------------------------------------------

file vidativa.php
----------------------------------------------------------










if ( file_exists( "transcricao.php" )){
$tp = time();
$fp = fopen ("vida.php", "w+");
fwrite ($fp, $tp);
fclose ($fp);
}


if ( file_exists( "fecha_janela.php" )){
$un = unlink ("fecha_janela.php");
print " \n";
exit;
}

?>




2
tripmon
Re: live help
  • 2005/3/15 22:39

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


Wha????

Login

Who's Online

430 user(s) are online (337 user(s) are browsing Support Forums)


Members: 0


Guests: 430


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits