use central include file
[stapibas.git] / www / xmlrpc.php
index e5c2755c5dc9526cdc2d93dc14d2960abcc70802..4b7ce04d7e85f678aeeb5892e51ad5711798af1c 100644 (file)
@@ -3,14 +3,7 @@ namespace stapibas;
 /**
  * Simply stores all pingbacks in the database.
  */
-header('HTTP/1.0 500 Internal Server error');
-header('Content-type: text/plain');
-
-require_once __DIR__ . '/../data/config.php';
-require_once 'stapibas/autoloader.php';
-
-$db = new PDO($dbdsn, $dbuser, $dbpass);
-$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
+require_once 'www-header.php';
 
 $s = new \PEAR2\Services\Linkback\Server();
 $s->addCallback(new Linkback_DbStorage($db));