getCfg('secret') . $value . $_SERVER['REMOTE_ADDR'] ); } /** * Set the information to allow a session to persist */ function persist() { global $mainframe; $usercookie = mosGetParam( $_COOKIE, 'usercookie', null ); if ($usercookie) { // Remember me cookie exists. Login with usercookie info. $mainframe->login( $usercookie['username'], $usercookie['password'] ); } } /** * Legacy Method, use {@link JTable::reorder()} instead * @deprecated As of 1.5 */ function updateOrder( $where='' ) { return $this->reorder( $where ); } /** * Legacy Method, use {@link JTable::publish()} instead * @deprecated As of 1.0.3 */ function publish_array( $cid=null, $publish=1, $user_id=0 ) { $this->publish( $cid, $publish, $user_id ); } /** * Legacy Method, use {@link JTable::publish()} instead * @deprecated As of 1.5 */ function setFromRequest( $key, $varName, $default=null ) { if (isset( $_REQUEST[$varName] )) { return $_SESSION[$key] = $_REQUEST[$varName]; } else if (isset( $_SESSION[$key] )) { return $_SESSION[$key]; } else { return $_SESSION[$key] = $default; } } }