Location: PHPKode > projects > Write2Left > Base/View.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: View.php
| Description:
|   Shows the user their weblog
| Created Jul-09-2003
+------------------------------------------------------
*/

/* Class: View
 * Description:
 *   Sends the user to their weblog
 */
class View
{
	var $menu = false;
		
	function run()
	{
		global $db, $userinfo;
		
		// Get the url for the log
		$log = $db->query_fetch( "SELECT url FROM w2l_logs WHERE log_id=$userinfo->log_id" );
		
		// Bye! Nice seeing you! Come back soon!
		header( "Location: $log[url]" );
		
		exit;
	}
}

$driver = new View();
?>
Return current item: Write2Left