|
|
|
|
|
 823 downloads, 1 today
|

| | | |
 |
|
|
» $urlget() [3.42KiB] by .
|
|
|
| Average: | (4.5/5) |
| Documentation: | (5/5)The author has included a nicely laid out documentation that specifies the following things:
- Contact information.
- Installation notes.
- Explanation of syntax.
- Example usage of the snippet.
Everything is written in proper English, and well laid out, a good example of how any snippet's documentation should look like.
|
| Functionality: | (4/5)This snippet $urlget() allows you to retrieve various parts of an url, by means of specifying a certain bitmask. The user can choose out of 8 different numbers, each of which show a different aspect of the url, like the host name, the port, the password and username (if specified), the relative path etc.
If no port was specified, then the snippet will try to derive it out of a pre-set list with a lot of common ports. For example http being 80, ftp being 21 etc.
Furthermore, since the number to be specified is a bitmask, it means you can combine multiple numbers together by adding them up. For example, if you want to see the username (2) and the password (4) you would specify 6.
The coding is clean, advanced, well written and structured in an easy to read way. The author names his regexes so that they wouldn't interfere with the $regml list in other scripts that the user might have loaded.
The only thing that was unnecessary was to include a /halt command at the end of the snippet, since there is no code following it. /return is always preferred anyway, though this does not affect the functionality of the snippet in any way.
I gave this snippet a functionality rating of 4, not because of the code, which is excellent, but taking into account its overall usefulness. |
| Design: | Not rated This is a text based snippet, for which a design rating would not be appropriate. |
| Overall: | A nicely coded snippet, and although I can't think of much usages for it at this time, I'm sure some people will find it useful. Good job, myggan. |
| Reviewed by FiberOPtics. | |
|
|
|
Comments | |
|
You must be registered and logged in to be able to post comments.
|
|
|
|
Copyright © mIRC Scripting Network 1999-2010.
If you have found a bug, please send a pmsg to wiggle or tye (pmsg).
Page compiled in 0.147s.
|
| | | |
48 visitors online (1 registered / 47 guests).
Using GZIP Compression. You just ate 8.48 kb of our traffic.
| | |
|
|
|
|