PHP disclaimer script
<p>I was wondering: what is the PHP equivalent of this JavaScript code:</p>

<pre><code>window.onload = initAll;

function initAll() {
  document.getElementById("redirect").onclick = clickHandler;
}

function clickHandler() {

  if(this.toString().indexOf("wapcreate") &lt; 0){
    window.location = "ex.html";
  }

  return false;
}
</code></pre>

<p>I want to get all the external links from my server and then direct the users to a disclaimer page</p>
