Revision history for RegexpindexAction
Revision [20100]
Last edited on 2008-06-27 16:05:26 by DomBonj [v0.93: optimization; 1.1.6.5 compatibility]Additions:
- Wikka 1.1.6.2 to 1.1.6.5
# @version 0.93
$display_title = isset($vars['opts']) && preg_match('/t/i', $vars['opts']);
$display_owner = isset($vars['opts']) && preg_match('/o/i', $vars['opts']);
if ($display_title)
$title = '';
$pagecontent = $page['body'];
$formatting_tags = array('**', '//', '__', '##', '""', '++', '#%', '@@', '\'\'');
$title = str_replace($formatting_tags, '', $title[2]);
if ($display_owner)
# @version 0.93
$display_title = isset($vars['opts']) && preg_match('/t/i', $vars['opts']);
$display_owner = isset($vars['opts']) && preg_match('/o/i', $vars['opts']);
if ($display_title)
$title = '';
$pagecontent = $page['body'];
$formatting_tags = array('**', '//', '__', '##', '""', '++', '#%', '@@', '\'\'');
$title = str_replace($formatting_tags, '', $title[2]);
if ($display_owner)
Deletions:
# @version 0.92
if (isset($vars['opts']) && (preg_match('/t/i', $vars['opts'])))
$title = "";
$pagecontent = $page["body"];
$formatting_tags = array("**", "//", "__", "##", "''", "++", "#%", "@@", "\"\"");
$title = str_replace($formatting_tags, "", $title[2]);
if (isset($vars['opts']) && (preg_match('/o/i', $vars['opts'])))
No Differences
Additions:
- Wikka 1.1.6.2 & 1.1.6.3 & 1.1.6.4
# @version 0.92
if (!defined('RI_PAGE_OWNER')) define('RI_PAGE_OWNER', ' . . . . Owner: %s');
if (!defined('RI_ERROR_NO_PAGES_FOUND')) define('RI_ERROR_NO_PAGES_FOUND', 'No pages found.');
$query = 'SELECT body, tag, owner FROM '. $this->config['table_prefix'] .'pages WHERE ((latest = \'Y\') AND (CAST(tag AS BINARY) REGEXP \''. mysql_real_escape_string($vars['re']) .'\')'. $wherecat .') ORDER BY '. $orderby;
if (ereg( "(=){3,5}([^=\n]+)(=){3,5}", $pagecontent, $title))
# @version 0.92
if (!defined('RI_PAGE_OWNER')) define('RI_PAGE_OWNER', ' . . . . Owner: %s');
if (!defined('RI_ERROR_NO_PAGES_FOUND')) define('RI_ERROR_NO_PAGES_FOUND', 'No pages found.');
$query = 'SELECT body, tag, owner FROM '. $this->config['table_prefix'] .'pages WHERE ((latest = \'Y\') AND (CAST(tag AS BINARY) REGEXP \''. mysql_real_escape_string($vars['re']) .'\')'. $wherecat .') ORDER BY '. $orderby;
if (ereg( "(=){3,5}([^=\n]+)(=){3,5}", $pagecontent, $title))
Deletions:
# @version 0.91
if (!defined('RI_PAGE_OWNER')) define('RI_PAGE_OWNER', " . . . . Owner: %s");
if (!defined('RI_ERROR_NO_PAGES_FOUND')) define('RI_ERROR_NO_PAGES_FOUND', "No pages found.");
$query = 'SELECT body, tag, owner FROM '. $this->config['table_prefix'] .'pages WHERE ((latest = \'Y\') AND (tag REGEXP \''. mysql_real_escape_string($vars['re']) .'\')'. $wherecat .') ORDER BY '. $orderby;
if (ereg( "(=){3,5}([^=\n]+)(=){3,5}", $pagecontent, $title)) {
No Differences
Additions:
# Displays a list of pages whose tag matches a regular expression
# @version 0.91
if (!defined('RI_PAGE_OWNER')) define('RI_PAGE_OWNER', " . . . . Owner: %s");
if (!defined('RI_NO_TITLE')) define('RI_NO_TITLE', '');
|| ( isset($vars['re']) && (preg_match("/^\s*$/i", $vars['re'])) )
|| ( isset($vars['cat']) && (preg_match("/^\s*$/i", $vars['cat'])) )
$output .= ($title ? ': '. strip_tags($this->Format($title)) : '<i>'.RI_NO_TITLE.'</i>');
# @version 0.91
if (!defined('RI_PAGE_OWNER')) define('RI_PAGE_OWNER', " . . . . Owner: %s");
if (!defined('RI_NO_TITLE')) define('RI_NO_TITLE', '');
|| ( isset($vars['re']) && (preg_match("/^\s*$/i", $vars['re'])) )
|| ( isset($vars['cat']) && (preg_match("/^\s*$/i", $vars['cat'])) )
$output .= ($title ? ': '. strip_tags($this->Format($title)) : '<i>'.RI_NO_TITLE.'</i>');
Deletions:
# @version 0.9
if (!defined('RI_PAGE_OWNER')) define('RI_PAGE_OWNER'," . . . . Owner: %s");
|| ( isset($vars['cat']) && (preg_match("/^\s+$/i", $vars['cat'])) )
$output .= ' - '. ($title ? strip_tags($this->Format($title)) : $page['tag']);