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

  • jrjperu

  • Just popping in

  • Posts: 11

  • Since: 2004/1/14


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

</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
if ($action == "fechar") {
$fp = fopen ("status_image.php", "w+");
fwrite ($fp, "
<!--
var $var_status_image = \"<a href='mailto:$mail'><img src=\\\"$url_chat/offline.jpg\\\" border=0 alt=\\\"$string_36\\\"></a>\" ;
document.write( $var_status_image ) ;
//-->
");
fclose ($fp);
//printa
print "<p align=\"center\"><font face=\"Verdana\" size=\"1\"><b></b></font>";
echo "<SCRIPT>window.close();</SCRIPT>";
exit;
}
////////////////////////////////////////////////////////////////////////////////

?>
</BODY>
</HTML>


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

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

?>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
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 = "<font color=\"#" . $cor_usuario . "\" face=\"Verdana\" size=\"2\"><b>ChatAdmin</b> : " . $string_37 . "</font>";
$fp = fopen ("transcricao.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "<br>");
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 = "<font color=\"#" . $cor_usuario . "\" face=\"Verdana\" size=\"2\"><b>ChatAdmin</b> : " . $string_37 . "</font>";
$fp = fopen ("transcricao2.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "<br>");
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 = "<font color=\"#" . $cor_usuario . "\" face=\"Verdana\" size=\"2\"><b>ChatAdmin</b> : " . $string_37 . "</font>";
$fp = fopen ("transcricao3.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "<br>");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);


}
print "<p align=\"center\"><font face=\"Verdana\" size=\"1\"><b></b></font>";
echo "<SCRIPT>window.close();</SCRIPT>";
exit;
}
?>
</BODY>
</HTML>
-----------------------------------------------------------
file index.php
----------------------------------------------------------

<?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 "<html>
<head>
<title>$string_4</title>
<SCRIPT LANGUAGE=\"JavaScript\">
function set_login() {
window.location = 'index.php?action=login&mistura=5d432df18df454df56d4fad54fa5d4fad65f4ad813f1a5sd&loginf='+loginf.value+'&mistura2=5d432df18df454df56d4fad54fa5d4fad65f4ad813f1a5sd&senhaf='+senhaf.value;
}
</SCRIPT>
</head>
<body bgcolor=\"white\" text=\"black\" link=\"blue\" vlink=\"purple\" alink=\"red\">
<p>&nbsp;</p>
<p>&nbsp;</p>
<table align=\"center\" border=\"1\" cellspacing=\"0\" width=\"701\" bordercolordark=\"white\" bordercolorlight=\"black\">
<tr>
<td width=\"695\" align=\"center\">
<table border=\"0\" width=\"686\">
<tr>
<td width=\"680\">
<p align=\"center\"><br><img src=\"chat_logo.jpg\" width=\"150\" height=\"57\" border=\"0\"></p>
</td>
</tr>
<tr>
<td width=\"680\">
<p align=\"center\"><b><font face=\"Verdana\" size=\"4\">$string_5</font></b></p>
</td>
</tr>
<tr>
<td width=\"680\">
<p align=\"center\"><font face=\"Verdana\" size=\"2\">$string_1:</font><input type=\"text\" name=\"loginf\" style=\"border-width:1; border-style:solid;\" size=\"20\">
&nbsp;&nbsp;<font face=\"Verdana\" size=\"2\">$string_2: </font><input type=\"password\" name=\"senhaf\" style=\"border-width:1; border-style:solid;\" size=\"20\">&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" name=\"Entrar\" value=\"$string_3\" onclick=\"set_login()\" style=\"cursor:hand; margin:1; border-width:1; border-style:solid;\">
</p>
<p align=\"center\">&nbsp;</p>
</td>
</tr>
<tr>
<td width=\"680\">
<p>&nbsp;</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
</body>

</html>\n";
exit ;
}
if ($action == "login" ) {
if ($login != $loginf || $senha != $senhaf ) {
print "<html>
<head>
<title>$string_4</title>
</head>
<body bgcolor=\"white\" text=\"black\" link=\"blue\" vlink=\"purple\" alink=\"red\">
&nbsp;<table align=\"center\" border=\"1\" cellspacing=\"0\" width=\"701\" bordercolordark=\"white\" bordercolorlight=\"black\">
<tr>
<td width=\"695\" align=\"center\">
<table border=\"0\" width=\"686\">
<tr>
<td width=\"680\">
<p align=\"center\"><br><img src=\"chat_logo.jpg\" width=\"150\" height=\"57\" border=\"0\"></p>
</td>
</tr>
<tr>
<td width=\"680\">
<p align=\"center\"><b><font face=\"Verdana\" size=\"4\">$string_5</font></b></p>
</td>
</tr>
<tr>
<td width=\"680\">
<p align=\"center\"><font face=\"Verdana\" size=\"2\" color=\"#0066FF\"><b>$string_6</b></font>
</p>
<p align=\"center\">&nbsp;<input type=\"button\" name=\"Entrar\" value=\"$string_7\" onclick=\"history.back()\" style=\"cursor:hand; margin:1; border-width:1; border-style:solid;\"></p>
</td>
</tr>
<tr>
<td width=\"680\">
<p>&nbsp;</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>\n";
exit ;
}
}
?>
<html>
<head>
<title><? echo "$string_4"; ?></title>
<!-- begin codigo -->
<!-- DECRYPTED FOR YOUR PLEASURE --->
<script Language='JavaScript'>
function refresh() {
window.location = 'index.php?action=refresh';
}
function openwin2() {
window.location = 'index.php?action=monitorar';
}
function fechar() {
window.location = 'index.php?action=fechar';
}
</script>
<!-- DECRYPTED FOR YOUR PLEASURE --->
<!-- end codigo -->
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<?php
if ($action == "fechar" ) {

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

print "<p align=\"center\"><b><font face=\"Verdana\" size=\"4\">$string_8</font></b></p>\n";
}

if ($action == "monitorar" ) {
echo "<SCRIPT LANGUAGE=\"JavaScript\">\n";
echo "open(\"pull.php\",\"$var_js_window\",\"top=400,left=250,width=300,height=50\");\n";
echo "</SCRIPT>";
$fp = fopen ("status_image.php", "w+");
fwrite ($fp, "1\n
<!--
function $var_js_function() {
open(\"$url_chat/prechat.php\",\"Window130\",\"top=0,left=0,width=420,height=345\");
}
var $var_status_image = \"<a href='JavaScript:void(0)' OnClick='$var_js_function()'><img src=\\\"$url_chat/online.jpg\\\" border=0 alt=\\\"$string_38\\\"></a>\" ;
document.write( $var_status_image ) ;
");
fclose ($fp);
}

?>
<table align="center" border="1" cellspacing="0" width="701" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="695" align="center">
<table border="0" width="686">
<tr>
<td width="680">
<p align="center"><img src="chat_logo.jpg" width="150" height="57" border="0"></p>
</td>
</tr>
<tr>
<td width="680">
<table align="center" border="0" width="680">
<tr>
<td width="579">
<p><b><font face="Verdana" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo "$string_5"; ?>
</font></b></p>
</td>
<td width="85">
<p align="center"><input type="button" name="Entrar" value=" <? echo "$string_10"; ?> " onclick="window.location='<? echo $pagina_inicial; ?>'" style="cursor:hand; margin:1; border-width:1; border-style:solid;"></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="680">
<p align="center"><font face="Verdana" size="2">1.<? echo "$string_9"; ?></font> &nbsp;&nbsp;</p>
<p align="center">&nbsp;<input type="button" name="Entrar" value="<? echo "$string_11"; ?>" onclick="openwin2()" style="cursor:hand; margin:1; border-width:1; border-style:solid;"></p>
</td>
</tr>
<tr>
<td width="680">
<hr size="1" color="black"> </td>
</tr>
<tr>
<td width="680">
<p align="center"><font face="Verdana" size="2"><? echo "$string_12"; ?><br><br></font>
<input type="button" name="Entrar" value="<? echo "$string_13"; ?>" onclick="refresh()" style="cursor:hand; margin:1; border-width:1; border-style:solid;">&nbsp;&nbsp;&nbsp;<!-- Inicio Código Chat-->
<script language="JavaScript" src="status_image.php"></script>
<!-- Fim Código Chat --></p>
</td>
</tr>
<tr>
<td width="680">
<hr size="1" color="black"> </td>
</tr>
<tr>
<td width="680">
<p align="center"><font face="Verdana" size="2">2. <? echo "$string_14"; ?> <body> </body><br><br><textarea name="formtextarea1" rows="6" cols="100" style="font-family:Verdana; font-size:9pt;"><!-- <? echo "$string_15 $string_4"; ?> -->
<script language="JavaScript" src="<? echo $url_chat; ?>status_image.php"></script>
<!-- <? echo "$string_16 $string_4"; ?> --></textarea>&nbsp;</font></p>
</td>
</tr>
<tr>
<td width="680">
<p align="center"><font face="Verdana"><span style="font-size:12pt;"><b><br>3.
<? echo "$string_17"; ?></b></span></font></p>
</td>
</tr>
<tr>
<td width="680">
<hr size="1" color="black"> </td>
</tr>
<tr>
<td width="680">
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td width="680">
<p align="center">&nbsp;<font face="Verdana" size="2" color="#0066FF"><b><? echo "$string_18"; ?></b></font></p>
</td>
</tr>
<tr>
<td width="680">
<p align="center"><font face="Verdana" size="2">&nbsp;
<? echo "$string_19"; ?><br></font></p>
</td>
</tr>
<tr>
<td width="680">
<p align="center"><input type="button" name="Entrar" value="<? echo "$string_20"; ?>" onclick="fechar()" style="cursor:hand; margin:1; border-width:1; border-style:solid;"></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>


-----------------------------------------------------------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
-----------------------------------------------------------
<?php

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

if ( !file_exists( "transcricao.php" )){
echo "<br><br><br><br><br><br>";
print "<p align=\"center\"><font face=\"Verdana\" size=\"1\"><b>$string_32. <br> $string_33</b></font></p>";

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 = "<font color=\"#" . $cor_operador . "\" face=\"Verdana\" size=\"2\"><b>" . $string_41 . "</b> : " . $string_40 . "</font><br>\n";
$fp = fopen ("transcricao.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "<br>");
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 = "<font color=\"#" . $cor_operador . "\" face=\"Verdana\" size=\"2\"><b>" . $string_41 . "</b> : " . $string_40 . "</font><br>";
$fp = fopen ("transcricao2.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "<br>");
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 = "<font color=\"#" . $cor_operador . "\" face=\"Verdana\" size=\"2\"><b>" . $string_41 . "</b> : " . $string_40 . "</font><br>";
$fp = fopen ("transcricao3.php", "w+");
fwrite ($fp, $buffer);
fwrite ($fp, "<br>");
fwrite ($fp, $mensagem_formatada .
"
");
fclose ($fp);
}





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

?>
<HTML><HEAD><TITLE><? echo "$string_4"; ?> - <? echo "$string_34"; ?> ............................................................</TITLE>
</HEAD>

<frameset rows="*,80,1" framespacing="0" border="0" frameborder="0">
<frame name="cima" scrolling="auto" noresize src="transcricao2.php">
<frame name="o_baixo" scrolling="no" noresize src="o_chat_baixo.php?nome=<? echo urlencode($string_41); ?>">
<frame name="superbaixo" scrolling="no" noresize src="o_vidativa.php">

</frameset>
</HTML>

Login

Who's Online

177 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits