kuroi:
There are no switches to turn this off (though they are on the TO DO list for a future version of Admin Profiles.
For the time being you would have to make code changes. These would be done in in the admin/index.php file as follows:
-
Find out what your admin ID is (you can see it to the left of your name on the Admin Settings page
-
Open admin index.php and fin the following lines ```php
<div id="coltwo">
<div class="reportBox">
```
>
> 3) Insert the following between them```php
<?php if ($_SESSION['admin_id'] == <your admin ID>) { ?>
```
>
> 4) Go down 12 lines and insert the following immediately after the </div> line```php
<?php } ?>
```
>
> 5) Now do the same between the following lines```php
<div id="colthree">
<div class="reportBox">
``` and after the first </div> line a further 12 lines down.
This works great. But how can I do this with the orders, to prevent the users from deleting orders, go to packing slip and invoice.
It is about this code in orders.php
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');
$contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . zen_date_short($oInfo->date_purchased));
$contents[] = array('text' => '<br />' . $oInfo->customers_email_address);
$contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $oInfo->ip_address);
if (zen_not_null($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . zen_date_short($oInfo->last_modified));
$contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
$contents[] = array('text' => '<br />' . ENTRY_SHIPPING . ' ' . $oInfo->shipping_method);
The red code I want to secure