yes, the problem seems to lie like this.
in this section of coding,
[php] while($row = $this->db->sql_fetchrow($res)) {
$ext = $row[‘info’];
if($this->howtoban == 0) {
if($ext != “[NOEXT]”) {
if(preg_match($ext."$", $upfile_name)) {
$o = 1;
echo “
”.MYU_SORRYCANNOTUP." |
";
}
} else {
if(!preg_match("#…+$#", $upfile_name)) {
$o = 1;
echo “
”.MYU_SORRYCANNOTUP." |
";
}
}[/php]
you can see I already added the deliminator to the
[php if(!preg_match("#…+$#", $upfile_name)) {[/php]
I also have done it here:
[php] $ext = $row[‘info’];
if($this->howtoban == 0) {
if($ext != “[NOEXT]”) {
if(preg_match($ext."#$#", $upfile_name)) {[/php]
which is not shown in the first post because I pulled it from a eariler file. But the problem seems to lye in this section.
[php]if(preg_match($ext."#$#", $upfile_name)) {[/php]
I keep getting a error saying it needs a deliminator. so I figured it has something to do with the $ext. before the “#$#”, which I have tried different thing like adding a deliminator to the
[php] $ext = $row[‘info’];[/php]
Seem’s everything I try just fails and says it needs a deliminator on that line
[php]if(preg_match($ext."#$#", $upfile_name)) {[/php]
I don’t know if that makes any sense to anyone.