예제 #1
0
 function action_connectnow()
 {
     $module = !empty($this->return_module) ? $this->return_module : $this->module;
     $action = !empty($this->return_action) ? $this->return_action : 'DetailView';
     $url = "index.php?module=" . $module . "&action=" . $action;
     if (!empty($_REQUEST['record'])) {
         $url .= "&record=" . $_REQUEST['record'];
     }
     $x = new GetSessionID();
     $session_id = $x->dispatchCall(array());
     if ($session_id === false) {
         sugar_cleanup(true);
     }
     if (!empty($_REQUEST['name'])) {
         $url .= "&name=" . $_REQUEST['name'];
     }
     $url .= "&session_id=" . $session_id;
     $this->set_redirect($url);
 }
예제 #2
0
<?php

require_once '../classes/GetSessionID.php';
$get_session_id_array = new GetSessionID();
foreach ($get_session_id_array->response() as $key => $value) {
    echo "<p>" . $key . ": " . $value;
}