• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

CloudCMS - The hybrid CMS for all emulators

Status
Not open for further replies.
Junior Spellweaver
Joined
Aug 25, 2006
Messages
124
Reaction score
24
Groups are easy but i will fist create a good basic CMS so...
 
Junior Spellweaver
Joined
Aug 25, 2006
Messages
124
Reaction score
24
Advanced user agents (will be used for active users etc.)

 
Joined
Feb 5, 2010
Messages
415
Reaction score
244
I really like this project good, I like your code but I think you over-do things a little too much, anyways that's just you.

Good luck!
 
Last edited:
Junior Spellweaver
Joined
Aug 25, 2006
Messages
124
Reaction score
24
I really like this project good, I like your code but I think you over-do things a little too much, anyways that's just you.

Good luck!

I dont over-do thinks if you want to make it lightweight, secured. This is just OOP Programming.
 
Supreme Arcanarch
Loyal Member
Joined
Jul 7, 2011
Messages
944
Reaction score
205
I really like the cms. And I was really interested when I saw all emulators. Cannot wait for release.
 
Junior Spellweaver
Joined
Aug 25, 2006
Messages
124
Reaction score
24
blackpol - CloudCMS - The hybrid CMS for all emulators - RaGEZONE Forums


Online users done (untested)
 
Joined
Feb 5, 2010
Messages
415
Reaction score
244
I really love how you're renaming CodeIgniter into CLOUD.

All of these snippets you've posted, besides the user model I'm guessing(since CodeIgniter is a framework to work from) are a rip from CodeIgniter.
At least you could've posted you were using CodeIgniter or a framework to code it, and not just pretend you coded all of those classes. Not to mention the fact that you're replacing all the 'CI'(short for CodeIgniter) with 'CLOUD'.

People these days, they just can't respect others hard work.

/rant
 
Last edited:
Junior Spellweaver
Joined
Aug 25, 2006
Messages
124
Reaction score
24
It's not CodeIgniter, im currently working on a new version since wichard is creating a new emulator again

PHP:
<?php
/**
 * Kill direct script access
 */
if (!defined('BASEPATH')) exit('No direct script access allowed');

class CLOUD_Online_users
{
	var $CLOUD;
	var $file = "usersonline.tmp";
	var $data;
	var $ip;
	
	/**
	 * Constructor to load the online user data
	 */
	public function __construct()
	{
		$CLOUD =& get_instance();
		$this->ip=$_SERVER['REMOTE_ADDR'];
		$this->data = @unserialize(file_get_contents($this->file));
		
		if(!$this->data)
		{
			$this->data=array();
		}
		
		$timeout = time()-120;
		
		//First time its loaded
		if(!isset($this->data[$this->ip]))
		{
			$this->data[$this->ip]['time'] = time();
			$this->data[$this->ip]['uri'] = $_SERVER['REQUEST_URI'];
			
			//Check if agent is loaded
			if(!isset($CLOUD->user_agent)) 
			{ 
				$CLOUD->load->library('user_agent'); 
				$class_loaded = true; 
			}
			
			//Check robot
			if($CLOUD->user_agent->is_robot())
			{
				$this->data[$this->ip]['bot'] = $CLOUD->user_agent->robot();
			} else
			{
				$this->data[$this->ip]['bot'] = false;
			}
			
			if($class_loaded)
			{
				unset($class_loaded, $CLOUD->user_agent);
			}
		}
		else
		{
			$this->data[$this->ip]['time'] = time();
			$this->data[$this->ip]['uri'] = $_SERVER['REQUEST_URI'];
		}
		
		//Remove all the expired dates
		foreach($this->data as $key => $value)
		{
			if($value['time'] <= $timeout)
			{
				unset($this->data[$key]);
			}
		}
		
		$this->_save();
	}
	
	/**
	 * Get the total users
	 */
	public function total_users(){
		return count($this->data);
	}
	
	/**
	 * Get the total robots
	 */
	public function total_robots()
	{
		$i=0;
		foreach($this->data as $value)
		{
			if($value['is_robot']) $i++;
		}
		return $i;
	}
	
	/**
	 * Save the data to a file
	 */
	private function _save()
	{
		$fp = fopen($this->file,'w');
		flock($fp, LOCK_EX);
		$write = fwrite($fp, serialize($this->data));
		fclose($fp);
		return $write;
	}
}
?>

New snipped for online users
 
Junior Spellweaver
Joined
Aug 25, 2006
Messages
124
Reaction score
24
 
Last edited:
Newbie Spellweaver
Joined
May 9, 2009
Messages
33
Reaction score
6
It are only Dutch people who are creating CMS's, I didn't see much English people creating CMS's.
 
Joined
Sep 15, 2010
Messages
519
Reaction score
88
Omg, I absolutly love your coding styles! This is honestly amazing. I cant wait for you to release this. And to wy whatever. Why dont u just go to w3schools.com and learn to code instead of trying to steal others work. Anyways, I think a nice drag and drop system would be great! I was thinking of doing the same thing to my CMS i plan to do in the near future. If you need some SQL done, Im the guy, But... Im sure many others can to :p Anyways, Keep up the great work man! :thumbup:
 
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
i know this is really much work but... can you maybe make a home with widgets that users can move etc, just like on new mobile phone indexes :D

That would be really great!

- Sorry for my bad English, I am Dutch and indeed I am a little child lol.
 
Status
Not open for further replies.
Back
Top