From f919422de41db79eb17cf6da7c6b5f0348fb146a Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Tue, 24 Mar 2015 04:47:10 +0000 Subject: [PATCH] Turns off the ability to delete a users sign-in entry. 1) Bots like to follow the delete link on demostrations and delete all the time-in entries. 2) YBDB adhers to open trust metrics that are common at bicycle collectives, bots really do not care about trust including bots from google, they love exploring every link though. 3) This functionality isn't really necessary since it is possible to make the sign-in time the same as the sign-out time if the person changes their mind about their visit. --- .../shop_log_delete_shopvisitid.php | 0 shop_log.php | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) rename shop_log_delete_shopvisitid.php => attic/shop_log_delete_shopvisitid.php (100%) diff --git a/shop_log_delete_shopvisitid.php b/attic/shop_log_delete_shopvisitid.php similarity index 100% rename from shop_log_delete_shopvisitid.php rename to attic/shop_log_delete_shopvisitid.php diff --git a/shop_log.php b/shop_log.php index 7ebc7d4..a0d1de5 100644 --- a/shop_log.php +++ b/shop_log.php @@ -227,11 +227,15 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) { - =$shop_id & (current_shop_by_ip()-5)<=$shop_id ) { ?> + =$shop_id & (current_shop_by_ip()-5)<=$shop_id ) { + // Not really necessary, and should be an administrative function + // shop_log_delete_shopvisitid.php has been moved to the attic + ?> +