Code

Removed remaining print_red's
[gosa.git] / gosa-core / html / getvcard.php
index a1c68bc829a5259d3484a875d46bf5836700250a..7c0d014778b992d138eeea569a6b9c7821fb74b2 100644 (file)
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
 error_reporting (0);
-session_start ();
+session::start();
 
 /* Logged in? Simple security check */
-if (!isset($_SESSION['ui'])){
+if (!session::is_set('ui')){
   new log("security","all/all","",array(),"Error: getvcard.php called without session") ;
   header ("Location: index.php");
   exit;
@@ -53,7 +53,7 @@ if (preg_match('/MSIE 5.5/', $HTTP_USER_AGENT) ||
 }
 
 /* Get entry */
-$config= $_SESSION['config'];
+$config= session::get('config');
 $ldap= $config->get_ldap_link();
 $ldap->cat(base64_decode(validate($_GET['dn'])));