Browse Source

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.
devel
Jonathan Rosenbaum 9 years ago
parent
commit
f919422de4
  1. 0
      attic/shop_log_delete_shopvisitid.php
  2. 8
      shop_log.php

0
shop_log_delete_shopvisitid.php → attic/shop_log_delete_shopvisitid.php

8
shop_log.php

@ -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">

Loading…
Cancel
Save