-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboot.php
35 lines (32 loc) · 772 Bytes
/
boot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* This file is a part of Nenglish7/Optimize.
*
* @author Nicholas English (Owner/Developer) <[email protected]>
*
* @link <https://github.com/Nenglish7/Optimize> Github Repository.
* @license <https://github.com/Nenglish7/Optimize/blob/master/LICENSE> Apache-2.0
*/
define('PHP_OPTIMIZED', true);
/**
* Convert data for exception output.
*
* @param mixed $data The data to convert.
*
* @return string The converted data.
*/
function convertfeo($data)
{
return convertfso(var_export(serialize($data)));
}
/**
* Convert data for string output.
*
* @param string $data The data to convert.
*
* @return string The converted data.
*/
function convertfso($data)
{
return htmlspecialchars((string) $data, ENT_QUOTES, 'UTF-8');
}