当前位置: 首页>>代码示例>>PHP>>正文


PHP header::luanvan方法代码示例

本文整理汇总了PHP中header::luanvan方法的典型用法代码示例。如果您正苦于以下问题:PHP header::luanvan方法的具体用法?PHP header::luanvan怎么用?PHP header::luanvan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在header的用法示例。


在下文中一共展示了header::luanvan方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: xahoihoctapnetvn

 function xahoihoctapnetvn($id)
 {
     $db_init = $this->load->database('admin_education', TRUE);
     $r = $db_init->select('*')->from('ebook_index')->where('ID', $id)->get()->result_array();
     $header = new header();
     $header->luanvan($r[0]['NAME']);
     if ($id) {
         if ($id == 'undefined') {
             redirect('/');
         }
     } else {
         redirect('/');
     }
     //render view
     if (isset($_REQUEST['download_guide'])) {
         $data['download_guide'] = '1';
     }
     if (!isset($_REQUEST['download_guide'])) {
         $data['download_guide'] = '0';
     }
     if (isset($_REQUEST['register_login'])) {
         $data['register_login'] = '1';
     }
     if (!isset($_REQUEST['register_login'])) {
         $data['register_login'] = '0';
     }
     if (isset($_REQUEST['show_user_category_input'])) {
         $data['show_user_category_input'] = '1';
     }
     if (!isset($_REQUEST['show_user_category_input'])) {
         $data['show_user_category_input'] = '0';
     }
     //mousedown open ads
     if (isset($_REQUEST['happy_reading'])) {
         $data['happy_reading'] = '1';
         $data['id'] = $id . '?happy_reading=1';
     } else {
         $data['happy_reading'] = '0';
         $data['id'] = $id . '?happy_reading=0';
     }
     //end
     $data['id_doc'] = $id;
     if ($r[0]['REFERER'] == 'vinadoc.net') {
         $path = str_replace('http://vinadoc.net/', '', $r[0]['path']);
         $path = 'http://myweb.pro.vn/tai-lieu-hoc/' . $path . '/view/vinadocnet';
         redirect($path);
     }
     if ($r[0]['REFERER'] == 'rongmotamhonnet') {
         redirect('doc-sach?id=' . $id);
     }
     if ($r[0]['REFERER'] == 'tailieuhoctapvn') {
         redirect('http://myweb.pro.vn/doc-sach-tham-khao?id=' . $id);
     }
     if ($r[0]['REFERER'] == 'user_add_from_url' || $r[0]['REFERER'] == 'tailieuhoceduvn' || $r[0]['REFERER'] == 'tailieuvn' || $r[0]['REFERER'] == 'docs.4share.vn' || $r[0]['REFERER'] == 'tailieuhay.info') {
         redirect($r[0]['path']);
     }
     $this->load->view('luanvan/bridge', $data);
 }
开发者ID:quantm,项目名称:mywebprovn,代码行数:58,代码来源:mydoc.php

示例2: xahoihoctapnetvn

 function xahoihoctapnetvn($id)
 {
     $header = new header();
     $header->luanvan('Tham khảo luận văn & tài liệu');
     //render view
     $data['id'] = $id;
     if (isset($_REQUEST['download_guide'])) {
         $data['download_guide'] = '1';
     }
     if (!isset($_REQUEST['download_guide'])) {
         $data['download_guide'] = '0';
     }
     $this->load->view('luanvan/bridge', $data);
 }
开发者ID:quantm,项目名称:mywebprovn,代码行数:14,代码来源:bridge.php

