"Focusing on our primary business is so much easier knowing that we can entrust 3DPixel with the technicalities."

Top Left Design Keren LernerFounder & Owner

An update on our bespoke "Mantis" Control Panel Alan Ogden wrote this on 11 Jun, 2012

Just a quick update on our mantis platform. There has been some heavy work in the robustness and performance of the mantis platform in the last few weeks.

We are running mantis in effective beta with several dedicated clients and hosting some popular sites that you may have seen. Mantis continues to mature, and the upgrade process to the latest secure daemons is well established.

Our focus now is the integration of our 3dpixel.net systems into mantis. i.e. how a customer can interact and add domains, edit email addresses, add autorespoders etc etc... all the things you would expect from a control panel.

We have coded all the individual components of the interface. It's now just a case of consolidating them into a coherent interface ready for public beta.

We consider the main platform to be now stable and of high performance with an outstanding security model.

Be the first to comment!

$_GET() - A function for reading GET variables with Javascript Simon Stevens wrote this on 19 Oct, 2011

I found a great piece of code whilst trying to figure out how to read get variables with Javascript.

function $_GET(q,s) {
	s = s ? s : window.location.search;
	var re = new RegExp('&'+q+'(?:=([^&]*))?(?=&|$)','i');
	return (s=s.replace(/^?/,'&').match(re)) ? (typeof s[1] == 'undefined' ? '' : decodeURIComponent(s[1])) : undefined;
}

Credit goes to Online Aspect

Be the first to comment!

ifelse() - Output the first argument that exists Simon Stevens wrote this on 23 Mar, 2011

I wrote a tiny function many years ago that simplified echoing out variables into a form for me. It took 2 arguments and output the first variable if it was present, and the 2nd if not. I called it postOrNot(), and it was terrible.

I wrote a tiny function many years ago that simplified echoing out variables into a form for me. It took 2 arguments and output the first variable if it was present, and the 2nd if not. I called it postOrNot(), and it was terrible for 2 reasons:

  1. The function name was bad (now was that an uppercase O or an N?)
  2. It was too limited, sometimes I'd have to nest it

I addressed those issues in the function below. It has a simple, short and memorable function name and takes as many arguments as I needed.

function ifelse(){
	if(func_num_args() < 2) 
		trigger_error("ifelse() requires 2 or more arguements", E_USER_ERROR); 
	else { 
		$args = func_get_args();
		foreach($args as $arg){
			if(isset($arg)) return $arg;
		}
		return false; 
	}
}

It'll return out the first argument that is set or false if none of them.

Enjoy

Be the first to comment!

© Copyright 3DPixel Ltd. 2013
Company #04721309 | VAT: 876 4611 93

3DPixel Ltd.
Suite 12, 1-3 The Courtyard, Bolton, Lancashire, BL1 8PB