@ 2018-10-29T06:49:49Z <?php
class EmbedRandomize {
var $listapi;
public function dataAPI(){
if(!empty($this->listapi)){
$api = explode(',',$this->listapi);
return $api;
}
return [];
}
public function isContains($match,$string){
if(strpos($string,$match) !== false){
return true;
}
return false;
}
public function isInternalEmbed($embed){
$api = $this->dataAPI();
if(!empty($api)){
foreach($api as $value){
$plugins = str_replace('/api','/plugins',trim($value));
if($this->isContains($plugins,$embed)){
return true;
}
}
}
return false;
}
public function randomize($embed){
$api = $this->dataAPI();
$numserver = mt_rand(0,(count($api)-1));
$data = str_replace('/api','/plugins',trim($api[$numserver]));
$list = array();
foreach($this->dataAPI() as $value){
$list[] = str_replace('/api','/plugins',trim($value));
}
return str_replace($list,$data,$embed);
}
public function modify($embed){
if($this->isInternalEmbed($embed)){
return $this->randomize($embed);
}
return $embed;
}
}
$apiconfig = 'https://server.omovv.com/api, https://node1.omovv.com/api';
$embed = '<iframe src="https://server.omovv.com/plugins/openload/embed.php?id=2GqeLBWdH61NiJuXNrfChmCoM8s7InY0nh9y7d2g2AoXhoRwE4hbyIJxvAtLdbH70zNq1VAHDLphboTenncx68hn7mcN7FODrBWGSuix" frameborder="0" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>';
$embed2 = '<iframe src="https://oload.stream/plugins/openload/embed.php?id=2GqeLBWdH61NiJuXNrfChmCoM8s7InY0nh9y7d2g2AoXhoRwE4hbyIJxvAtLdbH70zNq1VAHDLphboTenncx68hn7mcN7FODrBWGSuix" frameborder="0" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>';
$video = new EmbedRandomize();
$video->listapi = $apiconfig;
echo $video->modify($embed);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.2.11 0.031 0.011 14.75 7.2.10 0.041 0.005 14.75 7.2.9 0.048 0.008 14.93 7.2.8 0.038 0.005 14.57 7.2.7 0.031 0.005 14.99 7.2.6 0.060 0.011 15.14 7.2.5 0.051 0.008 15.11 7.2.4 0.043 0.006 14.99 7.2.3 0.059 0.006 15.26 7.2.2 0.061 0.010 14.95 7.2.1 0.043 0.011 14.99 7.2.0 0.043 0.006 14.90 7.1.23 0.046 0.006 14.05 7.1.22 0.033 0.007 14.03 7.1.21 0.041 0.008 13.92 7.1.20 0.031 0.007 13.89 7.1.19 0.034 0.005 13.84 7.1.18 0.046 0.008 13.92 7.1.17 0.058 0.005 13.88 7.1.16 0.059 0.005 13.85 7.1.15 0.054 0.003 13.89 7.1.14 0.078 0.010 13.88 7.1.13 0.035 0.006 14.11 7.1.12 0.044 0.005 13.84 7.1.11 0.035 0.006 13.84 7.1.10 0.080 0.006 13.66 7.1.9 0.042 0.010 13.62 7.1.8 0.042 0.007 13.67 7.1.7 0.033 0.011 13.76 7.1.6 0.050 0.011 31.72 7.1.5 0.067 0.015 31.69 7.1.4 0.071 0.014 31.67 7.1.3 0.073 0.007 31.80 7.1.2 0.071 0.009 31.82 7.1.1 0.069 0.003 13.79 7.1.0 0.049 0.005 13.76 5.6.38 0.005 0.008 14.38
preferences:dark mode live preview
29.09 ms | 401 KiB | 5 Q