- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
$url = $_GET['url'];
$url = rtrim($url, '/');
$url = explode('/', $url);
require 'controllers/'.$url[0].'.php';
$controller = new $url[0];
if(isset($url[2])) {
$controller->$url[1]($url[2]);
}
else {
if(isset($url[1])) {
$controller->$url[1]();
}
}
Vasiliy 19.02.2016 12:59 # 0
guest 19.02.2016 16:34 # 0
bormand 19.02.2016 19:36 # +1
3_14dar 20.02.2016 04:51 # 0
bormand 20.02.2016 06:30 # 0
3_14dar 20.02.2016 07:09 # 0
bormand 20.02.2016 20:46 # +1
dev400 20.02.2016 21:17 # 0
bormand 21.02.2016 08:34 # 0