[Astrospaces-commits] SF.net SVN: astrospaces: [21] trunk/functions/template.php
Brought to you by:
p3net
|
From: <cal...@us...> - 2007-07-29 20:49:07
|
Revision: 21
http://astrospaces.svn.sourceforge.net/astrospaces/?rev=21&view=rev
Author: caleb870
Date: 2007-07-29 13:49:09 -0700 (Sun, 29 Jul 2007)
Log Message:
-----------
Removed file/folder
Removed Paths:
-------------
trunk/functions/template.php
Deleted: trunk/functions/template.php
===================================================================
--- trunk/functions/template.php 2007-07-29 06:10:45 UTC (rev 20)
+++ trunk/functions/template.php 2007-07-29 20:49:09 UTC (rev 21)
@@ -1,50 +0,0 @@
-<?php
-/*******************************************************
- * Copyright (C) 2007 http://p3net.net
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
- @id: $Id$
-*********************************************************/
-$this =& new template;
-class template
-{
- function template($file=null)
- {
- $this->$file = $file;
- }
- function set($name, $value)
- {
- $this->vars[$name] = is_object($value) ? $value->fetch() : $value;
- }
- function fetch($file = null)
- {
- if(!$file) $file = $this->file;
-
- extract($this->vars);
- ob_start();
- include('../template/' . $file);
- $contents = ob_get_contents();
- ob_end_clean();
- return $contents;
- }
- function parse($content)
- {
- $head =& new template('outer.tpl');
- $head->set('title', $title);
- $head->set('content', $content);
- }
-}
-?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|