Exemplo n.º 1
0
         //register_globals is turned on, please turn it of.
         $error .= $language['register_globals_detected'];
         $error .= '[<a href="docs/en/install.htm#install_server_config_register_globals">' . $language['more'] . '</a>]';
         $error .= '<br />';
     }
     $page_title = $language['title_file_check'];
     html_header();
     if ($error != '') {
         html_error(false);
     }
     //use versioncheck to check file versions
     $lang_versioncheck_php = $language['versioncheck'];
     require_once 'include/versioncheck.inc.php';
     // TODO: need to deal with connection failing and skip this step (and maybe allow a retry)
     // Connect to the repository and populate the array with data from the XML file
     $file_data_array = cpgVersioncheckConnectRepository($displayOption_array);
     $file_data_array = cpg_versioncheckPopulateArray($file_data_array);
     //$file_data_array = cpg_versioncheckPopulateArray($file_data_array, $displayOption_array, $textFileExtensions_array, $imageFileExtensions_array, $CONFIG, $maxLength_array, $lang_versioncheck_php);
     $file_data_count = count($file_data_array);
     // Print the results
     $outputResult = cpg_versioncheckCreateHTMLOutput($file_data_array, $textFileExtensions_array, $lang_versioncheck_php, $majorVersion, $displayOption_array);
     $versioncheck_output = sprintf($lang_versioncheck_php['files_folder_processed'], $outputResult['display'], $outputResult['total'], $outputResult['error']);
     // TODO: end
     html_content($versioncheck_output);
     html_footer();
     setTmpConfig('step', STEP_FOLDER_PERMISSIONS);
     break;
 case STEP_FOLDER_PERMISSIONS:
     // Check if the folder permissions are set up properly
     $page_title = $language['title_dir_check'];
     if (!checkPermissions()) {
if ($superCage->get->getInt('hide_images') == '1') {
    $displayOption_array['hide_images'] = 1;
    $optionDisplayOutput_array['hide_images'] = 'checked="checked"';
} else {
    $displayOption_array['hide_images'] = 0;
}
if ($superCage->get->getInt('no_modification_check') == '1') {
    $displayOption_array['no_modification_check'] = 1;
    $optionDisplayOutput_array['no_modification_check'] = 'checked="checked"';
} else {
    $displayOption_array['no_modification_check'] = 0;
}
// Sanitize the GET vars and populate the optionsArray --- end
// Connect to the repository
if ($displayOption_array['output'] != 'options') {
    $file_data_array = cpgVersioncheckConnectRepository();
    $file_data_array = cpg_versioncheckPopulateArray($file_data_array);
    $file_data_count = count($file_data_array);
}
// main code starts here
$title_help = ' ' . cpg_display_help('f=upgrading.htm&amp;as=versioncheck&amp;ae=versioncheck_end', '600', '400');
pageheader($lang_versioncheck_php['title']);
starttable('100%', cpg_fetch_icon('check_versions', 2) . $lang_versioncheck_php['title'] . $title_help, 1);
//print '<h1>' . cpg_fetch_icon('check_versions', 2) . $lang_versioncheck_php['title']. $title_help . '</h1>';
// Print options if applicable
if ($displayOption_array['output'] == 'options' || $displayOption_array['output'] == 'screen' || $displayOption_array['output'] == 'textarea') {
    print <<<EOT
    <tr>
        <td class="tableb">
EOT;
    cpg_versioncheckDisplayOptions();
Exemplo n.º 3
0
 function checkFiles()
 {
     // Set the parameters that normally get popualted by the option form
     $displayOption_array['errors_only'] = 1;
     $lang_versioncheck_php = $this->language['versioncheck'];
     require_once 'include/versioncheck.inc.php';
     // Connect to the repository and populate the array with data from the XML file
     $file_data_array = cpgVersioncheckConnectRepository($displayOption_array);
     // Populate the array additionally with local data
     //$CONFIG['full_path'] = '';
     //$CONFIG['user_pics'] = '';
     $file_data_array = cpg_versioncheckPopulateArray($file_data_array, $displayOption_array, $textFileExtensions_array, $imageFileExtensions_array, $CONFIG, $maxLength_array, $lang_versioncheck_php);
     $file_data_count = count($file_data_array);
     // Print the results
     $outputResult = cpg_versioncheckCreateHTMLOutput($file_data_array, $textFileExtensions_array, $lang_versioncheck_php, $majorVersion, $displayOption_array);
     return sprintf($lang_versioncheck_php['files_folder_processed'], $outputResult['display'], $outputResult['total'], $outputResult['error']);
 }