AAAAPK w?\§Ÿ·ª› ›
pdf_embed.xmlnu W+A„¶
pdf_embed
14th May 2013
TechJoomla
extensions@techjoomla.com
http://techjoomla.com
Copyright © 2013 - All rights reserved.
GNU/GPL
2.0
PLG_PDF_EMBED_DESC
en-GB.plg_content_pdf_embed.ini
en-GB.plg_content_pdf_embed.sys.ini
pdf_embed.php
index.html
PK w?\æhÃ| |
pdf_embed.phpnu W+A„¶ text is also available
* @param object The article params
* @param int The 'page' number
*/
// Function for Joomla version 2.5.0
public function onContentPrepare($context, $row, $params, $page = 0)
{
$regex = "#{pdf[\=|\s]?(.+)}#s";
$regex1 = '/{(pdf=)\s*(.*?)}/i';
// find all instances of mambot and put in $matches
preg_match_all( $regex1, $row->text, $matches );
// Number of mambots
$count = count( $matches[0] );
for ($i=0; $i<$count; $i++)
{
$r = str_replace( '{pdf=', '', $matches[0][$i]);
$r = str_replace( '}', '', $r);
$ex = explode('|',$r);
$ploc = $ex[0];
$w = $ex[1];
$h = $ex[2];
$replace = plg_pdfembed_replacer($ploc , $w, $h );
$row->text = str_replace( '{pdf='.$ex[0].'|'.$ex[1].'|'.$ex[2].'}', $replace, $row->text);
}
return true;
}
}
function plg_pdfembed_replacer($ploc , $w, $h ) {
return '';
}
?>
PK w?\®)ÕÐ .htaccessnu W+A„¶
Order allow,deny
Deny from all
PK w?\¦V‰
index.htmlnu W+A„¶
PK w?\§Ÿ·ª› ›
pdf_embed.xmlnu W+A„¶ PK w?\æhÃ| |
Ø pdf_embed.phpnu W+A„¶ PK w?\®)ÕÐ ‘ .htaccessnu W+A„¶ PK w?\¦V‰
I
index.htmlnu W+A„¶ PK - ¢