Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_www/av/ |
Upload File : |
<?php // http://www.bibletalks4u.com/
header('Content-type: text/plain');
define('URL', 'http://www.bibletalks4u.com/');
/*
$content = file_get_contents(URL);
//$item = preg_match('~<p><span\s+(.*?)</span></p>~ims', $content, $match) ? $match[1] : '';
$item = preg_match('~<p><span\s+(.*?)<br />\s*<br />~ims', $content, $match) ? $match[1] : '';
preg_match_all('~<a href="(.*?)">~', $item, $links);
var_export($links[1]);
*/
$PAGES = [
1 => 'abel-frank.htm',
2 => 'abel-ron.htm',
3 => 'ashton-michael.htm',
4 => 'badger-colin.htm',
5 => 'badger-tim.htm',
6 => 'blewett-matthew.htm',
7 => 'bowen-jonathan.htm',
8 => 'bramhill-andrew.htm',
9 => 'bramhill-andrew.htm',
10 => 'burt-bernard.htm',
11 => 'clark-neville.htm',
12 => 'cowie-jim.htm',
13 => 'cowie-ron.htm',
14 => 'criswell-paul.htm',
15 => 'dillingham-jim.htm',
16 => 'gillett-dennis.htm',
17 => 'harper-jim.htm',
18 => 'hensley-jason.htm',
19 => 'hicks-ron.htm',
20 => 'hodge-ted.htm',
21 => 'hollamby-colin.htm',
22 => 'hornhardt-steven.htm',
23 => 'jolly-grant.htm',
24 => 'kidd-ron.htm',
25 => 'king-peter.htm',
26 => 'king-ryan.htm',
27 => 'knowles-john.htm',
28 => 'laben-allen.htm',
29 => 'lewis-roger.htm',
30 => 'lloyd-bob.htm',
31 => 'long-roger.htm',
32 => 'maier-garth.htm',
33 => 'mansfield-hp.htm',
34 => 'martin-john.htm',
35 => 'martin-john.htm',
36 => 'mayock-jay.htm',
37 => 'morgan-tecwyn.htm',
38 => 'norton-matt.htm',
39 => 'ogrady-mark.htm',
40 => 'ogrady-simon.htm',
41 => 'owen-michael.htm',
42 => 'palmer-stephen.htm',
43 => 'parry-carl.htm',
44 => 'patterson-nigel.htm',
45 => 'petrou-steve.htm',
46 => 'pople-john.htm',
47 => 'pride-david.htm',
48 => 'ramcharan-dev.htm',
49 => 'richardson-len.htm',
50 => 'ritmeyer-leen.html',
51 => 'roberts-john.htm',
52 => 'sales-chris.htm',
53 => 'schlicher-paul.htm',
54 => 'siviour-john.htm',
55 => 'sternad-eric.htm',
56 => 'styles-ken.htm',
57 => 'tennant-harry.htm',
58 => 'ullman-john.htm',
59 => 'vanheerden-barry.htm',
60 => 'vincent-mark.htm',
61 => 'whitehouse-stephen.htm',
62 => 'wisniewski-david.htm',
];
$FINAL = [];
foreach($PAGES as $index => $pagename) {
// if ($index == 2)
ProcessPage($pagename, $FINAL);
}
var_export($FINAL);
die('Done');
function dropName($text) {
$text = preg_replace_callback('~<a.*?name=".*?".*?>(.*?)</a>~', function($match) {
return $match[1];
}, $text);
return $text;
}
function ProcessPage($pagename, &$FINAL) {
$content = file_get_contents(URL . $pagename);
$content = trim(preg_replace('/\s+/', ' ', $content));
$table = preg_match('~<table\s(.*?)</table>~ims', $content, $match) ? $match[1] : '';
$name = preg_match('~<tr class="who"> <td.*?>(.*?)</td> </tr>~', $table, $match) ? trim(strip_tags($match[1])) : '';
if (preg_match_all('~<tr>\s*<td.*?>(.*?)</td>\s*<td.*?>(.*?)</td>\s*</tr>~', $table, $matches)) {
foreach($matches[1] as &$item) {
$item = dropName($item);
$item = preg_replace('~ ~', '', $item);
if (preg_match('~<td.*>(.*)$~u', $item, $match2)) {
$item = $match2[1];
}
}
unset($item);
$last = '';
foreach($matches[1] as $index => $event) {
$description = dropName($matches[2][$index]);
$event = strip_tags($event);
if ($event == '') {
$event = $last;
} else {
$last = $event;
}
if (preg_match('~^(.*?)<a.*?href="(.*?)".*?>(.*?)</a>~', $description, $stuff)) {
$filename = basename($stuff[2]);
$FINAL[] = [
'speaker' => $name,
'location' => $event,
'topic' => trim(strip_tags($stuff[1])),
'subject' => trim(strip_tags($stuff[3])),
'filename' => $filename,
];
}
}
}
}