Changeset 5008 for branches/2.0/tools/create_listing_file.php
- Timestamp:
- Mar 1, 2010, 11:43:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/tools/create_listing_file.php
r5007 r5008 94 94 // ****** Thumbnails generation functionality ****** // 95 95 // Define if images have to be reduced if they are not 96 $conf['thumbnail'] = true;96 $conf['thumbnail'] = false; 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; … … 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; … … 559 559 $error_log = ''; 560 560 561 // Create thumbnail directory if not exists 562 if (!file_exists($file_dir.'/'.$conf['thumbs'])) 563 { 564 mkdir($file_dir.'/'.$conf['thumbs']); 565 } 566 561 567 // Get original properties (width, height) 562 568 if ($image_size = getimagesize($file_dir.'/'.$file_short.'.'.$file_ext)) … … 684 690 $error_log .= $file_dir.'/'.$file_short.'.'.$file_ext.'</code><br />'."\n"; 685 691 686 pwg_log('<<<<< pwg_icon_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n");692 //~ pwg_log('<<<<< pwg_icon_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n"); 687 693 return $error_log; 688 694 } … … 697 703 function pwg_scan_file($file_full, &$line) 698 704 { 699 pwg_log('>>>>> pwg_scan_file($file = '.var_export($file_full, TRUE).', $line = '.var_export($line, TRUE).') >>>>>'."\n");705 //~ pwg_log('>>>>> pwg_scan_file($file = '.var_export($file_full, TRUE).', $line = '.var_export($line, TRUE).') >>>>>'."\n"); 700 706 701 707 global $conf, $pwg_conf; … … 806 812 } 807 813 808 pwg_log('<<<<< pwg_scan_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n");814 //~ pwg_log('<<<<< pwg_scan_file() returns '.var_export($error_log, TRUE).' <<<<<'."\n"); 809 815 return $error_log; 810 816 } … … 817 823 function pwg_get_level($dir) 818 824 { 819 pwg_log('>>>>> pwg_get_level($dir = '.var_export($dir, TRUE).') >>>>>'."\n");825 //~ pwg_log('>>>>> pwg_get_level($dir = '.var_export($dir, TRUE).') >>>>>'."\n"); 820 826 821 827 $level = substr_count($dir, '/') - 1; // -1 because of ./ at the beginning of path 822 828 823 pwg_log('<<<<< pwg_get_level() returns '.var_export($level, TRUE).' <<<<<'."\n");829 //~ pwg_log('<<<<< pwg_get_level() returns '.var_export($level, TRUE).' <<<<<'."\n"); 824 830 return $level; 825 831 } … … 833 839 function pwg_get_indent($element_type) 834 840 { 835 pwg_log('>>>>> pwg_get_indent($element_type = '.var_export($element_type, TRUE).') >>>>>'."\n");841 //~ pwg_log('>>>>> pwg_get_indent($element_type = '.var_export($element_type, TRUE).') >>>>>'."\n"); 836 842 837 843 $level = substr_count($_SESSION['scan_list_fold'][0], '/') - 1; // because of ./ at the beginning … … 860 866 } 861 867 862 pwg_log('<<<<< pwg_get_indent() returns '.var_export(strlen($indent), TRUE).' spaces <<<<<'."\n");868 //~ pwg_log('<<<<< pwg_get_indent() returns '.var_export(strlen($indent), TRUE).' spaces <<<<<'."\n"); 863 869 return $indent; 864 870 } … … 872 878 function pwg_protect_directories($directory) 873 879 { 874 pwg_log('>>>>> pwg_protect_directories($directory = '.var_export($directory, true).') >>>>>'."\n");880 //~ pwg_log('>>>>> pwg_protect_directories($directory = '.var_export($directory, true).') >>>>>'."\n"); 875 881 876 882 global $conf; … … 906 912 } 907 913 908 pwg_log('<<<<< pwg_protect_directories() returns '.var_export($error_log, true).' <<<<<'."\n");914 //~ pwg_log('<<<<< pwg_protect_directories() returns '.var_export($error_log, true).' <<<<<'."\n"); 909 915 return $error_log; 910 916 } … … 918 924 function pwg_get_file_extension($file) 919 925 { 920 pwg_log('>>>>> pwg_get_file_extension($file = '.var_export($file, true).') >>>>>'."\n");926 //~ pwg_log('>>>>> pwg_get_file_extension($file = '.var_export($file, true).') >>>>>'."\n"); 921 927 922 928 $ext = substr(strrchr($file, '.'), 1, strlen ($file)); 923 929 924 pwg_log('<<<<< pwg_get_file_extension() returns '.var_export($ext, true).' <<<<<'."\n");930 //~ pwg_log('<<<<< pwg_get_file_extension() returns '.var_export($ext, true).' <<<<<'."\n"); 925 931 return $ext; 926 932 } … … 934 940 function pwg_get_file_list($directory) 935 941 { 936 pwg_log('>>>>> pwg_get_file_list($directory = '.var_export($directory, true).') >>>>>'."\n");942 //~ pwg_log('>>>>> pwg_get_file_list($directory = '.var_export($directory, true).') >>>>>'."\n"); 937 943 938 944 global $conf, $pwg_conf; … … 950 956 // The file pointed is a regular file with a supported extension 951 957 array_push($_SESSION['scan_list_file'], $directory.'/'.$file); 952 pwg_log('--->> Push in $_SESSION[scan_list_file] value "'.$directory.'/'.$file.'"'."\n");958 //~ pwg_log('--->> Push in $_SESSION[scan_list_file] value "'.$directory.'/'.$file.'"'."\n"); 953 959 if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $file)) 954 960 { … … 966 972 // The file pointed is a directory but neither system directory nor reserved by PWG 967 973 array_push($_SESSION['scan_list_fold'], $directory.'/'.$file); 968 pwg_log('--->> Push in $_SESSION[scan_list_fold] value "'.$directory.'/'.$file.'"'."\n");974 //~ pwg_log('--->> Push in $_SESSION[scan_list_fold] value "'.$directory.'/'.$file.'"'."\n"); 969 975 if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $file)) 970 976 { … … 990 996 closedir($dir); 991 997 992 pwg_log('<<<<< pwg_get_file_list() returns '.var_export($errorLog, true).' <<<<<'."\n");998 //~ pwg_log('<<<<< pwg_get_file_list() returns '.var_export($errorLog, true).' <<<<<'."\n"); 993 999 994 1000 return $errorLog; … … 1004 1010 function pwg_get_moment() 1005 1011 { 1006 pwg_log('>>>>> pwg_get_moment() >>>>>'."\n");1012 //~ pwg_log('>>>>> pwg_get_moment() >>>>>'."\n"); 1007 1013 1008 1014 $t1 = explode(' ', microtime()); … … 1010 1016 $t2 = $t1[1].'.'.$t2[1]; 1011 1017 1012 pwg_log('<<<<< pwg_get_moment() returns '.var_export($t2, true).' <<<<<'."\n");1018 //~ pwg_log('<<<<< pwg_get_moment() returns '.var_export($t2, true).' <<<<<'."\n"); 1013 1019 return $t2; 1014 1020 } … … 1023 1029 global $pwg_conf; 1024 1030 1025 pwg_log('>>>>> pwg_referer_is_me() >>>>>'."\n");1031 //~ pwg_log('>>>>> pwg_referer_is_me() >>>>>'."\n"); 1026 1032 1027 1033 $response = false; … … 1032 1038 } 1033 1039 1034 pwg_log('<<<<< pwg_referer_is_me() returns '.var_export($response, true).' <<<<<'."\n");1040 //~ pwg_log('<<<<< pwg_referer_is_me() returns '.var_export($response, true).' <<<<<'."\n"); 1035 1041 return $response; 1036 1042 } … … 1042 1048 function pwg_test_start() 1043 1049 { 1044 pwg_log('>>>>> pwg_test_start() >>>>>'."\n");1050 //~ pwg_log('>>>>> pwg_test_start() >>>>>'."\n"); 1045 1051 1046 1052 global $g_message, $conf; … … 1063 1069 $_SESSION['scan_step'] = 'exit'; 1064 1070 1065 pwg_log('<<<<< pwg_test_start() <<<<<'."\n");1071 //~ pwg_log('<<<<< pwg_test_start() <<<<<'."\n"); 1066 1072 } 1067 1073 1068 1074 function pwg_test_exit() 1069 1075 { 1070 pwg_log('>>>>> pwg_test_exit() >>>>>'."\n");1076 //~ pwg_log('>>>>> pwg_test_exit() >>>>>'."\n"); 1071 1077 1072 1078 global $g_header, $g_message, $g_footer, $conf, $pwg_conf; … … 1127 1133 } 1128 1134 1129 pwg_log('<<<<< pwg_test_exit() <<<<<'."\n");1135 //~ pwg_log('<<<<< pwg_test_exit() <<<<<'."\n"); 1130 1136 } 1131 1137 1132 1138 function pwg_clean_start() 1133 1139 { 1134 pwg_log('>>>>> pwg_clean_start() >>>>>'."\n");1140 //~ pwg_log('>>>>> pwg_clean_start() >>>>>'."\n"); 1135 1141 1136 1142 global $g_message; … … 1147 1153 $_SESSION['scan_step'] = 'exit'; 1148 1154 1149 pwg_log('<<<<< pwg_clean_start() <<<<<'."\n");1155 //~ pwg_log('<<<<< pwg_clean_start() <<<<<'."\n"); 1150 1156 } 1151 1157 1152 1158 function pwg_clean_exit() 1153 1159 { 1154 pwg_log('>>>>> pwg_clean_exit() >>>>>'."\n");1160 //~ pwg_log('>>>>> pwg_clean_exit() >>>>>'."\n"); 1155 1161 1156 1162 global $g_header, $g_message, $g_footer, $conf, $pwg_conf; … … 1181 1187 } 1182 1188 1183 pwg_log('<<<<< pwg_clean_exit() <<<<<'."\n");1189 //~ pwg_log('<<<<< pwg_clean_exit() <<<<<'."\n"); 1184 1190 } 1185 1191 1186 1192 function pwg_generate_start() 1187 1193 { 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");1194 //~ pwg_log('>>>>> pwg_generate_start() >>>>>'."\n"); 1195 //~ pwg_log("GENARATE start >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start >>>\n"); 1190 1196 1191 1197 global $g_listing, $pwg_conf, $conf; … … 1235 1241 } 1236 1242 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");1243 //~ pwg_log("GENARATE start <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start <<<\n"); 1244 //~ pwg_log('<<<<< pwg_generate_start() <<<<<'."\n"); 1239 1245 } 1240 1246 1241 1247 function pwg_generate_list() 1242 1248 { 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");1249 //~ pwg_log('>>>>> pwg_generate_list() >>>>>'."\n"); 1250 //~ pwg_log("GENARATE list >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE list >>>\n"); 1245 1251 1246 1252 global $g_listing; … … 1263 1269 $_SESSION['scan_step'] = 'scan'; 1264 1270 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");1271 //~ pwg_log("GENARATE list <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE list <<<\n"); 1272 //~ pwg_log('<<<<< pwg_generate_list() <<<<<'."\n"); 1267 1273 } 1268 1274 1269 1275 function pwg_generate_scan() 1270 1276 { 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");1277 //~ pwg_log('>>>>> pwg_generate_scan() >>>>>'."\n"); 1278 //~ pwg_log("GENARATE scan >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE scan >>>\n"); 1273 1279 1274 1280 global $g_listing, $conf; … … 1283 1289 fwrite($g_listing, $line); 1284 1290 } 1285 pwg_log('---<< Pull of $_SESSION[scan_list_file] value "'.$_SESSION['scan_list_file'][0].'"'."\n");1291 //~ pwg_log('---<< Pull of $_SESSION[scan_list_file] value "'.$_SESSION['scan_list_file'][0].'"'."\n"); 1286 1292 array_shift($_SESSION['scan_list_file']); 1287 1293 $_SESSION['scan_cnt_file']++; … … 1293 1299 } 1294 1300 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");1301 //~ pwg_log("GENERATE scan <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE scan <<<\n"); 1302 //~ pwg_log('<<<<< pwg_generate_scan() <<<<<'."\n"); 1297 1303 } 1298 1304 1299 1305 function pwg_generate_prot() 1300 1306 { 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");1307 //~ pwg_log('>>>>> pwg_generate_prot() >>>>>'."\n"); 1308 //~ pwg_log("GENARATE prot >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE prot >>>\n"); 1303 1309 1304 1310 global $conf, $g_listing; … … 1317 1323 if (isset($_SESSION['scan_list_fold'][1])) 1318 1324 { 1319 pwg_log('---<< Pull of $_SESSION[scan_list_fold] value "'.$_SESSION['scan_list_fold'][0].'"'."\n");1325 //~ pwg_log('---<< Pull of $_SESSION[scan_list_fold] value "'.$_SESSION['scan_list_fold'][0].'"'."\n"); 1320 1326 array_shift($_SESSION['scan_list_fold']); 1321 1327 $_SESSION['scan_cnt_fold']++; … … 1342 1348 } 1343 1349 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");1350 //~ pwg_log("GENERATE prot <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE prot <<<\n"); 1351 //~ pwg_log('<<<<< pwg_generate_prot() <<<<<'."\n"); 1346 1352 } 1347 1353 1348 1354 function pwg_generate_stop() 1349 1355 { 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");1356 //~ pwg_log('>>>>> pwg_generate_stop() >>>>>'."\n"); 1357 //~ pwg_log("GENARATE stop >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE stop >>>\n"); 1352 1358 1353 1359 global $pwg_conf, $g_listing, $g_header, $g_message, $g_footer; … … 1370 1376 $_SESSION['scan_step'] = 'exit'; 1371 1377 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");1378 //~ pwg_log("GENARATE stop <<<\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE stop <<<\n"); 1379 //~ pwg_log('<<<<< pwg_generate_stop() <<<<<'."\n"); 1374 1380 } 1375 1381 … … 1385 1391 function pwg_continue() 1386 1392 { 1387 pwg_log('>>>>> pwg_continue() >>>>>'."\n");1393 //~ pwg_log('>>>>> pwg_continue() >>>>>'."\n"); 1388 1394 1389 1395 global $conf, $pwg_conf, $g_refresh, $g_header, $g_message, $g_footer, $start_time; … … 1443 1449 } 1444 1450 } 1445 pwg_log('<<<<< pwg_continue() returns '.var_export($return, true).' <<<<<'."\n");1451 //~ pwg_log('<<<<< pwg_continue() returns '.var_export($return, true).' <<<<<'."\n"); 1446 1452 1447 1453 return $return; … … 1459 1465 function pwg_init() 1460 1466 { 1461 pwg_log('>>>>> pwg_init() >>>>>'."\n");1467 //~ pwg_log('>>>>> pwg_init() >>>>>'."\n"); 1462 1468 1463 1469 global $g_message, $g_listing, $g_footer, $conf, $pwg_conf, $start_time; … … 1476 1482 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1477 1483 $_SESSION['scan_step'] = 'exit'; 1478 pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1484 //~ pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1479 1485 return; 1480 1486 } … … 1501 1507 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1502 1508 $_SESSION['scan_step'] = 'exit'; 1503 pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1509 //~ pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1504 1510 return; 1505 1511 } … … 1518 1524 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1519 1525 $_SESSION['scan_step'] = 'exit'; 1520 pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1526 //~ pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1521 1527 return; 1522 1528 } … … 1549 1555 $g_footer = '<a href="'.$pwg_conf['this_url'].'" title="Main menu"><img src="'.$pwg_conf['icon_dir'].'up.png" /></a>'."\n"; 1550 1556 $_SESSION['scan_step'] = 'exit'; 1551 pwg_log('<<<<< pwg_init() failure <<<<<'."\n");1557 //~ pwg_log('<<<<< pwg_init() failure <<<<<'."\n"); 1552 1558 return; 1553 1559 } … … 1569 1575 } 1570 1576 1571 pwg_log('<<<<< pwg_init() success <<<<<'."\n");1577 //~ pwg_log('<<<<< pwg_init() success <<<<<'."\n"); 1572 1578 } 1573 1579 … … 1582 1588 function pwg_exit() 1583 1589 { 1584 pwg_log('>>>>> pwg_exit() >>>>>'."\n");1590 //~ pwg_log('>>>>> pwg_exit() >>>>>'."\n"); 1585 1591 1586 1592 global $g_listing; … … 1613 1619 } 1614 1620 1615 pwg_log('<<<<< pwg_exit() <<<<<'."\n");1621 //~ pwg_log('<<<<< pwg_exit() <<<<<'."\n"); 1616 1622 } 1617 1623
Note: See TracChangeset
for help on using the changeset viewer.