- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
- 43
- 44
- 45
- 46
- 47
- 48
- 49
<?php
$_REQUEST['start'] = ($_REQUEST['start'] != '') ? $_REQUEST['start'] : 0;
$_REQUEST['limit'] = ($_REQUEST['limit'] != '') ? $_REQUEST['limit'] : 19;
$obj = new BASE();
$obj_online = new ONLINE();
$obj_files = new FILES();
$obj_disk = new DISK();
$obj_group_disk = new GROUP_DISK();
$obj_status_disk= new STATUS_DISK();
$obj_type_disk = new TYPE_DISK();
$obj_type_file = new TYPE_FILE();
$obj_friends = new FRIENDS();
$obj_history = new HISTORY();
$obj_parsed = new PARSED();
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['query']) {
case 'select':{
switch ($_REQUEST['action']) {
case 'files':{
echo json_encode($obj_files->select($_REQUEST));
}break;
case 'disk':{
echo json_encode($obj_disk->select($_REQUEST));
}break;
case 'group_disk':{
echo json_encode($obj_group_disk->select($_REQUEST));
}break;
case 'status_disk':{
echo json_encode($obj_status_disk->select($_REQUEST));
}break;
case 'type_disk':{
echo json_encode($obj_type_disk->select($_REQUEST));
}break;
case 'type_file':{
echo json_encode($obj_type_file->select($_REQUEST));
}break;
case 'friends':{
echo json_encode($obj_friends->select($_REQUEST));
}break;
case 'history':{
echo json_encode($obj_history->select($_REQUEST));
}break;
}
} break;
...
ggrr 13.02.2011 20:58 # +1
nethak 14.02.2011 08:14 # −1
Забавная постановка условия в данном случае
Хотя тут уже кому что