Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 4
14.29%
1 / 7
CRAP
9.09%
2 / 22
index
0.00%
0 / 1
50.00%
1 / 2
2.50
50.00%
2 / 4
 GET($matches)
100.00%
1 / 1
1
100.00%
2 / 2
 POST($matches)
0.00%
0 / 1
2
0.00%
0 / 2
info
0.00%
0 / 1
0.00%
0 / 1
6
0.00%
0 / 4
 GET()
0.00%
0 / 1
6
0.00%
0 / 4
login
0.00%
0 / 1
0.00%
0 / 2
6
0.00%
0 / 5
 GET($matches)
0.00%
0 / 1
2
0.00%
0 / 2
 POST()
0.00%
0 / 1
2
0.00%
0 / 3
form
0.00%
0 / 1
0.00%
0 / 2
12
0.00%
0 / 9
 GET($matches)
0.00%
0 / 1
2
0.00%
0 / 3
 POST()
0.00%
0 / 1
6
0.00%
0 / 6
<?php
class index {
    function GET($matches) {
        include __DIR__.'/view/index.php';
    }
    function POST($matches) {
        include __DIR__.'/view/index.php';
    }
}
class info {
    function GET() {
        if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) data::set('ajax',array('GET'));
        data::set('params', $_GET);
        include __DIR__.'/view/info.php';
    }
}
class login {
    function GET($matches) {
        include __DIR__.'/view/login.php';
    }
    function POST() {
        data::set('form', $_POST);
        include __DIR__.'/view/login.php';
    }
}
class form {
    function GET($matches) {
        $object = strtolower($matches[1]);
        include __DIR__.'/view/form/'.$object.'.php';
    }
    function POST() {
        data::set('form', $_POST);
        data::set('files', $_FILES);
        if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) data::set('ajax','post');
        $notice = 'Thank you!';
        include __DIR__.'/view/index.php';
    }
}