Paste what's on your clipboard thread


Recommended Posts

	//=========================================================================
	// Replaces the tags either with direct data or with data from another file
	// Parameter 1: the name of the main template file
	//=========================================================================
	public function loadTemplate($template_file)
	{
  global $wave, $db;
  
  /* Make sure we don't have any offsite files */
  $file = $wave->config['site_url']
    . $wave->config['template_dir']
    . '/' 
    . $wave->config['template'] 
    . '/' 
    . $template_file;
    
  $this->page = file_get_contents($file);
  
  /* Replace tags with data */
  foreach($this->data as $tag => $data){
  	
  	if($this->templateFileExists($data)){
    /* Data comes from another file that has to be parsed */
    $data = $this->parseFile($data);
  	}else{
    /* Data is directly entered, so not a file */
    $data = $data;
  	}
  	
  	$tag = '{' . $tag . '}';
  	
  	$this->page = str_replace($tag, $data, $this->page);
  }
  
  /* Output page */
  echo $this->page;
  
	}

:blink:

Link to comment
Share on other sites

(01:51) /KingPunk > god damn

(01:51) /KingPunk > im bored

(01:51) /KingPunk > somebody make mad passionate internet ass-sex with me?

(01:51) /KingPunk > lol

(01:52) ??? mode(#Xbins-Kai) XbinsKai +l 43

(01:57) +/NoXion > ......

..hahaha.. im BORED i gue:| :|

Link to comment
Share on other sites

Archeologists may have discovered clay jars that Jesus used to turn water into wine; other team of scientists still looking for Santa's workshop and Easter Bunny's lair

Link to comment
Share on other sites

C:\Documents and Settings\Mr. Anderson>systeminfo

Host Name: XION

OS Name: Microsoft Windows XP Home Edition

OS Version: 5.1.2600 Service Pack 2 Build 2600

OS Manufacturer: Microsoft Corporation

OS Configuration: Standalone Workstation

OS Build Type: Uniprocessor Free

Registered Owner: Dhan***** *******

Registered Organization:

Product ID: 5****-OEM-*******-*****

Original Install Date: 8/27/2004, 7:38:28 PM

System Up Time: 7 Days, 2 Hours, 25 Minutes, 3 Seconds

System Manufacturer: Dell Computer Corporation

Link to comment
Share on other sites

// Find a drawable connection line or fiber "box" from its UID
	for (int i = 0; i < m_arrDrawn.GetSize(); i++)
  if (m_arrDrawn[i]->GetUID() == sUID)
  	return m_arrDrawn[i];

	return NULL;

---------

heh, code seem to be common...

we programmers are lazy, just copying & pasting :laugh:

----------

no serial numbers!  :angry:

585144683[/snapback]

rofl :D

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.