Cytat
crtgrp General;
addparam sitetitle value Site;
addparam sitever value 0.1.2;
crtgrp Account;
addparam minidlen value 3;
addparam maxidlen value 4;
addparam minpasslen value 5;
addparam maxpasslen value 5;
addparam sitetitle value Site;
addparam sitever value 0.1.2;
crtgrp Account;
addparam minidlen value 3;
addparam maxidlen value 4;
addparam minpasslen value 5;
addparam maxpasslen value 5;
I skrypt:
// -- SET VARS $current_group = ""; // -- GET LINES // -- WORK WITH FILE for ($i = 0; $i < $lines_count; $i++) { if ($cmd[0] == "crtgrp") { $Content[$cmd[1]] = $cmd[1]; $debug .= 'Created group '.$Content[$cmd[1]].'<BR/>'; $current_group = $cmd[1]; } else { if ($cmd[2] == "value") { $Content[$current_group][$cmd[1]] = $cmd[3]; $debug = $debug.' Created param '.$Content[$current_group][$cmd[1]].' for group '.$current_group.'<BR/>'; } } }
I output:
Cytat
9
Created group General
Created param S for group General
Created param 0 for group General
Created param 3 for group General
Created param 4 for group General
Created param 5 for group General
Created param 5 for group General
Created group General
Created param S for group General
Created param 0 for group General
Created param 3 for group General
Created param 4 for group General
Created param 5 for group General
Created param 5 for group General
Może mi ktoś powiedzieć, o co chodzi?