Location: PHPKode > projects > Neobill > NeoBill0.5.6/manager/index.php
<?php
/**
 * index.php
 *
 * To access the Solid-State Manager, a client points his web browser
 * at this file, which basically loads two frames: the left menu frame and
 * the right content frame.  Nothing much happens here - the real magic 
 * happens in manager_content.php.
 *
 * @package Pages
 * @author John Diamond <hide@address.com>
 * @copyright John Diamond <hide@address.com>
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 */

// Load config file
require_once dirname(__FILE__)."/../config/config.inc.php";

require_once dirname(__FILE__)."/../include/SolidStateMenu.class.php";

// Load SolidWorks
require_once dirname(__FILE__)."/../solidworks/solidworks.php";

// Load settings from database
require_once dirname(__FILE__)."/../util/settings.php";
load_settings( $conf );

// Set the current theme
$theme = isset( $_SESSION['client']['userdbo'] ) ?
  $_SESSION['client']['userdbo']->getTheme() : $conf['themes']['manager'];
$conf['themes']['current'] = $theme;

// Load the user's language preference
session_start();
$language = isset( $_SESSION['client']['userdbo'] ) ? 
  $_SESSION['client']['userdbo']->getLanguage() : null;
if( $language != null )
  {
    TranslationParser::load( "language/" . $language );
    Translator::getTranslator()->setActiveLanguage( $language );
  }
  
// Change the charset to UTF-8
header( "Content-type: text/html; charset=utf-8" );

// Build the core menu
$menu = SolidStateMenu::getSolidStateMenu();
$username = isset( $_SESSION['client']['userdbo'] ) ?
  $_SESSION['client']['userdbo']->getUsername() : null;
$menu->addItem( new SolidStateMenuItem( "myinfo", 
					"[MY_INFO]", 
					"vcard_edit.png", 
					"manager_content.php?page=config_edit_user&user=" . $username ),
		"administration" );

$menuItems = $menu->getItemArray();
$smarty->assign( "menuItems", $menuItems );

// Display frames
$smarty->assign( "company_name", $conf['company']['name'] );
$smarty->display( Page::selectTemplateFile( "manager_frames.tpl" ) );

?>
Return current item: Neobill