Changeset 5007 for branches/2.0
- Timestamp:
- Mar 1, 2010, 11:19:16 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/tools/create_listing_file.php
r4036 r5007 94 94 // ****** Thumbnails generation functionality ****** // 95 95 // Define if images have to be reduced if they are not 96 $conf['thumbnail'] = false;96 $conf['thumbnail'] = true; 97 97 98 98 // Define method to generate thumbnails : … … 184 184 function pwg_check_graphics() 185 185 { 186 //~pwg_log('>>>>> pwg_check_graphics() >>>>>'."\n");186 pwg_log('>>>>> pwg_check_graphics() >>>>>'."\n"); 187 187 188 188 global $conf, $pwg_conf; … … 208 208 209 209 // Backup input/output format support 210 array_push($pwg_conf['gd_supported_format'], $info['JPG Support'] ? 'jpeg' : NULL);210 array_push($pwg_conf['gd_supported_format'], $info['JPG Support'] or $info['JPEG Support'] ? 'jpeg' : NULL); 211 211 array_push($pwg_conf['gd_supported_format'], $info['PNG Support'] ? 'png' : NULL); 212 212 array_push($pwg_conf['gd_supported_format'], ($info['GIF Read Support'] and $info['GIF Create Support']) ? 'gif' : NULL); … … 291 291 } 292 292 293 //~pwg_log('<<<<< pwg_check_graphics() returns '.var_export($log, TRUE).' <<<<<'."\n");293 pwg_log('<<<<< pwg_check_graphics() returns '.var_export($log, TRUE).' <<<<<'."\n"); 294 294 return $log; 295 295 } … … 304 304 function pwg_close_level($dir_start, $dir_number) 305 305 { 306 //~pwg_log('>>>>> pwg_close_level($dir_start = '.var_export($dir_start, TRUE).', $dir_number = '.var_export($dir_number, TRUE).') >>>>>'."\n");306 pwg_log('>>>>> pwg_close_level($dir_start = '.var_export($dir_start, TRUE).', $dir_number = '.var_export($dir_number, TRUE).') >>>>>'."\n"); 307 307 308 308 $lines =''; … … 315 315 while(($dir_number > 0) && ($dir_start >= 0)); 316 316 317 //~pwg_log('<<<<< pwg_close_level returns '.var_export($lines, TRUE).' <<<<<'."\n");317 pwg_log('<<<<< pwg_close_level returns '.var_export($lines, TRUE).' <<<<<'."\n"); 318 318 return $lines; 319 319 } … … 327 327 function pwg_clean_iptc_value($value) 328 328 { 329 //~pwg_log('>>>>> pwg_clean_iptc_value ($value = '.var_export($value, TRUE).') >>>>>'."\n");329 pwg_log('>>>>> pwg_clean_iptc_value ($value = '.var_export($value, TRUE).') >>>>>'."\n"); 330 330 331 331 // strip leading zeros (weird Kodak Scanner software) … … 337 337 $value = str_replace(chr(0x00), ' ', $value); 338 338 339 //~pwg_log('<<<<< pwg_clean_iptc_value() returns '.var_export($value, TRUE).' <<<<<'."\n");339 pwg_log('<<<<< pwg_clean_iptc_value() returns '.var_export($value, TRUE).' <<<<<'."\n"); 340 340 return $value; 341 341 } … … 351 351 function pwg_get_iptc_data($filename, $map) 352 352 { 353 //~pwg_log('>>>>> pwg_get_iptc_data ($filename = '.var_export($filename, TRUE).', $map = '.var_export($map, TRUE).') >>>>>'."\n");353 pwg_log('>>>>> pwg_get_iptc_data ($filename = '.var_export($filename, TRUE).', $map = '.var_export($map, TRUE).') >>>>>'."\n"); 354 354 355 355 $result = array(); … … 389 389 } 390 390 391 //~pwg_log('<<<<< pwg_get_iptc_data() returns '.var_export($result, TRUE).' <<<<<'."\n");391 pwg_log('<<<<< pwg_get_iptc_data() returns '.var_export($result, TRUE).' <<<<<'."\n"); 392 392 return $result; 393 393 } … … 401 401 function pwg_get_sync_iptc_data($file) 402 402 { 403 //~pwg_log('>>>>> pwg_get_sync_iptc_data ($file = '.var_export($file, TRUE).') >>>>>'."\n");403 pwg_log('>>>>> pwg_get_sync_iptc_data ($file = '.var_export($file, TRUE).') >>>>>'."\n"); 404 404 405 405 global $conf; … … 430 430 $iptc['keywords'] = isset($iptc['keywords']) ? implode(',', array_unique(explode(',', $iptc['keywords']))) : NULL; 431 431 432 //~pwg_log('<<<<< pwg_get_sync_iptc_data() returns '.var_export($iptc, TRUE).' <<<<<'."\n");432 pwg_log('<<<<< pwg_get_sync_iptc_data() returns '.var_export($iptc, TRUE).' <<<<<'."\n"); 433 433 return $iptc; 434 434 } … … 443 443 function pwg_get_representative_ext($file_dir, $file_short) 444 444 { 445 //~pwg_log('>>>>> pwg_get_representative_ext($file_dir = '.var_export($file_dir, TRUE).', $file_short = '.var_export($file_short, TRUE).') >>>>>'."\n");445 pwg_log('>>>>> pwg_get_representative_ext($file_dir = '.var_export($file_dir, TRUE).', $file_short = '.var_export($file_short, TRUE).') >>>>>'."\n"); 446 446 447 447 global $conf; … … 457 457 } 458 458 459 //~pwg_log('<<<<< pwg_get_representative_ext() returns '.var_export($rep_ext, TRUE).' <<<<<'."\n");459 pwg_log('<<<<< pwg_get_representative_ext() returns '.var_export($rep_ext, TRUE).' <<<<<'."\n"); 460 460 return $rep_ext; 461 461 } … … 470 470 function pwg_get_high($file_dir, $file_base) 471 471 { 472 //~pwg_log('>>>>> pwg_get_high($file = '.var_export($file_dir, TRUE).', $line = '.var_export($file_base, TRUE).') >>>>>'."\n");472 pwg_log('>>>>> pwg_get_high($file = '.var_export($file_dir, TRUE).', $line = '.var_export($file_base, TRUE).') >>>>>'."\n"); 473 473 474 474 global $conf; … … 480 480 } 481 481 482 //~pwg_log('<<<<< pwg_get_high() returns '.var_export($high, TRUE).' <<<<<'."\n");482 pwg_log('<<<<< pwg_get_high() returns '.var_export($high, TRUE).' <<<<<'."\n"); 483 483 return $high; 484 484 } … … 492 492 function pwg_get_filename_wo_extension($filename) 493 493 { 494 //~pwg_log('>>>>> _get_filename_wo_extension($filename = '.var_export($filename, TRUE).') >>>>>'."\n");494 pwg_log('>>>>> _get_filename_wo_extension($filename = '.var_export($filename, TRUE).') >>>>>'."\n"); 495 495 496 496 $short_name = substr($filename, 0, strrpos($filename, '.')); 497 497 498 //~pwg_log('<<<<< _get_filename_wo_extension() returns '.var_export($short_name, TRUE).' <<<<<'."\n");498 pwg_log('<<<<< _get_filename_wo_extension() returns '.var_export($short_name, TRUE).' <<<<<'."\n"); 499 499 return $short_name; 500 500 } … … 511 511 function pwg_get_thumbnail_ext($file_dir, $file_short, $file_ext, &$error_log) 512 512 { 513 //~pwg_log('>>>>> pwg_get_thumbnail_ext($file_dir = '.var_export($file_dir, TRUE).', $file_short = '.var_export($file_short, TRUE).') >>>>>'."\n");513 pwg_log('>>>>> pwg_get_thumbnail_ext($file_dir = '.var_export($file_dir, TRUE).', $file_short = '.var_export($file_short, TRUE).') >>>>>'."\n"); 514 514 515 515 global $conf; … … 538 538 } 539 539 540 //~pwg_log('<<<<< pwg_get_thumbnail_ext() returns '.var_export($thumb_ext, TRUE).' <<<<<'."\n");540 pwg_log('<<<<< pwg_get_thumbnail_ext() returns '.var_export($thumb_ext, TRUE).' <<<<<'."\n"); 541 541 return $thumb_ext; 542 542 } … … 553 553 function pwg_icon_file($file_dir, $file_short, $file_ext) 554 554 { 555 //~pwg_log('>>>>> pwg_icon_file($file_dir = '.var_export($file_dir, TRUE).', $file_short = '.var_export($file_short, TRUE).') >>>>>'."\n");555 pwg_log('>>>>> pwg_icon_file($file_dir = '.var_export($file_dir, TRUE).', $file_short = '.var_export($file_short, TRUE).') >>>>>'."\n"); 556 556 557 557 global $conf, $pwg_conf; … … 684 684 $error_log .= $file_dir.'/'.$file_short.'.'.$file_ext.'</code><br />'."\n"; 685 685 686 //~pwg_log('<<<<< pwg_icon_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n");686 pwg_log('<<<<< pwg_icon_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n"); 687 687 return $error_log; 688 688 } … … 697 697 function pwg_scan_file($file_full, &$line) 698 698 { 699 //~pwg_log('>>>>> pwg_scan_file($file = '.var_export($file_full, TRUE).', $line = '.var_export($line, TRUE).') >>>>>'."\n");699 pwg_log('>>>>> pwg_scan_file($file = '.var_export($file_full, TRUE).', $line = '.var_export($line, TRUE).') >>>>>'."\n"); 700 700 701 701 global $conf, $pwg_conf; … … 806 806 } 807 807 808 //~pwg_log('<<<<< pwg_scan_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n");808 pwg_log('<<<<< pwg_scan_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n"); 809 809 return $error_log; 810 810 } … … 817 817 function pwg_get_level($dir) 818 818 { 819 //~pwg_log('>>>>> pwg_get_level($dir = '.var_export($dir, TRUE).') >>>>>'."\n");819 pwg_log('>>>>> pwg_get_level($dir = '.var_export($dir, TRUE).') >>>>>'."\n"); 820 820 821 821 $level = substr_count($dir, '/') - 1; // -1 because of ./ at the beginning of path 822 822 823 //~pwg_log('<<<<< pwg_get_level() returns '.var_export($level, TRUE).' <<<<<'."\n");823 pwg_log('<<<<< pwg_get_level() returns '.var_export($level, TRUE).' <<<<<'."\n"); 824 824 return $level; 825 825 } … … 833 833 function pwg_get_indent($element_type) 834 834 { 835 //~pwg_log('>>>>> pwg_get_indent($element_type = '.var_export($element_type, TRUE).') >>>>>'."\n");835 pwg_log('>>>>> pwg_get_indent($element_type = '.var_export($element_type, TRUE).') >>>>>'."\n"); 836 836 837 837 $level = substr_count($_SESSION['scan_list_fold'][0], '/') - 1; // because of ./ at the beginning … … 860 860 } 861 861 862 //~pwg_log('<<<<< pwg_get_indent() returns '.var_export(strlen($indent), TRUE).' spaces <<<<<'."\n");862 pwg_log('<<<<< pwg_get_indent() returns '.var_export(strlen($indent), TRUE).' spaces <<<<<'."\n"); 863 863 return $indent; 864 864 } … … 872 872 function pwg_protect_directories($directory) 873 873 { 874 //~pwg_log('>>>>> pwg_protect_directories($directory = '.var_export($directory, true).') >>>>>'."\n");874 pwg_log('>>>>> pwg_protect_directories($directory = '.var_export($directory, true).') >>>>>'."\n"); 875 875 876 876 global $conf; … … 906 906 } 907 907 908 //~pwg_log('<<<<< pwg_protect_directories() returns '.var_export($error_log, true).' <<<<<'."\n");908 pwg_log('<<<<< pwg_protect_directories() returns '.var_export($error_log, true).' <<<<<'."\n"); 909 909 return $error_log; 910 910 } … … 918 918 function pwg_get_file_extension($file) 919 919 { 920 //~pwg_log('>>>>> pwg_get_file_extension($file = '.var_export($file, true).') >>>>>'."\n");920 pwg_log('>>>>> pwg_get_file_extension($file = '.var_export($file, true).') >>>>>'."\n"); 921 921 922 922 $ext = substr(strrchr($file, '.'), 1, strlen ($file)); 923 923 924 //~pwg_log('<<<<< pwg_get_file_extension() returns '.var_export($ext, true).' <<<<<'."\n");924 pwg_log('<<<<< pwg_get_file_extension() returns '.var_export($ext, true).' <<<<<'."\n"); 925 925 return $ext; 926 926 } … … 934 934 function pwg_get_file_list($directory) 935 935 { 936 //~pwg_log('>>>>> pwg_get_file_list($directory = '.var_export($directory, true).') >>>>>'."\n");936 pwg_log('>>>>> pwg_get_file_list($directory = '.var_export($directory, true).') >>>>>'."\n"); 937 937 938 938 global $conf, $pwg_conf; … … 950 950 // The file pointed is a regular file with a supported extension 951 951 array_push($_SESSION['scan_list_file'], $directory.'/'.$file); 952 //~pwg_log('--->> Push in $_SESSION[scan_list_file] value "'.$directory.'/'.$file.'"'."\n");952 pwg_log('--->> Push in $_SESSION[scan_list_file] value "'.$directory.'/'.$file.'"'."\n"); 953 953 if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $file)) 954 954 { … … 966 966 // The file pointed is a directory but neither system directory nor reserved by PWG 967 967 array_push($_SESSION['scan_list_fold'], $directory.'/'.$file); 968 //~pwg_log('--->> Push in $_SESSION[scan_list_fold] value "'.$directory.'/'.$file.'"'."\n");968 pwg_log('--->> Push in $_SESSION[scan_list_fold] value "'.$directory.'/'.$file.'"'."\n"); 969 969 if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $file)) 970 970 { … … 990 990 closedir($dir); 991 991 992 //~pwg_log('<<<<< pwg_get_file_list() returns '.var_export($errorLog, true).' <<<<<'."\n");992 pwg_log('<<<<< pwg_get_file_list() returns '.var_export($errorLog, true).' <<<<<'."\n"); 993 993 994 994 return $errorLog; … … 1004 1004 function pwg_get_moment() 1005 1005 { 1006 //~pwg_log('>>>>> pwg_get_moment() >>>>>'."\n");1006 pwg_log('>>>>> pwg_get_moment() >>>>>'."\n"); 1007 1007 1008 1008 $t1 = explode(' ', microtime()); … … 1010 1010 $t2 = $t1[1].'.'.$t2[1]; 1011 1011 1012 //~pwg_log('<<<<< pwg_get_moment() returns '.var_export($t2, true).' <<<<<'."\n");1012 pwg_log('<<<<< pwg_get_moment() returns '.var_export($t2, true).' <<<<<'."\n"); 1013 1013 return $t2; 1014 1014 } … … 1023 1023 global $pwg_conf; 1024 1024 1025 //~pwg_log('>>>>> pwg_referer_is_me() >>>>>'."\n");1025 pwg_log('>>>>> pwg_referer_is_me() >>>>>'."\n"); 1026 1026 1027 1027 $response = false; … … 1032 1032 } 1033 1033 1034 //~pwg_log('<<<<< pwg_referer_is_me() returns '.var_export($response, true).' <<<<<'."\n");1034 pwg_log('<<<<< pwg_referer_is_me() returns '.var_export($response, true).' <<<<<'."\n"); 1035 1035 return $response; 1036 1036 } … … 1042 1042 function pwg_test_start() 1043 1043 { 1044 //~pwg_log('>>>>> pwg_test_start() >>>>>'."\n");1044 pwg_log('>>>>> pwg_test_start() >>>>>'."\n"); 1045 1045 1046 1046 global $g_message, $conf; … … 1063 1063 $_SESSION['scan_step'] = 'exit'; 1064 1064 1065 //~pwg_log('<<<<< pwg_test_start() <<<<<'."\n");1065 pwg_log('<<<<< pwg_test_start() <<<<<'."\n"); 1066 1066 } 1067 1067 1068 1068 function pwg_test_exit() 1069 1069 { 1070 //~pwg_log('>>>>> pwg_test_exit() >>>>>'."\n");1070 pwg_log('>>>>> pwg_test_exit() >>>>>'."\n"); 1071 1071 1072 1072 global $g_header, $g_message, $g_footer, $conf, $pwg_conf; … … 1097 1097 $format = ($info['GIF Create Support']) ? '<code>gif</code>' : NULL; 1098 1098 array_push($format_list, $format); 1099 $format = ($info['JPG Support'] ) ? '<code>jpg</code>' : NULL;1099 $format = ($info['JPG Support'] or $info['JPEG Support']) ? '<code>jpg</code>' : NULL; 1100 1100 array_push($format_list, $format); 1101 1101 $format = ($info['PNG Support']) ? '<code>png</code>' : NULL; … … 1127 1127 } 1128 1128 1129 //~pwg_log('<<<<< pwg_test_exit() <<<<<'."\n");1129 pwg_log('<<<<< pwg_test_exit() <<<<<'."\n"); 1130 1130 } 1131 1131 1132 1132 function pwg_clean_start() 1133 1133 { 1134 //~pwg_log('>>>>> pwg_clean_start() >>>>>'."\n");1134 pwg_log('>>>>> pwg_clean_start() >>>>>'."\n"); 1135 1135 1136 1136 global $g_message; … … 1147 1147 $_SESSION['scan_step'] = 'exit'; 1148 1148 1149 //~pwg_log('<<<<< pwg_clean_start() <<<<<'."\n");1149 pwg_log('<<<<< pwg_clean_start() <<<<<'."\n"); 1150 1150 } 1151 1151 1152 1152 function pwg_clean_exit() 1153 1153 { 1154 //~pwg_log('>>>>> pwg_clean_exit() >>>>>'."\n");1154 pwg_log('>>>>> pwg_clean_exit() >>>>>'."\n"); 1155 1155 1156 1156 global $g_header, $g_message, $g_footer, $conf, $pwg_conf; … … 1181 1181 } 1182 1182 1183 //~pwg_log('<<<<< pwg_clean_exit() <<<<<'."\n");1183 pwg_log('<<<<< pwg_clean_exit() <<<<<'."\n"); 1184 1184 } 1185 1185 1186 1186 function pwg_generate_start() 1187 1187 { 1188 //~pwg_log('>>>>> pwg_generate_start() >>>>>'."\n");1189 //~pwg_log("GENARATE start >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start >>>\n");1188 pwg_log('>>>>> pwg_generate_start() >>>>>'."\n"); 1189 pwg_log("GENARATE start >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start >>>\n"); 1190 1190 1191 1191 global $g_listing, $pwg_conf, $conf; … … 1235 1235 } 1236 1236 1237 //~pwg_log("GENARATE start <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start <<<\n");1238 //~pwg_log('<<<<< pwg_generate_start() <<<<<'."\n");1237 pwg_log("GENARATE start <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start <<<\n"); 1238 pwg_log('<<<<< pwg_generate_start() <<<<<'."\n"); 1239 1239 } 1240 1240 1241 1241 function pwg_generate_list() 1242 1242 { 1243 //~pwg_log('>>>>> pwg_generate_list() >>>>>'."\n");1244 //~pwg_log("GENARATE list >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE list >>>\n");1243 pwg_log('>>>>> pwg_generate_list() >>>>>'."\n"); 1244 pwg_log("GENARATE list >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE list >>>\n"); 1245 1245 1246 1246 global $g_listing; … … 1263 1263 $_SESSION['scan_step'] = 'scan'; 1264 1264 1265 //~pwg_log("GENARATE list <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE list <<<\n");1266 //~pwg_log('<<<<< pwg_generate_list() <<<<<'."\n");1265 pwg_log("GENARATE list <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE list <<<\n"); 1266 pwg_log('<<<<< pwg_generate_list() <<<<<'."\n"); 1267 1267 } 1268 1268 1269 1269 function pwg_generate_scan() 1270 1270 { 1271 //~pwg_log('>>>>> pwg_generate_scan() >>>>>'."\n");1272 //~pwg_log("GENARATE scan >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE scan >>>\n");1271 pwg_log('>>>>> pwg_generate_scan() >>>>>'."\n"); 1272 pwg_log("GENARATE scan >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE scan >>>\n"); 1273 1273 1274 1274 global $g_listing, $conf; … … 1283 1283 fwrite($g_listing, $line); 1284 1284 } 1285 //~pwg_log('---<< Pull of $_SESSION[scan_list_file] value "'.$_SESSION['scan_list_file'][0].'"'."\n");1285 pwg_log('---<< Pull of $_SESSION[scan_list_file] value "'.$_SESSION['scan_list_file'][0].'"'."\n"); 1286 1286 array_shift($_SESSION['scan_list_file']); 1287 1287 $_SESSION['scan_cnt_file']++; … … 1293 1293 } 1294 1294 1295 //~pwg_log("GENERATE scan <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE scan <<<\n");1296 //~pwg_log('<<<<< pwg_generate_scan() <<<<<'."\n");1295 pwg_log("GENERATE scan <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE scan <<<\n"); 1296 pwg_log('<<<<< pwg_generate_scan() <<<<<'."\n"); 1297 1297 } 1298 1298 1299 1299 function pwg_generate_prot() 1300 1300 { 1301 //~pwg_log('>>>>> pwg_generate_prot() >>>>>'."\n");1302 //~pwg_log("GENARATE prot >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE prot >>>\n");1301 pwg_log('>>>>> pwg_generate_prot() >>>>>'."\n"); 1302 pwg_log("GENARATE prot >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE prot >>>\n"); 1303 1303 1304 1304 global $conf, $g_listing; … … 1317 1317 if (isset($_SESSION['scan_list_fold'][1])) 1318 1318 { 1319 //~pwg_log('---<< Pull of $_SESSION[scan_list_fold] value "'.$_SESSION['scan_list_fold'][0].'"'."\n");1319 pwg_log('---<< Pull of $_SESSION[scan_list_fold] value "'.$_SESSION['scan_list_fold'][0].'"'."\n"); 1320 1320 array_shift($_SESSION['scan_list_fold']); 1321 1321 $_SESSION['scan_cnt_fold']++; … … 1342 1342 } 1343 1343 1344 //~pwg_log("GENERATE prot <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE prot <<<\n");1345 //~pwg_log('<<<<< pwg_generate_prot() <<<<<'."\n");1344 pwg_log("GENERATE prot <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE prot <<<\n"); 1345 pwg_log('<<<<< pwg_generate_prot() <<<<<'."\n"); 1346 1346 } 1347 1347 1348 1348 function pwg_generate_stop() 1349 1349 { 1350 //~pwg_log('>>>>> pwg_generate_stop() >>>>>'."\n");1351 //~pwg_log("GENARATE stop >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE stop >>>\n");1350 pwg_log('>>>>> pwg_generate_stop() >>>>>'."\n"); 1351 pwg_log("GENARATE stop >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE stop >>>\n"); 1352 1352 1353 1353 global $pwg_conf, $g_listing, $g_header, $g_message, $g_footer; … … 1370 1370 $_SESSION['scan_step'] = 'exit'; 1371 1371 1372 //~pwg_log("GENARATE stop <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE stop <<<\n");1373 //~pwg_log('<<<<< pwg_generate_stop() <<<<<'."\n");1372 pwg_log("GENARATE stop <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE stop <<<\n"); 1373 pwg_log('<<<<< pwg_generate_stop() <<<<<'."\n"); 1374 1374 } 1375 1375 … … 1385 1385 function pwg_continue() 1386 1386 { 1387 //~pwg_log('>>>>> pwg_continue() >>>>>'."\n");1387 pwg_log('>>>>> pwg_continue() >>>>>'."\n"); 1388 1388 1389 1389 global $conf, $pwg_conf, $g_refresh, $g_header, $g_message, $g_footer, $start_time; … … 1443 1443 } 1444 1444 } 1445 //~pwg_log('<<<<< pwg_continue() returns '.var_export($return, true).' <<<<<'."\n");1445 pwg_log('<<<<< pwg_continue() returns '.var_export($return, true).' <<<<<'."\n"); 1446 1446 1447 1447 return $return; … … 1459 1459 function pwg_init() 1460 1460 { 1461 //~pwg_log('>>>>> pwg_init() >>>>>'."\n");1461 pwg_log('>>>>> pwg_init() >>>>>'."\n"); 1462 1462 1463 1463 global $g_message, $g_listing, $g_footer, $conf, $pwg_conf, $start_time; … … 1476 1476 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1477 1477 $_SESSION['scan_step'] = 'exit'; 1478 //~pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1478 pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1479 1479 return; 1480 1480 } … … 1501 1501 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1502 1502 $_SESSION['scan_step'] = 'exit'; 1503 //~pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1503 pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1504 1504 return; 1505 1505 } … … 1518 1518 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1519 1519 $_SESSION['scan_step'] = 'exit'; 1520 //~pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1520 pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1521 1521 return; 1522 1522 } … … 1549 1549 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1550 1550 $_SESSION['scan_step'] = 'exit'; 1551 //~pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1551 pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1552 1552 return; 1553 1553 } … … 1569 1569 } 1570 1570 1571 //~pwg_log('<<<<< pwg_init() success <<<<<'."\n");1571 pwg_log('<<<<< pwg_init() success <<<<<'."\n"); 1572 1572 } 1573 1573 … … 1582 1582 function pwg_exit() 1583 1583 { 1584 //~pwg_log('>>>>> pwg_exit() >>>>>'."\n");1584 pwg_log('>>>>> pwg_exit() >>>>>'."\n"); 1585 1585 1586 1586 global $g_listing; … … 1613 1613 } 1614 1614 1615 //~pwg_log('<<<<< pwg_exit() <<<<<'."\n");1615 pwg_log('<<<<< pwg_exit() <<<<<'."\n"); 1616 1616 } 1617 1617
Note: See TracChangeset
for help on using the changeset viewer.