| 18 | raise SystemExit(0) |
| 19 | |
| 20 | def export(): |
| 21 | global string, dictionary, export, decode |
| 22 | try: |
| 23 | from os import environ |
| 24 | string = environ['QUERY_STRING'] |
| 25 | except: |
| 26 | string = None |
| 27 | try: |
| 28 | temp = string.replace('+', ' ').split('&') |
| 29 | for index in range(len(temp)): |
| 30 | temp[index] = temp[index].split('=') |
| 31 | dictionary = dict() |
| 32 | for parameter, value in temp: |
| 33 | dictionary[decode(parameter)] = decode(value) |
| 34 | except: |
| 35 | dictionary = None |
| 36 | del export, decode |
| 37 | |
| 38 | def decode(string): |
| 39 | index = string.find('%') |