Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 08:46 pm EST
Geeklog Forums
error.log back to chmod 644
Status: offline
Sniper12
Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
I have the media gallery on my site, when I use it to check the error.log file. It change chmod back to 644 and then I get an error the next time something should be written in the file. Is there somthing I can do about this. The site is not hosted on my one server.
I get the same error if I tray to use the ban plugin to se the error.log
I get the same error if I tray to use the ban plugin to se the error.log
23
39
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,
Here are the only files witch use chmod in the mg plugin
C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\lib-upload.php (6 hits)
Line 883: @chmod($imageThumb, 0644);
Line 884: @chmod($imageDisplay, 0644);
Line 1407: @chmod($media_orig, 0644);
Line 1490: @chmod($media_orig, 0644);
Line 1507: @chmod($media_orig,0644);
Line 1552: @chmod($media_orig,0644);
C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\lib-watermark.php (1 hits)
Line 414: chmod($wm_filename, 0644);
C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\maint\rssfeed.php (2 hits)
Line 153: chmod($feedname, 0664);
Line 222: chmod($_MG_CONF['path_html'] . 'rss/' . $_MG_CONF['rss_feed_name'] . '.rss', 0664);
I don't find nothing about chmod the error.log
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Here are the only files witch use chmod in the mg plugin
Text Formatted Code
C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\lib-upload.php (6 hits)
Line 883: @chmod($imageThumb, 0644);
Line 884: @chmod($imageDisplay, 0644);
Line 1407: @chmod($media_orig, 0644);
Line 1490: @chmod($media_orig, 0644);
Line 1507: @chmod($media_orig,0644);
Line 1552: @chmod($media_orig,0644);
C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\lib-watermark.php (1 hits)
Line 414: chmod($wm_filename, 0644);
C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\maint\rssfeed.php (2 hits)
Line 153: chmod($feedname, 0664);
Line 222: chmod($_MG_CONF['path_html'] . 'rss/' . $_MG_CONF['rss_feed_name'] . '.rss', 0664);
I don't find nothing about chmod the error.log
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
17
21
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
You can hack the admin/plugin/mediagallery/logview.php file. Near line 99 add the chmod line and set rights as you need.
unlink($_CONF['path_log'] . $_POST['log']);
$timestamp = strftime( "%c" );
$fd = fopen( $_CONF['path_log'] . $_POST['log'], a );
chmod($_CONF['path_log'] . $_POST['log'], 0755);
fputs( $fd, "$timestamp - Log File Cleared \n" );
fclose($fd);
$action = 'View Log File';
}
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Text Formatted Code
if ($action == 'Clear Log File') {unlink($_CONF['path_log'] . $_POST['log']);
$timestamp = strftime( "%c" );
$fd = fopen( $_CONF['path_log'] . $_POST['log'], a );
chmod($_CONF['path_log'] . $_POST['log'], 0755);
fputs( $fd, "$timestamp - Log File Cleared \n" );
fclose($fd);
$action = 'View Log File';
}
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
18
29
Quote
All times are EST. The time is now 08:46 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content