### ___ 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('#'','height'=>'','scale'=>'','playlist'=>'','nocookie'=>'')); # create parameter string, in the form ?arg1=val1&arg2=val2 $params = "?"; $i = 0; foreach($args as $key => $val) { if ($key!='#') { #echo "$key - $val
"; if($i!=0) $params .= "&"; $params .= "$key=$val"; $i++; } } } # Privacy: NoCookie Option if ($FileQipDefaultParams['nocookie'] || $nocookieArg) $url = "http://www.file.qip.ru/$vidtype/$id$params"; else $url = "http://www.file.qip.ru/$vidtype/$id$params"; # Output if ($FileQip_XHTMLcompliant) { # XHTML 1.0 COMPLIANT $out = "\n"; $out .= "\n "; $out .= "\n "; $out .= "\n "; $out .= "\n "; $out .= "\n"; } else { $out = "\n "; $out .= "\n "; $out .= "\n "; $out .= "\n "; $out .= "\n "; $out .= "\n "; $out .= "\n"; } return Keep($out); }