smsq/includes/core.php

24 lines
666 B
PHP

<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
// Root directory path
$root_dir_path=realpath(dirname(__FILE__).'/../');
// Include App's includes and vendor directories to PHP include paths
set_include_path($root_dir_path.'/includes' . PATH_SEPARATOR . $root_dir_path.'/vendor' . PATH_SEPARATOR . get_include_path());
require_once('config.inc.php');
require $root_dir_path . '/vendor/autoload.php';
require_once('logging.php');
require_once('functions.php');
require_once('sms_gw_api.php');
$smsgw = new sms_gw_api($smsgw_url, $smsgw_ssl_verify, $smsgw_ws_connect_timeout, $smsgw_ws_timeout);
require('db.php');
require('mail.php');