コード例 #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) {
         TestCode_Controller::doLayout();
         TestCode_Controller::doLayoutCode();
     } else {
         echo "<div class='alert alert-danger'>ERROR: Login failure!</div>";
     }
 }
コード例 #2
0
         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);
         break;
     case 'VQL':
     default:
         Header_Controller::process($_REQUEST);
         include_once 'controllers/Query.php';
         Query_Controller::process($_REQUEST);
         Footer_Controller::process($_REQUEST);
         break;
 }