10-30-2018, 04:51 PM
(10-30-2018, 04:30 PM)arsalahmed786 Wrote: @TrK, @Dynamo and @"Hidden Refuge" Thanks helping me regarding issue with PiratesHosting's post counter script.
I have found the error when i tried fresh script downloading from HMR's github.
Error is:
Line #79 code on img.php is:
Code: (Select All)if (substr($post->plaintext, 0, 3) === 'Yes' or substr($post->plaintext, 0, 3) === 'Tod' or substr($post->plaintext, 0, 3) === 'Les' or substr($post->plaintext, 3, 3) === 'min' or substr($post->plaintext, 2, 3) === 'min' or substr($post->plaintext, 2, 3) === 'hou' or substr($post->plaintext, 3, 3) === 'hou' or substr($post->plaintext, 0, 3) === date("m-") && substr($post->plaintext, 5, 5) === date("-Y")) {
$numberofpoststhismonth++;
}
What's the problem in line #79 ? it fresh's script code i didn't even touch anything except changing mybb forum url changing.
You need to set date.timezone in your php.ini as referenced in the warning since the code is not.