A PHP Error was encountered

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

Untitled - Stikked
From Anorexic Gibbon, 12 Years ago, written in C#.
Embed
  1. public static EquipReturn GetInventory(string server, string sid, ref string sresponse, ref CookieContainer cookies)
  2.             {
  3.                 using (CWebClient client = new CWebClient())
  4.                 {
  5.                     try
  6.                     {
  7.                         client.m_container = cookies;
  8.                         client.Headers["Accept-Encoding"] = "gzip,deflate";
  9.                         client.GZip = true;
  10.                         sresponse = Encoding.UTF8.GetString(Convert.FromBase64String(client.DownloadString("http://" + server + ".darkorbit.com/flashAPI/inventory.php?action=init&dosid=" + sid)));
  11.  
  12.                         cookies = client.m_container;
  13.  
  14.                         JavaScriptSerializer jss = new JavaScriptSerializer();
  15.                         jss.RegisterConverters(new JavaScriptConverter[] { new DynamicJsonConverter() });
  16.                         dynamic json = jss.Deserialize(sresponse, typeof(object)) as dynamic;
  17.  
  18.                         EquipReturn response = new EquipReturn();
  19.  
  20.                         //if (!json.ContainsKey("data"))
  21.                         //    return null;
  22.  
  23.                         // if (!json.data.ContainsKey("ret"))
  24.                         //    return null;
  25.  
  26.                         foreach (var hangar in json.data.ret.hangars)