Location: PHPKode > projects > phlyMail Lite > phlymail/config/lib/skins.php
<?php
/**
 * phlyMail Config Skin handler
 * @package phlyMail Nahariya 4.0+
 * @copyright 2001-2009 phlyLabs, Berlin (http://phlylabs.de)
 * @version 3.5.4 2009-08-29
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();

$WP_mode['content_type'] = 'text/html';

// Use Font Encoding from language file
if (!isset($WP_skin['metainfo'])) $WP_skin['metainfo'] = FALSE;
$WP_skin['metainfo'] .= '<meta http-equiv="content-type" content="'.$WP_mode['content_type'].'; charset=utf-8"></meta>'.LF;
$WP_skin['version'] = 'phlyMail';
if (isset($_PM_['core']['provider_name']) && $_PM_['core']['provider_name'] != '') {
    $WP_skin['version'] = $_PM_['core']['provider_name'];
} elseif (file_exists($_PM_['path']['conf'].'/build.name')) {
    $WP_skin['version'] = file_get_contents($_PM_['path']['conf'].'/build.name');
}
$WP_skin['version'] .= ' Config';
$WP_skin['bidi-dir'] = isset($WP_msg['html_bidi']) ? $WP_msg['html_bidi'] : 'ltr';
$WP_skin['currbuild'] = file_get_contents($_PM_['path']['conf'].'/current.build');

// Decide, which main template to process
if (isset($WP_once['load_tpl_auth'])) {
    $t_skin = new fxl_template(CONFIGPATH.'/templates/auth.tpl');
} else {
    if (isset($outer_template) && $outer_template) {
        $t_skin = new fxl_template(CONFIGPATH.'/templates/'.basename($outer_template));
    } else {
        $t_skin = new fxl_template(CONFIGPATH.'/templates/main.tpl');
    }
    $t_skin->assign(array
            ('link_logout' => PHP_SELF.'?'.htmlspecialchars(give_passthrough(1).'&action=logout')
            ,'msg_logout' => $WP_msg['logout']
            ,'menu' => $Menu
            ));
}
$t_skin->assign(array
        ('version' => $WP_skin['version']
        ,'metainfo' => $WP_skin['metainfo']
        ,'confpath' => CONFIGPATH
        ,'phlymail_content' => $tpl
        ,'scheme' => (isset($WP_conf['scheme']) && file_exists(CONFIGPATH.'/schemes/'.$WP_conf['scheme'].'.css')) ? $WP_conf['scheme'] : 'default'
        ,'link_frontend' => PHP_SELF.'?'.htmlspecialchars(give_passthrough(1).'&action=logout&redir=index')
        ,'msg_frontend' => $WP_msg['go_frontend']
        ,'skin_path' => CONFIGPATH
        ,'provider_name' => $WP_skin['version']
        ,'frontend_path' => $_PM_['path']['frontend']
        ,'bidi-direction' => $WP_skin['bidi-dir']
        ,'iso_language' => $WP_msg['language']
        ,'current_build' => $WP_skin['currbuild']
        ));
header('Content-Type: text/html; charset="UTF-8"');
$t_skin->display();
?>
Return current item: phlyMail Lite