コード例 #1
0
ファイル: qhvbmailer_bounces.php プロジェクト: holandacz/nb4
                        }
                    }
                    $g++;
                }
                unset($g);
            }
        } else {
            echo $pop3->error;
        }
        $pop3->close();
        showDebug("Connection closed");
    } else {
        showDebug("Could not login with " . $vbulletin->options['qhvbmailer_smtpuser'], 3);
    }
} else {
    showDebug("Could not connect to " . $vbulletin->options['qhvbmailer_smtphost'], 3);
}
/*
Please do not remove this Copyright notice.
As you see this is a free script accordingly under GPL laws and you will see
a license attached accordingly to GNU.
You may NOT rewrite another hack and release it to the vBulletin.org community
or another website using this code without our permission, So do NOT try to release a hack using any part of our code without written permission from us!
Copyright 2007, BlogToRank.com
QH vbMailer v2.1
December 2, 2007
*/
/*======================================================================*\
|| #################################################################### ||
|| # Copyright QH  vbMailer, www.BlogToRank.com, All rights Reserved! # ||
|| #################################################################### ||
コード例 #2
0
function getAttachment($id)
{
    global $vbulletin;
    global $debug;
    if ($id > 0) {
        $sql = "SELECT * FROM " . TABLE_PREFIX . "qhvbmailer_attachments WHERE id='" . $id . "'";
        if ($attachment = $vbulletin->db->query_first($sql)) {
            $attachment = $attachment['filename'];
            showDebug("Attachment '" . $attachment . "' ready to send");
        } else {
            $attachment = '';
            showDebug("Invalid attachment ID: '" . $id . "'", 2);
        }
    } else {
        $attachment = '';
        //showDebug("Attachment ID must be greater than zero", 1);
    }
    return $attachment;
}
コード例 #3
0
ファイル: index.php プロジェクト: mmr/b1n
        case 'docs':
            $inc = $page0 . '/index.php';
            break;
        case 'init':
        case 'topmenu':
        case 'footer':
        case 'statusbar':
            $inc = b1n_INCPATH . '/' . $page0 . '.inc.php';
            break;
        case 'logout':
            b1n_logOut($sql);
            $inc = b1n_INCPATH . '/login.inc.php';
            break;
        case 'blank':
            break;
        default:
            if ($logging) {
                header('Location: ' . b1n_URL);
            } else {
                require b1n_INCPATH . '/frame.inc.php';
            }
            exit;
    }
}
if (!empty($inc)) {
    require $inc;
    unset($inc);
}
if (isset($page1_title) && !empty($page1_title)) {
    showDebug();
}
コード例 #4
0
                    } else {
                        insertTrack($campaign['id'], $user['email'], 'failed');
                        showDebug("Email cannot be sent to '" . $user['email'] . "' [ID: " . $user['userid'] . "]", 2);
                    }
                } else {
                    showDebug("Could not get phrases for '" . $user['email'] . "' [ID: " . $user['userid'] . "]", 3);
                }
            } else {
                showDebug("'" . $user['email'] . "' [ID: " . $user['userid'] . "] does not wish to receive emails");
            }
        }
    } else {
        showDebug("Template #" . $campaign['template_id'] . " does not exist", 3);
    }
    $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "qhvbmailer_campaigns SET send_switch='1' WHERE id='" . $campaign['id'] . "'");
    showDebug("Campaign sent [ID: " . $campaign['id'] . "]");
}
/*
Please do not remove this Copyright notice.
As you see this is a free script accordingly under GPL laws and you will see
a license attached accordingly to GNU.
You may NOT rewrite another hack and release it to the vBulletin.org community
or another website using this code without our permission, So do NOT try to release a hack using any part of our code without written permission from us!
Copyright 2007, BlogToRank.com
QH vbMailer v2.1
December 2, 2007
*/
/*======================================================================*\
|| #################################################################### ||
|| # Copyright QH  vbMailer, www.BlogToRank.com, All rights Reserved! # ||
|| #################################################################### ||
コード例 #5
0
ファイル: actions.php プロジェクト: randysbaker/ournews
 ************************************/
$strModifierClean = str_replace('-', ' ', $strModifier);
/************************************
 * Data array definitions...
************************************/
$arrNewsSources = buildNewsSources();
/************************************
 * Display debugging information...
 ************************************/
if ($isDebug === true) {
    if (count($_SESSION) > 0) {
        echo 'SESSION:';
        showDebug($_SESSION);
    }
    if (count($_REQUEST) > 0) {
        echo 'REQUEST:';
        showDebug($_REQUEST);
    }
    if (count($_SERVER) > 0) {
        echo 'SERVER:';
        showDebug($_SERVER);
    }
    if (count($_POST) > 0) {
        echo 'POST:';
        showDebug($_POST);
    }
    if (count($_FILES) > 0) {
        echo 'FILES:';
        showDebug($_FILES);
    }
}
コード例 #6
0
function format_names(&$names, $block)
{
    foreach ($names as $id => $name) {
        if (isset($names[$id]['expired'])) {
            unset($names[$id]);
        } else {
            $names[$id]['expire'] = $block + $names[$id]['expires_in'];
            unset($names[$id]['expires_in']);
        }
    }
}
function showDebug($txt)
{
    global $showDebug, $startTime;
    if (!isset($showDebug) || !$showDebug) {
        return;
    }
    echo "\n<b>* " . $txt . ' :</b> ';
    echo number_format(memory_get_usage() / 1024 / 1024, 1, '.', "'");
    echo 'MB (';
    echo number_format(memory_get_usage(true) / 1024 / 1024, 1, '.', "'");
    echo 'MB) - ';
    echo number_format(microtime(true) - $startTime, 2, '.', "'") . 's';
    echo "\n";
    flush();
}
showDebug(10);
if (PHP_SAPI != 'cli') {
    $buffer = ob_get_clean();
    echo nl2br($buffer);
}
コード例 #7
0
                    if (sendEmail($user, $subject, $text, $html, 0, $attachment)) {
                        showDebug("Email sent to '" . $user['email'] . "' [ID: " . $user['userid'] . "]");
                        $sends++;
                        if ($sends == $vbulletin->options['qhvbmailer_sleepafter']) {
                            showDebug("Sleeping for " . $vbulletin->options['qhvbmailer_sleepamount'] . " seconds");
                            sleep($vbulletin->options['qhvbmailer_sleepamount']);
                            $sends = 0;
                        }
                    } else {
                        showDebug("Email cannot be sent to '" . $user['email'] . "' [ID: " . $user['userid'] . "]", 2);
                    }
                } else {
                    showDebug("Could not get phrases for '" . $user['email'] . "' [ID: " . $user['userid'] . "]", 3);
                }
            } else {
                showDebug("'" . $user['email'] . "' [ID: " . $user['userid'] . "] has chosen not to receive emails");
            }
        }
        $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "qhvbmailer_templates SET nl_last='" . TIMENOW . "' WHERE id='" . $newsletter['id'] . "'");
    }
}
/*
Please do not remove this Copyright notice.
As you see this is a free script accordingly under GPL laws and you will see
a license attached accordingly to GNU.
You may NOT rewrite another hack and release it to the vBulletin.org community
or another website using this code without our permission, So do NOT try to release a hack using any part of our code without written permission from us!
Copyright 2007, BlogToRank.com
QH vbMailer v2.1
December 2, 2007
*/