It is currently Fri 29. Mar 2024, 18:00
News of Scriptbörse: Angebote
Site map of Scriptbörse: Angebote » Forum : Scriptbörse: Angebote
Bildupload
<?php
#--------------------------------------------------------------------------------#
# \||/ #
# | @___oo #
# /\ /\ / (__,,,,| #
# ) /^\) ^\/ _) #
# ) /^\/ _) _/_/_/_/ _/_/_/_/ _/_/_/ _/_/ #
# ) _ / / _) _/ _/ _/ _/ _/ #
# /\ )/\/ || | )_) _/ _/_/_/ _/ _/_/ _/ _/ #
# < > |(,,) )__) _/ _/ _/ _/ _/ _/ _/ #
# || / \)___)\ _/_/ _/_/_/_/ _/_/_/ ...
#--------------------------------------------------------------------------------#
# \||/ #
# | @___oo #
# /\ /\ / (__,,,,| #
# ) /^\) ^\/ _) #
# ) /^\/ _) _/_/_/_/ _/_/_/_/ _/_/_/ _/_/ #
# ) _ / / _) _/ _/ _/ _/ _/ #
# /\ )/\/ || | )_) _/ _/_/_/ _/ _/_/ _/ _/ #
# < > |(,,) )__) _/ _/ _/ _/ _/ _/ _/ #
# || / \)___)\ _/_/ _/_/_/_/ _/_/_/ ...
Read more : Bildupload | Views : 3818 | Replies : 0
Python
import sys
import os
import re
def print_environ(environ=os.environ):
"""Dump the shell environment as HTML."""
keys = environ.keys()
keys.sort()
i = 0
for key in keys:
if not re.search("^HTTP_|^REQUEST_", key):
continue
if i == 0:
print """<tr class="normal"><td>""", escape(key), "</td><td>", escape(environ), "</td></tr>"
i = 1
else:
print """<tr class="alt"><td>""", escape(key), "</td><td>", escape(environ), "</td></tr>"
i = 0
def escape(s, quote=None):
"""Replace special characters '&', '<' and '>' by SGML entities."""
s = s.replace("&", "&") # Must be ...
import os
import re
def print_environ(environ=os.environ):
"""Dump the shell environment as HTML."""
keys = environ.keys()
keys.sort()
i = 0
for key in keys:
if not re.search("^HTTP_|^REQUEST_", key):
continue
if i == 0:
print """<tr class="normal"><td>""", escape(key), "</td><td>", escape(environ), "</td></tr>"
i = 1
else:
print """<tr class="alt"><td>""", escape(key), "</td><td>", escape(environ), "</td></tr>"
i = 0
def escape(s, quote=None):
"""Replace special characters '&', '<' and '>' by SGML entities."""
s = s.replace("&", "&") # Must be ...
Read more : Python | Views : 2388 | Replies : 0
Last 10 active topics
Statistics
Total posts 11631 • Total topics 9597 • Total members 831