0 Members and 1 Guest are viewing this topic.
if(USER_IS_LOGGED_IN){ $ses = LOGGED_IN_USERID; //tell freichat the userid of the current user setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code}else { $ses = null; //tell freichat that the current user is a guest setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code}
/* FreiChat STARTS HERE */if($Username_And_Password_Match){ $_SESSION['UserId'] = $users['id']; // Modify to suit your requirements$ses = null; // Return null if user is not logged in if(isset($_SESSION['UserId'])){ if($_SESSION['UserId'] != null) // Here null is guest { $ses=$_SESSION['UserId']; //LOOK, now userid will be passed to FreiChat } } }if(!function_exists("freichatx_get_hash")){function freichatx_get_hash(){ if(is_file("http://*****.tk/freichat/hardcode.php")){ require "http://*****.tk/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;}}/* FreiChat ENDS HERE */
$ses = LOGGED_IN_USERID; //tell freichat the userid of the current user setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code}else { $ses = null; //tell freichat that the current user is a guest setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code