### ___ FILE.QIP.RU ___
###
### Copy this code on the end of " swf-sites.php " file.
###
### To post a video in your pmwiki site, type...
### (:fileqip video_id:)
###
###
### For example, for...
### http://file.qip.ru/embed/125176227/1a44fc37
### or
### http://file.qip.ru/file/125176227/1a44fc37/71464b3b_zlojj_uchitel.html
### type...
### (:fileqip 125176227/1a44fc37:)
### end the result will be like this...
### http://anarchy-domisi-ideon.awardspace.info/main/pmwiki.php?n=Main.ΔάσκαλοςΜουσικήςΤαΠαίρνειΣτοΚρανίο
###
###
Markup('fileqip', ' '470'
,'height' => '320'
,'plwidth' => '480' # slightly different default size for embedding playlists
,'plheight' => '352' # slightly different default size for embedding playlists
,'scale' => '1'
,'fs' => '1'
,'hd' => '1'
,'nocookie' => '0'
));
SDV($FileQip_XHTMLcompliant, true);
SDV($FileQipROEenabled, true);
# ROEPatterns - FILEQIP EMBED CONVERSION
# Converts pasted file.qip embed code into valid pmwiki (:fileqip:) code
if ($FileQipROEenabled) {
$ROEPatterns['!!ie'] = "FileqipROE(PSS('$0'))";
SDV($FileQipROEFmt, '(:fileqip $1 scale=1:)');
function FileqipROE($videocode) {
global $FileQipROEFmt;
# add nocookie=1 if embed code is from http://file.qip-nocookie.ru
if(strpos($videocode,'-nocookie')) $FileQipROEFmt = str_replace('$1','$1 nocookie=1',$FileQipROEFmt);
# gather other parameters - width, height, border, color1, color2, rel
## gathering width and height here b/c file.qip now offers different embed dimensions
preg_match('#