I am trying to do a custom install for my game site but i keep getting this "hardcode.php not found" error printed at the top of the screen and I simply cannot figure out the issue. I've changed permission for all files in the freichat folder (which is in my root directory) to 755 but no luck. I placed the code in my header.php, I would appreciate any help I could get. I know this is a free version I'm trying to install and I wouldnt mind buying the full version if I knew for sure I would get the help needed to install it properly since it would be a custom install. BTW this is on a subdomain called playground which is my test server in case its important.
<?php class headers {
function startheaders() {
global $ir, $set;
echo <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script src="js/jquery-1.7.2.min.js"></script><script src="js/lightbox.js"></script><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>{$set['game_name']} - Get Your Game On! </title>
<meta name="keywords" content="RPG, Online Mafia Game, Online Crime Game, Criminal Game">
<meta name="description" content=" {$set['game_name']} - Online Mafia Game ">
<meta name="author" content="Mayhem Productions">
<meta name="copyright" content="Copyright {$_SERVER['HTTP_HOST']} ">
<link type="text/css" rel="stylesheet" href="/style/style.css">
<link rel="SHORTCUT ICON" href="favicon.ico">
<link href="css/lightbox.css" rel="stylesheet">
<!--===========================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 $ses=$userid;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home1/darkmayh/public_html/playground/freichat/hardcode.php")){
require "/home1/darkmayh/public_html/playground/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');";
}
return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="freichat/client/main.php?id=<?php%20echo%20%24ses;?>&xhash=<?php%20echo%20freichatx_get_hash(%24ses);%20?>"></script><link rel="stylesheet" href="freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
I am trying to do a custom install for my game site but i keep getting this "hardcode.php not found" error printed at the top of the screen and I simply cannot figure out the issue. I've changed permission for all files in the freichat folder (which is in my root directory) to 755 but no luck. I placed the code in my header.php, I would appreciate any help I could get. I know this is a free version I'm trying to install and I wouldnt mind buying the full version if I knew for sure I would get the help needed to install it properly since it would be a custom install. BTW this is on a subdomain called playground which is my test server in case its important.
&lt;?php
class headers {
function startheaders() {
global $ir, $set;
echo &lt;&lt;&lt;EOF
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;script src="js/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
&lt;script src="js/lightbox.js"&gt;&lt;/script&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;{$set['game_name']} - Get Your Game On! &lt;/title&gt;
&lt;meta name="keywords" content="RPG, Online Mafia Game, Online Crime Game, Criminal Game" /&gt;
&lt;meta name="description" content=" {$set['game_name']} - Online Mafia Game " /&gt;
&lt;meta name="author" content="Mayhem Productions" /&gt;
&lt;meta name="copyright" content="Copyright {$_SERVER['HTTP_HOST']} " /&gt;
&lt;link type="text/css" rel="stylesheet" href="/style/style.css" &gt;
&lt;link rel="SHORTCUT ICON" href="favicon.ico" /&gt;
&lt;link href="css/lightbox.css" rel="stylesheet" /&gt;
&lt;!--===========================FreiChatX=======START=========================--&gt;
&lt;!-- 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 --&gt;
&lt;?php
$ses=$userid;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home1/darkmayh/public_html/playground/freichat/hardcode.php")){
require "/home1/darkmayh/public_html/playground/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "&lt;script&gt;alert('module freichatx says: hardcode.php file not
found!');&lt;/script&gt;";
}
return 0;
}
}
?&gt;
&lt;script type="text/javascript" language="javascipt" src="freichat/client/main.php?id=&lt;?php echo $ses;?&gt;&xhash=&lt;?php echo freichatx_get_hash($ses); ?&gt;"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"&gt;
&lt;!--===========================FreiChatX=======END=========================--&gt;
&lt;/head&gt;
&lt;body&gt;