Beispiel #1
0
    #0013076: different content when forwarding 'to a friend'
    $forwardcontent .= '<div><textarea name="forwardmessage" cols="65" rows="20">' . htmlspecialchars($messagedata['forwardmessage']) . '</textarea></div>';
    #0013076: different content when forwarding 'to a friend'
    $tmp = '
 
  </div></div> <!-- end of message content -->
  ';
    if (isset($messagedata['sendmethod']) && $messagedata['sendmethod'] != 'inputhere') {
        $GLOBALS['pagefooter']['hidemessagecontent'] = '<script type="text/javascript">$("#messagecontent").hide()</script>';
    }
    $maincontent .= $tmp;
    $forwardcontent .= $tmp;
    if (USE_MANUAL_TEXT_PART) {
        $textcontent = '<div class="field">
    <label for="textmessage">' . $GLOBALS['I18N']->get('Plain text version of message') . Help('plaintextversion') . '</label>' . '
    <div id="generatetextversion">' . PageLinkAjax('send&tab=Text&id=' . $id . '&action=generatetext', $GLOBALS['I18N']->get('generate from HTML')) . '</a> ' . Help('generatetext') . '</div>
    <textarea id="textmessage" name="textmessage" cols="65" rows="20">' . $messagedata['textmessage'] . '</textarea>
  </div>';
    }
    #var_dump($messagedata);
    #0013076: different content when forwarding 'to a friend'
    $maincontent .= '<div class="field"><label for="footer">' . $GLOBALS['I18N']->get('Footer') . Help('footer') . '.</label>' . '
   <textarea name="footer" cols="65" rows="5">' . htmlspecialchars($messagedata['footer']) . '</textarea></div>';
    $forwardcontent .= '<div class="field"><label for="forwardfooter">' . $GLOBALS['I18N']->get('forwardfooter') . Help('forwardfooter') . '</label>' . '
    <textarea name="forwardfooter" cols="65" rows="5">' . htmlspecialchars($messagedata['forwardfooter']) . '</textarea></div>';
    if (ALLOW_ATTACHMENTS) {
        // If we have a message id saved, we want to query the attachments that are associated with this
        // message and display that (and allow deletion of!)
        $att_content = '<div class="field"><label for="attach">' . $GLOBALS['I18N']->get('Add attachments to your campaign') . Help('attachments') . '</label>';
        $att_content .= '<div class="info">
      ' . $GLOBALS['I18N']->get('The upload has the following limits set by the server') . ':<br/>
Beispiel #2
0
                                                                        value="<?php 
echo $GLOBALS['I18N']->get('Click here');
?>
"/>
</form>

<p class="information"><?php 
echo $GLOBALS['I18N']->get('Note: this will use the total count of bounces on a subscriber, not consecutive bounces');
?>
</p>

<hr/>

<div id="deleteinvalid">
    <?php 
print PageLinkAjax('reconcileusers&amp;option=deleteinvalidemail', $GLOBALS['I18N']->get('Delete subscribers who have an invalid email address'), '', 'button');
?>
</div>


<?php 
/*
<!--form method="get">
<table class="reconcileForm"><tr><td colspan="2">
<?php echo $GLOBALS['I18N']->get('To resend the request for confirmation to users who signed up and have not confirmed their subscription')?></td></tr>
<tr><td><?php echo $GLOBALS['I18N']->get('Date they signed up after')?>:</td><td><?php echo $from->showInput("","",$fromval);?></td></tr>
<tr><td><?php echo $GLOBALS['I18N']->get('Date they signed up before')?>:</td><td><?php echo $to->showInput("","",$toval);?></td></tr>
<tr><td colspan="2"><?php echo $GLOBALS['I18N']->get('Text to prepend to email')?>:</td></tr>
<tr><td colspan="2"><textarea name="prepend" rows="10" cols="60">
<?php echo $GLOBALS['I18N']->get(' Sorry to bother you: we are cleaning up our database and  it appears that you have previously signed up to our mailinglists  and not confirmed your subscription.  We would like to give you the opportunity to re-confirm your  subscription. The instructions on how to confirm are below.   ')?>
</textarea>
Beispiel #3
0
     $details .= '<span class="value">' . $pluginDetails['developer'] . '</span></div>';
 }
 if (!empty($plugin->documentationUrl)) {
     $details .= '<div class="detail"><span class="label">' . s('More information') . '</span>';
     $details .= '<span class="value"><a href="' . $plugin->documentationUrl . '" target="moreinfoplugin">' . s('Documentation Page') . '</a></span></div>';
 }
 if (pluginCanEnable($pluginname)) {
     $ls->addColumn($pluginname, s('enabled'), $plugin->enabled ? PageLinkAjax('plugins&disable=' . $pluginname, $GLOBALS['img_tick']) : PageLinkAjax('plugins&enable=' . $pluginname, $GLOBALS['img_cross']));
 }
 if (DEVVERSION) {
     //$ls->addColumn($pluginname,s('initialise'),$plugin->enabled ?
     //PageLinkAjax('plugins&initialise='.$pluginname,s('Initialise')) : '');
     if ($plugin->enabled) {
         $details .= '<div class="detail"><span class="label">' . s('initialise') . '</span>';
         $details .= '<span class="value">';
         $details .= PageLinkAjax('plugins&initialise=' . $pluginname, s('Initialise'));
         $details .= '</span></div>';
     }
 }
 if (!empty($pluginDetails['installUrl']) && is_writable($pluginDestination . '/' . $pluginname)) {
     ## we can only delete the ones that were installed from the interface
     $ls->addColumn($pluginname, s('delete'), '<span class="delete"><a href="javascript:deleteRec(\'./?page=plugins&delete=' . $pluginname . '\');" class="button" title="' . s('delete this plugin') . '">' . s('delete') . '</a></span>');
 }
 if (!pluginCanEnable($pluginname)) {
     $details .= '<div class="detail"><span class="label">' . s('Dependency check') . '</span>';
     $details .= '<span class="value">' . s('Plugin can not be enabled, because it fails a dependency check - ') . $plugin->dependencyFailure . '</span></div>';
 }
 if (!empty($pluginDetails['installUrl']) && class_exists('ZipArchive')) {
     $updateForm = formStart();
     $updateForm .= '<input type="hidden" name="pluginurl" value="' . $pluginDetails['installUrl'] . '"/>
     <button type="submit" name="update" title="' . s('update this plugin') . '">' . s('update') . '</button></form>';
Beispiel #4
0
        flush();
        @ob_end_flush();
    }
    flush();
}
$dbversion = getConfig('version');
if (!$dbversion) {
    $dbversion = 'Older than 1.4.1';
}
output('<p class="information">' . $GLOBALS['I18N']->get('Your database version') . ': ' . $dbversion . '</p>');
if ($GLOBALS['database_module'] == 'mysql.inc') {
    print Warn(s('Please edit your config file and change "mysql.inc" to "mysqli.inc" to avoid future PHP incompatibility') . resourceLink('http://resources.phplist.com/system/mysql-mysqli-update'));
}
if ($dbversion == VERSION) {
    output($GLOBALS['I18N']->get('Your database is already the correct version, there is no need to upgrade'));
    print '<p>' . PageLinkAjax('upgrade&update=tlds', s('update Top Level Domains'), '', 'button') . '</p>';
    print subscribeToAnnouncementsForm();
} elseif (isset($_GET['doit']) && $_GET['doit'] == 'yes') {
    $success = 1;
    # once we are off, this should not be interrupted
    ignore_user_abort(1);
    # rename tables if we are using the prefix
    include dirname(__FILE__) . '/structure.php';
    while (list($table, $value) = each($DBstruct)) {
        set_time_limit(500);
        if (isset($table_prefix)) {
            if (Sql_Table_exists($table) && !Sql_Table_Exists($tables[$table])) {
                Sql_Verbose_Query("alter table {$table} rename {$tables[$table]}", 1);
            }
        }
    }
Beispiel #5
0
        $user[$key] = '';
    }
    if ($key == 'confirmed') {
        if (!$require_login || $require_login && isSuperUser()) {
            $userdetailsHTML .= sprintf('<tr><td class="dataname">%s (1/0)</td><td><input type="text" name="%s" value="%s" size="5" /></td></tr>' . "\n", $GLOBALS['I18N']->get($b), $key, htmlspecialchars(stripslashes($user[$key])));
        } else {
            $userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td>%s</td></tr>', $b, stripslashes($user[$key]));
        }
    } elseif ($key == 'password') {
        $userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td><input type="text" name="%s" value="%s" size="30" /></td></tr>' . "\n", $val[1], $key, '');
    } elseif ($key == 'blacklisted') {
        $userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td>%s', $GLOBALS['I18N']->get($b), $user[$key] || isBlackListed($user['email']) ? s('Yes') : s('No'));
        if (!($user[$key] || isBlackListed($user['email']))) {
            $userdetailsHTML .= '<span class="fright button">' . PageLinkAjax('user&blacklist=1&id=' . $user['id'], s('Add to blacklist')) . '</span>';
        } elseif (UNBLACKLIST_IN_PROFILE) {
            $userdetailsHTML .= '<span class="fright button">' . PageLinkAjax('user&unblacklist=1&id=' . $user['id'], s('Remove from blacklist')) . '</span>';
        }
        $userdetailsHTML .= '</td></tr>';
    } else {
        if (!strpos($key, '_')) {
            if (strpos($a, 'sys') !== false) {
                $userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td>%s</td></tr>', $GLOBALS['I18N']->get($b), stripslashes($user[$key]));
            } elseif ($val[1]) {
                $userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td><input type="text" name="%s" value="%s" size="30" /></td></tr>' . "\n", $GLOBALS['I18N']->get($val[1]), $key, htmlspecialchars(stripslashes($user[$key])));
            }
        }
    }
}
if (empty($GLOBALS['config']['hide_user_attributes']) && !defined('HIDE_USER_ATTRIBUTES')) {
    $res = Sql_Query("select * from {$tables['attribute']} order by listorder");
    while ($row = Sql_fetch_array($res)) {
Beispiel #6
0
    switch ($transfer_encoding) {
        case 'quoted-printable':
            $bounceBody = imap_qprint($bounce['data']);
            break;
        case 'base64':
            $bounceBody = imap_base64($bounce['data']);
            break;
        case '7bit':
        case '8bit':
        default:
            $bounceBody = $bounce['data'];
    }
    if (!empty($_SESSION['hidebounceheader'])) {
        $bounce['header'] = '';
    }
    $bouncedetail = sprintf('
  <div class="fleft"><div class="label">' . $GLOBALS['I18N']->get('ID') . '</div><div class="content">%d</div></div>
  <div class="fleft"><div class="label">' . $GLOBALS['I18N']->get('Date') . '</div><div class="content">%s</div></div>
  <div class="fleft"><div class="label">' . $GLOBALS['I18N']->get('Status') . '</div><div class="content">%s</div></div>
  <div class="clear"></div><br />
  <div class="label">' . $GLOBALS['I18N']->get('Comment') . '</div><div class="content">%s</div><br />
  <div class="label">' . $GLOBALS['I18N']->get('Header') . '</div>' . '<div class="content">' . PageLinkAjax('bounce&hideheader=1', 'Close', '', 'hide') . '%s</div><br />
  <div class="label">' . $GLOBALS['I18N']->get('Body') . '</div><div class="content">%s</div>', $id, $bounce['date'], $bounce['status'], $bounce['comment'], nl2br(htmlspecialchars($bounce['header'])), nl2br(htmlspecialchars($bounceBody)));
    #   print '<tr><td colspan="2"><p class="submit"><input type="submit" name=change value="Save Changes"></p>';
    $p = new UIPanel(s('Bounce Details'), $bouncedetail);
    print $p->display();
    # if (USE_ADVANCED_BOUNCEHANDLING) {
    $p = new UIPanel(s('New Rule') . '<a name="newrule"></a>', $newruleform);
    print $p->display();
    # }
}