require_once PT::$ABSPATH . "/inc/data/models/Resource.php"; require_once PT::$ABSPATH . "/inc/data/models/Currency.php"; require_once PT::$ABSPATH . "/inc/data/services/AbstractService.php"; require_once PT::$ABSPATH . "/inc/data/services/AttributesService.php"; require_once PT::$ABSPATH . "/inc/data/services/CashesService.php"; require_once PT::$ABSPATH . "/inc/data/services/CategoriesService.php"; require_once PT::$ABSPATH . "/inc/data/services/ProvidersService.php"; require_once PT::$ABSPATH . "/inc/data/services/PlacesService.php"; require_once PT::$ABSPATH . "/inc/data/services/PaymentModesService.php"; require_once PT::$ABSPATH . "/inc/data/services/ProductsService.php"; require_once PT::$ABSPATH . "/inc/data/services/CompositionsService.php"; require_once PT::$ABSPATH . "/inc/data/services/TariffAreasService.php"; require_once PT::$ABSPATH . "/inc/data/services/TaxesService.php"; require_once PT::$ABSPATH . "/inc/data/services/TicketsService.php"; require_once PT::$ABSPATH . "/inc/data/services/CashMovementsService.php"; require_once PT::$ABSPATH . "/inc/data/services/DiscountProfilesService.php"; require_once PT::$ABSPATH . "/inc/data/services/DiscountsService.php"; require_once PT::$ABSPATH . "/inc/data/services/CustomersService.php"; require_once PT::$ABSPATH . "/inc/data/services/CustTaxCatsService.php"; require_once PT::$ABSPATH . "/inc/data/services/UsersService.php"; require_once PT::$ABSPATH . "/inc/data/services/RolesService.php"; require_once PT::$ABSPATH . "/inc/data/services/LocationsService.php"; require_once PT::$ABSPATH . "/inc/data/services/StocksService.php"; require_once PT::$ABSPATH . "/inc/data/services/ResourcesService.php"; require_once PT::$ABSPATH . "/inc/data/services/CurrenciesService.php"; require_once PT::$ABSPATH . "/inc/data/services/CashRegistersService.php"; require_once PT::$ABSPATH . "/inc/data/services/InventoriesService.php"; require_once PT::$ABSPATH . "/inc/Csv.php"; require_once PT::$ABSPATH . "/inc/catalog.php"; load_base_i18n(detect_preferred_language()); call_hooks("core_ready");
// (at your option) any later version. // // Pastèque is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Pastèque. If not, see <http://www.gnu.org/licenses/>. namespace Pasteque; // Load template if (!isset($config['template'])) { die("No template given"); } $tmpl_file = PT::$ABSPATH . "/templates/" . $config['template'] . "/module.php"; if (!file_exists($tmpl_file) || !is_readable($tmpl_file)) { die("Template not found"); } require_once $tmpl_file; // Load modules $modules = get_loaded_modules(get_user_id()); foreach ($modules as $module) { $module_file = PT::$ABSPATH . "/modules/" . $module . "/module.php"; if (file_exists($module_file)) { require_once $module_file; } } call_hooks("module_load"); load_modules_i18n(detect_preferred_language());