+ Now including update instructions
+ DB export only insipid tables and not the whole DB itself.
+ + #2 Protection if the email-import.php file if it needs to be
+ in a web accessible folder
+ Fixed the search for words. See update instructions how to correct your data
version 2.3 - Guardian of Steel (2019-12-30)
Insipid has a feature to fetch new links from E-Mails.
Those E-Mails are read from a configured IMAP mailbox.
+# Requirements
You need to enable the imap/ssl functions within PHP and
have a IMAP mailbox on a SSL/TLS email server.
+# Config
Set the config variables in the config file.
Make sure you an individual marker string!
There is no "security" within this method. Only the special string you can define.
The new links will be hidden at first. You need to verify them before they are
visible in your list.
-Access the moderation with this link: index.php?p=stats
-After authentication there will be more info and one called Moderation
-
Here are the important configs:
EMAIL_SERVER => Address of your E-Mail server
EMAIL_REPLY_BACK_VALID => Multiple E-Mails addresses which can be reported back to. RFC822-style comma-separated email addresses
EMAIL_REPLY_BACK_ADDRESS => The E-Mail address which sends the report mail. Usually the address from which your read the mails
+# Moderation
+Access the moderation with this link: index.php?p=stats
+After authentication there will be more info and one called Moderation
+# Usage
Syntax of the E-Mail body:
absolute-link|multiple,category,strings|multiple,tag,strings\n
new-absolute-link|multiple,category,strings|multiple,tag,strings\n
-Create a cronjob to execute the email-import.php file.
\ No newline at end of file
+Create a cronjob to execute the email-import.php file.
+
+# Access and "protection"
+If the file needs to be in a web accessible folder you can either use the provided htaccess file
+or active the "protection" with a secret given by URL / cli param.
+If you activate EMAIL_JOB_PROTECT you NEED to set an individual string in EMAIL_JOB_PROTECT_SECRET
+AND remove the provided .htaccess file in the job folder.
+
+Use the following settings in the config file:
+define('EMAIL_JOB_PROTECT', false); => Set to true if you want this kind of "protection"
+define('EMAIL_JOB_PROTECT_SECRET', 'YOUR_SOME_SECRET_STRING'); => Change to your liking
\ No newline at end of file
-If you are updating from a previous version make sure every update info from the version
-your are updating from is done.
+If you are updating from a previous version make sure every update info from
+the version your are updating from is done.
x.x
-+ Run (after authentication) at /index.php?p=stats the "Search index update" to make the
-search work again correctly. At success, there is no confirmation. To validate you can now search
-for single words case-insensitive.
\ No newline at end of file
++ Run (after authentication) at /index.php?p=stats the "Search index update"
+to make the search work again correctly. At success, there is no confirmation.
+To validate you can now search for single words case-insensitive.
+
++ Update config file with tow new settings. See config.default for more info
+define('EMAIL_JOB_PROTECT', false);
+define('EMAIL_JOB_PROTECT_SECRET', 'SOME_SECRET_STRING');
\ No newline at end of file
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
# results per page
define("RESULTS_PER_PAGE",12);
+# if the location of email-import.php needs to be in a web accessible folder
+# you can protect it by setting EMAIL_JOB_PROTECT to true
+# and EMAIL_JOB_PROTECT_SECRET to a special secret string
+# AND remove the default provided .htaccess file in the job folder
+define('EMAIL_JOB_PROTECT', false); # Default false
+define('EMAIL_JOB_PROTECT_SECRET', 'YOUR_SOME_SECRET_STRING'); # Your own secret string
# settings for importing from e-mail
# SSL/TLS only
# IMAP (reading), SMTP (sending)
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
}
require('../config.php');
+
+// if the file needs to be in a web accessible folder
+// you can either use the provided htaccess file
+// or active the "protection" with a secret given by URL / cli param
+if(defined('EMAIL_JOB_PROTECT') && EMAIL_JOB_PROTECT === true
+ && defined('EMAIL_JOB_PROTECT_SECRET')) {
+
+ $_hiddenSouce = false;
+
+ $cliOptions = getopt("",array("hiddenSouce::"));
+ if(!empty($cliOptions)) {
+ $_hiddenSouce = trim($cliOptions['hiddenSouce']);
+ }
+ elseif(isset($_GET['hiddenSouce']) && !empty($_GET['hiddenSouce'])) {
+ $_hiddenSouce = trim($_GET['hiddenSouce']);
+ }
+
+ if($_hiddenSouce !== EMAIL_JOB_PROTECT_SECRET) {
+ error_log('ERROR Required param wrong.');
+ exit("401\n");
+ }
+}
+
require('../lib/summoner.class.php');
require('../lib/tag.class.php');
require('../lib/category.class.php');
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
<?php
/**
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* simple IMAP SSL/TLS email connection based on the imap PHP functions
* the code supports SSL/TLS and IMAP only
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2019 Johannes Keßler
+ * Copyright 2016-2020 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/