예제 #1
0
/**
* Moves the order of a record
* @param integer The increment to reorder by
*/
function orderSection($uid, $inc, $option, $scope)
{
    global $database;
    josSpoofCheck();
    $row = new mosSection($database);
    $row->load((int) $uid);
    $row->move($inc, "scope = " . $database->Quote($row->scope));
    // clean any existing cache files
    mosCache::cleanCache('com_content');
    mosRedirect('index2.php?option=' . $option . '&scope=' . $scope);
}
예제 #2
0
파일: admin.sections.php 프로젝트: cwcw/cms
/**
* Moves the order of a record
* @param integer The increment to reorder by
*/
function orderSection($uid, $inc, $option, $scope)
{
    global $database;
    $row = new mosSection($database);
    $row->load($uid);
    $row->move($inc, "scope='{$row->scope}'");
    mosRedirect('index2.php?option=' . $option . '&scope=' . $scope);
}