function load_edit() { $this->load->model('model_mailto_data'); $this->load->model('model_cate'); $this->load->plugin('bill_uri'); $this->model_mailto_data->load_mailer(); $this->model_mailto_data->smtp_mail(); $subject = 'hello'; $html_content = bill_uri('http://iebook.t960.com/lvtuzhoukan/lt1.htm'); $replyto = 'www.t960.com'; $to = '*****@*****.**'; $this->model_mailto_data->send($subject, $html_content, $replyto, $to); exit; }
function get_url_content() { $url = $_POST['url']; $c = bill_uri($url); preg_match_all("/href=[\\W]([^<>\\'\"]*)[\\W]/", $c, $arr); preg_match_all("/<title>([^<>]*)<\\/title>/", $c, $arr1); //var_dump($arr1); //break; $data = array('f_name' => $arr1[1][0], 'up_f' => '0'); $this->db->insert('f_hit', $data); $up = mysql_insert_id(); $au = array_unique($arr[1]); foreach ($au as $url) { $data = array('f_name' => $url, 'up_f' => $up); $this->db->insert('f_hit', $data); $hit_url = mysql_insert_id(); $c = str_replace($url, "http://www.mailer.com/index.php/mailer/click/url/" . $hit_url, $c); } echo $c; }
function export_online_content($url) { $this->model_issn->user_auth(); $this->load->plugin('bill_uri'); if (function_exists('file_get_contents')) { return $c = bill_uri(file_get_contents($url)); } else { $c = ''; $fh = fopen($url, 'rb'); if ($fh !== false) { while (!feof($fh)) { $c .= fread($fh, 8192); } return $c; } else { return false; } } }