Пример #1
0
/**
* Moves the order of a record
* @param integer The unique id of record
* @param integer The increment to reorder by
*/
function orderMambot($uid, $inc, $option, $client)
{
    global $database;
    // Currently Unsupported
    if ($client == 'admin') {
        $where = "client_id='1'";
    } else {
        $where = "client_id='0'";
    }
    $row = new mosMambot($database);
    $row->load($uid);
    $row->move($inc, "folder='{$row->folder}' AND ordering > -10000 AND ordering < 10000 AND ({$where})");
    mosRedirect('index2.php?option=' . $option);
}
Пример #2
0
/**
* Moves the order of a record
* @param integer The unique id of record
* @param integer The increment to reorder by
*/
function orderMambot($uid, $inc, $option, $client)
{
    global $database;
    josSpoofCheck();
    // Currently Unsupported
    if ($client == 'admin') {
        $where = "client_id = 1";
    } else {
        $where = "client_id = 0";
    }
    $row = new mosMambot($database);
    $row->load((int) $uid);
    $row->move($inc, "folder=" . $database->Quote($row->folder) . " AND ordering > -10000 AND ordering < 10000 AND ({$where})");
    mosRedirect('index2.php?option=' . $option);
}