Beispiel #1
0
</h1>
			
			</div>
   
   		</div>

	<div id="menu">
     
		<!-- rounded corners - top **** -->
    
		<div class="rtop"><div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div></div>
    
    		
    
			<?php 
carbon::navagation(1);
?>

			
     
		<!-- rounded corners - bottom **** -->
     
		<div class="rbottom"><div class="r4"></div><div class="r3"></div><div class="r2"></div><div class="r1"></div></div>
   
	</div>
    
	<div class="sidebar">
	
		<div class="sidebaritem">
       
			<!-- rounded corners - top **** -->
Beispiel #2
0
 function header()
 {
     global $sql;
     global $database;
     $title = carbon::config('title', 0);
     $welcome = carbon::config('welcome', 0);
     $name = carbon::config('name', 0);
     $template = carbon::config('template', 0);
     $nav1 = carbon::navagation(1, 1);
     $nav2 = carbon::navagation(1, 0);
     $something = $sql->select(array('db' => $database, 'table' => 'config', 'where' => array('id = 1')));
     $template = $something[0]['template'];
     $temp = "./template/{$template}/_header.php";
     $open = fopen($temp, "r");
     $contents = fread($open, filesize($temp));
     $contents = str_ireplace('{TITLE}', $title, $contents);
     $contents = str_ireplace('{WELCOME}', $welcome, $contents);
     $contents = str_ireplace('{NAME}', $name, $contents);
     $contents = str_ireplace('{template}', $template, $contents);
     $contents = str_ireplace('{NAVAGATION,1}', $nav1, $contents);
     $contents = str_ireplace('{NAVAGATION,2}', $nav2, $contents);
     fclose($open);
     echo $contents;
     //include("./template/$template/_header.php");
 }