Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Setup a session, that will listen on the next available port 4XXXX
- $session = new KESession($Server, $Port);
- // Setup a handler, that ????
- $envhandle = new KEHandler($session);
- // Iterate through each ??? ???
- foreach ($Params as $name => $value)
- {
- // If the name is 'envid' - set $value to the id
- if ($name == "envid")
- $envhandle->id = $value;
- }
- // If the id is NULL set the class to 'Environment'
- if (!isset($envhandle->id))
- {
- $envhandle->class = "Environment";
- }
- // Setup an empty array
- $params = array();
- // What is call? and why do all the above code as we are opening a few handler below
- $environment = $envhandle->call('getAllEnvironment', $params);
- // Setup ?another? handler
- $handler = new KEHandler($session);
- // Set the class to EMuStatus
- $handler->class = "EMuStatus";
- // Execute another call where we getAllStatus with no specific params
- $result = $handler->call('getAllStatus', $params);
- // Build the $result array ith the values from the OTHER handler???
- $result['result']['envid'] = $envhandle->id;
- $result['result']['versions'] = $environment['result']['versions'];
- $result['result']['usergroup'] = $environment['result']['usergroup'];
- $result['result']['tables'] = $environment['result']['tables'];
- $result['result']['dateranges'] = $environment['result']['dateranges'];
- // Put the whole session to sleep
- $result['result']['port'] = $session->suspend();
Add Comment
Please, Sign In to add comment