FreiChat related discussions
Trouble catching users

SOLVED !

People, I created the users table all right , but I can not recover the table users,

table >>>> frei_users
columns
id user username password

hardcode.php

$usertable='frei_users';
$row_username='username';
$row_userid='id';

AND MY PAGE TESTE THE VAR $SES is 1 ,its only a test where the User 1 is already registered in the table, every time the User enters as a guest and not the bank recovers its name, im trying local "localhost" someone help me??????


$ses = 1;


if(isset($_SESSION['uid']))
{
  if($_SESSION['uid'] != null) 
  {
   $ses=$_SESSION['uid']; 
   setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); 


echo '<script type="text/javascript">alert("' . $ses . '")</script>';

  } else {
     $ses = null;
     setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code
  }
} 



if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

       if(is_file("C:/wamp/www/Chat3/hardcode.php")){

               require "C:/wamp/www/Chat3/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="javascript" src="http://localhost/Chat3/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
    <link rel="stylesheet" href="http://localhost/Chat3/client/jquery/freichat_themes/freichatcss.php" type="text/css">
SOLVED ! People, I created the users table all right , but I can not recover the table users, table &amp;gt;&amp;gt;&amp;gt;&amp;gt; frei_users columns id user username password hardcode.php $usertable=&#039;frei_users&#039;; $row_username=&#039;username&#039;; $row_userid=&#039;id&#039;; AND MY PAGE TESTE THE VAR $SES is 1 ,its only a test where the User 1 is already registered in the table, every time the User enters as a guest and not the bank recovers its name, im trying local &quot;localhost&quot; someone help me?????? ```` &amp;lt;?php $ses = 1; if(isset($_SESSION[&#039;uid&#039;])) { if($_SESSION[&#039;uid&#039;] != null) { $ses=$_SESSION[&#039;uid&#039;]; setcookie(&quot;freichat_user&quot;, &quot;LOGGED_IN&quot;, time()+3600, &quot;/&quot;); echo &#039;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;alert(&quot;&#039; . $ses . &#039;&quot;)&amp;lt;/script&amp;gt;&#039;; } else { $ses = null; setcookie(&quot;freichat_user&quot;, null, time()+3600, &quot;/&quot;); // *do not change -&amp;gt; freichat code } } if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;C:/wamp/www/Chat3/hardcode.php&quot;)){ require &quot;C:/wamp/www/Chat3/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;javascript&quot; src=&quot;http://localhost/Chat3/client/main.php?id=&amp;lt;?php echo $ses;?&amp;gt;&amp;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;http://localhost/Chat3/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; ````
edited Apr 29 '15 at 6:34 pm
125
0
2
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