-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.php
executable file
·37 lines (25 loc) · 1.41 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/* * *******************************************************************************
* The content of this file is subject to the MYC Vtiger Customer Portal license.
* ("License"); You may not use this file except in compliance with the License
* The Initial Developer of the Original Code is Proseguo s.l. - MakeYourCloud
* Portions created by Proseguo s.l. - MakeYourCloud are Copyright(C) Proseguo s.l. - MakeYourCloud
* All Rights Reserved.
* ****************************************************************************** */
$app_stus="PRODUCTION"; //SET TO PRODUCTION TO DISABLE ERRORS
if($app_stus=="PRODUCTION") error_reporting(0);
//Require all files necessary for the application to start, including user settings, soap library for enstablish the connection, and the portal classes
require_once("portal.php");
//Load the portal configuration if presents or run the wizard
PortalConfig::load();
//Establish the connection with the crm customer portal webservices
Portal::connect();
//Check if there are stored variables then if the user is previously logged or if has sent some login/forgot request, else provide him a logging screen
User::check_login();
//Start the vtlib api connection if parameters are given in the config file
Api::connect();
//Load the plugins from the plugins directory
Plugins::load_plugins();
//If the login is passed analyze the REQUEST and call the requested action.
Router::start();
?>