@@ -23,6 +23,6 @@ |
||
| 23 | 23 | } |
| 24 | 24 | $found = ($result['found'] === true) ? 1 : 0; |
| 25 | 25 | sleep(1); |
| 26 | - header('location:'.BASE_HREF.'/'.$index.'/'.$type.'?res=success&req=delete&f='.$found); |
|
| 26 | + header('location:' . BASE_HREF . '/' . $index . '/' . $type . '?res=success&req=delete&f=' . $found); |
|
| 27 | 27 | exit; |
| 28 | 28 | } |
@@ -36,5 +36,5 @@ |
||
| 36 | 36 | $nof = (int) $count['hits']['total']; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - return ['app_title' => $index.'/'.$type, 'data' => ['index' => $index, 'type' => $type, 'documents' => $documents, 'from' => $from, 'nof' => $nof, 'size' => $size, 'sort' => $sort, 'query' => $query]]; |
|
| 39 | + return ['app_title' => $index . '/' . $type, 'data' => ['index' => $index, 'type' => $type, 'documents' => $documents, 'from' => $from, 'nof' => $nof, 'size' => $size, 'sort' => $sort, 'query' => $query]]; |
|
| 40 | 40 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (file_exists(dirname(__DIR__).'/app_config.php')) { |
|
| 4 | - require_once dirname(__DIR__).'/app_config.php'; |
|
| 3 | +if (file_exists(dirname(__DIR__) . '/app_config.php')) { |
|
| 4 | + require_once dirname(__DIR__) . '/app_config.php'; |
|
| 5 | 5 | } else { |
| 6 | - require_once dirname(__DIR__).'/app_config.sample.php'; |
|
| 6 | + require_once dirname(__DIR__) . '/app_config.sample.php'; |
|
| 7 | 7 | } |
| 8 | -require_once $config['base_dir'].'/vendor/autoload.php'; |
|
| 8 | +require_once $config['base_dir'] . '/vendor/autoload.php'; |
|
| 9 | 9 | |
| 10 | 10 | define('BASE_HREF', $config['base_url']); |
| 11 | 11 | |