Beispiel #1
0
flush();
// preparing list
do_flush('<div><br/>' . get_text('Prepare', 'Install') . ':... ');
$tmp = new FileList($CFG->INCLUDE_PATH);
$tmp->EscludeFiles('^(\\.)');
$tmp->ShowSize(true);
$tmp->ShowMD5(true);
if (!$tmp->Load()) {
    echo '</div><div><br/>' . get_text('NotUpdatable', 'Install', $CFG->INCLUDE_PATH) . '</div>';
    include 'Common/Templates/tail.php';
    die;
}
do_flush(get_text('Done', 'Install') . '</div>');
// sending request to ianseo
do_flush('<div><br/>' . get_text('Sending', 'Install') . ':... ');
$Old = $tmp->serialize();
$Query = array('Json' => gzcompress($Old));
if (!empty($_POST['Email'])) {
    $Query['Email'] = trim($_POST['Email']);
}
$postdata = http_build_query($Query, '', '&');
$opts = array('http' => array('method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata));
$context = stream_context_create($opts);
$stream = fopen($URL, 'r', false, $context);
$tmp = null;
if ($stream === false) {
    $tmpErr = error_get_last();
    echo "<br><b>" . $tmpErr["message"] . "</b><br>";
} else {
    do_flush(get_text('Done', 'Install') . '</div>');
    // header information as well as meta data