FIXED: Approve tampered file warning

Greetings,

I did some tampering to a file to get more call flow control options.
By following this guide:

  1. copy /var/www/html/admin/modules/daynight/functions.inc.php to /var/www/html/admin/modules/daynight/functions.inc.php.dist (good to have a backup) 2. edit /var/www/html/admin/modules/daynight/functions.inc.php and find function daynight_get_avail() { (should start around line 258) 3. under global $db; add another line that reads $NUMDAYNIGHT = 99; 4. comment out the section that starts for ($i=0;$i<=9;$i++) { and ends return $list; (since this is PHP, just add // to the start of those lines 5. under the commented out lines, add the following: for ($i=0;$i<=($NUMDAYNIGHT-1);$i++) { $n=ceil(log10($NUMDAYNIGHT)); $format="%0".$n.ā€œdā€; $j=sprintf($format,$i); if (!in_array($j,$results)) { $list[]=$j; } } return $list;*

However when i log in I get a critical warning thaht a file has been tampered with. How can I approve this warning and get rid of it? Because I know I tampered with is, and it was my intention to do so.

Any ideas?

Thanks in advance!

FIXED: click the cross on the right :slight_smile:

1 Like