editing arduino code for version2 fifo

here is the code for initializing ov7670camera+fifo with mega2560
the only problem is deffrence in pinouts (version1 and version2)

the code is written for version1,but my camera has version2 pinouts

in this page
i could find guidance for edit in version2,but still not sure what should i change