Skip to content

Commit

Permalink
Remove APC-related constants and references from class.bin.php and …
Browse files Browse the repository at this point in the history
…`class.homepage.php`
  • Loading branch information
N6REJ committed Sep 20, 2024
1 parent 45f8f06 commit 5a88ae1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1,389 deletions.
14 changes: 0 additions & 14 deletions core/classes/bins/class.bin.php.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ class BinPhp extends Module
const INI_XDEBUG_REMOTE_ENABLE = 'xdebug.remote_enable';
const INI_XDEBUG_PROFILER_ENABLE = 'xdebug.profiler_enable';
const INI_XDEBUG_PROFILER_ENABLE_TRIGGER = 'xdebug.profiler_enable_trigger';
const INI_APC_ENABLED = 'apc.enabled';
const INI_APC_INCLUDE_ONCE_OVERRIDE = 'apc.include_once_override';
const INI_APC_CANONICALIZE = 'apc.canonicalize';
const INI_APC_STAT = 'apc.stat';

private $apacheConf;
private $errorLog;
Expand Down Expand Up @@ -374,12 +370,6 @@ public function getSettings() {
'Profiler enable' => self::INI_XDEBUG_PROFILER_ENABLE,
'Profiler enable trigger' => self::INI_XDEBUG_PROFILER_ENABLE_TRIGGER,
),
'APC' => array(
'Enabled' => self::INI_APC_ENABLED,
'Include once override' => self::INI_APC_INCLUDE_ONCE_OVERRIDE,
'Canonicalize' => self::INI_APC_CANONICALIZE,
'Stat' => self::INI_APC_STAT,
),
),
);
}
Expand Down Expand Up @@ -451,10 +441,6 @@ public function getSettingsValues() {
self::INI_XDEBUG_REMOTE_ENABLE => array('On', 'Off', 'On'),
self::INI_XDEBUG_PROFILER_ENABLE => array('On', 'Off', 'Off'),
self::INI_XDEBUG_PROFILER_ENABLE_TRIGGER => array('On', 'Off', 'Off'),
self::INI_APC_ENABLED => array('1', '0', '1'),
self::INI_APC_INCLUDE_ONCE_OVERRIDE => array('1', '0', '1'),
self::INI_APC_CANONICALIZE => array('1', '0', '1'),
self::INI_APC_STAT => array('1', '0', '1'),
);
}

Expand Down
19 changes: 6 additions & 13 deletions core/classes/class.homepage.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php
/*
* Copyright (c) 2021-2024 Bearsampp
* License: GNU General Public License version 3 or later; see LICENSE.txt
* Author: Bear
* Website: https://bearsampp.com
* Github: https://github.com/Bearsampp
*
* * Copyright (c) 2021-2024 Bearsampp
* * License: GNU General Public License version 3 or later; see LICENSE.txt
* * Website: https://bearsampp.com
* * Github: https://github.com/Bearsampp
*
*/

/**
Expand All @@ -17,7 +18,6 @@ class Homepage
{
const PAGE_INDEX = 'index';
const PAGE_PHPINFO = 'phpinfo';
const PAGE_STDL_APC = 'apc.php';

private $page;

Expand All @@ -29,13 +29,6 @@ class Homepage
self::PAGE_PHPINFO,
);

/**
* @var array List of standard pages for the homepage.
*/
private $pageStdl = array(
self::PAGE_STDL_APC
);

/**
* Homepage constructor.
* Initializes the homepage class and sets the current page based on the query parameter.
Expand Down
Loading

0 comments on commit 5a88ae1

Please sign in to comment.