In account/submit.php and index.php changr the 'mail' in the OOP query to 'both' and you can login with your username too.
Printable View
In account/submit.php and index.php changr the 'mail' in the OOP query to 'both' and you can login with your username too.
So.. Any ideas for the "big final release?"
homes, groups, refferal system
working home,groups,refferal systems
client keeps reloading.
Anyone has logout fixed voor IIS?
Which Database you have and which emulator Are u using? Sorry for english i am dutch :p
@Momitjee it's just Phoenix databas and emulator aswell.
I havent found exploits, really nice.
but it's your choose to leave, i will miss you and your releases ;p
Yes I use it, but the whole webpage is bugging, everythings work but The screens, layout ect... Dont show,.. I hope you know what I mean... :(
Can u add me, maybe? Momotjee@hotmail.com
I got a name error how can i fixe that ?
Please list it, if it says like " Unknown " or anything, then you must of edited the register page, incorrectly.
I thought FrostCMS official was gonna be released much earlier
I'm not going to release it anymore, make a cms yourself:
Yes, I still check ragezone sometimez :sleep:Quote:
<?php
class UserData {
private $username = "";
private $data = Array();
function __construct($username, $timeout = 0)
{
$this->username = $username;
if(!isset($_SESSION['userdata']) || !isset($_SESSION['last_userdata_update']))
{
$_SESSION['last_userdata_update'] = 0;
}
if($_SESSION['last_userdata_update'] <= time() - $timeout)
{
$this->updateSession();
}
$this->data = $_SESSION['userdata'];
}
function __destruct()
{
unset($this->username);
unset($this->data);
}
function name()
{
return UserData::filter($this->username);
}
function getVar($var)
{
if(isset($this->data[$var]))
{
return $this->data[$var];
}
return "";
}
function updateVar($var, $value)
{
mysql_query("UPDATE users SET ".$var." = '".$value."' WHERE username = '".$this->username."' LIMIT 1")
or die(mysql_error());
$_SESSION['userdata'][$var] = $value;
$this->data[$var] = $value;
}
private function updateSession()
{
$_SESSION['userdata'] = $this->getData();
$_SESSION['last_userdata_update'] = time();
}
private function getData()
{
$userquery = mysql_query("SELECT * FROM users WHERE username = '".$this->username."' LIMIT 1")
or die(mysql_error());
if(mysql_num_rows($userquery) < 1)
{
$this->usernameError();
}
return UserData::filterArray(mysql_fetch_array($userquery));
}
private function usernameError()
{
unset($_SESSION['userdata']);
unset($_SESSION['last_userdata_update']);
exit("User not found!");
}
static function filterArray($array)
{
foreach($array as $var => $value)
{
$array[$var] = UserData::filter($value);
}
return $array;
}
static function filter($var)
{
$var = mysql_real_escape_string($var);
$var = stripslashes($var);
$var = trim($var);
return $var;
}
}
// How to use:
// $user = new UserData($_SESSION['username'], 30);
// $user->name();
// $user->info('rank'); etc
?>
Where Do i put Those ?
#Username Problem Here!
I will post screenies, cause the link is most of the time down...
Hey you could make the old me.php and the new one i prefer the old one :P
Lottery system
Groups
Badgeshop etc.. i know theres already badgeshop but you can put in for the newbies..
Love da work man love da work..
Can you please fix the housekeeping glitch? It will only let me write short articles.
Hey dude i hate it when it generated a username from the email how do i fix that can you help me thanks :P
hi there is no username input, can you please fix that thx :-)
@ amirz When you click on the registrate button you go to the registration proces.. But you can't choose a name".
you need to fill you're Email and the frost cms takes a random name for you like if you email is amirz@live.nl than you get your name amirz124 he takes random nummers with the front of you email sorry for the verry bad English Iám Dutch and Iám not good at school :P
Btw maybe I will make a Dutch version of you're Cms Because there are lots of Dutch people on Ragezone ?
Beter make a beter Registrate system for Frost CMs Thanks <3
@Above, i think you can better wait until he gives an reaction to this topic.... he hasnt post many times. Look at his signature ''FrostCMS 2.0 BETA''. Maybe thats gonna be ever released.....who knows....