Exemple #1
0
which is considered copyrighted (c) material of the original comment or credit authors.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 * @copyright       The XUUPS Project http://www.xuups.com
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         myinviter
 * @since           1.0
 * @author          trabis <*****@*****.**>
 * @version         $Id: index.php 0 2009-11-14 18:47:04Z trabis $
 */
include_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php';
include_once XOOPS_ROOT_PATH . '/modules/myinviter/include/common.php';
$error = false;
if ($GLOBALS['myinviter']->getConfig('hook') == 'cron') {
    $key = Xmf_Request::getString('key');
    if ($key != $GLOBALS['myinviter']->getConfig('cronkey')) {
        $error = true;
        //We can add ?key= on any XOOPS Page while using preload and test if key is working ok
        $GLOBALS['myinviter']->addLog("Hook is set to 'cron' but no valid key was detected");
    }
}
if (!$error) {
    myinviter_sendEmails();
    if ($GLOBALS['myinviter']->getConfig('autocrawl')) {
        myinviter_runJobs();
    }
}
Exemple #2
0
if (!($grabstart = $session->get('start'))) {
    $grabstart = 1;
}
$session->set('start', Xmf_Request::getInt('grabstart', $grabstart));
if (!($grablimit = $session->get('limit'))) {
    $grablimit = 3;
}
$session->set('limit', Xmf_Request::getInt('grablimit', $grablimit));
if (!($grabdomain = $session->get('domain'))) {
    $grabdomain = 'www.yourlovelywebsite.com';
}
$session->set('domain', Xmf_Request::getString('grabdomain', $grabdomain));
if (!($grabprovider = $session->get('provider'))) {
    $grabprovider = 'hotmail';
}
$session->set('provider', Xmf_Request::getString('grabprovider', $grabprovider));
switch ($op) {
    case 'reset':
        index_reset();
        break;
    case 'send':
        index_send($id);
        break;
    case 'sendpack':
        index_send();
        break;
    case 'del':
        index_confirmdel($id, $redir);
        break;
    case 'delok':
        index_del($id, $redir);