1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 17:03:22 -05:00

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.
This commit is contained in:
Jonathan Rosenbaum 2015-03-24 04:47:10 +00:00
parent 8e20312ca7
commit f919422de4
2 changed files with 6 additions and 2 deletions

View File

@ -227,11 +227,15 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) {
<td><textarea name="comment" cols="45" rows="3"><?php echo $row_Recordset1['comment']; ?></textarea>
</td>
</tr>
<?php if(current_shop_by_ip()>=$shop_id & (current_shop_by_ip()-5)<=$shop_id ) { ?>
<?php //if(current_shop_by_ip()>=$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
?>
<!--
<tr>
<td><div align="right">Delete:</div></td>
<td>Click to Delete this Shop User's Visit: <a href="<?php echo PAGE_SHOP_LOG_DELETE_VISIT . "?visit_id={$visit_id}&shop_id={$shop_id}";?>">Delete</a> </td>
</tr> <?php } //end if current shop?>
</tr> --> <?php // } //end if current shop?>
</table>
</tr>
<input type="hidden" name="MM_insert" value="FormEdit">