Exemplo n.º 1
0
 static function process($request)
 {
     $loginModel = Session_Controller::getLoginContext();
     $client = new Vtiger_WSClient($loginModel->getURL());
     $login = $client->doLogin($loginModel->getUsername(), $loginModel->getAccessKey());
     if ($login) {
         TestCodeJS_Controller::doLayout();
         TestCodeJS_Controller::doLayoutCode();
     } else {
         echo "<div class='alert alert-danger'>ERROR: Login failure!</div>";
     }
 }
Exemplo n.º 2
0
 case 'ListTypes':
     Header_Controller::process($_REQUEST);
     include_once 'controllers/ListTypes.php';
     ListTypes_Controller::process($_REQUEST);
     Footer_Controller::process($_REQUEST);
     break;
 case 'TestCode':
     Header_Controller::process($_REQUEST);
     include_once 'controllers/TestCode.php';
     TestCode_Controller::process($_REQUEST);
     Footer_Controller::process($_REQUEST);
     break;
 case 'TestCodeJS':
     Header_Controller::process($_REQUEST);
     include_once 'controllers/TestCodeJS.php';
     TestCodeJS_Controller::process($_REQUEST);
     Footer_Controller::process($_REQUEST);
     break;
 case 'execCode':
     include_once 'controllers/TestCode.php';
     TestCode_Controller::doExecCode();
     break;
 case 'execCodeDirect':
     include_once 'controllers/TestCode.php';
     TestCode_Controller::doExecCodeDirect($_REQUEST['script']);
     break;
 case 'queryExamples':
     Header_Controller::process($_REQUEST);
     include_once 'controllers/queryExamples.php';
     QueryExamples_Controller::process();
     Footer_Controller::process($_REQUEST);