예제 #1
0
/**
* Moves the order of a record
* @param integer The increment to reorder by
*/
function orderFrontPage($uid, $inc, $option)
{
    global $database;
    josSpoofCheck();
    $fp = new mosFrontPage($database);
    $fp->load((int) $uid);
    $fp->move($inc);
    // clean any existing cache files
    mosCache::cleanCache('com_content');
    mosRedirect("index2.php?option={$option}");
}
예제 #2
0
/**
* Moves the order of a record
* @param integer The increment to reorder by
*/
function orderFrontPage($uid, $inc, $option)
{
    global $database;
    $fp = new mosFrontPage($database);
    $fp->load($uid);
    $fp->move($inc);
    mosRedirect("index2.php?option={$option}");
}