# SMS_selfies_popup


!	$ARGS[1] = Return string
!	$ARGS[2] = telefon['SMSid']
!!	$ARGS[3] = Location where the selfie is taken
!!	$ARGS[4] = State of dress in the selfie
!!	 ARGS[5] = is the index of the location in $selfieLoc[] and $selfieFilePrefix
!!	 ARGS[6] = the selfie number
if $ARGS[0] = 'set_selfie':
	$temp_imloc = func('SMS_selfies_popup', 'get_imloc', $ARGS[3], $ARGS[4], ARGS[5], ARGS[6])
	$result = '<a href="exec: gs <<$ARGS[1]>>, <<ARGS[2]>>, ''<<$temp_imloc>>'', ''<<$ARGS[3]>>'', ''<<$ARGS[4]>>'', <<ARGS[5]>>, <<ARGS[6]>>"><img src="<<$temp_imloc>>" style="horizontal-align:center; max-height:90%; max-width:90%"></a>'
	killvar '$temp_imloc'
end

if $ARGS[0] = 'get_imloc':
	$result = 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg'
end


--- SMS_selfies_popup ---------------------------------