summaryrefslogtreecommitdiff
path: root/http/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'http/index.php')
-rw-r--r--http/index.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/http/index.php b/http/index.php
index cf2f636..0a08aed 100644
--- a/http/index.php
+++ b/http/index.php
@@ -1,8 +1,8 @@
<?php
-$config = json_decode(file_get_contents('config.json'), TRUE);
+$config = json_decode(file_get_contents('../config.json'), TRUE);
-require_once('codebird-php/src/codebird.php');
+require_once('../lib/codebird-php/src/codebird.php');
\Codebird\Codebird::setConsumerKey($config['key'], $config['secret']);
\Codebird\Codebird::setBearerToken($config['token']);
@@ -20,7 +20,7 @@ if (preg_match('/^(.*)\/spamfilter$/', $user, $filterMatch)) {
if ($user) {
- $cacheFile = 'cache/'.$user.'.json';
+ $cacheFile = '../cache/'.$user.'.json';
$cacheTime = file_exists($cacheFile) ? filemtime($cacheFile) : 0;
$content = '';
@@ -81,9 +81,9 @@ if ($user) {
require_once('smarty3/Smarty.class.php');
$smarty = new Smarty();
- $smarty->setCacheDir('cache/smarty');
- $smarty->setCompileDir('cache/smarty/compile');
- $smarty->setTemplateDir('templates');
+ $smarty->setCacheDir('../cache/smarty');
+ $smarty->setCompileDir('../cache/smarty/compile');
+ $smarty->setTemplateDir('../templates');
$smarty->assign('cacheTime', $cacheTime);
$smarty->assign('user', $user);