4513
When creating a plugin you need to store anything about your plugin in the the plugins table, the structure of this table looks like this:
Should be easy to understand if you know MySQL a little bit. However your sql query to insert data should look similar to this (example from the blog plugin).
$jakdb->query('INSERT INTO '.DB_PREFIX.'plugins (`id`, `name`, `description`, `active`, `access`, `pluginorder`, `pluginpath`, `phpcode`, `phpcodeadmin`, `sidenavhtml`, `usergroup`, `uninstallfile`, `pluginversion`, `time`) VALUES (NULL, "Blog", "Run your own blog.", 1, 1, 4, "blog", "require_once APP_PATH.'plugins/blog/blog.php';", "if ($page == 'blog') {
require_once APP_PATH.'plugins/blog/admin/blog.php';
$JAK_PROVED = 1;
$checkp = 1;
}", "../plugins/blog/admin/template/blognav.php", "blog", "uninstall.php", "1.0", NOW())');
Let's go thru in detail: