Author Topic: Client PHP suggestion.  (Read 3831 times)

Olivia020

  • Donator
  • Rebel Soldier

  • Offline
  • *
  • *

  • 82
    • View Profile
Client PHP suggestion.
« on: January 07, 2013, 02:13:08 pm »
Add a script where if you leave or try to go back a page, it will ask you "Are you sure you wish to leave this page?"


and then you can press yes or cancel.


I'm as well im sure as many others are a victim of pressing the Backspace button and going back quiet a few pages and then getting stuck on your account is still logged in.

Kevin

  • Veteran
  • Rebel Captain

  • Offline
  • *
  • *
  • *

  • 638
    • View Profile
Re: Client PHP suggestion.
« Reply #1 on: January 07, 2013, 02:30:11 pm »
Good idea! We can do that!

Shane

  • Rebel Recruit

  • Offline
  • *

  • 15
    • View Profile
Re: Client PHP suggestion.
« Reply #2 on: January 10, 2013, 08:13:31 pm »
You could also download the client to help run the game faster. :]

Ruby

  • Rebel Recruit

  • Offline
  • *

  • 43
    • View Profile
Re: Client PHP suggestion.
« Reply #3 on: January 13, 2013, 10:51:12 am »
Bearing in mind that this won't be done in PHP, it's JavaScript.
Code: [Select]
window.onbeforeunload = function() {
return 'Make sure you have logged out from RuneRebels before continuing';
};
That'll work in most browsers.
« Last Edit: January 13, 2013, 10:54:19 am by Ruby »