??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 178
import io
import struct
import sendmessage_pb2
import subprocess
def readDataFromStream(stream_data):
proto_size_rd = stream_data.read(2)
if len(proto_size_rd)==0:
return ""
proto_size, = struct.unpack('>H', proto_size_rd)
data = stream_data.read(proto_size)
item = sendmessage_pb2.SendInfo()
item.ParseFromString(data)
return item
def translateQueueItem(item, php_dict):
result = ""
packed = list(struct.pack('0:
result = "%s(%s)"%(php_dict[b1], php_dict[b4])
else:
result = "%s"%(php_dict[b1])
return result
def fillDictionary():
php_dict = {}
counter = 0
proc = subprocess.Popen(['dict_util'],stdout=subprocess.PIPE)
while True:
line = proc.stdout.readline()
if line != '':
if counter>1:
res = line.rstrip().split()
if len(res)>1:
php_dict[int(res[0])]=res[1].rstrip()
else:
break
counter=counter+1
return php_dict