Carsten, I dont have any "unless" statements in my Security.pl... I have this code tho...
sub CheckIcon
{
$icon =~ s/[^A-Za-z|\/]//g;
$icon_found=0;
if ($icon eq "xx" || $icon eq "thumbup" || $icon eq "thumbdown" || $icon eq "exclamation" || $icon eq "question" || $icon eq "lamp" || $icon eq "smiley" || $icon eq "angry" || $icon eq "cheesy" || $icon eq "laugh" || $icon eq "sad" || $icon eq "wink")
I dont know what caused the code to change but if I added all that code to the CheckIcon:
change this code that this is searching for:
unless($icon eq "cheesy" || $icon eq "laugh" || $icon eq "sad" || $icon eq "wink") {
to this:
sub CheckIcon
{
$icon =~ s/[^A-Za-z|\/]//g;
$icon_found=0;
if ($icon eq "xx" || $icon eq "thumbup" || $icon eq "thumbdown" || $icon eq "exclamation" || $icon eq "question" || $icon eq "lamp" || $icon eq "smiley" || $icon eq "angry" || $icon eq "cheesy" || $icon eq "laugh" || $icon eq "sad" || $icon eq "wink")
And this code thats to be replaced by:
unless($icon eq "cheesy" || $icon eq "laugh" || $icon eq "sad" || $icon eq "wink" || $icon eq "dice") {
with this:
sub CheckIcon
{
$icon =~ s/[^A-Za-z|\/]//g;
$icon_found=0;
if ($icon eq "xx" || $icon eq "thumbup" || $icon eq "thumbdown" || $icon eq "exclamation" || $icon eq "question" || $icon eq "lamp" || $icon eq "smiley" || $icon eq "angry" || $icon eq "cheesy" || $icon eq "laugh" || $icon eq "sad" || $icon eq "wink" || $icon eq "dice") {
O' yeah, Carsten... I dont have extented profiles installed, so I guess it isnt the same problem that outlaw had but almost... lol
I'm hooking my display up here now...
Well, that step 9 error, some mod has taken the code over... I have this:
$yymain .= qq~
<a t">$img{'replyquote'}</a>$menusep<a href="$cgi;action=modify;message=$counter;thread=$viewnum">$img{'modify'}</a>
~;
if(exists $moderators{$username} || $settings[7] eq 'Administrator' || $username eq $musername) {
$yymain .= qq~ $menusep<a href="$cgi;action=modify2;thread=$viewnum;id=$counter;d=1" onclick="return confirm('$txt{'739'}')">$img{'delete'}</a>~;
instead of what its posed to search for:
$yymain .= qq~
<a t">$img{'replyquote'}</a>$menusep<a href="$cgi;action=modify;message=$counter;thread=$viewnum">$img{'modify'}</a>
~;
if(exists $moderators{$username} || $settings[7] eq 'Administrator' || $username eq $musername) {
$yymain .= qq~ $menusep<a href="$cgi;action=modify2;thread=$viewnum;id=$counter;d=1" onclick="return confirm('$txt{'739'}')">$img{'delete'}</a>~;
if((exists $moderators{$username} && $mdmod eq 1) || ($settings[7] eq 'Administrator' && $mdadmin eq 1) || ($settings[7] eq 'Global Moderator' && $mdglobal eq 1)) {
$yymain .= qq~ <input type="checkbox" name="del$counter" value="$counter">~;
}
See that extra if statment, (the last one) and $yymain .= qq~ ???
Thank you
Panther