Update gen.php

commented a block
Update gen.php

Commented upload script