5,9 → 5,6 |
|
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'); |
20,7 → 17,7 |
|
function check_oid($oid) { |
|
$res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where id = '".OIDplus::db()->real_escape_string("oid:$oid")."'"); |
$res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where id = ?", array("oid:$oid")); |
$ok = OIDplus::db()->num_rows($res) > 0; |
|
if (!$ok) { |