New plugin: Timeshift (v0.1)

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

Post by jet755 »

lines in my global.php

141 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
142 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
143 header("Cache-Control: no-store, no-cache, must-revalidate");
144 header("Cache-Control: post-check=0, pre-check=0", false);
145 header("Pragma: no-cache");
146
147 /* prevent IE from silently rejects cookies sent from third party sites. */
148 header('P3P: CP="CAO PSA OUR"');
149
150 /* initilize php session */
151 session_name($cacti_session_name);
152 session_start();
rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

Post by rvd »

I understand where this error comes from but not why it is displayed.
Are you sure about ~E_WARNING in php.ini ? It should prevent from displaying warnings...
rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

Post by rvd »

jet755,
have you tried too
display_errors = Off
in your php.ini ?
jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

Post by jet755 »

rvd wrote:I understand where this error comes from but not why it is displayed.
Are you sure about ~E_WARNING in php.ini ? It should prevent from displaying warnings...
Yes, sure.
jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

Post by jet755 »

rvd wrote:jet755,
have you tried too
display_errors = Off
in your php.ini ?
THANKS!
The warning output are avoided.
jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

Post by jet755 »

BTW, I found the 4 tab png images use 16.7M colors. Other plugin images use 256 colors.

When I use cacti on a remote-controlled PC (mstsc or UltraVNC), the background color of the Timeshift tab looks a little different from other tabs.
rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

Post by rvd »

jet755 wrote:BTW, I found the 4 tab png images use 16.7M colors. Other plugin images use 256 colors.

When I use cacti on a remote-controlled PC (mstsc or UltraVNC), the background color of the Timeshift tab looks a little different from other tabs.
Try and replace files in $CACTI/plugins/timeshift/images with attached ones (removing _256 in their names)
Attachments
tab_timeshift_256.png
tab_timeshift_256.png (2.38 KiB) Viewed 3324 times
s_tab_timeshift_down_256.png
s_tab_timeshift_down_256.png (1.83 KiB) Viewed 3324 times
s_tab_timeshift_256.png
s_tab_timeshift_256.png (1.92 KiB) Viewed 3324 times
tab_timeshift_down_256.png
tab_timeshift_down_256.png (2.26 KiB) Viewed 3324 times
jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: New plugin: Timeshift (v0.1)

Post by jet755 »

Perfect! THANK YOU!
rvd
Posts: 34
Joined: Wed Nov 21, 2007 10:09 am
Location: France

Re: New plugin: Timeshift (v0.1)

Post by rvd »

New version 0.1.1 includes 256 colors tabs in images directory and modification in setup.php about function timeshift_draw_navigation_text which was not returning $nav as expected.
see http://docs.cacti.net/userplugin:timeshift#timeshift
Thank you Elias !
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests