Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/helpers/url_helper.php on line 162

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 953

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 1249

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 1274

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 1607

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 1609

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 1834

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 1836

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2075

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2112

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2112

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2140

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2140

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2159

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2160

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2264

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2276

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2276

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2287

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2288

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2646

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php on line 2964

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/application/libraries/Profiler.php on line 71

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/application/libraries/Profiler.php on line 94

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/artiplayer.com/httpdocs/application/libraries/Profiler.php on line 458
Docs - Artiplayer

Changing Constants for Better Security

Site Area

The SITE_AREA is the location of your admin interface within your website. By default, all of Bonfire’s Contexts are available by visiting http://example.com/admin/. In this case the Site Area is admin. It is the URL that all of your contexts are made available under.

Since the original intent of Bonfire was to create an admin area for your web applications, the admin site area made perfect sense. As other developers started using Bonfire, though, new ways of structuring apps became apparent. Site Areas were implemented to make these new types of app organization make more sense.

Changing the Site Area

Changing the site area for you app is as easy as changing a single constant.

Open the bonfire/application/config/constants.php file. 2. Edit the SITE_AREA constant to match your needs.

/*
   The 'App Area' allows you to specify the base folder used for all of
   the contexts in the app. By default, this is set to '/admin', but this
   does not make sense for all applications.
*/
define('SITE_AREA', 'admin');

Linking to Admin Pages

When you need to create a link within your modules to an admin page you should use the SITE_AREA constant in your link.

<a href="<?php echo site_url(SITE_AREA .'/my_link') ?>">My Link</a>

User Login & Registration

To help protect your site from script-related brute-force attacks you can globally change the login and register URLs to something unique on your site. This primarily keeps spammers from doing a simple Google and located a Bonfire-specific string on your website, collecting the URL, and spamming user registrations or logins onto your site or attempting brute-force logins. It is not a foolproof method of security, by any means, but can keep your site free from the script-kiddies and link spammers.

The config/constants.php file defines a constant that is used throughout the system's core modules and themes. Changing the destination of these defines will also change the URL used throughout the system.

define('LOGIN_URL', 'login');
define('REGISTER_URL', 'register');

When No Public Login is Needed

If your site does not require public login, only admin login, you can take the following steps to tighten up security a little bit more.

  1. Change LOGIN_URL to equal SITE_AREA .'/login' to bring the login page into the admin area.
  2. Change SITE_AREA to a different value (not the default /admin)
  3. Make sure that user registration is disabled. Uncheck 'Allow User Registrations' within Settings. Edit routes.php to a) remove /register and b) block users/register.
  4. Check your site theme and remove any login links.
Profiler
Profiler Console 0 Load Time 270.6ms Memory Used 1.15 MB Database 4 Queries vars & Config Files 87

Console

Memory Usage

Benchmarks

50 ms Loading Time: Base Classes
150 ms Controller Execution Time ( Docs / Index )
271 ms Total Execution Time

Queries

0.0004 SELECT GET_LOCK('qfiv5rf074q85saf2u3lnf6fea', 300) AS ci_session_lockSpeed: 0.0004 - Possible keys: - Key Used: - Type: - Rows: - Extra: No tables used
0.0014 SELECT `data` FROM `ap_ci3_sessions` WHERE `id` = 'qfiv5rf074q85saf2u3lnf6fea'Speed: 0.0014 - Possible keys: - Key Used: - Type: - Rows: - Extra: Impossible WHERE noticed after reading const tables
0.0010 SHOW TABLES FROM `artiweb_db`
0.0004 SELECT * FROM `ap_settings`Speed: 0.0004 - Possible keys: - Key Used: - Type: ALL - Rows: 40 - Extra:
0.0031 Total Query Execution Time

Session User Data

__ci_last_regenerate 1732783207
requested_page https://104854.21dyvlrb.asia/docs/developer/changing_the_admin_URL
previous_page https://104854.21dyvlrb.asia/docs/developer/changing_the_admin_URL

GET DATA

No GET data exists

POST DATA

No POST data exists

URI STRING

docs/developer/changing_the_admin_URL

CLASS/METHOD

docs/index

HTTP HEADERS

HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_CONNECTION close
SERVER_PORT 80
SERVER_NAME 104854.21dyvlrb.asia
REMOTE_ADDR 172.70.131.76
SERVER_SOFTWARE Apache
HTTP_ACCEPT_LANGUAGE
SCRIPT_NAME /index.php
REQUEST_METHOD GET
HTTP_HOST
REMOTE_HOST
CONTENT_TYPE
SERVER_PROTOCOL HTTP/1.1
QUERY_STRING
HTTP_ACCEPT_ENCODING gzip, br
HTTP_X_FORWARDED_FOR 18.188.96.17

CONFIG VARIABLES

