@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
| 1 | +<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
| 2 | 2 | |
| 3 | 3 | class Site_Model extends CI_Model { |
| 4 | 4 | public function __construct() { |
@@ -96,9 +96,9 @@ discard block |
||
| 96 | 96 | //$data = preg_replace('/^[\S\s]*(<body id="body">[\S\s]*<\/body>)[\S\s]*$/', '$1', $data); |
| 97 | 97 | |
| 98 | 98 | $dom = new DOMDocument(); |
| 99 | - libxml_use_internal_errors(true); |
|
| 99 | + libxml_use_internal_errors(TRUE); |
|
| 100 | 100 | $dom->loadHTML($data); |
| 101 | - libxml_use_internal_errors(false); |
|
| 101 | + libxml_use_internal_errors(FALSE); |
|
| 102 | 102 | |
| 103 | 103 | $xpath = new DOMXPath($dom); |
| 104 | 104 | |
@@ -157,9 +157,9 @@ discard block |
||
| 157 | 157 | //$data = preg_replace('/^[\S\s]*(<body id="body">[\S\s]*<\/body>)[\S\s]*$/', '$1', $data); |
| 158 | 158 | |
| 159 | 159 | $dom = new DOMDocument(); |
| 160 | - libxml_use_internal_errors(true); |
|
| 160 | + libxml_use_internal_errors(TRUE); |
|
| 161 | 161 | $dom->loadHTML($data); |
| 162 | - libxml_use_internal_errors(false); |
|
| 162 | + libxml_use_internal_errors(FALSE); |
|
| 163 | 163 | |
| 164 | 164 | $xpath = new DOMXPath($dom); |
| 165 | 165 | $nodes_title = $xpath->query("//meta[@property='og:title']"); |
@@ -245,9 +245,9 @@ discard block |
||
| 245 | 245 | if(strpos($data, '>Register now<') === FALSE) { |
| 246 | 246 | //Auth was successful |
| 247 | 247 | $dom = new DOMDocument(); |
| 248 | - libxml_use_internal_errors(true); |
|
| 248 | + libxml_use_internal_errors(TRUE); |
|
| 249 | 249 | $dom->loadHTML($data); |
| 250 | - libxml_use_internal_errors(false); |
|
| 250 | + libxml_use_internal_errors(FALSE); |
|
| 251 | 251 | |
| 252 | 252 | $xpath = new DOMXPath($dom); |
| 253 | 253 | $nodes = $xpath->query("(//div/div)[last()]/table/tbody/tr[2]"); |
@@ -428,9 +428,9 @@ discard block |
||
| 428 | 428 | //$data = preg_replace('/^[\S\s]*(<body id="body">[\S\s]*<\/body>)[\S\s]*$/', '$1', $data); |
| 429 | 429 | |
| 430 | 430 | $dom = new DOMDocument(); |
| 431 | - libxml_use_internal_errors(true); |
|
| 431 | + libxml_use_internal_errors(TRUE); |
|
| 432 | 432 | $dom->loadHTML($data); |
| 433 | - libxml_use_internal_errors(false); |
|
| 433 | + libxml_use_internal_errors(FALSE); |
|
| 434 | 434 | |
| 435 | 435 | $xpath = new DOMXPath($dom); |
| 436 | 436 | |
@@ -487,9 +487,9 @@ discard block |
||
| 487 | 487 | //$data = preg_replace('/^[\S\s]*(<body id="body">[\S\s]*<\/body>)[\S\s]*$/', '$1', $data); |
| 488 | 488 | |
| 489 | 489 | $dom = new DOMDocument(); |
| 490 | - libxml_use_internal_errors(true); |
|
| 490 | + libxml_use_internal_errors(TRUE); |
|
| 491 | 491 | $dom->loadHTML($data); |
| 492 | - libxml_use_internal_errors(false); |
|
| 492 | + libxml_use_internal_errors(FALSE); |
|
| 493 | 493 | |
| 494 | 494 | $xpath = new DOMXPath($dom); |
| 495 | 495 | |
@@ -631,9 +631,9 @@ discard block |
||
| 631 | 631 | $data = preg_replace('/^[\S\s]*(<div id="leftside">[\S\s]*)<div id="rightside">[\S\s]*$/', '$1', $data); |
| 632 | 632 | |
| 633 | 633 | $dom = new DOMDocument(); |
| 634 | - libxml_use_internal_errors(true); |
|
| 634 | + libxml_use_internal_errors(TRUE); |
|
| 635 | 635 | $dom->loadHTML($data); |
| 636 | - libxml_use_internal_errors(false); |
|
| 636 | + libxml_use_internal_errors(FALSE); |
|
| 637 | 637 | |
| 638 | 638 | $xpath = new DOMXPath($dom); |
| 639 | 639 | |
@@ -697,9 +697,9 @@ discard block |
||
| 697 | 697 | $data = preg_replace('/^[\S\s]*(<article>[\S\s]*)<\/article>[\S\s]*$/', '$1', $data); |
| 698 | 698 | |
| 699 | 699 | $dom = new DOMDocument(); |
| 700 | - libxml_use_internal_errors(true); |
|
| 700 | + libxml_use_internal_errors(TRUE); |
|
| 701 | 701 | $dom->loadHTML($data); |
| 702 | - libxml_use_internal_errors(false); |
|
| 702 | + libxml_use_internal_errors(FALSE); |
|
| 703 | 703 | |
| 704 | 704 | $xpath = new DOMXPath($dom); |
| 705 | 705 | |
@@ -756,9 +756,9 @@ discard block |
||
| 756 | 756 | //$data = preg_replace('/^[\S\s]*(<ol[\S\s]*)<\/ol>[\S\s]*$/', '$1', $data); |
| 757 | 757 | |
| 758 | 758 | $dom = new DOMDocument(); |
| 759 | - libxml_use_internal_errors(true); |
|
| 759 | + libxml_use_internal_errors(TRUE); |
|
| 760 | 760 | $dom->loadHTML($data); |
| 761 | - libxml_use_internal_errors(false); |
|
| 761 | + libxml_use_internal_errors(FALSE); |
|
| 762 | 762 | |
| 763 | 763 | $xpath = new DOMXPath($dom); |
| 764 | 764 | |