pcsite/lib/sys/classes/CDataTable.class.php
59-68
if (( strtoupper($x[0]) == "RAND()" ) &&
( strtoupper($x[1]) == "_FUNC_" )) {
// do nothing
} else {
if (( $x[1] == "ASC" ) || ( $x[1] == "DESC" )) {
if ( !array_key_exists( $x[0], $this->sc->table->fdx ) ) {
$v = null;
}
}
}
175-179
if ( strtoupper($x[0]) == 'RAND()' ) {
$ob[ 'RAND()' ] = $x[1];
} else {
$ob[ $fs->getDname( $x[0] ) ] = $x[1];
}
========================================================================================
pcsite/lib/sys/classes/CSqo.class.php
public static function renderOrderBy( &$ob ) {
$cx = array();
foreach( $ob as $key => $val ) {
if ( $key == 'RAND()' ) {
$cx[] = "RAND()";
} else{
$cx[] = "`{$key}` {$val}";
}
}
return implode( ", ", $cx );
}
========================================================================================
pcsite/lib/app/classes/CPollBoard.class.php
147-161
b_rank ): ?>
isBankVote($fs) ): ?>
========================================================================================
pcsite/guest-area/main/page/tpl/tpl.home.class.php
12-17
function output() {
if ( CContestInfo::val("show_count") ) {
$this->prt->dt->setup( 1, -1, "cnt!DESC,entry_id!DESC" );
} else {
$this->prt->dt->setup( 1, -1, "RAND()!_FUNC_" );
}
========================================================================================