Ejemplo n.º 1
0
                        echo sh('GZtuTKDgwD') . newsletter_templates;
                        ?>
</label><span class="clearfix"></span>
			<button name="template" id="template" type="button" class="btn btn-warning"><span class="glyphicon glyphicon-picture"></span> <?php 
                        echo newsletter_template_list;
                        ?>
</button>
		</div>
		<div class="form-group">
			<label for="sc-lists"><?php 
                        echo sh('44ql7ZGaYA') . letheglobal_short_codes;
                        ?>
 <a href="javascript:;" class="sc-opener"><span class="glyphicon glyphicon-chevron-down"></span></a></label>
			<div id="sc-box" class="sHide">
				<div class="well"><?php 
                        echo scList('details');
                        ?>
</div>
			</div>
		</div>
		<div class="form-group">
			<label for="details"><?php 
                        echo sh('stciLi8JoO') . newsletter_details;
                        ?>
</label>
			<textarea name="details" id="details" class="form-control mceEditor"><?php 
                        echo showIn($srCamp->Get('details'), 'htmledit');
                        ?>
</textarea>
		</div>
		<div class="form-group">
Ejemplo n.º 2
0
                header('Content-Transfer-Encoding: binary');
                header('Content-Length: ' . filesize($path));
                # ouput backup
                readfile($path);
                die;
            } else {
                $_MSG[] = array('Warning', $language['KOCS_NOTABLES']);
            }
        }
    case 'read':
    default:
        # send last backup notice if not trying to download
        if ($action != 'download') {
            if ($kocsfig['kocs_bak_by'] == 0) {
                $_MSG[] = array('Error', $language['KOCS_BN_NONE']);
            } else {
                if ($kocsfig['kocs_bak_last'] < getTime('-1', 'W')) {
                    $_MSG[] = array('Warning', $language['KOCS_BN_OLD']);
                }
                $_MSG[] = array('Notice', sprintf($language['KOCS_BN_DONE'], date('Y/m/d H:i:s', $kocsfig['kocs_bak_last']), getNameX($kocsfig['kocs_bak_by'], $BASEURL)));
            }
        }
        # supported compression combo opts
        $sc = scList();
        $opts['complete'] = true;
        $opts['name'] = 'compress';
        $opts['default'] = 3;
        # KOCS backup
        $kocs['PREFIX'] = $prefix;
        $kocs['COMPRESS'] = get_combo($sc, $opts);
}