Location: PHPKode > projects > phlyMail Lite > phlymail/handlers/files/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.1.7 2010-05-07
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();

if (file_exists($_PM_['path']['handler'].'/files/lang.'.$WP_msg['language'].'.php')) {
    require_once($_PM_['path']['handler'].'/files/lang.'.$WP_msg['language'].'.php');
} else {
    require_once($_PM_['path']['handler'].'/files/lang.de.php');
}
$outer_template = '3dframed.tpl';
switch($load) {
    case 'ilist': $modname = 'listitems.php'; $outer_template = 'maillist.tpl'; break;
    case 'flist': $modname = 'flist.php'; break;
    case 'setup': $modname = 'mod.setup.php'; break;
    case 'upload': $modname = 'upload.php'; break;
    case 'getfromurl': $modname = 'getfromurl.php'; break;
    case 'browse': $modname = 'mod.browse.php'; break;
    case 'folderprops': $modname = 'folderprops.php'; break;
    case 'output': $modname = 'mod.output.php'; $outer_template = 'mailview.tpl'; break;
    case 'sendto': $modname = 'sendto.php'; break;
    case 'worker':
        $modname = 'worker.php';
        $outer_template = (isset($_REQUEST['what']) && $_REQUEST['what'] == 'folder_export') ? '3dframed.tpl' : 'framed.tpl';
        break;
}
include(dirname(__FILE__).'/'.$modname);
?>
Return current item: phlyMail Lite