[php] x

Viewer

  1. function logout(to_url) {
  2.     var out = window.location.href.replace(/:\/\//, '://log:out@');
  3.  
  4.     jQuery.get(out).error(function() {
  5.         window.location = to_url;
  6.     });
  7. }

Editor

You can edit this paste and save as new: