34
good.
userlog can read/write logs in uploads/userlog folder but i need to know what is the best place outside the root.
there is a config in preferences you can change the location of stored log files.
You know Uploads folder can be accessed by public and is not safe for such an important logs. eg: You may log all user cookies and posts.
I think the current location is good. i just add chmod check to index page.
all changes before ALPHA 2:
Quote:
- change version to ALPHA 2(2013/03/19)
- enhance admin/logs.php template to show admin(y/n), group names, user link, user ip link to whois, ...(2013/03/19)
- add HomePage to module scope. It will be for all root scripts like ROOT/admin.php(2013/03/19)
- add module name to table logs in database for better performance(2013/03/19)
- add user views, group views, item views form to statistics page(2013/03/19)
revision: 11249
Edit:
if we move outside folder to xoops255/xoops_data/caches/userlog it will not be deleted when you empty xoops caches in system->maintenance.
But I think this location seems confusing and strange to end users.
you can try yourself.
just need to change xoops_version.php
this:
$modversion['config'][$i]['options'] = array("XOOPS_VAR_PATH" => XOOPS_VAR_PATH, "XOOPS_UPLOAD_PATH" => XOOPS_UPLOAD_PATH);
with this:
$modversion['config'][$i]['options'] = array("XOOPS_VAR_PATH" . "/caches" => XOOPS_VAR_PATH . "/caches", "XOOPS_UPLOAD_PATH" => XOOPS_UPLOAD_PATH);