Comparing revisions for FileexportAction

Additions:
- Wikka 1.1.6.2 & 1.1.6.3 & 1.1.6.4
# @version 1.05
function FEpage_data(&$thisone, $tag, &$page_content)
$thisone->SetPage($thisone->LoadPage($tag));
unset ($thisone->config['includes']);
$page_content['raw'] = $thisone->page['body'];
$page = preg_replace('/\{\{\s*fileexport\b(.*?)\}\}/', "[fileexport action, $1]", $thisone->page['body']);
$rendered_body = $thisone->Format($page, 'wakka');
$rendered_body .= FNprint($thisone, 'list', '', $thisone->Href());
function FEhtml(&$thisone, &$pages, &$key_order, $embed_css, $css_path, $remove_links, $save_tag, $save_page, $raw=false)
$header .= ($embed_css ? $stylesheet : '') .'<title>'. $thisone->GetConfigValue('wakka_name') ."</title></head><body>\n";
$file_name = $thisone->GetConfigValue('wakka_name') .'_'. date('Ymd');
$save_includes = $thisone->config['includes'];
FEpage_data($thisone, $tag, $pagedata);
$pagedata['body'] = preg_replace('/'.preg_quote($thisone->GetConfigValue('external_link_tail'),'/').'/', '', $pagedata['body']);
$pagedata['body'] = preg_replace('/'.preg_quote($thisone->GetConfigValue('external_link_tail'),'/').'/', '', $pagedata['body']);
function FExml(&$thisone, &$pages, &$key_order, $remove_links, $save_tag, $save_page)
$file_name = $thisone->GetConfigValue('wakka_name') .'_'. date('Ymd');
$save_includes = $thisone->config['includes'];
FEpage_data($thisone, $tag, $pagedata);
$output .= '<raw_content><![CDATA['. utf8_encode($pagedata['raw']) .".]]></raw_content>\n";
$pagedata['body'] = preg_replace('/'.preg_quote($thisone->GetConfigValue('external_link_tail'),'/').'/', '', $pagedata['body']);
$output .= '<rendered_content>'. utf8_encode(numeric_html_entities($pagedata['body'])) .'</rendered_content>';
$thisone->tag = $save_tag;
$thisone->page = $save_page;
$thisone->config['includes'] = $save_includes;
function numeric_html_entities($string)
$trans_tbl1 = get_html_translation_table(HTML_ENTITIES);
foreach ($trans_tbl1 as $ascii => $html_entity)
$trans_tbl2[$html_entity] = '&#'. ord($ascii) .';';
$trans_tbl3[$ascii] = '&#'. ord($ascii) .';';
// keep XML entities
unset($trans_tbl3['<']);
unset($trans_tbl3['>']);
unset($trans_tbl3['"']);
unset($trans_tbl3['\'']);
unset($trans_tbl3['&']);
$ret = strtr (strtr ($string, $trans_tbl2), $trans_tbl3);
// translate '&' character if not part of a numeric entity
$ret = preg_replace('/&(?!#[x]?[0-9a-f]+;)/i', '&', $ret);
return($ret);
Deletions:
- Wikka 1.1.6.2 & 1.1.6.3
%%(php)<?php
# @version 1.04
function FEpage_data(&$this, $tag, &$page_content)
$this->SetPage($this->LoadPage($tag));
unset ($this->config['includes']);
$page_content['raw'] = $this->page['body'];
$page = preg_replace('/\{\{\s*fileexport\b(.*?)\}\}/', "[fileexport action, $1]", $this->page['body']);
$rendered_body = $this->Format($page, 'wakka');
$rendered_body .= FNprint($this, 'list', '', $this->Href());
function FEhtml(&$this, &$pages, &$key_order, $embed_css, $css_path, $remove_links, $save_tag, $save_page, $raw=false)
$header .= ($embed_css ? $stylesheet : '') .'<title>'. $this->GetConfigValue('wakka_name') ."</title></head><body>\n";
$file_name = $this->GetConfigValue('wakka_name') .'_'. date('Ymd');
$save_includes = $this->config['includes'];
FEpage_data($this, $tag, $pagedata);
$pagedata['body'] = preg_replace('/'.preg_quote($this->GetConfigValue('external_link_tail'),'/').'/', '', $pagedata['body']);
$pagedata['body'] = preg_replace('/'.preg_quote($this->GetConfigValue('external_link_tail'),'/').'/', '', $pagedata['body']);
function FExml(&$this, &$pages, &$key_order, $remove_links, $save_tag, $save_page)
$file_name = $this->GetConfigValue('wakka_name') .'_'. date('Ymd');
$save_includes = $this->config['includes'];
FEpage_data($this, $tag, $pagedata);
$output .= '<raw_content>'. utf8_encode(htmlspecialchars($pagedata['raw'], ENT_COMPAT)) .".</raw_content>\n";
$pagedata['body'] = preg_replace('/'.preg_quote($this->GetConfigValue('external_link_tail'),'/').'/', '', $pagedata['body']);
$output .= '<rendered_content>'. utf8_encode(htmlspecialchars($pagedata['body'], ENT_COMPAT, 'UTF-8')) .'</rendered_content>';
}
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki