SYSTEM: User ". $_SESSION['name'] ." has left the chat session.
"); //fwrite($fp, "
..............................................................................................................................
"); fclose($fp); // Text To Phone $name = $_SESSION['name']; $tophone = "7187174431@tmomail.net"; $message = "$Has left the chat session."; $from = "info@coomputerexpert.biz"; mail("$tophone", "$name. $message", "Chat Ends", "From: $from"); /* $name = $_SESSION['name']; $tophone = "7187174431@tmomail.net"; $subject = "$name"; $message = "$text"; $from = "info@coomputerexpert.biz"; mail("$tophone", "$subject", "$message", "From: $from"); */ // Ending Session session_destroy(); // Write to log in Users on post $fp = fopen("users.html", 'a'); fwrite($fp, "
".$_SESSION['name']." Left the chat
"); fclose($fp); header("Location: index.php"); //Redirect the user } function loginForm(){ $error_output = ""; if(isset($_POST['enter'])){ $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $reason = $_POST['reason']; $priority = $_POST['priority']; if ((empty($name))) { $error_output .= '
Please type in a name
'; } if ((empty($phone))) { $error_output .= '
Please type in your phone
'; } if ((empty($email))) { $error_output .= '
Please type in your Email
'; } // $name = $_SESSION['name']; // Just to see what lods i added this } echo'

Please enter your info to continue:



' . $error_output . ' '.$errornofill.'
'; } if(isset($_POST['enter'])){ // All Base String after submitting Enter require 'includes/set_index_code.php'; // Cant pass with out all 3 inputs enterd if($_POST['email'] != ""){ if($_POST['phone'] != ""){ if($_POST['name'] != ""){ //Defult if (($_POST['name'] != "") || ($_POST['phone']) || ($_POST['email'])) { $_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name'])); //Sets Session Name to start chat. // Text To Phone $name = $_SESSION['name']; $tophone = "7187174431@tmomail.net"; $message = "Has joined the chat. $reason $phone $email "; $from = "info@coomputerexpert.biz"; mail("$tophone", "$name. $message", "Chat Started $priority ", "From: $from"); // Friendly Chat Login Messages if ($_POST['reason'] == "Friendly Chat") { //$if_newLine .= "$new_line"; // This willl create a new line $reason_output = ''.$img_hi.' wanna chat with the community '.$img_question.''; $PCHelp_output = ""; $UnderLine = "$Underline"; } else if ($_POST['reason'] == "Site Support") { $reason_output = "Site Support"; $PCName_output ="PC EXPERT: "; $PCHelp_output = 'Hi There. '.$img_wave.' How can i be in any help today'.$img_question.''; } else if ($_POST['reason'] == "Sale") { $if_newLine .= "$new_line"; // This willl create a new line $reason_output = ' '.$img_sorry.' No Sales right now.'.$img_thumbsdown.' Please come back later.'.$img_excl.''; $PCHelp_output = ""; } else if ($_POST['reason'] == "IT Repair") { $reason_output = 'Our staff just got on alert.'.$img_book.' Please allow 5 minutes for a reply'.$img_excl.''; $PCName_output ="PC EXPERT: "; $PCHelp_output = 'Hi There. '.$img_wave.' How can i be in any help today'.$img_question.''; } //////////////////////////////////////////// else if ($_POST['priority'] == "Low") { $priority_output = ""; } else if ($_POST['priority'] == "Medium") { $priority_output = "Medium"; } else if ($_POST['priority'] == "High") { $priority_output = "High"; } else if ($_POST['priority'] == "Extreme") { $priority_output = "Extreme"; } $fp = fopen("log.html", 'a'); fwrite($fp, ''.$DIV.$B.$green.$_SESSION['name'].': '.$color_end.$blue.' Has joined the chat. '.$color_end.$b.$if_newLine.''); fwrite($fp, ''.$B.$red.'SYSTEM: '.$color_end.$blue.$reason_output. $color_end.$b.$br.$div.''); fwrite($fp, ''.$DIV.$B.$red.$PCName_output.' '.$color_end.$blue.$PCHelp_output.$color_end.$b.$UnderLine.' '.$br.$div.''); //fwrite($fp, ''.$UnderLine.''); fclose($fp); /* fwrite($fp, '
SYSTEM: '.$reason_output.'
'); $fp = fopen("log.html", 'a'); fwrite($fp, "
".$_SESSION['name'].": Has joined the chat.
"); fwrite($fp, '
SYSTEM: '.$reason_output.'
'); fwrite($fp, "
PC EXPERT: How can i help you today?
"); fwrite($fp, "
..............................................................................................................................
"); fclose($fp); */ // Log Remote Server Ip Address include 'browser.php'; $fp = fopen("OLD.LOG/log.all.IP.html", 'a'); fwrite($fp, "
".$_SESSION['name']." (".date("g:i A m/j/y").") ".$_SERVER['REMOTE_ADDR']." "); fwrite($fp, " ".$obj->showInfo('browser')." ".$obj->showInfo('version')." ".$obj->showInfo('os')."
"); fwrite($fp, " "); // echo $obj->showInfo('browser'); // get browser version // echo $obj->showInfo('version'); // get Operating system // echo $obj->showInfo('os'); // echo $_SERVER['SERVER_ADDR']; fclose($fp); // Write to log in Users on post $fp = fopen("users.html", 'a'); // fwrite($fp, "
".$_SESSION['name']." ".stripslashes(htmlspecialchars($text))."
"); fwrite($fp, "
".$_SESSION['name']." Joins the chat
" ); fwrite($fp, " "); fclose($fp); } } } else{ echo '' ; // echo '
On place No fill entered
' ; // $errornofill = "
On place No fill entered
"; } } } ?> Chat - PC EXPERT<!--Customer Module-->
computerexpert.biz computerexpert.biz computerexpert.biz computerexpert.biz computerexpert.biz computerexpert.biz computerexpert.biz
computerexpert.biz

0){ $handle = fopen("users.html", "r"); $contents = fread($handle, filesize("users.html")); fclose($handle); echo $contents; } ?>
0){ $handle = fopen("log.html", "r"); $contents = fread($handle, filesize("log.html")); fclose($handle); echo $contents; } ?>

More Smiles