From 0228432ac453293e54450f6079e3758b076c577d Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Fri, 24 Jul 2020 18:21:17 +0200 Subject: [PATCH] init xml and sql files --- .gitignore | 1 + cl_plugin.xml | 20 ++++++++++++++++++++ includes/config.plugin.php | 4 ++-- plugin_install.sql | 5 +++++ plugin_uninstall.sql | 1 + 5 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 cl_plugin.xml create mode 100644 plugin_install.sql create mode 100644 plugin_uninstall.sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8fe4fa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.project diff --git a/cl_plugin.xml b/cl_plugin.xml new file mode 100644 index 0000000..7176811 --- /dev/null +++ b/cl_plugin.xml @@ -0,0 +1,20 @@ + + + + ConLite Link Checker + cl-linkchecker + D64545F0-3EC8-5216-9874-5ACE6BBE6501 + ConLite Link Checker + ConLite Team + ConLite Team + plugins@conlite.org + https://conlite.org + 0.1.0 + + + + + + + + \ No newline at end of file diff --git a/includes/config.plugin.php b/includes/config.plugin.php index 43c4f93..0d50bc4 100644 --- a/includes/config.plugin.php +++ b/includes/config.plugin.php @@ -33,8 +33,8 @@ if(!defined('CON_FRAMEWORK')) { } $plugin_name = "linkchecker"; -$cfg['plugins']['linkchecker'] = $cfg['path']['contenido'] . "plugins/" . $plugin_name . "/"; -$cfg['tab']['whitelist'] = $cfg['sql']['sqlprefix'] . '_pi_linkwhitelist'; +$cfg['plugins']['linkchecker'] = $cfg['path']['conlite'] . "plugins/" . $plugin_name . "/"; +$cfg['tab']['whitelist'] = $cfg['sql']['sqlprefix'] . '_pi_linkchecker_whitelist'; // Templates $cfg['templates']['linkchecker_test'] = $cfg['plugins']['linkchecker'] . "templates/standard/template.linkchecker_test.html"; diff --git a/plugin_install.sql b/plugin_install.sql new file mode 100644 index 0000000..99ee3a0 --- /dev/null +++ b/plugin_install.sql @@ -0,0 +1,5 @@ +CREATE TABLE IF NOT EXISTS `!PREFIX!_linkchecker_whitelist` ( + `url` varchar(255) NOT NULL DEFAULT '0', + `lastview` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`url`) +); \ No newline at end of file diff --git a/plugin_uninstall.sql b/plugin_uninstall.sql new file mode 100644 index 0000000..6cdad7e --- /dev/null +++ b/plugin_uninstall.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS !PREFIX!_linkchecker_whitelist; \ No newline at end of file