by saying
"if someone knew the code of my scripts you think he could find some hole"
i meant if someone knew my script's structure , would he be capable to expoit the problems i described above...
so far, after your replies i think problem 2 is ok, but i have to add some check for problem 1.