예제 #1
0
$type["html/{$atmail->Language}/help/mailmonitor.html"] = 1;
$type["html/{$atmail->Language}/help/xulhelp.html"] = 1;
$type["html/{$atmail->Language}/help/ajaxhelp.html"] = 1;
$type["html/{$atmail->Language}/help/videomail.html"] = 1;
// signup
$type["html/{$atmail->Language}/javascript/validate.js"] = 1;
// AJAX interface
$type["html/{$atmail->Language}/simple/showmail_interface.html"] = 1;
// Load additional vars from the Ajax interface panel
if ($filename == "html/{$atmail->Language}/simple/showmail_interface.html") {
    $var['Ajax'] = $_REQUEST['ajax'];
    $var['atmailstyle'] = $atmail->parse("html/{$atmail->Language}/simple/atmailstyle.css");
    $var['mailstyle'] = $atmail->parse("html/{$atmail->Language}/simple/atmailstyle-mail.css");
    $var['func'] = $_REQUEST['func'];
    $var['To'] = $_REQUEST['To'];
    $var['Cc'] = preg_replace('/^;\\s+/', '', $atmail->loadParameter('cc'));
    $var['Bcc'] = preg_replace('/^;\\s+/', '', $atmail->loadParameter('bcc'));
    // insert default values for Received After selects
    $after_date = strtotime("-61 days", time());
    $after_day = date("d", $after_date);
    $after_month = date("m", $after_date);
    $after_year = date("Y", $after_date);
    $y1 = date('Y', strtotime('-10 years', time()));
    $y2 = date('Y');
    $var['beforeYearOptions'] = $var['afterYearOptions'] = '';
    for ($y = $y1; $y <= $y2; $y++) {
        if ($y == $after_year) {
            $var['afterYearOptions'] .= "<option value=\"{$y}\" selected>{$y}</option>\n";
        } else {
            $var['afterYearOptions'] .= "<option value=\"{$y}\">{$y}</option>\n";
        }