base_url https://104854.21dyvlrb.asia/
index_page
uri_protocol AUTO
url_suffix
language english
charset UTF-8
enable_hooks true
subclass_prefix MY_
composer_autoload false
permitted_uri_chars a-z 0-9~%.:_-
allow_get_array true
enable_query_strings false
controller_trigger c
function_trigger m
directory_trigger d
log_threshold 0
log_path /var/www/vhosts/artiplayer.com/httpdocs/application/logs/
log_file_extension
log_file_permissions 420
log_date_format Y-m-d H:i:s
error_views_path
cache_path /var/www/vhosts/artiplayer.com/httpdocs/application/cache/
cache_query_string false
encryption_key d0680639b7b72a248f62d947aed47f62
sess_cookie_name bf_session
sess_expiration 7200
sess_time_to_update 300
sess_match_ip false
sess_expire_on_close false
sess_encrypt_cookie false
sess_use_database false
sess_table_name sessions
sess_match_useragent true
sess_driver database
sess_regenerate_destroy false
sess_save_path ci3_sessions
cookie_prefix
cookie_domain
cookie_path /
cookie_secure false
cookie_httponly false
standardize_newlines false
global_xss_filtering false
csrf_protection true
csrf_token_name ci_csrf_token
csrf_cookie_name ci_csrf_token
csrf_expire 7200
csrf_regenerate true
csrf_exclude_uris Array ( )
compress_output false
time_reference utc
rewrite_short_tags false
proxy_ips
bonfire.installed 1
site.default_user_timezone UM8
modules_locations Array ( [/var/www/vhosts/artiplayer.com/httpdocs/application/modules/] =&gt; ../../application/modules/ [/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/] =&gt; ../../bonfire/modules/ )
site.backup_folder archives/
contexts Array ( [0] =&gt; content [1] =&gt; reports [2] =&gt; settings [3] =&gt; developer )
enable_activity_logging true
sparks_path ../sparks/
template.site_path /var/www/vhosts/artiplayer.com/httpdocs/public/
template.theme_paths Array ( [0] =&gt; themes )
template.default_layout index
template.ajax_layout ajax
template.use_mobile_themes false
template.default_theme default/
template.admin_theme admin
template.message_template &lt;div class=&quot;alert alert-{type} alert-dismissable&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/button&gt; &lt;div&gt;{message}&lt;/div&gt; &lt;/div&gt;
template.breadcrumb_symbol :
template.parse_views false
assets.directories Array ( [base] =&gt; assets [cache] =&gt; cache [css] =&gt; css [image] =&gt; images [js] =&gt; js [module] =&gt; module )
assets.js_opener $(document).ready(function() {
assets.js_closer });
assets.css_combine false
assets.js_combine false
assets.css_minify true
assets.js_minify true
assets.encrypt_name false
assets.encode false
assets.base_folder assets
assets.asset_folders Array ( [css] =&gt; css [js] =&gt; js [image] =&gt; images )
ui.current_shortcuts Array ( [form_save] =&gt; Array ( [description] =&gt; Save any form in the admin area. [action] =&gt; $(&quot;input[name=save]&quot;).click();return false; ) [create_new] =&gt; Array ( [description] =&gt; Create a new record in the module. [action] =&gt; window.location.href=$(&quot;a#create_new&quot;).attr(&quot;href&quot;); ) [select_all] =&gt; Array ( [description] =&gt; Select all records in an index page. [action] =&gt; $(&quot;table input[type=checkbox]&quot;).click();return false; ) [delete] =&gt; Array ( [description] =&gt; Delete the record(s). [action] =&gt; $(&quot;#delete-me.btn-danger&quot;).click(); ) [module_index] =&gt; Array ( [description] =&gt; Return to the index of the current module. [action] =&gt; window.location.href=$(&quot;a#list&quot;).attr(&quot;href&quot;); ) [goto_content] =&gt; Array ( [description] =&gt; Jump to the Content context. [action] =&gt; window.location.href=$(&quot;#tb_content&quot;).attr(&quot;href&quot;) ) [goto_reports] =&gt; Array ( [description] =&gt; Jump to the Reports context. [action] =&gt; window.location.href=$(&quot;#tb_reports&quot;).attr(&quot;href&quot;) ) [goto_settings] =&gt; Array ( [description] =&gt; Jump to the Settings context. [action] =&gt; window.location.href=$(&quot;#tb_settings&quot;).attr(&quot;href&quot;) ) [goto_developer] =&gt; Array ( [description] =&gt; Jump to the Developer context. [action] =&gt; window.location.href=$(&quot;#tb_developer&quot;).attr(&quot;href&quot;) ) )
emailer.write_to_file false
migrate.auto_core false
migrate.auto_app false
commonmark.valid_drivers Array ( [0] =&gt; Parsedown [1] =&gt; Markdown [2] =&gt; MarkdownExtra [3] =&gt; LeagueCommonMark )
commonmark.driver MarkdownExtended
docs.theme docs
docs.default_group developer
docs.show_dev_docs true
docs.show_app_docs true
docs.toc_file _toc.ini
docs.permitted_environments Array ( [0] =&gt; development [1] =&gt; testing [2] =&gt; production )

Files

application.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/application.php
autoload.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/autoload.php
config.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/config.php
constants.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/constants.php
database.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/database.php
events.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/events.php
hooks.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/hooks.php
mimes.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/mimes.php
profiler.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/profiler.php
routes.php
/var/www/vhosts/artiplayer.com/httpdocs/application/config/routes.php
Base_Controller.php
/var/www/vhosts/artiplayer.com/httpdocs/application/core/Base_Controller.php
MY_Model.php
/var/www/vhosts/artiplayer.com/httpdocs/application/core/MY_Model.php
App_hooks.php
/var/www/vhosts/artiplayer.com/httpdocs/application/hooks/App_hooks.php
application_lang.php
/var/www/vhosts/artiplayer.com/httpdocs/application/language/english/application_lang.php
Profiler.php
/var/www/vhosts/artiplayer.com/httpdocs/application/libraries/Profiler.php
Base.php
/var/www/vhosts/artiplayer.com/httpdocs/application/third_party/MX/Base.php
Config.php
/var/www/vhosts/artiplayer.com/httpdocs/application/third_party/MX/Config.php
Controller.php
/var/www/vhosts/artiplayer.com/httpdocs/application/third_party/MX/Controller.php
Lang.php
/var/www/vhosts/artiplayer.com/httpdocs/application/third_party/MX/Lang.php
Loader.php
/var/www/vhosts/artiplayer.com/httpdocs/application/third_party/MX/Loader.php
Benchmark.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Benchmark.php
CodeIgniter.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/CodeIgniter.php
Common.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Common.php
Config.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Config.php
Controller.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Controller.php
Hooks.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Hooks.php
Input.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Input.php
Lang.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Lang.php
Loader.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Loader.php
Log.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Log.php
Model.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Model.php
Output.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Output.php
Router.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Router.php
Security.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Security.php
URI.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/URI.php
Utf8.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/Utf8.php
hash.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/compat/hash.php
mbstring.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/compat/mbstring.php
password.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/compat/password.php
standard.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/core/compat/standard.php
DB.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/database/DB.php
DB_driver.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/database/DB_driver.php
DB_query_builder.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/database/DB_query_builder.php
DB_result.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/database/DB_result.php
mysqli_driver.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/database/drivers/mysqli/mysqli_driver.php
mysqli_result.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/database/drivers/mysqli/mysqli_result.php
directory_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/helpers/directory_helper.php
form_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/helpers/form_helper.php
language_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/helpers/language_helper.php
url_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/helpers/url_helper.php
profiler_lang.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/language/english/profiler_lang.php
Cache.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/libraries/Cache/Cache.php
Cache_dummy.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/libraries/Cache/drivers/Cache_dummy.php
Driver.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/libraries/Driver.php
Session.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/libraries/Session/Session.php
Session_driver.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/libraries/Session/Session_driver.php
Session_database_driver.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/ci3/libraries/Session/drivers/Session_database_driver.php
BF_Lang.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/core/BF_Lang.php
BF_Loader.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/core/BF_Loader.php
BF_Model.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/core/BF_Model.php
BF_Router.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/core/BF_Router.php
BF_Security.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/core/BF_Security.php
BF_directory_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/BF_directory_helper.php
BF_form_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/BF_form_helper.php
application_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/application_helper.php
config_file_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/config_file_helper.php
markdown_extended_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_extended_helper.php
markdown_helper.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/helpers/markdown_helper.php
Assets.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/Assets.php
CommonMark.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/CommonMark.php
CommonMarkDriver.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/CommonMark/CommonMarkDriver.php
CommonMark_MarkdownExtended.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/CommonMark/drivers/CommonMark_MarkdownExtended.php
Console.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/Console.php
Events.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/Events.php
Modules.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/Modules.php
Route.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/Route.php
Template.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/libraries/Template.php
docs.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/docs/config/docs.php
routes.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/docs/config/routes.php
Docs.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/docs/controllers/Docs.php
docs_lang.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/docs/language/english/docs_lang.php
_sidebar.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/docs/views/_sidebar.php
index.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/docs/views/index.php
Settings_lib.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/settings/libraries/Settings_lib.php
Settings_model.php
/var/www/vhosts/artiplayer.com/httpdocs/bonfire/modules/settings/models/Settings_model.php
index.php
index.php
index.php
themes/docs/index.php