Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

FrostCMS 1.0 BETA

Status
Not open for further replies.
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
I'm not going to release it anymore, make a cms yourself:

<?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
?>

Yes, I still check ragezone sometimez :sleep:
 
Newbie Spellweaver
Joined
Mar 14, 2011
Messages
30
Reaction score
4
Where Do i put Those ?

#Username Problem Here!
 
Newbie Spellweaver
Joined
Feb 10, 2011
Messages
65
Reaction score
6
I will post screenies, cause the link is most of the time down...
 
Junior Spellweaver
Joined
Jul 22, 2011
Messages
119
Reaction score
18
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..
 
Junior Spellweaver
Joined
Dec 24, 2009
Messages
142
Reaction score
17
Re: I'm leaving the Habbo section in a month - 2 weeks -> FrostCMS 1.0 BETA

Wow 12? Me2 Buth your Good in Coding when you are 12 :) And i like your Skills! :D
Dutch: Wow 12? ik ook, maar je bent dan wel Goed he! Bijna niemand met 12 kan zo goed CMS'en Coden! Respekt man! Kan je me miss wat Leren? :$
A 12 year old who cant spell and has to use letters to help him? Yikes...
 
Initiate Mage
Joined
Jun 23, 2012
Messages
1
Reaction score
0
Can you please fix the housekeeping glitch? It will only let me write short articles.
 
Junior Spellweaver
Joined
Jul 22, 2011
Messages
119
Reaction score
18
Hey dude i hate it when it generated a username from the email how do i fix that can you help me thanks :p
 
Newbie Spellweaver
Joined
May 28, 2012
Messages
35
Reaction score
0
@ 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
 
Custom Title Activated
Loyal Member
Joined
Jun 5, 2010
Messages
1,582
Reaction score
160
@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....
 
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
@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....

Working on other things atm, Frost can wait.
And I thought it would be a good idea to remove the username so users can register very fast, in Frost 2.0 I'm also removing the Birthday check etc because it's not really needed.

And Frost 2.0 has to get some code clean-ups so just wait for it. I'm learning OpCode atm ;)
 
Skilled Illusionist
Joined
Dec 21, 2011
Messages
335
Reaction score
12
Can you also please add add-ons please? Like shops? Being able to access to badge shop and rares shop. And maybe you can add more things to housekeeping, like an advanced version of that.
 
Zephyr Studios
Loyal Member
Joined
Feb 18, 2012
Messages
1,877
Reaction score
724
What about making version 2.0 Butterfly compatible?
 
Newbie Spellweaver
Joined
Jul 3, 2012
Messages
5
Reaction score
0
I'm really hoping someone can assist me. I keep getting this error. Any idea how to fix it?

azaidi - FrostCMS 1.0 BETA - RaGEZONE Forums
 
Newbie Spellweaver
Joined
Aug 18, 2011
Messages
57
Reaction score
2
Hey... what other prehosted external_variables that daily update the swf....
so i can make new furni....
for this Frost CMS....
i've tried use other variables... not working....
 
Newbie Spellweaver
Joined
Apr 28, 2010
Messages
65
Reaction score
1
When comes frostcms 2.0 out ? And can you add a shop like rares and badges. And a rare values page? It would be helpful
 
Status
Not open for further replies.
Back
Top