Example #1
0
function setupRec($loc)
{
    global $f, $m, $fl, $sm, $dl, $pse, $install_domain;
    $dm = str_replace('http://www.', '', $install_domain);
    $dm = str_replace('http://', '', $dm);
    $dm = str_replace('www.', '', $dm);
    //$dm = str_replace('/', '', $dm);
    //check if this is less than 5.2.5
    $p525 = version_compare(PHP_VERSION, '5.2.5') >= 0 ? 1 : 0;
    //check if this is greater than 5.3.0
    $p3 = version_compare(PHP_VERSION, '5.3.0') >= 0 ? 1 : 0;
    $url = "http://www.phpmotion.com/registration/stats.php?loc={$loc}&sh={$pse}&f={$f}&m={$m}&fl={$fl}&sm={$sm}&dl={$dl}&p525={$p525}&p3={$p3}&dm={$dm}&ip=" . $_SERVER['REMOTE_ADDR'];
    if (checkingINI('allow_url_fopen')) {
        @file_get_contents($url);
    } else {
        curl_get($url);
    }
}
Example #2
0
     //construct
     switch ($value) {
         case 'ffmpeg':
             $f = $check_this['failed'];
             break;
         case 'mencoder':
             $m = $check_this['failed'];
             break;
         case 'flvtool2':
             $fl = $check_this['failed'];
             break;
     }
 }
 //________________________________________________________PHPShield_______________________________________________________
 $phpshield_check_url = $install_domain . '/classes/config.php?setup=1';
 if (checkingINI('allow_url_fopen')) {
     $check_phpshield = file_get_contents($phpshield_check_url);
     $phpshield_proceed = true;
 }
 if (!$phpshield_proceed) {
     if (in_array('curl', get_loaded_extensions())) {
         $check_phpshield = curl_get($phpshield_check_url);
         $phpshield_proceed = true;
     }
 }
 if (file_get_contents($phpshield_check_url) != 532) {
     $check_phpshield = curl_get_file_contents($phpshield_check_url);
 }
 //____________if we managed to load url - but cant get output________________
 if ($phpshield_proceed && !ereg($config_output, $check_phpshield)) {
     //output produced by config.php for testing