diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-07-24 11:33:04 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-07-24 11:33:04 -0400 |
commit | 3b8dc0e7e38fd3470e3d2c2fa51a2a7c20d02499 (patch) | |
tree | 5d5860981deaa4a66174418b975e528f5703a490 /backend | |
parent | Broke log viewer into segments, added build deletion (diff) | |
download | ingenue-3b8dc0e7e38fd3470e3d2c2fa51a2a7c20d02499.tar.gz ingenue-3b8dc0e7e38fd3470e3d2c2fa51a2a7c20d02499.tar.bz2 ingenue-3b8dc0e7e38fd3470e3d2c2fa51a2a7c20d02499.zip |
Require manually-configured URL - backend needs it anyway
Diffstat (limited to 'backend')
-rwxr-xr-x | backend/backend.php | 2 | ||||
-rw-r--r-- | backend/functions/url.php | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/backend/backend.php b/backend/backend.php index 3e85c90..4939dc1 100755 --- a/backend/backend.php +++ b/backend/backend.php @@ -95,7 +95,7 @@ while (true) { $key=randstring(30); $opt=new sql_buildopt($build->id, 'uploadkey', $key); $opt->write(); - $c=curl_init($conf['frontend_location'].'/backend/upload_image'); + $c=curl_init(url('backend/upload_image')); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c, CURLOPT_POSTFIELDS, array( 'build' => $build->id, diff --git a/backend/functions/url.php b/backend/functions/url.php deleted file mode 100644 index 7aae32f..0000000 --- a/backend/functions/url.php +++ /dev/null @@ -1,6 +0,0 @@ -<?php -// FIXME TODO this needs to actually do something productive -function url($url) { - return 'http://soc/'.$url; -} -?> |