* * @author Tom Murtagh * @author Kim Jackson * @author Ian Johnson <*****@*****.**> * @author Artem Osmakov <*****@*****.**> * @copyright (C) 2005-2016 University of Sydney * @link http://HeuristNetwork.org * @version 3.1.0 * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0 * @package Heurist academic knowledge management system * @subpackage !!!subpackagename for file such as Administration, Search, Edit, Application, Library */ require_once dirname(__FILE__) . '/../../../common/connect/applyCredentials.php'; require_once dirname(__FILE__) . '/../../../common/t1000/t1000.php'; if (isForAdminOnly("to modify properties")) { return; } mysql_connection_overwrite(DATABASE); $template = file_get_contents('editSysIdentification.html'); // $template = str_replace('{PageHeader}', '[literal]'.file_get_contents('menu.html').'[end-literal]', $template); $lexer = new Lexer($template); $body = new BodyScope($lexer); $body->global_vars['dbname'] = HEURIST_DBNAME; $body->verify(); if (@$_REQUEST['_submit']) { $body->input_check(); if ($body->satisfied) { $body->execute(); } } $body->render();
} } if (@$where) { $query = REQUEST_to_query($query, $search_type, NULL, "0"); } else { $query = REQUEST_to_query($query, $search_type); } if (preg_match('/.* order by (.*)/', $query, $matches)) { $order_col = $matches[1]; if ($search_type == BOTH || !preg_match('/bib_/', $order_col)) { define('rss_search-order', $order_col); } $query = substr($query, 0, strlen($query) - strlen(' order by ' . $matches[1])); } // hack! Instead of stupidly searching the useless usrBookmarks (bookmarks) table, give us rec_ids instead $query = str_replace("select distinct bkm_ID from", "select distinct rec_ID from", $query); $SEARCHES['rss_search'] = $query; /*****DEBUG****/ //error_log("query = ".$query); $template = file_get_contents('searchRSSTemplate.xml'); $lexer = new Lexer($template); $body = new BodyScope($lexer); $body->global_vars['hBase'] = HEURIST_BASE_URL; $body->global_vars['dbname'] = HEURIST_DBNAME; if ($search_type == BOOKMARK) { $body->global_vars['search-type'] = 'bookmark'; } else { $body->global_vars['search-type'] = 'biblio'; } $body->verify(); $body->render();