diff --git a/includes/config.plugin.php b/includes/config.plugin.php index baf656c..9b605df 100644 --- a/includes/config.plugin.php +++ b/includes/config.plugin.php @@ -32,8 +32,8 @@ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } -$plugin_name = "linkchecker"; -$cfg['plugins']['linkchecker'] = $cfg['path']['conlite'] . "plugins/" . 'cl-'.$plugin_name . "/"; +$plugin_name = "cl-linkchecker"; +$cfg['plugins']['linkchecker'] = $cfg['path']['conlite'] . "plugins/".$plugin_name . "/"; $cfg['tab']['whitelist'] = $cfg['sql']['sqlprefix'] . '_pi_linkchecker_whitelist'; // Templates diff --git a/includes/include.linkchecker.php b/includes/include.linkchecker.php index 1215883..d8d5363 100644 --- a/includes/include.linkchecker.php +++ b/includes/include.linkchecker.php @@ -38,7 +38,7 @@ if (!defined('CON_FRAMEWORK')) { die('Illegal call'); } -$plugin_name = "linkchecker"; +$plugin_name = "cl-linkchecker"; global $cfg; if (!$perm->have_perm_area_action($plugin_name, $plugin_name) && $cronjob != true) { @@ -61,9 +61,9 @@ if (empty($_GET['action'])) { $action = "linkchecker"; } -plugin_include('linkchecker', 'includes/config.plugin.php'); -plugin_include('linkchecker', 'includes/include.checkperms.php'); -plugin_include('linkchecker', 'includes/include.linkchecker_tests.php'); +plugin_include($plugin_name, 'includes/config.plugin.php'); +plugin_include($plugin_name, 'includes/include.checkperms.php'); +plugin_include($plugin_name, 'includes/include.linkchecker_tests.php'); cInclude('pear', 'PEAR.php'); cInclude('pear', 'Cache/Lite.php'); diff --git a/plugin_install.sql b/plugin_install.sql index 99ee3a0..6681c72 100644 --- a/plugin_install.sql +++ b/plugin_install.sql @@ -1,5 +1,6 @@ CREATE TABLE IF NOT EXISTS `!PREFIX!_linkchecker_whitelist` ( + `idlinkchecker_whitelist` int(10) NOT NULL DEFAULT 0, `url` varchar(255) NOT NULL DEFAULT '0', `lastview` int(11) NOT NULL DEFAULT 0, - PRIMARY KEY (`url`) + PRIMARY KEY (`idlinkchecker_whitelist`) ); \ No newline at end of file