#################################################################################
# MIcon.pl #
#################################################################################
# Mod Name: Add More Message Icons 1.0 #
# File written by: Omario with help from dOCda S! #
# Support, News, Updates at: http://www.clickopedia.com #
#################################################################################
$miconver= "1.5";
sub MIconPanel {
&is_admin;
$yytitle = "$mitxt{'01'}";
$yymain .= qq~
Add More Message Icons $miconver - Admin Center Controlled!
Done by Omario but based off Docda's Add Smilie Mod!~;
&template;
exit;
}
}
}
sub AddMIcon {
&is_admin;
$count=0;
$tempA=0;
fopen(FILE, ">$vardir/MIcon.txt");
while($FORM{"miimg[$tempA]"}) {
# if($FORM{"miimg[$tempA]"} !~ /\A[0-9A-Za-z#%+-\.@^_]+\Z/){
# &fatal_error("$txt{'240'} $mitxt{'03'} $txt{'241'}");
# exit;
# }
$delcheck = $FORM{"midelbox[$tempA]"};
$var1 = $FORM{"miimg[$tempA]"};
$var3 = $FORM{"midescr[$tempA]"};
$imgmi = qq(\$MIconURL[$count] = "$var1";);
$sdrmi = qq(\$MessIDescription[$count] = "$var3";);
if ($delcheck ne "1") {
print FILE "$imgmi\n";
print FILE "$sdrmi\n\n";
++$count;
}
++$tempA;
}
print FILE "1;";
fclose(FILE);
$yySetLocation = qq~$cgi&action=micon~;
&redirectexit;
}
1;