0,0 → 1,31 |
#!/usr/bin/php |
<?php |
|
require_once __DIR__ . '/../includes/oidplus.inc.php'; |
|
OIDplus::init(true); |
|
OIDplus::db()->set_charset("UTF8"); |
OIDplus::db()->query("SET NAMES 'utf8'"); |
|
# --- |
|
#$cont = file_get_contents('https://oidplus.viathinksoft.com/oidplus_old/?action=list_all'); |
$cont = file_get_contents(__DIR__ . '/oidplus_1_with_token.html'); |
|
preg_match_all('@oid=\.(.+)">@ismU', $cont, $m); |
foreach ($m[1] as $oid) { |
check_oid($oid); |
} |
|
function check_oid($oid) { |
|
$res = mysql_query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where id = 'oid:$oid'"); |
$ok = mysql_num_rows($res) > 0; |
|
if (!$ok) { |
echo "Not existing: $oid\n"; |
} |
} |
|
echo "OK\n"; |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |