Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/wlogin/site-lib/success.inc
<?php

/*
 * We definitely shouldn't redirect to ourselves...otherwise, it
 * loops endlessly and you generate zillions of popups.
 *
 * So,in that case, we set $userurl to null.
 */
if ( ( ! empty($_GET["userurl"]) ) && 
     ( ! ereg(UAMIP, $_GET["userurl"]) ) ) {
  $userurl = $_GET["userurl"];
}
else {
  $userurl = false;
}

/*
 * For our javascript, we need 2 extra vars: the popup url, and the
 * userurl we cooked above.
 */
$js_args .= ",'" . LOGINPATH . "?res=popup2&uamip=" . $_GET["uamip"];
$js_args .= "&uamport=" . $_GET["uamport"];
$js_args .= "&timeleft=" . $_GET["timeleft"] . "',";
$js_args .= "'" . $userurl . "',";
$js_args .= "'" . $redirurl . "'";

include(INC_DIR . "top.inc");
include(INC_DIR . "popup1.inc");


include(INC_DIR . "tail.inc");

?>
Return current item: phpMyPrepaid