Location: PHPKode > scripts > IZI Filemanager > izi-filemanager/includes/session.php
<?
session_start();
session_register('skin');
session_register('sort');
session_register('sort_direction');

/*
 * Sort session catch
 */
if (isset($_GET['sort'])) $_SESSION['sort'] = $_GET['sort']; 
if (isset($_GET['sort_direction'])) $_SESSION['sort_direction'] = $_GET['sort_direction']; 

/*
 * Skin session catch
 */
$skins = get_skins();
$skin_validated = false;
if (isset($_GET['skin'])) $skin = $_GET['skin'];

foreach ($skins as $valid_skin) {
  if ($valid_skin['id'] == $skin) $skin_validated = true; 
}
if (strlen($_GET['skin']) > 0 && $skin_validated) {
  $_SESSION['skin'] = $_GET['skin'];
  $skin = $_SESSION['skin'];
}
if (strlen($_SESSION['skin']) > 0) $skin = $_SESSION['skin'];

?>
Return current item: IZI Filemanager