X-Git-Url: http://git.dj3c1t.com/index.cgi?p=mtweb;a=blobdiff_plain;f=mw%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_sgbds.php;fp=mw%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_sgbds.php;h=0000000000000000000000000000000000000000;hp=c40af56ed60d296bb2349966a32ea4bd5bcaa03a;hb=ad9756b0b72852c82165e824570f21b039fcb359;hpb=8da84cf3aa4d10d91f19b6df06ce4c5e9fcb79da diff --git a/mw/app/data/modules/share/mw_data_sgbds.php b/mw/app/data/modules/share/mw_data_sgbds.php deleted file mode 100644 index c40af56..0000000 --- a/mw/app/data/modules/share/mw_data_sgbds.php +++ /dev/null @@ -1,35 +0,0 @@ -env(); - $sgbds = array(); - $impls_dir = $env->app_file("data/impl"); - if(!file_exists($impls_dir) || !is_dir($impls_dir)){ - return false; - } - if($dh = opendir($impls_dir)){ - $OK = true; - while($OK && ($impl_file = readdir($dh)) !== false){ - if(substr($impl_file, 0 ,1) !== "." && substr($impl_file, -4) == ".php"){ - require_once $impls_dir."/".$impl_file; - if(class_exists($class_name = substr($impl_file, 0, -4))){ - if( - method_exists($class_name, "name") - && method_exists($class_name, "extention_ok") - ){ - $impl = new $class_name($env); - if($impl->extention_ok($env)) $sgbds[$class_name] = $impl; - } - } - } - } - } - else{ - return false; - } - return $sgbds; - } - - }