<?php

/*

Kontackt License Agreement (DMCA License)

Copyright (c) 2015, Alex Dobrovolscki (dobriisasa@gmail.com)
All rights reserved.

* Redistributions of source code is strictly forbidden.

* By using Kontackt you may have your own purchase copy, if you are not own a license, you can buy one from https://codecanyon.net/user/dobrovolscki/portfolio.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/




$meep_arr = array(

			'[m-)]' => '1.png',

			'[m-L]' => '2.png',

			'[m-D]' => '3.png',

			'[m-I]' => '4.png',

			'[m-C]' => '5.png',

			'[m-LK]' => '6.png',

			'[m-S]' => '7.png',

			'[m-R]' => '8.png',

			'[m-H]' => '9.png',

			'[m-P]' => '10.png',

			'[m-B]' => '11.png',

			'[m-PK]' => '12.png',

			'[m-HH]' => '13.png',

			'[m-DN]' => '14.png',

			'[m-O]' => '15.png',

			'[m-BL]' => '16.png',

			'[m-BR]' => '17.png',

			'[m-IC]' => '18.png',

			'[m-RUS]' => '19.png',

			'[m-MBA]' => '20.png',

			'[m-IB]' => '21.png',

			'[m-IOK]' => '22.png',

			'[m-GPP]' => '23.png',

			'[m-DS]' => '24.png',

			'[m-DM]' => '25.png',

			'[m-OPN]' => '26.png',

			'[m-BIF]' => '27.png',

			'[m-KVZ]' => '28.png',

			'[m-FRK]' => '29.png',

			'[m-BFL]' => '30.png',

			'[m-RKB]' => '31.png',

			'[m-LST]' => '32.png'


		);
		
$y_smilies_arr = array(

		    // happy
			':-)' => '1', 
			':)' => '1',
			
			//sad
			':-(' => '2', 
			':(' => '2',
			
			//winking
			';-)' => '3', 
			';)' => '3',
			
			
			//big grin
			':-D' => '4', 
			':-d' => '4', 
			':D' => '4',
			':d' => '4',
			
			//batting eyelashes
			':yah5:' => '5', 
			
			// big hug
			':yah6:' => '6', 
		

			
			// confused
			':yah7:' => '7', 
			
			
			// love struck
			':yah8:' => '8', 
		
			
			// blushing
			':yah9:' => '9', 
			
			// tongue
			':p' => '10', 
			':P' => '10',
			
			// kiss
			':-*' => '11', 
			':*' => '11', 
			
			// broken heart
			':yah12:' => '12', 
			
			
			// surprise
			':-O' => '13', 
			':O' => '13', 
			
			
			// angry
			':yah14:' => '14', 
	
			
			// smug
			':yah15:' => '15', 
			
			// cool
			':yah16:' => '16', 
	
			
			// worried
			':yah17:' => '17', 
		 
			
			
			// whew!
			':yah18:' => '18', 

			
			// devil
			':yah19:' => '19',  	
			
			// crying
			':yah20:' => '20',  

			// laughing
			':yah21:' => '21', 
			
			
			// straight face
			':|' => '22', 
			
			// raised eyebrows
			':yah23:' => '23', 
			
			// rolling on the floor
			':yah24:' => '24', 
			
			// angel
			':yah25:' => '25', 
		 
			
			// nerd
			':yah26:' => '26', 
			 
			
			// talk to the hand
			':yah27:' => '27',

			// call me
			':yah28:' => '28',

			
			// on the phone
			':yah29:' => '29',
			
			
			// at wits' end
			':yah30:' => '30',

			
			// wave
			':yah31:' => '31',


			// timeout
			':yah32:' => '32',


			// day dreaming
			':yah33:' => '33',
			
			// sleepy
			':yah34:' => '34',
			
			
			// rolling eyes
			':yah35:' => '35',
			
			// loser
			':yah36:' => '36',
			
			// sick
			':yah37:' => '37',

			// don't tell anyone
			':yah38:' => '38',		
			
			
			// not talking
			':yah39:' => '39',	
			
			
			// clown
			':yah40:' => '40',		
			
			
			// silly
			':yah41:' => '41',	
			
			// party
			':yah42:' => '42',		

			// yawn
			':yah43:' => '43',	

			// drooling
			':yah44:' => '44',		

			// thinking
			':yah45:' => '45',	

			// d'oh
			':yah45' => '46',	
			
			// applause
			':yah47:' => '47',	
			
			// nail biting
			':yah48:' => '48',	

			// hypnotized
			':yah49:' => '49',	

			// liar
			':yah50:' => '50',		
			
			// waiting
			':yah51:' => '51',		
			
			// sigh
			':yah52:' => '52',	

			// phbbbbt
			':yah53:' => '53',				
			
		    // cowboy
			':yah54:' => '54',			

		    // i don't want to see
			':yah55:' => '55',		

		    // hurry up
			':yah56:' => '56',	

		    // rock on
			':yah57:' => '57',	
			
		    // thumbs down
			':yah58:' => '58',			


		    // thumbs up
			':yah59:' => '59',	
			
		    // it wasn't me
			':yah60:' => '60',	

		    // pirate
			':yah61:' => '61'

			);			
/*
$smilies_arr = array(
			':-)' => '04a.gif',
			':-(' => '06a.gif',

			':)' => '04a.gif',
			':(' => '06a.gif',

			';-)' => '09a.gif',
			';)' => '09a.gif',

			':-D' => '11a.gif',
			':D' => '11a.gif',
			':d' => '11a.gif',

			':-@' => '02.gif',
			':@' => '02.gif',

			'^o)' => '01.gif',

			':-S' => '03a.gif',
			':S' => '03a.gif',

			'*-)' => '07a.gif',
			'*-)' => '07a.gif',

			':-|' => '08a.gif',
			':|' => '08a.gif',

			'8oI' => '10a.gif',

			":'(" => '13a.gif',

			':-P' => '14a.gif',
			':-p' => '14a.gif',
			':P' => '14a.gif',
			':p' => '14a.gif',

			':-$' => '26a.gif',
			':$' => '26a.gif',

			':-O' => '27a.gif',
			':-o' => '27a.gif',
			':O' => '27a.gif',
			':o' => '27a.gif',

			'|-)' => '28a.gif',
			'|)' => '28a.gif',

			'(ch)' => '41.gif',

			'(lo)' => '44a.gif',

			'(sr)' => '45a.gif',

			'|-(' => '46a.gif',
			'|(' => '46a.gif',

			'(H)' => '47a.gif',

			'(hu)' => '48a.gif',

			'(tr)' => '49a.gif',

			'(md)' => '50a.gif',

			'(fr)' => '51a.gif',

			'(dt)' => '52a.gif',

			'(sc)' => '53a.gif',

			'(Y)' => '12.gif',

			'(N)' => '15.gif',

			'(v)' => '34.gif',

			'(L)' => '16.gif',

			'(U)' => '17.gif',

			'(K)' => '24.gif',

			'(F)' => '23.gif',

			'(*)' => '32.gif',

			'(^)' => '19.gif',

			'(G)' => '21.gif',

			'(B)' => '25.gif',

			'(D)' => '29.gif',

			'(C)' => '22.gif',

			'(pi)' => '30.gif',

			'(pl)' => '33.gif',

			'(ic)' => '36.gif',

			'($)' => 'baks.gif',

			'(co)' => '35.gif',

			'(so)' => '38.gif',

			'(te)' => '40.gif',

			'(nt)' => '39.gif',

			//sss'(I)' => '18.gif',

			'(E)' => '20.gif',

			'(Z)' => '42.gif',

			'(X)' => '43.gif',

			'(S)' => '31.gif'

		     );
			*/
			
