예제 #1
0
 *   ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 *   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
include "../call-lib.php";
include "settings.php";
$debug = 0;
session_start();
// Test whether the form has been submitted.
if (array_key_exists('_submit_check', $_POST)) {
    $_SESSION['method'] = $_POST['method'];
    // Create/Update/Subscribe/SWEA/Delete
    $_SESSION['username'] = $_POST['username'];
    $_SESSION['password'] = $_POST['password'];
    $_SESSION['wsdl'] = $_POST['wsdl'];
    $_SESSION['inputfile'] = cleanUpXML($_POST['inputfile']);
    // Input file name.
    $_SESSION['template-op'] = $_POST['template-op'];
    $_SESSION['template-object'] = $_POST['template-object'];
    $_SESSION['service_url'] = $_POST['service_url'];
    if (strlen($_SESSION['service_url']) <= 0) {
        unset($_SESSION['service_url']);
    }
    $_SESSION['object-count'] = $_POST['object-count'];
    // Nuke the session if the Clear button was pressed.
    if (isset($_POST['reset'])) {
        unset($_SESSION['method']);
        unset($_SESSION['username']);
        unset($_SESSION['password']);
        unset($_SESSION['wsdl']);
        unset($_SESSION['inputfile']);
예제 #2
0
              			     "subscribe"=>'subscribeV25.xml',
              			     "subscribeWithExistingAccount"=>'',
              			     "queryMore"=>'queryMore.xml',
                                     "generate"=>'generate.xml',
                                     "getUserInfo"=>'getUserInfo.xml',
                                     "amend"=>'amend.xml')
	                   );

session_start();

## CMB update - undefined variable issue
$debug = false;
// Test whether the form has been submitted.
if (array_key_exists('_submit_check', $_POST)) {
   $_SESSION['method'] = $_POST['method'];
   $_SESSION['body'] = cleanUpXML($_POST['body']);
   $_SESSION['wsdl'] = $_POST['wsdl'];
   $_SESSION['api-ns'] = $_POST['api-ns'];
   $_SESSION['object-ns'] = $_POST['object-ns'];
   $_SESSION['api-batchSize'] = $_POST['api-batchSize'];
   $_SESSION['template-op'] = "";//$_POST['template-op'];
   $_SESSION['template-object'] = "";//$_POST['template-object'];
   $_SESSION['service_url'] = $_POST['service_url'];
   if (strlen($_SESSION['service_url']) <= 0) {
      unset($_SESSION['service_url']);
   }
	# CMB update - undefined index issue fixed by adding isset() test
   if (isset($_POST['sessionId-refresh'])) {
      $_SESSION['sessionId-refresh'] = true;
   } else {
      $_SESSION['sessionId-refresh'] = false;