Skip to content

Instantly share code, notes, and snippets.

@Zodzie
Created July 6, 2016 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zodzie/d85b94da79cb71c5c2fa9e4a2ccf37ac to your computer and use it in GitHub Desktop.
Save Zodzie/d85b94da79cb71c5c2fa9e4a2ccf37ac to your computer and use it in GitHub Desktop.
<!--==========================FreiChatX===START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->
<?php
global $current_user;
get_currentuserinfo();
$ses=$current_user->ID;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/var/www/html/home/freichat/hardcode.php")){
require "/var/www/html/home/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
}
return 0;
}
}
?>
<script type="text/javascript" language="javascipt"
src="http://kloutkloud.com/home/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>">
</script><link rel="stylesheet" href="http://kloutkloud.com/home/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX====END=========================-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment