forked from Julien-Arlandis/phpNemoServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·35 lines (27 loc) · 1.45 KB
/
index.php
File metadata and controls
executable file
·35 lines (27 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
Copyright © 2013-2016 Julien Arlandis
@author : Julien Arlandis <julien.arlandis_at_gmail.com>
@Licence : http://www.gnu.org/licenses/agpl-3.0.txt
This file is part of PhpNemoServer.
PhpNemoServer is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PhpNemoServer is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with PhpNemoServer. If not, see <http://www.gnu.org/licenses/>.
*/
error_reporting( ~E_NOTICE );
header( "Cache-Control: no-cache, must-revalidate" );
define('SERVER_VERSION', '0.93.3');
require_once( __DIR__."/Applications/core/lib/class.jntp.php" );
if( !file_exists( __DIR__ . '/conf/config.json' ) ) { require_once( __DIR__."/install/install.php" ); die(); }
if( file_exists( __DIR__ . '/sleep' ) ) { die( 'You must remove sleep file to continue<br><strong>rm jntp/sleep</strong>' ); }
if( $_SERVER['QUERY_STRING'] ) { die( JNTP::getResource( $_SERVER['QUERY_STRING'] ) ); }
$jntp = new JNTP();
$jntp->exec( file_get_contents( "php://input" ) );
$jntp->send();