Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved code structure (backend/getIp.php) #670

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mespeet
Copy link

@Mespeet Mespeet commented Oct 2, 2024

Improved the overall code structure of backend/getIp.php.

Really suggest going with a more oop based code tbh but I guess this works. ㄟ( ▔, ▔ )ㄏ

Improved the overall code structure of backend/getIp.php.

Really suggest going with a more oop based code tbh but I guess this works. ㄟ( ▔, ▔ )ㄏ
@sstidl
Copy link
Collaborator

sstidl commented Oct 26, 2024

hey @Mespeet !

thank you for the really more readable code. i would like to merge it, but would like to know if this would need any minimum php version. i know @adolfintel still wants to support older php versions so far, so your change should not break anyones installation where still older php is used.

Copy link
Collaborator

@sstidl sstidl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check your code. this is not the same function as before.

* Fetch the client's IP address.
* @return string
*/
function getClientIp(): string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why move this from getIP_util.php here? and also this is not the same code as there.

@sstidl sstidl marked this pull request as draft December 29, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants