summaryrefslogtreecommitdiff
path: root/http/index.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-12-27 14:44:39 +0100
committeremkael <emkael@tlen.pl>2016-12-27 14:44:39 +0100
commit59bd9d51cc705dd44bdce753a56cc6ae914b02ce (patch)
treed61f42dccd15b1b630204c1575b4dedc1c98e9cf /http/index.php
parentb76bf844db1f196e3fa709461fcb4706839744e5 (diff)
* directory structure
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);