Rev 3 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 4 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/usr/bin/php |
1 | #!/usr/bin/php |
2 | <?php |
2 | <?php |
3 | 3 | ||
- | 4 | /* |
|
- | 5 | * ViaThinkSoft LogViewer |
|
- | 6 | * Copyright 2018-2019 Daniel Marschall, ViaThinkSoft |
|
- | 7 | * |
|
- | 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
- | 9 | * you may not use this file except in compliance with the License. |
|
- | 10 | * You may obtain a copy of the License at |
|
- | 11 | * |
|
- | 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
- | 13 | * |
|
- | 14 | * Unless required by applicable law or agreed to in writing, software |
|
- | 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
- | 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
- | 17 | * See the License for the specific language governing permissions and |
|
- | 18 | * limitations under the License. |
|
- | 19 | */ |
|
- | 20 | ||
4 | if (php_sapi_name() !== 'cli') { |
21 | if (php_sapi_name() !== 'cli') { |
5 | die("Error: This script can only be called from command line.\n"); |
22 | die("Error: This script can only be called from command line.\n"); |
6 | } |
23 | } |
7 | 24 | ||
8 | require_once __DIR__.'/../config.inc.php'; |
25 | require_once __DIR__.'/../config.inc.php'; |