-new: added a new script header flag "initialize=1" which will trigger the code section labeled [initialize] to be processed before beginning the search. -new: this allows the ability to modify any of the search variables, including new @search, @profile and also use the read-only $descriptions (1 if turned on and 0 if turned off). -fixed: the redirect '//' bug for toggling same HTTP or HTTPS protocol as the referrer -fixed: 'Locate' button in the script debugger for 'find() and extract()' -fixed: properly urlencode the @search (uses Win32 API.. so for example " " is converted to "%20" instead of "+"... also takes care of all the other characters) -improved: some language translation widths and heights based on feedback from gojko and Exoskeletor (thanks guys!)
for now, i think im going display the last 5 script pack updates in the details prior to downloading the new script pack.. i like being able to know what changes have happened (even if older updates are already applied).. i think that scenario is slightly better than waiting until the new script pack is applied to find out what changed..
Bovski, CuF.. hopefully you guys can review and let me know if you have any concerns or suggestions on these engine changes
ok.. made some changes i think should work. added a new script header flag "initialize=1" which will trigger the code section labeled [initialize] to be processed before any searching. this allows you to modify any of the search variables, including new @search, @profile and also use the read-only $descriptions.
side note, also fixed -the redirect '//' bug for toggling same HTTP or HTTPS protocol as the referrer -'Locate' button in the script debugger for 'find() and extract()' -properly urlencode the @search (uses Win32 API.. so for example " " is converted to "%20" instead of "+"... also takes care of all the other characters)
[login] prelogin=code(`/login?returnto=%2F`,0) login=https://hdbits.org/login/doLogin form=uname=%USER%&password=%PASS%&lol=%LOL% failed=Type in your username and password failed2=action="/login/doLogin"
[initialize] @search=put(`new test search`) if ($descriptions=1) then @profile=&(@profile,`&incdes=true`) end if [/initialize]
i'm exposing @profile (search URL), @search (search terms) , and $desc (1 if include description searches, 0 if not) to the script engine.. and also added ability for ['code] section to be processed before launching any http connection.. more to come later.
i gotcha.. do you have any site examples where the search is changed for description searches so I can start to conceptualize on how to change the script structure? for example, code0 is already dedicated to prelogin processing, but to your point, seems like we need a "pre-connection" code section prior to any http requests..
just brainstorming.. lets say a flag 0 or 1 is passed to this function based on whether 'description searches' are checked ($descriptions).. then an IF THEN section can be processed to manipulate %search%.. hmm..