Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
import urllib2 import lxml.html def player_by_name(name): name = urllib2.quote(name) api = urllib2.urlopen('http://statapi.transformice.com/miceinfo.xml?n=%s' % name) data = lxml.html.parse(api) api.close() return Transformice(data) class Transformice: def __init__(self, xml): try: err = xml.find('//mice/error').text raise TransformiceError(err) except AttributeError: # Easiest && fastest way to check. pass self.name = xml.find('//mice/name').text self.tribe = xml.find('//mice/tribe').text self.rounds = xml.find('//mice/rounds').text self.cheese = xml.find('//mice/cheese').text self.first = xml.find('//mice/first').text self.chamansave = xml.find('//mice/chamansave').text self.chamancheese = xml.find('//mice/chamancheese').text self.chamangold = xml.find('//mice/chamangold').text self.micetitle = xml.find('//mice/micetitle').text self.titlelist = { '0': 'Little Mouse', '1': 'Shaman Disciple', '2': 'Accomplished Shaman', '3': 'Shaman', '4': 'Shaman Master', '5': 'Greedy Mouse', '6': 'Here! Cheese!', '7': 'Yeeeeah Cheese ^^', '8': 'Cheeeeeese *-*', '9': 'Fast Mouse', '10': 'Agile Mouse', '11': 'Pirate Mouse', '12': 'Ninja Mouse', '13': 'Inspired Shaman', '14': 'Shaman Champion', '15': 'Glorious Shaman', '16': 'Shaman Duchess', '17': 'Shaman Princess', '18': 'Shaman Empress', '19': 'Legendary Shaman', '20': 'Immortal Shaman', '21': 'The Chosen Shaman', '22': 'Holy Shaman', '23': 'Shaman Oracle', '24': 'Shaman Prophet', '25': 'Shamarvelous', '26': 'Glutton Mouse', '27': 'Gleany', '28': 'Plumpy Mouse', '29': 'Paunchy Mouse', '30': 'Chubby Mouse', '31': 'Fluffy Mouse', '32': 'Tubby Mouse', '33': 'The Chubby', '34': 'The Puffy', '35': 'Activist Mouse', '36': 'Unionized Mouse', '37': 'Mouse on Strike', '38': 'The Cheese Initiated', '39': 'The Cheese Adept', '40': 'The Cheese Priest', '41': 'The Reaper', '42': 'Rogue Mouse', '43': 'Looter', '44': 'Stalker', '45': 'Frothy Mouse', '46': 'The Silent', '47': 'Hawk Mouse', '48': 'Cobra Mouse', '49': 'Spidermouse', '50': 'Quick Silver', '51': 'Athletic Mouse', '52': 'Hasty Mouse', '53': 'Rocket Mouse', '54': 'Sonic The Mouse', '55': 'Pingless', '56': 'Kamikaze', '57': 'Warrior Mouse', '58': 'Mach 1', '59': 'Hunter', '60': 'First!', '61': 'Sniper', '62': 'Flash', '63': 'Supermouse', '64': 'Light Speed', '65': 'Time Traveler', '66': 'Fast Wind', '67': 'E=MouseC2', '68': 'Jumper', '69': 'The Untouchable', '70': 'Wall-Jumper', '71': 'LIGHTNING', '72': 'Cheese Finder', '73': 'Cheese Knight', '74': 'Cheesegrubber', '75': 'Fatty', '76': 'Stout Mouse', '77': 'Cheese Lover', '78': 'Camembert', '79': "Pont-L'eveque", '80': 'Cheese Catcher', '81': "It's Over 9000", '82': 'Collector', '83': 'Cheeseleader', '84': 'Cheese Thief', '85': 'Cheese Creator', '86': 'Cheese Pizza', '87': 'Cheese Minister', '88': 'Prodigy Mouse', '89': 'Princess of Transformice', '90': 'Cheesoholic', '91': 'The Cheesen One', '92': 'Sailor Mouse', '93': 'MAH CHEESE!', '94': 'Ancient Shaman', '95': 'Fearless Shaman', '96': 'Almighty Shaman', '97': 'Architect Shaman', '98': 'Mademoiselle', '99': 'Lady Shaman', '100': 'Loved', '101': 'Magician', '102': 'Hero of Mice', '103': 'Angel Shaman', '104': 'The Creator', '105': 'Absolute Shaman', '106': 'Miraculous Shaman', '107': 'Liberator', '108': 'Troll Shaman', '109': 'Ghost Shaman', '110': 'Spirit', '111': 'Demigodess Shaman', '112': 'Last Hope', '113': 'Redeemer', '114': 'Alpha & Omega', '115': 'Nice Mouse', '116': 'Adorable Mouse', '117': 'Charming Mouse', '118': 'Pretty Mouse', '119': 'Cute Mouse', '120': 'Frivolous Mouse', '121': 'Snob Mouse', '122': 'Stylish Mouse', '123': 'Actress Mouse', '124': 'Fashion Mouse', '125': 'Sexy', '126': 'SuperStar', '127': 'Little Snowflake', '128': 'Christmas Spirit', '129': 'Little Pixie', '130': 'Santa Claus', '200': 'Goddess Shaman', '202': 'The Wind Master', '210': 'Alluring Mouse', '211': 'Temptress', '212': 'Latin Lover', '213': 'Decorator', '214': 'Builder', '215': 'Manufacturer', '216': 'Technician', '217': 'Mechanic', '218': 'Specialist', '219': 'Inventor', '220': 'Engineer', '221': 'Inventive Mouse', '222': 'Ingenious Mouse', '223': 'Virtuoso', '224': 'Sprinter', '225': 'Batmouse', '226': 'The Unseen', '227': 'Unstoppable', '228': 'Andale! Andale!', '229': 'Torpedo', '230': 'Speedy Gorgonzola', '231': 'Dynamite', '232': 'Speedmaster', '233': 'Whirlwind', '234': 'Om Nom Nom', '235': '*-*', '236': 'Cheese Addict', '237': 'Cheesus', '238': 'Queen of Cheese', '240': 'Cookies', '241': 'Christmas Cake', '242': 'Whitebeard', '243': 'Generous', '244': 'Snowy', '245': 'Snowstorm', '246': 'Dauphine', '247': 'Foxy', '248': 'Miss Transformice' } self.title = self.title(xml.find('//mice/micetitle').text) class TransformiceError(Exception): pass