Beispiel #1
0
    $log->TRACE($hh->delOldFilters());
    $log->TRACE($mail->employerHelpInfo());
}
$log->TRACE(professions::PaidSpecsEndingReminder());
// ban
$usr = new users();
$log->TRACE($usr->GetBanTimeout());
//выкидываем неактивных юзеров
$log->TRACE($usr->UpdateInactive());
if (date('H') == 0 || date('H') == 6 || date('H') == 12 || date('H') == 18) {
    // генерация xml для webprof
    $log->TRACE(freelancer::webprofGenerateRss('upload/webprof.xml'));
}
// генерация xml для Яндекс.Работа
$log->TRACE(new_projects::yandexGenerateRss('upload/yandex-office.xml', array(4)));
$log->TRACE(new_projects::yandexGenerateRss('upload/yandex-project.xml', array(1, 2, 7)));
// генерация xml для Jooble.ru, indeed и trovit
$projects_for_xml = new_projects::getProjectsForXml('1 month');
$log->TRACE(new_projects::joobleGenerateRss('upload/jooble.xml', $projects_for_xml));
$log->TRACE(new_projects::indeedGenerateRss('upload/indeed.xml', $projects_for_xml));
$log->TRACE(new_projects::trovitGenerateRss('upload/trovit.xml', $projects_for_xml));
// генерация xml для joobradio
if (date('H') == 4) {
    $log->TRACE(new_projects::jobradioGenerateRss('upload/jobradio.xml'));
    if (users_suspicious_contacts::getResetContacts()) {
        users_suspicious_contacts::resetContacts();
        users_suspicious_contacts::setResetContacts();
    }
}
// генерация xml для careerjet
if (date('H') == 23) {
Beispiel #2
0
<?php

require_once '../classes/stdf.php';
require_once '../classes/projects.php';
require_once '../classes/freelancer.php';
switch ($argv[1]) {
    case 'yandex-office':
        new_projects::yandexGenerateRss(empty($argv[2]) ? 'upload/yandex-office.xml' : $argv[2], array(4));
        break;
    case 'yandex-project':
        new_projects::yandexGenerateRss(empty($argv[2]) ? 'upload/yandex-project.xml' : $argv[2], array(1, 2, 7));
        break;
    case 'joobradio':
        new_projects::jobradioGenerateRss('upload/jobradio.xml');
        break;
    case 'careerjet':
        new_projects::careerjetGenerateRss('upload/careerjet.xml');
        break;
    case 'webprof':
        freelancer::webprofGenerateRss('upload/webprof.xml');
        break;
    case 'jooble':
        new_projects::joobleGenerateRss('upload/jooble.xml');
        break;
    case 'indeed':
        new_projects::indeedGenerateRss('upload/indeed.xml');
        break;
}