IP : 3.142.195.182Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
../
var/
softaculous/
./
tcexam/
../
readerself/
../
tiki10/
../
txtpat/
_index.php/
/
<?php
/* * Textpattern Content Management System * https://textpattern.com/ * * Copyright (C) 2022 The Textpattern Development Team * * This file is part of Textpattern. * * Textpattern is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2. * * Textpattern 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Textpattern. If not, see <https://www.gnu.org/licenses/>. */
if (!defined('txpath')) { define("txpath", dirname(__FILE__)); }
define("txpinterface", "admin");
$thisversion = '4.8.8'; // $txp_using_svn deprecated in 4.7.0. $txp_using_svn = $txp_is_dev = false; // Set false for releases.
ob_start(null, 2048);
if (!isset($txpcfg['table_prefix']) && !@include './config.php') { ob_end_clean(); header('HTTP/1.1 503 Service Unavailable'); exit('<p>config.php is missing or corrupt. To install Textpattern, visit <a href="./setup/">setup</a>.</p>'); } else { ob_end_clean(); }
header("Content-Type: text/html; charset=utf-8");
error_reporting(E_ALL | E_STRICT); @ini_set("display_errors", "1"); include txpath.'/lib/class.trace.php'; $trace = new Trace(); $trace->start('[PHP includes]'); include_once txpath.'/lib/constants.php'; include txpath.'/lib/txplib_misc.php'; include txpath.'/lib/txplib_admin.php';
include txpath.'/vendors/Textpattern/Loader.php';
$loader = new \Textpattern\Loader(txpath.'/vendors'); $loader->register();
$loader = new \Textpattern\Loader(txpath.'/lib'); $loader->register();
include txpath.'/lib/txplib_db.php'; include txpath.'/lib/txplib_forms.php'; include txpath.'/lib/txplib_html.php'; include txpath.'/lib/admin_config.php'; $trace->stop();
// HTTP address of the site serving images. if (!defined('ihu')) { define('ihu', hu); }
// HTTP address of Textpattern admin URL. if (!defined('ahu')) { if (empty($txpcfg['admin_url'])) { $adminurl = hu.'textpattern/'; } else { $adminurl = PROTOCOL.rtrim(preg_replace('|^https?://|', '', $txpcfg['admin_url']), '/').'/'; }
define('ahu', $adminurl); }
// Shared admin and public cookie_domain when using multisite admin URL (use main domain if not set). if (!defined('cookie_domain')) { if (!isset($txpcfg['cookie_domain'])) { if (empty($txpcfg['admin_url'])) { $txpcfg['cookie_domain'] = ''; } else { $txpcfg['cookie_domain'] = rtrim(substr($txpcfg['admin_url'], strpos($txpcfg['admin_url'], '.') + 1), '/'); } }
if (!empty($locale)) { setlocale(LC_ALL, $locale); }
// For backwards-compatibility (sort of) with plugins that expect the // $textarray global to be present. // Will remove in future. $textarray = array();
//load_lang(LANG, 'admin');
// Initialise global theme. $theme = \Textpattern\Admin\Theme::init();
include txpath.'/include/txp_auth.php'; if(empty($_POST['softlogin'])){ doAuth(); }
// Article or form preview. if (isset($_GET['txpreview'])) { load_lang(LANG, 'public'); include txpath.'/publish.php'; textpattern(); echo $trace->summary();
if ($production_status === 'debug') { echo $trace->result(); }
exit; }
$txp_sections = safe_column(array('name'), 'txp_section', '1 ORDER BY title, name'); $timezone_key = get_pref('timezone_key', date_default_timezone_get()) or $timezone_key = 'UTC'; date_default_timezone_set($timezone_key);