Skip to content

Commit f0092bd

Browse files
committed
fix: Add ignored core files
1 parent 6c79731 commit f0092bd

File tree

24 files changed

+9656
-0
lines changed

24 files changed

+9656
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>403 Forbidden</title>
5+
</head>
6+
<body>
7+
8+
<p>Directory access is forbidden.</p>
9+
10+
</body>
11+
</html>
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<?php
2+
/**
3+
* CodeIgniter
4+
*
5+
* An open source application development framework for PHP
6+
*
7+
* This content is released under the MIT License (MIT)
8+
*
9+
* Copyright (c) 2019 - 2022, CodeIgniter Foundation
10+
*
11+
* Permission is hereby granted, free of charge, to any person obtaining a copy
12+
* of this software and associated documentation files (the "Software"), to deal
13+
* in the Software without restriction, including without limitation the rights
14+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
* copies of the Software, and to permit persons to whom the Software is
16+
* furnished to do so, subject to the following conditions:
17+
*
18+
* The above copyright notice and this permission notice shall be included in
19+
* all copies or substantial portions of the Software.
20+
*
21+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27+
* THE SOFTWARE.
28+
*
29+
* @package CodeIgniter
30+
* @author EllisLab Dev Team
31+
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
32+
* @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33+
* @copyright Copyright (c) 2019 - 2022, CodeIgniter Foundation (https://codeigniter.com/)
34+
* @license https://opensource.org/licenses/MIT MIT License
35+
* @link https://codeigniter.com
36+
* @since Version 1.0.0
37+
* @filesource
38+
*/
39+
defined('BASEPATH') OR exit('No direct script access allowed');
40+
41+
/**
42+
* Benchmark Class
43+
*
44+
* This class enables you to mark points and calculate the time difference
45+
* between them. Memory consumption can also be displayed.
46+
*
47+
* @package CodeIgniter
48+
* @subpackage Libraries
49+
* @category Libraries
50+
* @author EllisLab Dev Team
51+
* @link https://codeigniter.com/userguide3/libraries/benchmark.html
52+
*/
53+
class CI_Benchmark {
54+
55+
/**
56+
* List of all benchmark markers
57+
*
58+
* @var array
59+
*/
60+
public $marker = array();
61+
62+
/**
63+
* Set a benchmark marker
64+
*
65+
* Multiple calls to this function can be made so that several
66+
* execution points can be timed.
67+
*
68+
* @param string $name Marker name
69+
* @return void
70+
*/
71+
public function mark($name)
72+
{
73+
$this->marker[$name] = microtime(TRUE);
74+
}
75+
76+
// --------------------------------------------------------------------
77+
78+
/**
79+
* Elapsed time
80+
*
81+
* Calculates the time difference between two marked points.
82+
*
83+
* If the first parameter is empty this function instead returns the
84+
* {elapsed_time} pseudo-variable. This permits the full system
85+
* execution time to be shown in a template. The output class will
86+
* swap the real value for this variable.
87+
*
88+
* @param string $point1 A particular marked point
89+
* @param string $point2 A particular marked point
90+
* @param int $decimals Number of decimal places
91+
*
92+
* @return string Calculated elapsed time on success,
93+
* an '{elapsed_string}' if $point1 is empty
94+
* or an empty string if $point1 is not found.
95+
*/
96+
public function elapsed_time($point1 = '', $point2 = '', $decimals = 4)
97+
{
98+
if ($point1 === '')
99+
{
100+
return '{elapsed_time}';
101+
}
102+
103+
if ( ! isset($this->marker[$point1]))
104+
{
105+
return '';
106+
}
107+
108+
if ( ! isset($this->marker[$point2]))
109+
{
110+
$this->marker[$point2] = microtime(TRUE);
111+
}
112+
113+
return number_format($this->marker[$point2] - $this->marker[$point1], $decimals);
114+
}
115+
116+
// --------------------------------------------------------------------
117+
118+
/**
119+
* Memory Usage
120+
*
121+
* Simply returns the {memory_usage} marker.
122+
*
123+
* This permits it to be put it anywhere in a template
124+
* without the memory being calculated until the end.
125+
* The output class will swap the real value for this variable.
126+
*
127+
* @return string '{memory_usage}'
128+
*/
129+
public function memory_usage()
130+
{
131+
return '{memory_usage}';
132+
}
133+
134+
}

0 commit comments

Comments
 (0)