Skip to content

Commit

Permalink
dev: fixes for remote control
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Apr 1, 2013
1 parent 46750cc commit 8a0493a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/controllers/admin/remotecontrol.php
Expand Up @@ -53,7 +53,8 @@ public function run()
Yii::app()->loadLibrary('LSjsonRPCServer');
if (!isset($_SERVER['CONTENT_TYPE']))
{
$_SERVER['CONTENT_TYPE'] = explode(';', $_SERVER['HTTP_CONTENT_TYPE'])[0];
$serverContentType = explode(';', $_SERVER['HTTP_CONTENT_TYPE']);
$_SERVER['CONTENT_TYPE'] = reset($serverContentType);
}
LSjsonRPCServer::handle($oHandler);
}
Expand Down Expand Up @@ -98,7 +99,7 @@ public function test()
$client = new jsonRPCClient($serverUrl);
}

$sSessionKey= $client->call('get_session_key', array('admin','password'));
$sSessionKey= $client->call('get_session_key', array('admin','1voudig'));
if (is_array($sSessionKey)) {echo $sSessionKey['status']; die();}
else
{
Expand Down

0 comments on commit 8a0493a

Please sign in to comment.