Created
July 6, 2016 01:30
-
-
Save Zodzie/d85b94da79cb71c5c2fa9e4a2ccf37ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--==========================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