FreiChat related discussions
hardcode.php not found

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=&lt;?php%20echo%20%24ses;?&gt;&amp;xhash=&lt;?php%20echo%20freichatx_get_hash(%24ses);%20?&gt;"></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 &quot;hardcode.php not found&quot; error printed at the top of the screen and I simply cannot figure out the issue. I&#039;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&#039;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. &amp;lt;?php class headers { function startheaders() { global $ir, $set; echo &amp;lt;&amp;lt;&amp;lt;EOF &amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt; &amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt; &amp;lt;head&amp;gt; &amp;lt;script src=&quot;js/jquery-1.7.2.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script src=&quot;js/lightbox.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&amp;gt; &amp;lt;title&amp;gt;{$set[&#039;game_name&#039;]} - Get Your Game On! &amp;lt;/title&amp;gt; &amp;lt;meta name=&quot;keywords&quot; content=&quot;RPG, Online Mafia Game, Online Crime Game, Criminal Game&quot; /&amp;gt; &amp;lt;meta name=&quot;description&quot; content=&quot; {$set[&#039;game_name&#039;]} - Online Mafia Game &quot; /&amp;gt; &amp;lt;meta name=&quot;author&quot; content=&quot;Mayhem Productions&quot; /&amp;gt; &amp;lt;meta name=&quot;copyright&quot; content=&quot;Copyright {$_SERVER[&#039;HTTP_HOST&#039;]} &quot; /&amp;gt; &amp;lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;/style/style.css&quot; &amp;gt; &amp;lt;link rel=&quot;SHORTCUT ICON&quot; href=&quot;favicon.ico&quot; /&amp;gt; &amp;lt;link href=&quot;css/lightbox.css&quot; rel=&quot;stylesheet&quot; /&amp;gt; &amp;lt;!--===========================FreiChatX=======START=========================--&amp;gt; &amp;lt;!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code Then remove FreiChatX tables frei_session &amp; frei_chat if necessary The best/recommended way is using the module for installation --&amp;gt; &amp;lt;?php $ses=$userid; if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;/home1/darkmayh/public_html/playground/freichat/hardcode.php&quot;)){ require &quot;/home1/darkmayh/public_html/playground/freichat/hardcode.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: hardcode.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } ?&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;freichat/client/main.php?id=&amp;lt;?php echo $ses;?&amp;gt;&amp;xhash=&amp;lt;?php echo freichatx_get_hash($ses); ?&amp;gt;&quot;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; &amp;lt;!--===========================FreiChatX=======END=========================--&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt;

The path
/home1/darkmayh/public_html/playground/freichat/hardcode.php

that exists in your above code is wrong , please correct it in your code .

The path /home1/darkmayh/public_html/playground/freichat/hardcode.php that exists in your above code is wrong , please correct it in your code .
Necessity is the mother of all inventions!

I've tried the path

freichat/hardcode.php

which is the correct path, I've even tried the complete path

dark-mayhem.net/playground/friechat/hardcode.php
and
playground.dark-mayhem.net/freichat/hardcode.php

but none of it changed anything which is why i just posted the original code the chat system gave me.

I&#039;ve tried the path freichat/hardcode.php which is the correct path, I&#039;ve even tried the complete path dark-mayhem.net/playground/friechat/hardcode.php and playground.dark-mayhem.net/freichat/hardcode.php but none of it changed anything which is why i just posted the original code the chat system gave me.

Can you send us your Cpanel/SSH + site backend details using the contact us form , we will install it for you.

Can you send us your Cpanel/SSH + site backend details using the contact us form , we will install it for you.
Necessity is the mother of all inventions!
150
3
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft