Undefined ltrim issue

Many thanks Mittineague, 4 d reply and advice…

i’m very interesting with this script. Where to find the script look like this.

There is no way how to make this script more secure??