示例3: detail

 function detail()
 {
     $header_title = '';
     if (!isset($_REQUEST['id'])) {
         redirect('/luanvan/index/');
     } else {
         redirect('/doc-luan-van?id=' . $_REQUEST['id']);
         //case id exist in the database then render to html
         if ($_REQUEST['id'] != "-1") {
             $book_data = $this->db->select('ebook_index.*,ebook_category.NAME as CATE_NAME')->from('ebook_index')->join('ebook_category', 'ebook_category.id=ebook_index.ID_CATEGORY', 'inner')->where('REFERER', 'luanvannetvn')->where('ebook_index.ID', $_REQUEST['id'])->get()->result_array();
             if ($book_data) {
                 foreach ($book_data as $key) {
                 }
                 $data['book_title'] = $key['NAME'];
                 $data['book_description'] = $key['DESCRIPTION'];
                 $data['book_thumbs'] = $key['THUMBS'];
                 $data['share_id'] = $key['ID'];
                 $data['cate_name'] = $key['CATE_NAME'];
                 $data['id_cate'] = $key['ID_CATEGORY'];
                 $header_title = $key['NAME'];
             } else {
                 redirect("/luanvan/index/");
             }
         }
         //end
         //start if
         if ($_REQUEST['id'] == "-1") {
             $book_data = $this->db->select('ebook_index.*,ebook_category.NAME as CATE_NAME')->from('ebook_index')->join('ebook_category', 'ebook_category.id=ebook_index.ID_CATEGORY', 'inner')->where('REFERER', 'luanvannetvn')->where('ebook_index.NAME', $_REQUEST['book_title'])->get()->result_array();
             if ($book_data) {
                 foreach ($book_data as $key) {
                 }
                 $data['book_title'] = $key['NAME'];
                 $data['book_description'] = $key['DESCRIPTION'];
                 $data['book_thumbs'] = $key['THUMBS'];
                 $data['cate_name'] = $key['CATE_NAME'];
                 $data['id_cate'] = $key['ID_CATEGORY'];
                 $data['share_id'] = $key['ID'];
                 $header_title = $key['NAME'];
             } else {
                 $data = array('REFERER' => 'luanvannetvn', 'NAME' => strip_tags(trim($_REQUEST['book_title'])), 'DESCRIPTION' => '', 'ID_CATEGORY' => '8', 'path' => 'http://luanvan.net.vn' . $_REQUEST['path'], 'THUMBS' => $_REQUEST['book_thumbs']);
                 $this->db->insert('ebook_index', $data);
                 $header_title = $_REQUEST['book_title'];
                 $data['book_title'] = $_REQUEST['book_title'];
                 $data['cate_name'] = 'Chưa phân loại';
                 $data['id_cate'] = '8';
                 $data['book_description'] = '';
                 $data['book_thumbs'] = $_REQUEST['book_thumbs'];
                 $data['share_id'] = $this->db->insert_id();
             }
         }
         //end if
     }
     $header = new header();
     $header->luanvan($header_title);
     if (isset($_REQUEST['path'])) {
         $content = file_get_contents('http://luanvan.net.vn/' . $_REQUEST['path']);
     } else {
         $content = file_get_contents($key['path']);
     }
     $data['content'] = str_replace('Scale=0.95', 'Scale=1.00', $content);
     $data['csrf_test_name'] = $this->security->get_csrf_hash();
     //start analytic
     $analytic = new analytic();
     $analytic->myweb('book');
     //end analytic
     //login pop-up
     if (isset($_REQUEST['type'])) {
         $data['type'] = $_REQUEST['type'];
     } else {
         $data['type'] = '0';
     }
     //end
     $this->load->view('/luanvan/detail', $data);
 }
开发者ID:quantm,项目名称:mywebprovn,代码行数:74,代码来源:luanvan.php

示例4: header

 function google_3d_bookcase()
 {
     $header = new header();
     $header->luanvan('Kệ sách 3D');
     $this->load->view('book/google_book_case_3d.php');
 }
开发者ID:quantm,项目名称:mywebprovn,代码行数:6,代码来源:book.php

