fix broken code afer comment cleanup and remove not needed globals
fix broken code afer comment cleanup and remove not needed globals

ironpinguin/php_rsync,ironpinguin/php_rsync,ironpinguin/php_rsync,ironpinguin/php_rsync,ironpinguin/php_rsync