Location: PHPKode > projects > phlyMail Lite > phlymail/handlers/email/loader.php
<?php
/**
 * loader.php - central loader for modules
 * @package phlyMail Nahariya 4.0+ Default branch
 * @copyright 2001-2010 phlyLabs, Berlin (http://phlylabs.de)
 * @version 0.2.6 2010-05-07
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();

$outer_template = 'framed.tpl';
$modname = false;
switch($load) {
    case 'ilist': $modname = 'mod.listmail.php'; $outer_template = 'maillist.tpl'; break;
    case 'flist': $modname = 'flist.php'; break;
    case 'setup': $modname = 'mod.setup.php'; $outer_template = '3dframed.tpl'; break;
    case 'read':
        $modname = 'mod.read.php';
        $outer_template = (isset($_REQUEST['preview']) && $_REQUEST['preview']) ? 'maillist.tpl'
                : (isset($_REQUEST['print']) && $_REQUEST['print'] ? 'mailview.tpl' : '3dframed.tpl');
        break;
    case 'output': $modname = 'mod.output.php'; $outer_template = 'mailview.tpl'; break;
    case 'send': $modname = 'mod.send.php'; break;
    case 'browse': $modname = 'mod.browse.php'; $outer_template = '3dframed.tpl'; break;
    case 'folderprops': $modname = 'folderprops.php'; $outer_template = '3dframed.tpl'; break;
    case 'fetcher.run': $modname = 'fetcher.runner.php'; break;
    case 'worker':
        $modname = 'worker.php';
        if (isset($_REQUEST['what']) && $_REQUEST['what'] == 'folder_export') $outer_template = '3dframed.tpl';
        break;
    case 'sendto': $modname = 'sendto.php'; $outer_template = '3dframed.tpl'; break;
}
if ($modname) include(dirname(__FILE__).'/'.$modname);
?>
Return current item: phlyMail Lite