Debugging a live 0.8.x site

1 view
Skip to first unread message

jnewman67

unread,
Feb 28, 2009, 10:11:48 AM2/28/09
to phpShop
In case you hadn't thought of it, but wished you could enable the
debug page without enlightening everyone using the site that you're
playing with it, just put a conditional display in the msg/debug.ihtml
file so it only shows it to admins and/or storeadmins.

just wrap the code in the page with:

<?php if ($perm->check("admin,storeadmin")) { ?>

[original code]

<?php | ?>

something simple - wish i'd thought of it a LONG time ago!

Jeff Newman

unread,
Feb 28, 2009, 10:18:30 AM2/28/09
to php...@googlegroups.com
oops, that last line should be

<?php } ?>

sorry for the typo.
--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.4/1976 - Release Date: 02/27/09
13:27:00

Reply all
Reply to author
Forward
0 new messages