Same With meWhy does it keep giving a session ticket error on the client?
$ticket = "";
$ticket .= "nova-";
$ticket .= rand(1000, 9999) . "-";
$ticket .= rand(1000, 9999) . "-";
$ticket .= rand(1000, 9999) . "-";
$ticket .= rand(1000, 9999) . "-";
$ticket .= rand(1000, 9999);
$exists = $db->query("SELECT * FROM user_tickets WHERE userid = '".$user->getVar('id')."' LIMIT 1")->fetchAll();
$num = count($exists);
if($num != 0)
{
$db->run("UPDATE user_tickets SET sessionticket = '".$ticket."' WHERE userid = '".$user->getVar('id')."'");
}
else
{
$db->run("INSERT into user_tickets VALUES(".$user->getVar('id').", '".$ticket."', '".Site::RemoteIp()."')");
}
I saw on rz someone posted this and it helped a lot of people, you have to run most of these.
Code:$ticket = ""; $ticket .= "nova-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999); $exists = $db->query("SELECT * FROM user_tickets WHERE userid = '".$user->getVar('id')."' LIMIT 1")->fetchAll(); $num = count($exists); if($num != 0) { $db->run("UPDATE user_tickets SET sessionticket = '".$ticket."' WHERE userid = '".$user->getVar('id')."'"); } else { $db->run("INSERT into user_tickets VALUES(".$user->getVar('id').", '".$ticket."', '".Site::RemoteIp()."')"); }
Where do we put this?I saw on rz someone posted this and it helped a lot of people, you have to run most of these.
Code:$ticket = ""; $ticket .= "nova-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999); $exists = $db->query("SELECT * FROM user_tickets WHERE userid = '".$user->getVar('id')."' LIMIT 1")->fetchAll(); $num = count($exists); if($num != 0) { $db->run("UPDATE user_tickets SET sessionticket = '".$ticket."' WHERE userid = '".$user->getVar('id')."'"); } else { $db->run("INSERT into user_tickets VALUES(".$user->getVar('id').", '".$ticket."', '".Site::RemoteIp()."')"); }
Run the queries.Where do we put this?
I saw on rz someone posted this and it helped a lot of people, you have to run most of these.
Code:$ticket = ""; $ticket .= "nova-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999); $exists = $db->query("SELECT * FROM user_tickets WHERE userid = '".$user->getVar('id')."' LIMIT 1")->fetchAll(); $num = count($exists); if($num != 0) { $db->run("UPDATE user_tickets SET sessionticket = '".$ticket."' WHERE userid = '".$user->getVar('id')."'"); } else { $db->run("INSERT into user_tickets VALUES(".$user->getVar('id').", '".$ticket."', '".Site::RemoteIp()."')"); }
This goes in page-client.tpl (ubercms) i guess?I saw on rz someone posted this and it helped a lot of people, you have to run most of these.
Code:$ticket = ""; $ticket .= "nova-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999) . "-"; $ticket .= rand(1000, 9999); $exists = $db->query("SELECT * FROM user_tickets WHERE userid = '".$user->getVar('id')."' LIMIT 1")->fetchAll(); $num = count($exists); if($num != 0) { $db->run("UPDATE user_tickets SET sessionticket = '".$ticket."' WHERE userid = '".$user->getVar('id')."'"); } else { $db->run("INSERT into user_tickets VALUES(".$user->getVar('id').", '".$ticket."', '".Site::RemoteIp()."')"); }
This goes in page-client.tpl (ubercms) i guess?
Run the queries.
I don't know for sure, but the tutorial on rz said run these queries and people said it worked?Is it?
:
Send me the link on convoI don't know for sure, but the tutorial on rz said run these queries and people said it worked?