bboschecker 0.2
This commit is contained in:
parent
aca861840a
commit
1bcaaf7f18
5 changed files with 579 additions and 33 deletions
54
debugbbfarray.php
Normal file
54
debugbbfarray.php
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<html>
|
||||
<head><title>BBOS Carrier Array Check</title></head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
bboschecker 0.2 - check for new BB device OS releases
|
||||
Copyright (C) 2008 rivviepop (blackberryforums.com)
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
http://www.gnu.org/licenses/gpl-2.0.txt
|
||||
*/
|
||||
|
||||
// this script is used to just debug the BlackBerryFAQ OS table, in case
|
||||
// the HTML formatting or anchor text has changed. Mmmm, debug - it's what's
|
||||
// for dinner.
|
||||
|
||||
// This class right here is worth it's weight in gold - give the author
|
||||
// some kudos.
|
||||
//
|
||||
// http://jacksleight.com/blog/2008/01/14/really-shiny/scripts/table-extractor.txt
|
||||
include 'tableExtractor.class.php';
|
||||
|
||||
// BBFAQ URL
|
||||
$BBF_LIST = "http://blackberryfaq.com/index.php/BlackBerry_Operating_System_Downloads";
|
||||
|
||||
$tx = new tableExtractor;
|
||||
$tx->source = file_get_contents($BBF_LIST);
|
||||
|
||||
// hopefully nobody will change this text right above the table
|
||||
$tx->anchor = 'desktop and device software download page';
|
||||
$tx->anchorWithin = false;
|
||||
|
||||
$tableArray = $tx->extractTable();
|
||||
|
||||
print("<pre>\n");
|
||||
print_r($tableArray);
|
||||
print("</pre>\n");
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in a new issue