Release 4.7.0
[htmlpurifier-web.git] / pear-server.php
blob9f00538c09ee5213685c3373e73f6d0670fdc46e
1 <?php
2 require_once 'settings.pear.php';
3 set_include_path(get_include_path() . PATH_SEPARATOR . '/home/ezyang/usr/lib/php/');
4 require_once 'PEAR/Config.php';
5 PEAR_Config::singleton("/home/ezyang/.pearrc", "/home/ezyang/.pearrc");
6 require_once 'Chiara/PEAR/Server.php';
7 require_once 'Chiara/PEAR/Server/Backend/DBDataObject.php';
8 require_once 'Chiara/PEAR/Server/Frontend/HTMLQuickForm.php';
9 $backend = new Chiara_PEAR_Server_Backend_DBDataObject('htmlpurifier.org',
10 '/home/ezyang/htmlpurifier.org/Chiara_PEAR_Server_REST', array('database' => $DB_CREDENTIALS));
11 $frontend = new Chiara_PEAR_Server_Frontend_HTMLQuickForm('htmlpurifier.org', new HTML_QuickForm('channel'),
12 'pear-server.php', '/home/ezyang/usr/temp');
13 $frontend->sessionStart();
14 $server = new Chiara_PEAR_Server('/home/ezyang/htmlpurifier.org/get');
15 $server->setBackend($backend);
16 $server->setFrontend($frontend);
17 $server->run();