All pastes #429673 Raw Edit

david83uidupecheck

public php v1 · immutable
·published 2007-04-08 11:12 UTC
rendered paste body
<?phprequire_once(EGW_INCLUDE_ROOT.'/dupecheck/inc/class.bodupecheck.inc.php');class uidupecheck extends bodupecheck{	var $public_functions = array(		'initialize'	=> True,		);	public function create_header ()	{		$GLOBALS['egw']->common->egw_header();		echo parse_navbar();	}	public function create_footer ()	{		$GLOBALS['egw']->common->egw_footer();	}	function initialize ()    	{		$tpl=new etemplate('dupecheck.index');		$tpl->exec('dupecheck.uidupecheck.check',$content);			}	function check()	{		$this->dupeCheck();				$this->showmatches($content);	}	function showmatches ($content)    	{			//print_r($content);		if(isset($content['save']))		{			$this->saveEntry($content['entry']);			if(isset($content['mergable']))echo "mergable";		}		$content['entry'] = $_SERVER['matches'];		$tpl=new etemplate('dupecheck.show');		$tpl->exec('dupecheck.uidupecheck.deal',$content);		//print_r($_SERVER['matches']);	}	function deal ($content=null)    	{	echo $test;		print_r($content);		print_r($_SERVER['matches']);		if (isset($content['entry']['deal'])/*&&!empty($_SERVER['matches'])*/)		{			$content=$this->merge($content);			$tpl=new etemplate('dupecheck.deal');			$tpl->exec('dupecheck.uidupecheck.showmatches',$content);		}		else $this->showmatches();			}	function uidupecheck()   	{		$GLOBALS['egw_info']['flags']['app_header']='dupecheck';		$this->tmpl =& CreateObject('etemplate.etemplate', 'dupecheck.index');     		$this->bodupecheck(); //call constructor of bodupecheck   	}}