static function install(&$obj) { global $serendipity; if (!OEmbedDatabase::table_created(PLUGIN_OEMBED_DATABASEVNAME)) { $md5test = md5("test"); $md5len = strlen($md5test); $q = "create table {$serendipity['dbPrefix']}" . PLUGIN_OEMBED_DATABASEVNAME . " (" . "urlmd5 char({$md5len}) not null, " . "url varchar(3000) not null, " . "oetype varchar(20) not null, " . "oeobj text not null, " . "primary key (urlmd5)" . ")"; $result = serendipity_db_schema_import($q); if ($result !== true) { return; } } }
function install() { OEmbedDatabase::install($this); }