'; echo $get.'
'; echo $get1.'
'; echo $get2.'
'; echo $get3.'
'; echo $get4.'
'; echo $get5.'
'; echo $get6.'
'; } if(preg_match('/Upgrade(\s*?)process(\s*?)complete/is', $get6)){ $setupcontinue = ''; @schmod($__settings['softpath'].'/config.php', $globals['ocfc']); srm($__settings['softpath'].'/install'); }elseif(sis_autoupgrading()){ $error[] = '{{err_auto_upgrade}}'; } } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software; //If there are some shorfalls then pass it to $error and return false return true; } function __cmssimple_scurl_call($url, $header = 1, $time = 1, $post = array(), $cookie = ''){ global $globals; if(!function_exists('curl_init')){ $ctx = _stream_context_create(array('http' => array('timeout' => $time))); return @file_get_contents($url, 0, $ctx); } // Set the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $time); //Set proxy curl_proxy($ch); // Turn off the server and peer verification (TrustManager Concept). curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // Follow redirects curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); if(!empty($post)){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); } // Is there a Cookie if(!empty($cookie)){ curl_setopt($ch, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_COOKIE, $cookie); } if($header){ curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1'); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Get response from the server. $resp = curl_exec($ch); //echo curl_error($ch); return $resp; } ?>