'.$avatar.''; else $avatar = ''; // Filter direction if($direction != 'rtl') $direction = 'ltr'; // Generates an human-readable date $date = explode('T', $date); $date = explode('-', $date[0]); $date = $date[2].'/'.$date[1].'/'.$date[0]; // Generate some values $content_dir = '../store/logs/'; $filename = 'chat_log-'.md5($xid.time()); $filepath = $content_dir.$filename.'.html'; // Generate Jappix logo Base64 code $logo = base64_encode(file_get_contents(JAPPIX_BASE.'/img/sprites/logs.png')); // Create the HTML code $new_text_inter = '