View file magmail/addfoto.php
<? require("functionChat.ssp"); $r = GetRandom(); openDB(); $result = checkpass($login,$pass,""); mysql_close(); $src = "$foto.jpg"; $dest = strtolower($login).".jpg"; if ($src == $dest) LogResult($OKMess,$menu[62],"prev"); if (copy("../foto/$src","../foto/$dest")) LogResult($OKMess,$menu[62],"prev"); else LogResult($ErrorMess,$FotoNotAdded,"prev"); ?>