* you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.gnu.org/licenses/gpl-3.0.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** */ require_once 'inc/tripthru/config.php'; ConfigTT::load(); ConfigTT::validateConfig(); ob_start(); session_start(); define('INDEX_CALL', 1); if (isset($_POST['JSON'])) { include 'inc/request_json.php'; exit; } require_once 'inc/tripthru/tripthru.php'; $td = new TripThru(); $page = 'home'; if (isset($_GET['p']) && $_GET['p'] != '') { $page = $_GET['p']; } ob_start(); include 'pages/header.php';