XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
xml_sitemap.php
1<?php
5 * @package Sitemap
6 * @version 2.5.0
7 * @author Other authors gigamaster, 2020 XCL/PHP7
8 * @author chanoir
9 * @copyright (c) 2005-2025 Authors
10 * @license GPL v2.0
11 */
12
13if( ! defined( 'SITEMAP_ROOT_CONTROLLER_LOADED' ) ) {
14 if( ! file_exists( __DIR__ .'/modules/sitemap/xml_sitemap.php' ) ) {
15 die( "Don't call this file directly" ) ;
16 }
17 if( ! empty( $_SERVER['REQUEST_URI'] ) ) {
18 $_SERVER['REQUEST_URI'] = str_replace( 'xml_sitemap.php' , 'modules/sitemap/xml_sitemap.php' , $_SERVER['REQUEST_URI'] ) ;
19 } else {
20 $_SERVER['REQUEST_URI'] = '/modules/sitemap/xml_sitemap.php' ;
21 }
22 $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] ;
23 define( 'SITEMAP_ROOT_CONTROLLER_LOADED' , 1 ) ;
24 $real_xml_google_path = __DIR__ .'/modules/sitemap/xml_sitemap.php' ;
25 chdir( './modules/sitemap/' ) ;
26 require $real_xml_google_path ;
27 exit ;
28 } else {
29 require '../../mainfile.php' ;
30}