JSlip
1.0
jslip
index.php
Go to the documentation of this file.
1
<?php
8
session_start();
9
10
$root
= dirname(__FILE__);
11
12
require_once(
$root
.
'/src/index.php'
);
13
14
$init
=
new
Init
(
$root
, $_GET, $_POST);
15
16
if
(
$init
->sts !=
'OK'
) {
17
switch
(
$init
->sts) {
18
case
'NG_TARGET'
:
19
echo
'Illegal TARGET. Check src/local.php .'
;
20
break
;
21
defalt:
22
echo
'Failed at initilize process.'
;
23
break
;
24
}
25
exit(1);
26
}
27
28
$func
=
$init
->getFunc();
29
$cnam
=
$func
.
'Controller'
;
30
31
require_once(
$root
.
'/src/module/'
.
$func
.
'/'
.
$cnam
.
'.php'
);
32
33
$ctrl
=
new
$cnam
();
34
$ctrl
->main(
$init
->param);
35
36
if
(empty(
$ctrl
->rest)) {
37
if
(empty(
$ctrl
->csv)) {
38
if
(empty(
$ctrl
->pdf)) {
39
if
(empty(
$ctrl
->singleViewName)) {
40
require_once(
$root
.
'/src/view/pre.tmplt'
);
41
require_once(
$root
.
'/src/module/'
.
$func
.
'/view/'
.
$ctrl
->viewName .
'.tmplt'
);
42
require_once(
$root
.
'/src/view/post.tmplt'
);
43
}
else
{
44
require_once(
$root
.
'/src/module/'
.
$func
.
'/view/'
.
$ctrl
->singleViewName .
'.tmplt'
);
45
}
46
}
else
{
47
$ctrl
->dispPdf();
48
}
49
}
else
{
50
$ctrl
->dispCsv();
51
}
52
}
else
{
53
echo
$ctrl
->rest;
54
}
$init
$init
Definition:
index.php:14
$func
if($init->sts !='OK') $func
Definition:
index.php:28
Init
Definition:
index.php:11
$root
$root
Definition:
index.php:10
$ctrl
$ctrl
Definition:
index.php:33
$cnam
$cnam
Definition:
index.php:29
Generated by
1.8.16