PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Dave Smith   PHP dotGo Engine   test.php   Download  
File: test.php
Role: Auxiliary script
Content type: text/plain
Description: Engine test script
Class: PHP dotGo Engine
Interact with SMS messages sent to your site
Author: By
Last change: Fixed to work with latest version
Date: 8 years ago
Size: 1,653 bytes
 

Contents

Class file image Download
<?php
//simple engine test
//for use with dotgo class ver 0.1 beta
if( !empty($_REQUEST['formPosted']) ){
   
   
header('location: '.$_SERVER['PHP_SELF'].'?sys_argument='.urlencode($_REQUEST['sys_argument']));
    exit;
   
}elseif( !empty(
$_GET['sys_argument']) ){
   
   
$_REQUEST['sys_argument'] = urldecode($_REQUEST['sys_argument']);
   
   
$_REQUEST['sys_corrected_argument'] = $_REQUEST['sys_argument'];
   
   
$_REQUEST['sys_corrected_argument_'] = explode(' ',$_REQUEST['sys_corrected_argument']);
   
    include(
'dotgo.engine.php');
    exit;
   
}else{
   
   
$_REQUEST['sys_argument'] = '';
   
}

?>
<!DOCTYPE html>
<html>
    <head>
        <title>dotgo Engine Testing</title>
    </head>
    <body>
        <h4>dotgo Engine Testing</h4>
        <p>This test script performs a simple test of the dotgo engine. It is NOT a simulator, so complex message content like rss, engines, blocks, etc... will not be processed as the dotgo service would process them.</p>
        <p>Do not include your domain, as your users would, only enter the arguments you want to test. Once submitted, the request will be a key/value pair in the url. You can change the value in the url or press your browsers back button to use this form again.</p>
        <form method="post">
            <label for="sys_argument">Request argument: </label>
            <input type="text" name="sys_argument" value="<?PHP echo $_REQUEST['sys_argument'];?>"><br><br>
            <input type="hidden" name="formPosted" value="1"><input type="submit" name="formSubmit" value="Submit">
        </form>
    </body>
</html>