$smilies_arr = array(
			':smile:' => 'smile',
			':smiley:' => 'smiley',


			':grinning:' => 'grinning',
			':blush:' => 'blush',

			':relaxed:' => 'relaxed',
			':wink:' => 'wink',
			':heart-eyes:' => 'heart-eyes',

			':kissing_heart:' => 'kissing_heart',
			':kissing_closed_eyes:' => 'kissing_closed_eyes',

			':kissing:' => 'kissing',

			':kissing_smiling_eyes:' => 'kissing_smiling_eyes',
			':stuck_out_tongue_winking_eye:' => 'stuck_out_tongue_winking_eye',

			':stuck_out_tongue_closed_eyes:' => 'stuck_out_tongue_closed_eyes',
			':stuck_out_tongue:' => 'stuck_out_tongue',

			':flushed:' => 'flushed',
			':grin:' => 'grin',

			':pensive:' => 'pensive',

			":relieved:" => 'relieved',

			':unamused:' => 'unamused',
			':disappointed:' => 'disappointed',
			':persevere:' => 'persevere',
			':cry:' => 'cry',

			':joy:' => 'joy',
			':sob:' => 'sob',

			':sleepy:' => 'sleepy',
			':disappointed_relieved:' =>  'disappointed_relieved',
			':cold_sweat:' => 'cold_sweat',
			':sweat_smile:' => 'sweat_smile',

			':sweat:' => 'sweat',
			':weary:' => 'weary',

			':tired_face:' => 'tired_face',

			':fearful:' => 'fearful',

			':scream:' => 'scream',

			':angry:' => 'angry',
			':rage:' => 'rage',

			':triumph:' => 'triumph',

			':confounded:' => 'confounded',

			':laughing:' => 'laughing',

			':yum:' => 'yum',

			':mask:' => 'mask',

			':sunglasses:' => 'sunglasses',

			':sleeping:' => 'sleeping',

			':dizzy_face:' => 'dizzy_face',

			':astonished:' => 'astonished',

			':worried:' => 'worried',

			':frowning:' => 'frowning',

			':anguished:' => 'anguished',

			':smiling_imp:' => 'smiling_imp',

			':imp:' => 'imp',

			':open_mouth:' => 'open_mouth',

			':grimacing:' => 'grimacing',

			':neutral_face:' => 'neutral_face',

			':confused:' => 'confused',

			':hushed:' => 'hushed',

			':no_mouth:' => 'no_mouth',

			':innocent:' => 'innocent',

			':smirk:' => 'smirk',

			':expressionless:' => 'expressionless',

			':man_with_gua_pi_mao:' => 'man_with_gua_pi_mao',

			':man_with_turban:' => 'man_with_turban',

			':cop:' => 'cop',

			':construction_worker:' => 'construction_worker',

			':guardsman:' => 'guardsman',

			':baby:' => 'baby',

			':boy:' => 'boy',

			':girl:' => 'girl',

			':man:' => 'man',

			':woman:' => 'woman',
			
			':older_man:' => 'older_man',

			':older_woman:' => 'older_woman',

			':person_with_blond_hair:' => 'person_with_blond_hair',

			':angel:' => 'angel',

			':princess:' => 'princess',

			':smiley_cat:' => 'smiley_cat',

			':smile_cat:' => 'smile_cat',

			':heart_eyes_cat:' => 'heart_eyes_cat',

			':kissing_cat:' => 'kissing_cat',

			':smirk_cat:' => 'smirk_cat',

			':scream_cat:' => 'scream_cat',

			':crying_cat_face:' => 'crying_cat_face',

			':joy_cat:' => 'joy_cat',

			':pouting_cat:' => 'pouting_cat',

			':japanese_ogre:' => 'japanese_ogre',

			':japanese_goblin:' => 'japanese_goblin',

			':see_no_evil:' => 'see_no_evil',

			':hear_no_evil:' => 'hear_no_evil',

			':speak_no_evil:' => 'speak_no_evil',

			':skull:' => 'skull',

			':alien:' => 'alien',

			':hankey:' => 'hankey',

			':fire:' => 'fire',

			':sparkles:' => 'sparkles',

			':star2:' => 'star2',

			':dizzy:' => 'dizzy',

			':boom:' => 'boom',

			':anger:' => 'anger',

			':sweat_drops:' => 'sweat_drops',

			':droplet:' => 'droplet',

			':zzz:' => 'zzz',

			':dash:' => 'dash',

			':ear:' => 'ear',

			':eyes:' => 'eyes',

			':nose:' => 'nose',

			':tongue:' => 'tongue',

			':lips:' => 'lips',

			':+1:' => 'plus1',

			':-1:' => 'minus1',

			':ok_hand:' => 'ok_hand',

			':facepunch:' => 'facepunch',

			':fist:' => 'fist',

			':v:' => 'v',

			':wave:' => 'wave',

			':hand:' => 'hand',

			':open_hands:' => 'open_hands',

			':point_up_2:' => 'point_up_2',

			':point_down:' => 'point_down',

			':point_right:' => 'point_right',

			':point_left:' => 'point_left',

			':raised_hands:' => 'raised_hands',

			':pray:' => 'pray',

			':point_up:' => 'point_up',

			':clap:' => 'clap',

			':muscle:' => 'muscle',

			':walking:' => 'walking',

			':runner:' => 'runner',

			':dancer:' => 'dancer',

			':couple:' => 'couple',

			':family:' => 'family',
			
			':two_men_holding_hands:' => 'two_men_holding_hands',

			':two_women_holding_hands:' => 'two_women_holding_hands',

			':couplekiss:' => 'couplekiss',

			':couple_with_heart:' => 'couple_with_heart',

			':dancers:' => 'dancers',

			':ok_woman:' => 'ok_woman',

			':no_good:' => 'no_good',

			':information_desk_person:' => 'information_desk_person',

			':raising_hand:' => 'raising_hand',

			':massage:' => 'massage',

			':haircut:' => 'haircut',

			':nail_care:' => 'nail_care',

			':ride_with_veil:' => 'ride_with_veil',

			':person_with_pouting_face:' => 'person_with_pouting_face',
			
			':person_frowning:' => 'person_frowning',

			':bow:' => 'bow',

			':tophat:' => 'tophat',

			':crown:' => 'crown',

			':womans_hat:' => 'womans_hat',

			':athletic_shoe:' => 'athletic_shoe',

			':mans_shoe:' => 'mans_shoe',

			':sandal:' => 'sandal',

			':high_heel:' => 'high_heel',

			':boot:' => 'boot',

			':shirt:' => 'shirt',

			':necktie:' => 'necktie',

			':womans_clothes:' => 'womans_clothes',

			':dress:' => 'dress',

			':running_shirt_with_sash:' => 'running_shirt_with_sash',

			':jeans:' => 'jeans',

			':kimono:' => 'kimono',

			':bikini:' => 'bikini',

			':briefcase:' => 'briefcase',

			':handbag:' => 'handbag',

			':pouch:' => 'pouch',

			':purse:' => 'purse',

			':eyeglasses:' => 'eyeglasses',

			':ribbon:' => 'ribbon',

			':closed_umbrella:' => 'closed_umbrella',

			':lipstick:' => 'lipstick',

			':yellow_heart:' => 'yellow_heart',

			':blue_heart:' => 'blue_heart',

			':purple_heart:' => 'purple_heart',

			':green_heart:' => 'green_heart',

			':heart:' => 'heart',

			':broken_heart:' => 'broken_heart',

			':heartpulse:' => 'heartpulse',

			':heartbeat:' => 'heartbeat',

			':two_hearts:' => 'two_hearts',

			':sparkling_heart:' => 'sparkling_heart',

			':revolving_hearts:' => 'revolving_hearts',

			':cupid:' => 'cupid',

			':love_letter:' => 'love_letter',

			':kiss:' => 'kiss',

			':ring:' => 'ring',

			':gem:' => 'gem',

			':bust_in_silhouette:' => 'bust_in_silhouette',
			
			':busts_in_silhouette:' => 'busts_in_silhouette',

			':speech_balloon:' => 'speech_balloon',

			':footprints:' => 'footprints',

			':thought_balloon:' => 'thought_balloon'

		     );
			 
			 $stickers = array(
			 
			 "cute-cat" => array(
			 
						':cutecat0:' => 'cutecat0',
						':cutecat1:' => 'cutecat1',
						':cutecat2:' => 'cutecat2',
						':cutecat3:' => 'cutecat3',
						':cutecat4:' => 'cutecat4',
						':cutecat5:' => 'cutecat5',
						':cutecat6:' => 'cutecat6',
						':cutecat7:' => 'cutecat7',
						':cutecat8:' => 'cutecat8',
						':cutecat9:' => 'cutecat9',
						':cutecat10:' => 'cutecat10',
						':cutecat11:' => 'cutecat11',
						':cutecat12:' => 'cutecat12',
						':cutecat13:' => 'cutecat13',
						':cutecat14:' => 'cutecat14',
						':cutecat15:' => 'cutecat15',
						':cutecat16:' => 'cutecat16',
						':cutecat17:' => 'cutecat17',
						':cutecat18:' => 'cutecat18',
						':cutecat19:' => 'cutecat19'
			 
			 ),
			 
			 "hacker-boy" => array(
			 
									':hkboy1:' => 'hkboy1',
									':hkboy2:' => 'hkboy2',
									':hkboy3:' => 'hkboy3',
									':hkboy4:' => 'hkboy4',
									':hkboy5:' => 'hkboy5',
									':hkboy6:' => 'hkboy6',
									':hkboy7:' => 'hkboy7',
									':hkboy8:' => 'hkboy8',
									':hkboy9:' => 'hkboy9',
									':hkboy10:' => 'hkboy10',
									':hkboy11:' => 'hkboy11',
									':hkboy12:' => 'hkboy12',
									':hkboy13:' => 'hkboy13',
									':hkboy14:' => 'hkboy14',
									':hkboy15:' => 'hkboy15',
									':hkboy16:' => 'hkboy16',
									':hkboy17:' => 'hkboy17',
									':hkboy18:' => 'hkboy18',
									':hkboy19:' => 'hkboy19',
									':hkboy20:' => 'hkboy20',
									':hkboy21:' => 'hkboy21',
									':hkboy22:' => 'hkboy22',
									':hkboy23:' => 'hkboy23',
									':hkboy24:' => 'hkboy24',
									':hkboy25:' => 'hkboy25',
									':hkboy26:' => 'hkboy26',
									':hkboy27:' => 'hkboy27',
									':hkboy28:' => 'hkboy28',
									':hkboy29:' => 'hkboy29',
									':hkboy30:' => 'hkboy30',
									':hkboy31:' => 'hkboy31',
									':hkboy32:' => 'hkboy32',
									':hkboy33:' => 'hkboy33',
									':hkboy34:' => 'hkboy34',
									':hkboy35:' => 'hkboy35',
									':hkboy36:' => 'hkboy36',
									':hkboy37:' => 'hkboy37',
									':hkboy38:' => 'hkboy38',
									':hkboy39:' => 'hkboy39',
									':hkboy40:' => 'hkboy40',
									':hkboy41:' => 'hkboy41',
									':hkboy42:' => 'hkboy42',
									':hkboy43:' => 'hkboy43'
			 
			 )
			 
			 
			 
			 
			 );