function phplib_load($features = null){

	if (is_null($features)) $features = array('sess', 'auth', 'perm');
	if (is_string($features)) $features = array($features);

	if (isset($GLOBALS['_phplib_page_open'])){
		if (in_array('sess', $features)) put_headers();

		page_open ($GLOBALS['_phplib_page_open'], $features);
	}

}
  $owner->username = $spUser->username;
  $owner->companyId = $conference->companyId; 
  $owner->inviteeEmail = $spUser->dbFields[email_address] ; 
  $owner->ownerFlag =  1; 
  $owner->inviteeName = $spUser->dbFields[first_name] . " " . $spUser->dbFields[last_name] ; 
  // genereate that unique code
  $owner->generateInviteeCode();   
  $owner->create();   
  $owner->sendNotify();   
  
  return $msgs  ; 


}

put_headers();

// get db connect 
$data = CData_Layer::create($errors) ;


// get the sess, auth and perm vars
page_open (array("sess" => "phplib_Session_Pre_Auth",
   "auth" => "phplib_Pre_Auth",
   "perm" => "phplib_Perm"));


## do this in every file after the page_open
$perm->check('USER');

if ($perm->have_perm('SUPER'))  {
Exemple #3
0
	<base href="<?php 
echo base_url();
?>
">
	<title>Bibliotroca <?php 
echo isset($title) ? '- ' . $title : '';
?>
</title>
	<link rel="icon" href="<?php 
echo base_url();
?>
assets/imgs/favicon.gif" type="image/gif">

	<?php 
echo link_tag('http://fonts.googleapis.com/css?family=Roboto:400,700,900');
echo put_headers();
?>

</head>
<body>

<div id="container">
	
	<div id="header">
		<div id="header_inner">
			<?php 
if (isset($nome)) {
    echo "<div id=\"login_info\">\r\n\t\t\t\t\t  <p>Olá, você está logado como " . $nome . "! <a href=\"home/logout\">sair</a></p>\r\n\t\t\t\t\t  <p>Você possui " . $creditos . " créditos</p>\r\n\t\t\t\t\t  </div>";
}
?>
			<a href=<?php