diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-01-25 14:54:48 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-01-25 14:54:48 +0100 |
commit | bdf26f361ae8ee4a77ffed68b39d7578f1a2c34f (patch) | |
tree | b4c142258152a4739bd88863bf066d356d0d9c61 /src/frontend | |
parent | 81c80fdeb15fb9f5c813f9241e1ad6aa03bc8b34 (diff) | |
download | merchant-bdf26f361ae8ee4a77ffed68b39d7578f1a2c34f.tar.gz merchant-bdf26f361ae8ee4a77ffed68b39d7578f1a2c34f.tar.bz2 merchant-bdf26f361ae8ee4a77ffed68b39d7578f1a2c34f.zip |
adapting blog to new specs; still to test
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/pay.php | 2 | ||||
-rw-r--r-- | src/frontend/util.php | 15 |
2 files changed, 1 insertions, 16 deletions
diff --git a/src/frontend/pay.php b/src/frontend/pay.php index 9fbf5f87..a843bcc9 100644 --- a/src/frontend/pay.php +++ b/src/frontend/pay.php @@ -25,7 +25,7 @@ */ -include 'util.php'; +include '../frontend_lib/util.php'; function respond_success() { $_SESSION['payment_ok'] = true; diff --git a/src/frontend/util.php b/src/frontend/util.php deleted file mode 100644 index a758d113..00000000 --- a/src/frontend/util.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php -function url_join($base, $path) { - $url = (new http\URL($base)) - ->mod(array ("path" => $path), http\Url::JOIN_PATH|http\URL::SANITIZE_PATH); - return $url->toString(); -} - -// Get a url with a path relative to the -// current script's path. -function url_rel($path) { - return url_join( - $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], - $path); -} -?> |