amnuts / opcache-gui

A clean, effective and responsive interface for Zend OPcache
1.23k stars 198 forks source link

Update index.php #83

Closed Stevemoretz closed 2 years ago

Stevemoretz commented 2 years ago

This project was showing me as white screen, I noticed in the logs some errors related to CORS, this will fix the errors, (I tried but composer and index ways.)

amnuts commented 2 years ago

Hi @Stevemoretz,

Sorry for the delay in getting back to you and many thanks for your contribution!

The index.php file isn't the only place that this change needs to happen. It also has to be done in the build/template.phps file, as that's what's used to generate index.php.

If you fancy making the changes there as well, that'd be great. If you don't get around to it, though, no worries. I'll be making some updates to the code sometime in the next few weeks so will wrap your changes up in that and add what else is needed.

Stevemoretz commented 2 years ago

Hi @Stevemoretz,

Sorry for the delay in getting back to you and many thanks for your contribution!

The index.php file isn't the only place that this change needs to happen. It also has to be done in the build/template.phps file, as that's what's used to generate index.php.

If you fancy making the changes there as well, that'd be great. If you don't get around to it, though, no worries. I'll be making some updates to the code sometime in the next few weeks so will wrap your changes up in that and add what else is needed.

No problem and you are welcome! I made the change also at build/template.phps. I hope everything's good to go.