示例5: thamkhao

 function thamkhao($path)
 {
     //text notes
     if (isset($_REQUEST['textnotes'])) {
         echo '<input type="hidden" id="is_textnotes" value="1">';
     }
     if (!isset($_REQUEST['textnotes'])) {
         echo '<input type="hidden" id="is_textnotes" value="0">';
     }
     //end
     $db_free_host = $this->load->database('admin_education', TRUE);
     $path = str_replace('--', '/', $path);
     $book_data = $db_free_host->select('*')->from('ebook_index')->like('path', $path)->get()->result_array();
     if ($book_data) {
         redirect('http://myweb.pro.vn/mydoc/xahoihoctapnetvn/' . $book_data[0]['ID']);
     } else {
         $redirect_path = 'http://xahoihoctap.net.vn?referer=1&referer_search=' . $path;
         redirect($redirect_path);
     }
     $header = new header();
     $header->luanvan($book_data[0]['NAME']);
     $data['book_title'] = $book_data[0]['NAME'];
     $data['book_description'] = $book_data[0]['DESCRIPTION'];
     $data['book_thumbs'] = $book_data[0]['THUMBS'];
     $data['share_id'] = $book_data[0]['ID'];
     $content = file_get_contents($book_data[0]['path']);
     $content = str_replace('Luận văn liên quan', 'Luận văn liên quan<span class="relevant-docs-close">Đóng</span>', $content);
     $content = str_replace('Tài liệu liên quan', 'Tài liệu liên quan<span class="relevant-docs-close">Đóng</span>', $content);
     $content = str_replace('Giáo án liên quan', 'Giáo án liên quan<span class="relevant-docs-close">Đóng</span>', $content);
     $content = str_replace('Click Like Website luanvan365.com nhé bạn!', '', $content);
     $content = str_replace('/images/banner.jpg', 'http://xahoihoctap.net.vn/images/banner.jpg', $content);
     $content = str_replace('Vui Lòng click vào', '', $content);
     $content = str_replace('bên dưới để tải tài liệu :', '', $content);
     //prevent google analytics to call server
     $content = str_replace('//www.google-analytics.com/analytics.js', '', $content);
     //end
     //prevent google ads code to call server
     $content = str_replace('//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', '', $content);
     //end
     //jquery conflict
     $content = str_replace('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?ver=1.7.1', '', $content);
     //end
     //play game for relaxing
     if (preg_match('/nopreview.swf/', $content)) {
         echo '<script>alert("File đã bị người dùng xóa, Bạn có thể chơi game Line bên dưới để giải trí một tý");</script>';
         $content = str_replace('/images/nopreview.swf', 'http://files.vuongquocgame.com/swf/Line98.swf?1435053269.4817', $content);
     }
     //end
     //reset path
     $content = str_replace('http://thuviengiaoan.vn/giao-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/luan-van/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/do-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/giao-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/tai-lieu/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     //end
     if (preg_match('/thuviengiaoan.vn/', $book_data[0]['path'])) {
         $content = str_replace('<div class="sidebar-right-adv">', '<div class="remove" style="display:none">', $content);
         $content = str_replace('<div class="post-adv">', '<div class="remove" style="display:none">', $content);
     }
     if (preg_match('/tailieu.tv/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://tailieu.tv/">', $content);
     }
     if (preg_match('/timtailieu.vn/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://timtailieu.vn/">', $content);
     }
     if (preg_match('/luanvan365.com/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://luanvan365.com/">', $content);
     }
     if (preg_match('/luanvan.net.vn/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://luanvan.net.vn/">', $content);
     }
     if (preg_match('/tai-lieu.com/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://tai-lieu.com/">', $content);
     }
     if (preg_match('/doan.edu.vn/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://doan.edu.vn/">', $content);
     }
     if (preg_match('/doc.edu.vn/', $book_data[0]['path'])) {
         $content = str_replace('</object>', '</object><base href="http://doc.edu.vn/">', $content);
     }
     $data['content'] = str_replace('Scale=0.95', 'Scale=1.00&FitWidthOnLoad=true', $content);
     $data['csrf_test_name'] = $this->security->get_csrf_hash();
     //login pop-up
     if (isset($_REQUEST['type'])) {
         $data['type'] = $_REQUEST['type'];
     } else {
         $data['type'] = '0';
     }
     //end
     $data['like'] = $book_data[0]['LIKE_COUNT'];
     $data['shared_url'] = 'http://myweb.pro.vn/tailieu/thamkhao/' . $path;
     //bottom ads
     $str_ads = "</object><div class='bottom_ads'>\n\t<div class='sponsor_link_wrapper'>\n\t<img width='24px' height='24px' src='http://xahoihoctap.net.vn/images/announceIcon.png'/>\n\t<h4 class='sponsor_link'>Liên kết của nhà tài trợ sẽ đóng sau <span class='close_sponsor_link'></span></h4>\n\t</div>\n\t<script type='text/javascript' src='//e-vcdn.anthill.vn/delivery-ants/zone/522972114.js'></script>\n\t</div>";
     $content = str_replace('</object>', $str_ads, $content);
     //end
     $content = str_replace('ZoomTransition=easeOut', 'FitWidthOnLoad=true', $content);
     $content = str_replace('Scale=0.95', 'Scale=1.00&FitWidthOnLoad=true', $content);
     $content = str_replace('Scale=1', 'Scale=1.00&FitWidthOnLoad=true', $content);
     if ($book_data[0]['direct_link']) {
         $data['is_update'] = '0';
//.........这里部分代码省略.........
开发者ID:quantm,项目名称:mywebprovn,代码行数:101,代码来源:tailieu.php

示例6: foreach

 function doc_luan_van($path)
 {
     $header_title = '';
     $free_db = $this->load->database('admin_education', TRUE);
     //text notes
     if (isset($_REQUEST['textnotes'])) {
         echo '<input type="hidden" id="is_textnotes" value="1">';
     }
     //end
     if ($path) {
         $book_data = $free_db->select('*')->from('ebook_index')->like('path', $path)->get()->result_array();
         if ($book_data) {
             foreach ($book_data as $key) {
             }
             redirect('http://myweb.pro.vn/mydoc/xahoihoctapnetvn/' . $_REQUEST['id']);
             $data['book_title'] = $key['NAME'];
             $data['book_description'] = $key['DESCRIPTION'];
             $data['book_thumbs'] = $key['THUMBS'];
             $data['share_id'] = $key['ID'];
             $header_title = $key['NAME'];
         } else {
             $redirect_path = 'http://xahoihoctap.net.vn?referer=1&referer_search=' . $path;
             redirect($redirect_path);
         }
     }
     //end if
     if (!isset($_REQUEST['id'])) {
         if ($path) {
         } else {
             echo '<script type="text/javascript" src="/js/ga.js"></script>';
             echo '<meta charset="UTF-8"/>';
             echo '<h2 style="color:red">Website đang nâng cấp</h2>';
             die('<title>Website đang nâng cấp</title><script type="text/javascript" src="//e-vcdn.anthill.vn/delivery-ants/zone/521621655.js"></script>');
         }
     } else {
         redirect('http://myweb.pro.vn/mydoc/xahoihoctapnetvn/' . $_REQUEST['id']);
         //case id exist in the database then render to html
         if ($_REQUEST['id'] != "-1") {
             $book_data = $free_db->select('*')->from('ebook_index')->where('ID', $_REQUEST['id'])->get()->result_array();
             if ($book_data) {
                 foreach ($book_data as $key) {
                 }
                 $data['book_title'] = $key['NAME'];
                 $data['book_description'] = $key['DESCRIPTION'];
                 $data['book_thumbs'] = $key['THUMBS'];
                 $data['share_id'] = $key['ID'];
                 $header_title = $key['NAME'];
             } else {
                 $redirect_path = 'http://myweb.pro.vn/mydoc/xahoihoctapnetvn/' . $_REQUEST['id'];
                 redirect($redirect_path);
             }
         }
         //end
         //start if
         if ($_REQUEST['id'] == "-1") {
         }
         //end if
     }
     $header = new header();
     $header_title = $header_title . ' -Thư viện luận văn www.myweb.pro.vn';
     $header->luanvan($header_title);
     $content = file_get_contents($key['path']);
     //reset html
     $content = str_replace('Click Like Website luanvan365.com nhé bạn!', '', $content);
     $content = str_replace('Vui Lòng click vào', '', $content);
     $content = str_replace('/images/banner.jpg', 'http://xahoihoctap.net.vn/images/banner.jpg', $content);
     $content = str_replace('Luận văn liên quan', '', $content);
     $content = str_replace('Tài liệu liên quan', '', $content);
     $content = str_replace('bên dưới để tải tài liệu :', '', $content);
     //end
     //remove client adv
     $content = str_replace('<div class="post-adv">', '<div class="remove" style="display:none">', $content);
     //top_header_adv
     $content = str_replace('<div class="sidebar-right-adv">', '<div class="remove" style="display:none">', $content);
     //right_adv
     //end
     //reset path
     $content = str_replace('/luan-van/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/tai-lieu/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/do-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/giao-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('http://ebook.net.vn/ebook/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     //end
     //base link
     if (preg_match('/zun.vn/', $key['path'])) {
         if (preg_match('/SwfFile=http:/', $content)) {
         } else {
             $content = str_replace('SwfFile=', 'SwfFile=http://zun.vn/', $content);
         }
         $data['base_link'] = 'http://zun.vn/';
     }
     if (preg_match('/thuvienluanvan.info/', $key['path'])) {
         if (preg_match('/SwfFile=http:/', $content)) {
         } else {
             $content = str_replace('SwfFile=', 'SwfFile=http://thuvienluanvan.info/', $content);
         }
         $data['base_link'] = 'http://thuvienluanvan.info/';
     }
     if (preg_match('/monhoc.vn/', $key['path'])) {
         if (preg_match('/SwfFile=http:/', $content)) {
//.........这里部分代码省略.........
开发者ID:quantm,项目名称:mywebprovn,代码行数:101,代码来源:luanvan.php

示例7: header

 function tailieu_luanvan_doan($path1, $path2)
 {
     $path = $path1 . '/' . $path2;
     $db = $this->load->database('thesis_notes', TRUE);
     $book_data = $db->select('ebook_category.id as ID_CATEGORY,ebook_category.NAME as CATE_NAME,ebook_index.*')->from('ebook_index')->join('ebook_category', 'ebook_category.id=ebook_index.ID_CATEGORY', 'inner')->like('ebook_index.path', $path)->get()->result_array();
     if ($book_data) {
     } else {
         $book_data = $db->select('ebook_category.id as ID_CATEGORY,ebook_category.NAME as CATE_NAME,ebook_index.*')->from('ebook_index')->join('ebook_category', 'ebook_category.id=ebook_index.ID_CATEGORY', 'inner')->like('ebook_index.path', $path)->get()->result_array();
         if ($book_data) {
         } else {
             echo '<title>Website đang nâng cấp</title>';
             echo '<meta charset="UTF-8"/>';
             echo '<style type="text/css">#ads_zone16604{margin-top:-600px;margin-left:-599px}</style>';
             echo '<h3>Website đang tạm thời nâng cấp. Bạn vui lòng trở lại sau để đọc nhiều tài liệu hữu ích nhé.</h3>';
             echo '<script type="text/javascript" src="//admicro1.vcmedia.vn/ads_codes/ads_box_17760.ads"></script>';
             echo '<div style="margin-top:-600px;margin-left:598px;"><script type="text/javascript" src="//e-vcdn.anthill.vn/delivery-ants/zone/521621655.js"></script></div>';
             echo '<script type="text/javascript" src="//admicro1.vcmedia.vn/ads_codes/ads_box_16604.ads"></script>';
             die;
         }
     }
     $header = new header();
     $header->luanvan($book_data[0]['NAME']);
     $data['book_title'] = $book_data[0]['NAME'];
     $data['book_description'] = $book_data[0]['DESCRIPTION'];
     $data['book_thumbs'] = $book_data[0]['THUMBS'];
     $data['share_id'] = $book_data[0]['ID'];
     $data['cate_name'] = $book_data[0]['CATE_NAME'];
     $data['id_cate'] = $book_data[0]['ID_CATEGORY'];
     $content = file_get_contents($book_data[0]['path']);
     $content = str_replace('Luận văn liên quan', 'Quảng cáo', $content);
     $content = str_replace('http://thuviengiaoan.vn/giao-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/luan-van/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/do-an/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     $content = str_replace('/tai-lieu/', 'http://myweb.pro.vn/tailieu/thamkhao/', $content);
     //play game for relaxing
     if (preg_match('/nopreview.swf/', $content)) {
         echo '<script>alert("File đã bị người dùng xóa, Bạn có thể chơi game Line bên dưới để giải trí một tý");</script>';
         $content = str_replace('/images/nopreview.swf', 'http://files.vuongquocgame.com/swf/Line98.swf?1435053269.4817', $content);
     }
     //end
     //insert my ads
     $content = str_replace('<div class="doc-preview">', '<div style="margin-top: -65px;margin-left: 311px;" class="ants_380x90 below_thesis_description"><script type="text/javascript" src="//e-vcdn.anthill.vn/delivery-ants/zone/518907464.js"></script></div><div class="doc-preview">', $content);
     //top_header_adv
     //end
     //jquery conflict
     $content = str_replace('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?ver=1.7.1', '', $content);
     $content = str_replace('jquery.min.js?ver=1.7.1', '', $content);
     //filter referer html soucre
     if (preg_match('/thuviengiaoan.vn/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://thuviengiaoan.vn/';
         $content = str_replace('/images/Logo.png', 'http://myweb.pro.vn/images/banner.jpg', $content);
         $content = str_replace('<div class="sidebar-right-adv">', '<div class="remove" style="display:none">', $content);
         $content = str_replace('<div class="post-adv">', '<div class="remove" style="display:none">', $content);
     }
     if (preg_match('/giaoan.com.vn/', $book_data[0]['path'])) {
         echo '<style type="text/css">.cs95E872D0{margin-left:0px!important}</style>';
         $content = str_replace('/images/Logo.png', 'http://myweb.pro.vn/images/banner.jpg', $content);
         $data['base_link'] = 'http://giaoan.com.vn/';
         $content = str_replace('<div class="sidebar-right-adv">', '<div class="remove" style="display:none">', $content);
         $content = str_replace('<div class="post-adv">', '<div class="remove" style="display:none">', $content);
     }
     if (preg_match('/doc.edu.vn/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://doc.edu.vn/';
         $content = str_replace("ga('create', 'UA-37269087-2', 'doc.edu.vn')", '', $content);
         $content = str_replace('<div class="sidebar-right-adv">', '<div class="remove" style="display:none">', $content);
         $content = str_replace('<div class="post-adv">', '<div class="remove" style="display:none">', $content);
     }
     if (preg_match('/tailieu.tv/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://tailieu.tv/';
         $content = str_replace('Scale=0.95', 'Scale=0.95&FitWidthOnLoad=true', $content);
     }
     if (preg_match('/luanvan365.com/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://luanvan365.com/';
     }
     if (preg_match('/luanvan.net.vn/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://luanvan.net.vn/';
     }
     if (preg_match('/tai-lieu.com/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://tai-lieu.com/';
         $content = str_replace('Scale=0.95', 'Scale=0.95&FitWidthOnLoad=true', $content);
     }
     if (preg_match('/doan.edu.vn/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://doan.edu.vn/';
     }
     if (preg_match('/doko.vn/', $book_data[0]['path'])) {
         $content = str_replace('<div class="page-advertise">', '<div class="adv_header_no_border" ><script type="text/javascript" src="//admicro1.vcmedia.vn/ads_codes/ads_box_16658.ads"></script></div><div class="remove" style="display:none">', $content);
         preg_match_all('/<div class="container">(.*?)<div class="doc-reference">/s', $content, $matches, PREG_SET_ORDER);
         foreach ($matches as $key) {
         }
         $content = $key['0'];
     }
     if (preg_match('/voer.edu.vn/', $book_data[0]['path'])) {
         $data['base_link'] = 'http://voer.edu.vn/';
         $content = str_replace('</head>', '</head>', $content);
         $content = str_replace('class="footer left"', 'style="display:none" class="remove"', $content);
         $content = str_replace('class="footer"', 'style="display:none" class="remove"', $content);
         $content = str_replace('with-100', 'remove', $content);
         $content = str_replace('module-content-comment', 'remove', $content);
         $content = str_replace('padding-bottom-10', 'remove', $content);
         $content = str_replace('right-row', 'remove', $content);
//.........这里部分代码省略.........
开发者ID:quantm,项目名称:mywebprovn,代码行数:101,代码来源:sach.php


注:本文中的header::luanvan方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。