Please make sure that directory /home/leelogic/public_html/affiliate/admin is not writeable for the web-server process. Do
chmod 755 /home/leelogic/public_html/affiliate/admin