Added the module and from a browser NOT logged into my site, entered the address http://mydomain.com/drupal/?test=">XXX as I understood the instructions, and nothing is logged.
gil

Comments

swentel’s picture

When you log back in, can you see a log at ?q=admin/logs/phpids ?

Capnj’s picture

No, and there is no menu link under admin/logs for phpids, although the menu item is in fact in the menu system. The phpids table is created in the database and the entries (per looking at the install file) are correct in menu, system and variable files.

I'm not sure I was doing the test properly to try to generate a log entry. Please clarify.

gil

swentel’s picture

Well, the test should work normally. But it's weird you don't see it appear in the menu. Are you logging back in as user 1 (I assume so, but still, you never know) ? Otherwise, you'll need to grant permissions in the access control to the authenticated user to administer/access phpids logs.

Capnj’s picture

Yes, logging in as user 1, access control has permissions granted. I think the problem is where I have the PHPIDS package loaded. I get the log page now, but no logs and the message "You must dowload the latest PHPIDS package and place in the phpids module folder.."
Your readme file says place as follows:
yourmodulespath/phpids/phpids.module
yourmodulespath/phpids/phpids.info
yourmodulespath/phpids/phpids.install
yourmodulespath/phpids/README
yourmodulespath/phpids/phpids/default_filter.xml
yourmodulespath/phpids/phpids/IDS
yourmodulespath/phpids/phpids/IDS/Converter.php
and so on.

I am using PHP4 and have d/l the PHP4IDS 0.1 zip file and the contents and directories in that file are inconsistent with your example. I have it installed thusly:
mydomain.com/drupal/sites//all/modules/phpids/phpids/Lib/
and the contents of /Lib include (from the PHPIDS package)
filters.utf8.xml
IDSConverter.class.php
and some others.

There is NO default_filter.xml and no Converter.php. Also, in the PHPIDS package there is no IDS subdirectory.
So I also installed it this way:
mydomain.com/drupal/sites//all/modules/phpids/phpids/IDS/
with the contents of the package Lib folder, i.e.
filters.utf8.xml etc.

Bottom line is I now have the PHPIDS package files under your module in about every combination of places that I thought might be appropriate but your README file is, I think, a bit in error in that it does not speak directly to the contents of the PHP4 version of the package contents.

gil

swentel’s picture

Status: Active » Closed (fixed)

Yes, I assumed the package of PHP4IDS would have the same structure as the original one. This is the second report I got about this. I'm thinking about *not* supporting the PHP4 port with the gophp5.org initiative and the PHP4 end of life announcement on php.net. I've allready updated this in the README and on the project page that it's PHP5 only. Thanks for trying though!