[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [21326] Fixing globals
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [21326] Fixing globals |
Date: |
Wed, 08 Sep 2010 16:24:32 +0000 |
Revision: 21326
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21326
Author: Caeies
Date: 2010-09-08 16:24:32 +0000 (Wed, 08 Sep 2010)
Log Message:
-----------
Fixing globals
Modified Paths:
--------------
modules/xmlrpc/branches/branch_0_9_16/client.php
modules/xmlrpc/branches/branch_0_9_16/phpgw_test.php
modules/xmlrpc/branches/branch_0_9_16/testsuite.php
Modified: modules/xmlrpc/branches/branch_0_9_16/client.php
===================================================================
--- modules/xmlrpc/branches/branch_0_9_16/client.php 2010-09-08 16:24:04 UTC
(rev 21325)
+++ modules/xmlrpc/branches/branch_0_9_16/client.php 2010-09-08 16:24:32 UTC
(rev 21326)
@@ -21,11 +21,11 @@
include('../header.inc.php');
- if ($HTTP_POST_VARS['stateno'] != '')
+ if ($GLOBALS['_POST']['stateno'] != '')
{
- $f =
CreateObject('phpgwapi.xmlrpcmsg','examples.getStateName',array(CreateObject('phpgwapi.xmlrpcval',$HTTP_POST_VARS['stateno'],
'int')));
+ $f =
CreateObject('phpgwapi.xmlrpcmsg','examples.getStateName',array(CreateObject('phpgwapi.xmlrpcval',$GLOBALS['_POST']['stateno'],
'int')));
print "<pre>" . htmlentities($f->serialize()) . "</pre>\n";
- $c =
CreateObject('phpgwapi.xmlrpc_client',"/phpgroupware/xmlrpc.php",
$HTTP_SERVER_VARS['HTTP_HOST'], 80);
+ $c =
CreateObject('phpgwapi.xmlrpc_client',"/phpgroupware/xmlrpc.php",
$GLOBALS['_SERVER']['HTTP_HOST'], 80);
$c->setDebug(1);
$r = $c->send($f);
if (!$r)
@@ -35,7 +35,7 @@
$v = $r->value();
if (!$r->faultCode())
{
- print 'State number ' . $HTTP_POST_VARS['stateno'] . '
is ' . $v->scalarval() . '<br>';
+ print 'State number ' . $GLOBALS['_POST']['stateno'] .
' is ' . $v->scalarval() . '<br>';
// print "<HR>I got this value back<BR><PRE>" .
// htmlentities($r->serialize()). "</PRE><HR>\n";
}
Modified: modules/xmlrpc/branches/branch_0_9_16/phpgw_test.php
===================================================================
--- modules/xmlrpc/branches/branch_0_9_16/phpgw_test.php 2010-09-08
16:24:04 UTC (rev 21325)
+++ modules/xmlrpc/branches/branch_0_9_16/phpgw_test.php 2010-09-08
16:24:32 UTC (rev 21326)
@@ -21,13 +21,13 @@
include('../header.inc.php');
- if ($HTTP_POST_VARS['method'])
+ if ($GLOBALS['_POST']['method'])
{
- $f =
CreateObject('phpgwapi.xmlrpcmsg',$HTTP_POST_VARS['method'],array(
-
CreateObject('phpgwapi.xmlrpcval',$HTTP_POST_VARS['param'], 'string')
+ $f =
CreateObject('phpgwapi.xmlrpcmsg',$GLOBALS['_POST']['method'],array(
+
CreateObject('phpgwapi.xmlrpcval',$GLOBALS['_POST']['param'], 'string')
));
print "<pre>" . htmlentities($f->serialize()) . "</pre>\n";
- $c =
CreateObject('phpgwapi.xmlrpc_client',"/phpgroupware/xmlrpc.php",
$HTTP_SERVER_VARS['HTTP_HOST'], 80);
+ $c =
CreateObject('phpgwapi.xmlrpc_client',"/phpgroupware/xmlrpc.php",
$GLOBALS['_POST']['HTTP_HOST'], 80);
$c->setDebug(1);
$r = $c->send($f);
if (!$r)
@@ -37,7 +37,7 @@
$v = $r->value();
if (!$r->faultCode())
{
- print 'State number ' . $HTTP_POST_VARS['stateno'] . '
is ' . $v->scalarval() . '<br>';
+ print 'State number ' . $GLOBALS['_POST']['stateno'] .
' is ' . $v->scalarval() . '<br>';
// print "<HR>I got this value back<BR><PRE>" .
// htmlentities($r->serialize()). "</PRE><HR>\n";
}
Modified: modules/xmlrpc/branches/branch_0_9_16/testsuite.php
===================================================================
--- modules/xmlrpc/branches/branch_0_9_16/testsuite.php 2010-09-08 16:24:04 UTC
(rev 21325)
+++ modules/xmlrpc/branches/branch_0_9_16/testsuite.php 2010-09-08 16:24:32 UTC
(rev 21326)
@@ -23,7 +23,7 @@
require './phpunit.php';
$DEBUG = 0;
- $LOCALSERVER = $HTTP_SERVER_VARS['HTTP_HOST'];
+ $LOCALSERVER = $GLOBALS['_SERVER']['HTTP_HOST'];
echo 'Testing: ' . $LOCALSERVER;
$suite = new TestSuite;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [21326] Fixing globals,
Caeies <=