示例#1
0
文件: add.php 项目: canaan5/verify-cr
<?php

include 'libs/general.php';
$urlArray = array('http://jobberman.com/' => "Jobberman", 'https://ngcareers.com/' => "Nigeria Carrers", 'http://www.careers24.com.ng/' => "Carreer24");
Providers::insert_url_list($urlArray);
示例#2
0
        // If content ignored
        if (!$ca) {
            _w('ignored');
            // Skip
            continue;
        }
        //		_w($ca->getOgDescription());
        //		die;
        _w('Createing general CA data');
        _w('populating search table');
        if (Providers::create_search_item($ca)) {
            _w("search data inserted");
        } else {
            _w("unable to insert search data");
        }
        _w('setting status to indexed');
        if (Providers::change_url_status($url_w, Providers::URLS_TYPE_INDEXED)) {
            _w('status changed to INDEXED');
        } else {
            _w('unable to change status');
        }
        //		_w($ca->getLinks());
        //		die;
        _w('inserting all other urls');
        Providers::insert_url_list($ca->getLinks());
    }
} catch (Exception $ex) {
    _w('WAS ERROR !!! ' . $ex->getMessage());
}
_w('Done for now');
unset($urls);