Subversion Repositories cheapmusic

Rev

Rev 127 | Rev 138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 127 Rev 134
Line 26... Line 26...
26
if ($_SERVER["REQUEST_METHOD"] == "POST") {
26
if ($_SERVER["REQUEST_METHOD"] == "POST") {
27
    if (!getPGV("nonce") || NonceUtil::check($systemConf["nonce_secret"], getPGV("nonce")) === false) {
27
    if (!getPGV("nonce") || NonceUtil::check($systemConf["nonce_secret"], getPGV("nonce")) === false) {
28
        exit;
28
        exit;
29
    }
29
    }
30
    
30
    
31
    if (in_array($_POST["submit"], array(
31
    if (in_array($_POST["submitBtn"], array(
32
        'TableView',
32
        'TableView',
33
        'CardView'
33
        'CardView'
34
    ))) {
34
    ))) {
35
        $_SESSION["currentLayout"] = $_POST["submit"];
35
        $_SESSION["currentLayout"] = $_POST["submitBtn"];
36
        echo storeOfferHeader();
36
        echo storeOfferHeader();
37
        echo printResultHeader();
37
        echo printResultHeader();
38
        echo printResult();
38
        echo printResult();
39
        MySessionHandler::commit(session_id());
39
        MySessionHandler::commit(session_id());
40
    } else if (in_array($_POST["submit"], array("Apply", "Reset"))) {
40
    } else if (in_array($_POST["submitBtn"], array("Apply", "Reset"))) {
41
        if ($_POST["submit"] == "Reset") {
41
        if ($_POST["submitBtn"] == "Reset") {
42
            resetDetailFilter();
42
            resetDetailFilter();
43
        } else {
43
        } else {
44
            detailFilterResults($_POST);
44
            detailFilterResults($_POST);
45
        }
45
        }
46
 
46