Hax00r Posted January 26, 2007 Share Posted January 26, 2007 Well hi im am new to this and i am currently working on a project with a friend, i got through the installation successfully,(after hours of resolving problems) and i installed the protect admin contribution, so i can protect the admin page on oscommerce, since i didnt find any info on the forum.. >_< ... anyways.. i isntalled this password protect contribution and i cant seem to get it working, i added the <? include ("access_control.php"); ?> to the admin page and after i log in i get this: Fatal error: Cannot redeclare error() (previously declared in /home/.nimbus/colinroebuck/www.comps-4-u.co.uk/password_protect/common.php:4) in /home/.nimbus/colinroebuck/www.comps-4-u.co.uk/password_protect/common.php on line 4 what do i do now? this is what common.php looks like 1".<? 2. 3. 4.function error($error) 5.{ 6.echo ("<BR><BR><b>$error</b><BR><BR>"); 7.} 8. 9. 10. 11. 12.function sql_query($result, $error) 13.{ 14. 15.IF (!$result) 16.{ 17.echo ("<BR><b>$error</b><BR>"); 18.} 19. 20.} 21. 22. 23. 24.?>"; Thank you in advanced, i really need to get this working. :thumbsup: Link to comment Share on other sites More sharing options...
Hax00r Posted January 26, 2007 Author Share Posted January 26, 2007 never mind, i found another way, in the administration panel (of my webhost) i found the access, and i was able to put restriction on the directory, thanks anyways! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.