get_sort_order() public method

public get_sort_order ( $order_name = null )
Beispiel #1
0
<?php

if ($_SERVER['HTTP_REFERER'] != 'http://csscomb.com/online/' and $_SERVER['HTTP_REFERER'] != 'http://dev.csscomb.ru/online/' and $_SERVER['HTTP_REFERER'] != 'http://dev.csscomb.com/online/' and $_SERVER['HTTP_REFERER'] != 'http://csscomb.ru/online/') {
    die('Error 0');
}
require_once '../src/csscomb.php';
if ($_POST['code'] and $_POST['code'] != '') {
    $c = new csscomb();
    if ($_POST['order'] and $_POST['order'] != '') {
        $order = stripslashes($_POST['order']);
        echo $c->csscomb($_POST['code'], false, $order);
    } else {
        echo $c->csscomb($_POST['code'], false);
    }
}
if ($_POST['get_order'] and $_POST['get_order'] != '') {
    $c = new csscomb();
    echo $c->get_sort_order($_POST['get_order']);
}