This commit is contained in:
3err0
2019-05-18 13:46:03 +08:00
commit 55e0adfa17
707 changed files with 55878 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
define( 'DATALIFEENGINE', true );
define( 'ROOT_DIR', substr( dirname( __FILE__ ), 0, -7 ) );
define( 'SYSTEM_DIR', ROOT_DIR . '/system' );
error_reporting( 7 );
ini_set( 'display_errors', true );
ini_set( 'html_errors', false );
include SYSTEM_DIR . '/data/config.php';
require_once SYSTEM_DIR . '/classes/templates.class.php';
$tpl = new dle_template( );
$tpl->dir = ROOT_DIR . '/templates';
define( 'TEMPLATE_DIR', $tpl->dir );
$tpl->load_template( 'opensearch.tpl' );
$tpl->set( '{path}', $config['http_home_url'] );
$tpl->compile( 'main' );
header( 'Content-type: application/xml' );
echo $tpl->result['main'];
?>