sessions) { session_start(); } /* The content can be displayed by another script which generates HTML output: */ global $smspay_resp; if ($my_pay->payment_verified()) { /* User entered a valid password, authentication successful and the content can be displayed to the user */ $smspay_resp = $my_pay->restricted_content(); /* Or you can redirect the user to a separate script which verifies that $_SESSION["payment_ok"] is set: */ /* * header('HTTP/1.0 302 Moved temporarily'); * header('Location: content.php'); */ } else { /* * Invalid password or an error occurred; * display the login widget with an error message */ $smspay_resp = $my_pay->widget(); } ?>
|
|||||||||||||||