Location: PHPKode > projects > phlyMail Lite > phlymail/handlers/core/select.signature.php
<?php
/**
 * Selecting a signature to append to the mail body
 * @package phlyMail Nahariya 4.0+, Branch MessageCenter
 * @subpackage Handler Core
 * @copyright 2005-2009 phlyLabs, Berlin (http://phlylabs.de)
 * @version 4.0.3 2009-11-14
 */
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();

$tpl = new fxl_cached_template($_PM_['path']['frontend'].'/templates/send.selectsig.tpl', $_PM_['path']['tplcache'].'send.selectsig.tpl');
// Getting all accounts
$activecnt = 0;
$signs = array();
foreach ($DB->get_signature_list($_SESSION['phM_uid']) as $k => $v) {
    if (!$v['signature']) continue;
    phm_stripslashes($v);
    $signs[$k] = array('sign' => $v['signature'], 'prof' => $v['title']);
    ++$activecnt;
}
if ($activecnt) {
    $t_s = $tpl->get_block('sigs');
    foreach ($signs as $k => $v) {
        $t_s->assign(array('profile' => $v['prof'], 'profid' => $k, 'sig' => $v['sign'], 'htmlsig' => text2html($v['sign'])));
        $tpl->assign('sigs', $t_s);
        $t_s->clear();
    }
} else {
    $tpl->assign_block('no_sigs');
}
$tpl->assign(array
        ('msg_select' => $WP_msg['Select']
        ,'about_select' => $WP_msg['AboutSigSel']
        ,'msg_no_sigs' => $WP_msg['NoSigAvail']
        ));

?>
Return current item: phlyMail Lite