Skip to content

Commit

Permalink
Fixed missing link in activation email advocaite#72
Browse files Browse the repository at this point in the history
  • Loading branch information
inblackhole committed Dec 31, 2011
1 parent 36e0024 commit 884a7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameEngine/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function sendActivate($email,$username,$pass,$act) {
----------------------------
Click the following link in order to activate your account:
".SERVER."activate.php?code=".$act."
http://${_SERVER['HTTP_HOST']}/activate.php?code=$act
Greetings,
TravianX";
Expand Down

4 comments on commit 884a7a5

@ZZJHONS
Copy link

@ZZJHONS ZZJHONS commented on 884a7a5 Jan 6, 2012

Choose a reason for hiding this comment

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

Bad, you need put: HOMEPAGE . "activate?code=$act"

@inblackhole
Copy link
Owner Author

Choose a reason for hiding this comment

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

Don't think HOMEPAGE is the originally for this.
SERVER or DOMAIN should be put here.

HOMEPAGE example: www.travian.com
SERVER/DOMAIN example: s1.travian.com

@ZZJHONS
Copy link

@ZZJHONS ZZJHONS commented on 884a7a5 Jan 7, 2012

Choose a reason for hiding this comment

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

What happens if the game is in a folder of domain
http://miweb.com/migame/activate.php

@inblackhole
Copy link
Owner Author

Choose a reason for hiding this comment

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

will not work.

Please sign in to comment.