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:

(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:| :|

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

// 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

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

    • No registered users viewing this page.
  • Posts

    • OK, back to normal now! Ozzy Osbourne - Flying High Again (Official Music Video)  
    • The actual download size is ~130–180 MB, not 100 MB.
    • Big change of pace for me! Gunnar & the Grizzly Boys - Standard American (Official)  
    • draw.io Desktop 30.2.4 by Razvan Serea draw.io desktop is a downloadable security-first diagramming application that runs on Windows, MacOS and Linux. Creating diagrams in the desktop app doesn’t need an internet connection. This is useful when you are disconnected or when you must create diagrams in a highly secure environment, where data protection is of the utmost importance. When you use the draw.io desktop app, your diagrams will be stored on your local device. Because this is a stand-alone application, also designed to run offline, there are no interfaces to cloud storage platforms available. Of course, you can still store your diagrams in folders that are synchronised to your cloud storage if you wish. Easy-to-use diagram editor The draw.io apps work just like the office and drawing tools you are used to using. Drag and drop shapes from the shape libraries and drag to draw connectors between them. Drag connectors to add waypoints and set a precise shape and position, or let them reroute automatically. Double click and start typing to add a label to anything. Create tables and swimlane flows with a familiar tool. Style shapes and connectors with customisable palettes, sketch options, fonts and text formatting tools. Search for shapes, including in open-source icon libraries. Use our vast libraries of shapes and templates, organised into logical categories, to create a range of diagrams and infographics. Generate diagrams from text descriptions using our smart templates. Diagram faster with keyboard shortcuts. draw.io Desktop 30.2.4 changelog: Uses electron 42.4.1 Updates to draw.io core 30.2.4. Download: draw.io 64-bit | Standalone ~100.0 MB (Open Source) Download: draw.io 32-bit | ARM64 | ARM64 Standalone Links: draw.io Home Page | Project page @GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
    • First Post
      BizSAR earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      590
    2. 2
      +Edouard
      191
    3. 3
      PsYcHoKiLLa
      81
    4. 4
      Michael Scrip
      77
    5. 5
      neufuse
      73
  • Tell a friend

    Love Neowin? Tell a friend!