-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
42 lines (31 loc) · 1.12 KB
/
Copy pathindex.php
File metadata and controls
42 lines (31 loc) · 1.12 KB
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
36
37
38
39
40
41
42
<?php /* It is an open source code for various applications. */
/* robots.txt and sitemap.xml static and manually edited. */
if (PHP_VERSION_ID < 50217)
{
echo 'Code for PHP (5.2) and older versions';
exit;
}
ini_set('max_execution_time', 1);/* You cat set max_execution_time more than 1 second if your server work slow. */
error_reporting(E_ALL);
ini_set('display_errors',1);
ini_set('memory_limit', '8388608');/* Memory_limit in bytes. 5242880 bytes = 5 Mbyte. */
ini_set('upload_max_filesize', '1M');
ini_set('post_max_size', '1M');
setlocale(LC_ALL, 'RU.UTF-8');
/* You can choose your time zone. */
ini_set('date.timezone','Europe/Moscow');
/* A constant for stopping the work of other scripts of the current application without participation index.php. */
define('A',1);
try
{
/* Controls and cleans $_GET parameters. */
require_once 'xsscontrol.php';
/* Load A function for managing requests from the url string. */
require_once 'route.php';
/* A function for managing requests from the url string. */
new Route('/');
}
catch (Exception $error) {
echo $error->getMessage();
}
?>