All pastes #423203 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-04-03 23:35 UTC
rendered paste body
function set_email($email) {	// do sanity checks or whatever	$email = escape_String_stuff($email);	$this->changes['email'] = $email;	$this->commit();}function commit($query) {if (USER_USE_MEMORY == true) {	if ($this->sane_cache) {	// check was available in memory on call	$cacheget = $memcache->query($query)	}}	if (!$cacheget) { 	// not in memory	$result = $db->query(this stuff);	if (!$result) {		// database not found, do the stuff here if shit is nuked	}}}