Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user_agent = strtolower ( $_SERVER['HTTP_USER_AGENT'] );
- if ( !preg_match ( "/phone|iphone|itouch|ipod|symbian|android|htc_|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/", $user_agent ) )
- {
- ?>
- <!--===========================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
- if(isset($_SESSION["guid"])==true) {$ses=$_SESSION["guid"]; } else {$ses=0;}
- if(!function_exists("freichatx_get_hash")){
- function freichatx_get_hash($ses){
- if(is_file("/home/demyx.com/public_html/freichat/hardcode.php")){
- require "/home/demyx.com/public_html/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://demyx.com/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
- <link rel="stylesheet" href="http://demyx.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
- <!--===========================FreiChatX=======END=========================-->
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement