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

  • jrjperu

  • Just popping in

  • Posts: 11

  • Since: 2004/1/14


file fechar.php
---------------------------------------------------------
$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
if(!isset($action)){
$action = "";
}
include("config.php") ;
include $lang;
?>






if ($action == "fechar") {
$fp = fopen ("status_image.php", "w+");
fwrite ($fp, "

");
fclose ($fp);
//printa
print "

";
echo "";
exit;
}
////////////////////////////////////////////////////////////////////////////////

?>




----------------------------------------------------------
file fechar2.php
----------------------------------------------------------

$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
if(!isset($action)){
$action = "";
}
include("config.php");
include $lang;

?>





if ($action == "fechar_usuario") {
if ( !file_exists( "alerta2.php" )){
if ( file_exists( "transcricao.php" )){
$un = unlink ("transcricao.php");
$un = unlink ("transcricao2.php");
$un = unlink ("transcricao3.php");
}
if ( file_exists( "alerta.php" )){
$un = unlink ("alerta.php");
}
}
if ( file_exists( "transcricao.php" )){

$fp = fopen ("transcricao.php", "r");
$fs = filesize ("transcricao.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);
$mensagem_formatada = "ChatAdmin : " . $string_37 . "";
$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 = "ChatAdmin : " . $string_37 . "";
$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 = "ChatAdmin : " . $string_37 . "";
$fp = fopen ("transcricao3.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);


}
print "

";
echo "";
exit;
}
?>


-----------------------------------------------------------
file index.php
----------------------------------------------------------

$erro1 = ini_set ("display_errors", "0");
$erro2 = ini_set ("error_reporting", "2");

include("config.php");
include $lang;
$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
if (!isset($action)){
print "

$string_4



 


 
























$string_5



$string_1:
  $string_2:     


 



 




 




\n";
exit ;
}
if ($action == "login" ) {
if ($login != $loginf || $senha != $senhaf ) {
print "

$string_4


 





















$string_5



$string_6


 



 




 



\n";
exit ;
}
}
?>


<? echo "$string_4"; ?>








if ($action == "fechar" ) {

$fp = fopen ("fecha_janela.php", "w+");
fwrite ($fp, " ");
fclose ($fp);

print "

$string_8

\n";
}

if ($action == "monitorar" ) {
echo "";
$fp = fopen ("status_image.php", "w+");
fwrite ($fp, "1\n












2.

 







3.











 






 






 






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








 






-----------------------------------------------------------file language_english.php
-----------------------------------------------------------

$string_1 = "Login";
$string_2 = "Password";
$string_3 = "Enter";
$string_4 = "M i n i H e l p !";
$string_5 = "Admin";
$string_6 = "Login or Password Incorrect";
$string_7 = "Go Back";
$string_8 = "Window of the customer closed successfully!";
$string_9 = "Click on the button below to activate the monitor window to receive incoming calls";
$string_10 = "Exit";
$string_11 = "To activate Monitor of Calls";
$string_12 = "Current status of the icons: ONLINE or OFFLINE (When you activate the monitor of calls the status is ONLINE,when closing the window of the monitor of calls the status is OFFLINE.)";
$string_13 = "Refresh Status";
$string_14 = "Copy the the code below and paste it into your HTML page(s) that you desire the icon (ONLINE/OFFLINE) to appear. This code must be inserted between tags";
$string_15 = "Begin Code";
$string_16 = "End Code";
$string_17 = "If you have followed the steps thus far your chat system should be active and functioning!";
$string_18 = "Attention";
$string_19 = "Note: Once both windows are closed (visitor and operator windows) the system will be available again for a new chat session. If you to need to force the closing of the visitor window then use the button below.";
$string_20 = "To Close Window of Chat of the Visitor";
$string_21 = "Monitor of Calls";
$string_22 = "Monitoring";
$string_23 = "(Keep this window open and minimized for chat session)";
$string_24 = "Visitor Calling";
$string_25 = "Click for chat!";
$string_26 = "Accept";
$string_27 = "Your name";
$string_28 = "Guest";
$string_29 = "Chat Client";
$string_30 = "Message";
$string_31 = "Send";
$string_32 = "The Customer gave up the Call";
$string_33 = "Close this Window!";
$string_34 = "Chat Operator";
$string_35 = "This Session was locked up. Please close its window of chat!";
$string_36 = "Click to send a message!";
$string_37 = "The User locked up the session. Please close that window of chat!";
$string_38 = "Click for Live Help!";
$string_39 = "One moment please...";
$string_40 = "How may I help you?";
$string_41 = "Operator";
$string_42 = "Welcome to our Live Chat in real time!";
$string_43 = "All operators are busy, please try again later!";
$string_44 = "Operators Offline!";
$string_45 = "Save all conversation";
?>

-----------------------------------------------------------
File o_chat.php
-----------------------------------------------------------

$glob = get_cfg_var (register_globals);
if($glob != true){
include("patch.php");
}
include("config.php") ;
include $lang;

if ( !file_exists( "transcricao.php" )){
echo "





";
print "

$string_32.
$string_33

";

exit;
}
// grava o arquivo para parar o sinal

$fp = fopen ("avisado.php", "w+");
fwrite ($fp, "Test");
fclose ($fp);


$fp = fopen ("transcricao.php", "r");
$fs = filesize ("transcricao.php");
$bytes = $fs;
$buffer = fread($fp, $bytes);
fclose ($fp);

if ($string_40 != "") {
$mensagem_formatada = "" . $string_41 . " : " . $string_40 . "
\n";
$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);

if ($string_40 != "") {
$mensagem_formatada = "" . $string_41 . " : " . $string_40 . "
";
$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);

if ($string_40 != "") {
$mensagem_formatada = "" . $string_41 . " : " . $string_40 . "
";
$fp = fopen ("transcricao3.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "
");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
}





/*Cria o arquivo de aviso2 */
$fp = fopen ("alerta2.php", "w+");
fwrite ($fp, " ");
fclose ($fp);

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









Login

Who's Online

192 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

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

Latest GitHub Commits