Here are the basics
$_SESSION[regen]=5
- this is the code of the number of installations xn. (Healer restores 5xp.)$udata[hp]
is a code that displays how much hp I have. (Let it be for example 10xp.)$udata[hpall]
is a display of the maximum amount of hp.
That is, you need to make the link "Heal", when you click on it, 5xp is added to my hp. But if my lives are full, I just knock out the inscription "You are healthy."