Browse Source

simplified server test

pull/90/head
Chris 7 years ago
parent
commit
42aa75818d
  1. 2
      composer.json
  2. 8
      test/router.php

2
composer.json

@ -14,6 +14,6 @@
"php": ">=5.6" "php": ">=5.6"
}, },
"scripts": { "scripts": {
"serve": ["@php -S localhost:29896 bibtexbrowser.php"]
"serve": ["@php -S localhost:29896 ./test/router.php"]
} }
} }

8
test/router.php

@ -0,0 +1,8 @@
<?PHP
// $_GET['all']=1;
@define('BIBTEXBROWSER_DEFAULT_FRAME', 'all');
//@define('BIBTEXBROWSER_DEFAULT_TEMPLATE','HTMLTemplate');
//
$_GET['bib']='bibacid-utf8.bib';
$_GET['wrapper']='BIBTEXBROWSER_EMBEDDED_WRAPPER';
require( 'bibtexbrowser.php' );
Loading…
Cancel
Save