git.ntnlv.ca
Repositories
Help
Report an Issue
qdmtl-ts.git
Code
Commits
Branches
Tags
Search
Tree:
29f7317
Branches
Tags
prod
qdmtl-ts.git
endpoint.php
test
davvalent
commited
29f7317
at 2022-05-18 15:12:26
endpoint.php
Blame
History
Raw
<?php require 'parse-ini.php'; require 'vendor/autoload.php'; $config = array( 'db_host' => 'localhost', 'db_name' => $infos['db_name'], 'db_user' => $infos['db_user'], 'db_pwd' => $infos['db_pwd'], 'store_name' => $infos['store_name'], 'max_errors' => 25, /* endpoint */ 'endpoint_features' => array( 'select', 'construct', 'ask', 'describe' // 'load', // 'insert', // 'delete' ), 'endpoint_timeout' => 60, // 'endpoint_read_key' => '', /* optional */ // 'endpoint_write_key' => '', /* optional, but without one, everyone can write! */ // 'endpoint_max_limit' => 250, /* optional */ ); $ep = ARC2::getStoreEndpoint($config); try { if (!$ep->isSetUp()) { $ep->setUp(); } $ep->go(); } catch (Exception $e) { exit('Une erreur est survenue.'); } ?>