From 0a2cd69a4bcd05465fe17a4e75cf5c808cd65c74 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 12 Sep 2022 14:16:36 +0200 Subject: [PATCH] Add compat Gesior classes To allow more custom pages be used with myaac --- index.php | 6 ++++-- system/{compat.php => compat/base.php} | 0 system/compat/classes.php | 15 +++++++++++++++ system/{compat_pages.php => compat/pages.php} | 0 system/functions.php | 2 +- 5 files changed, 20 insertions(+), 3 deletions(-) rename system/{compat.php => compat/base.php} (100%) create mode 100644 system/compat/classes.php rename system/{compat_pages.php => compat/pages.php} (100%) diff --git a/index.php b/index.php index a6c6bea7..7e1cb5f0 100644 --- a/index.php +++ b/index.php @@ -312,8 +312,10 @@ if($load_it) if(SITE_CLOSED && admin()) $content .= '

Site is under maintenance (closed mode). Only privileged users can see it.

'; - if($config['backward_support']) - require SYSTEM . 'compat_pages.php'; + if($config['backward_support']) { + require SYSTEM . 'compat/pages.php'; + require SYSTEM . 'compat/classes.php'; + } $ignore = false; diff --git a/system/compat.php b/system/compat/base.php similarity index 100% rename from system/compat.php rename to system/compat/base.php diff --git a/system/compat/classes.php b/system/compat/classes.php new file mode 100644 index 00000000..051fbdf2 --- /dev/null +++ b/system/compat/classes.php @@ -0,0 +1,15 @@ + + * @copyright 2022 MyAAC + * @link https://my-aac.org + */ +defined('MYAAC') or die('Direct access not allowed!'); + +class Player extends OTS_Player {} +class Guild extends OTS_Guild {} +class GuildRank extends OTS_GuildRank {} +class House extends OTS_House {} diff --git a/system/compat_pages.php b/system/compat/pages.php similarity index 100% rename from system/compat_pages.php rename to system/compat/pages.php diff --git a/system/functions.php b/system/functions.php index 81b3415b..98f03e41 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1246,4 +1246,4 @@ function getCustomPage($page, &$success) // validator functions require_once LIBS . 'validator.php'; -require_once SYSTEM . 'compat.php'; +require_once SYSTEM . 'compat/base.php';