php - Argument error for my pages -


i having problem in first page , not know how fix it,please me

warning: missing argument 1 isblockedip(), called in /home/u425835176/public_html/shad0w.php on line 174 , defined in /home/u425835176/public_html/core.php on line 4715

function

function isblockedip($var) {     $text = $_server['remote_addr'];     $rez = mysql_query("select * lib3rtymrc_blockedip");     $i=0;     while($row=mysql_fetch_array($rez))     {         $var[$i]=$row[1];         $i++;     }        $result = count($var);      ($i=0;$i<$result;$i++)     {         $ausg = stristr($text, $var[$i]);         if(strlen($ausg)>0)         {             return true;         }     }     return false; }   

in shad0w.php

if(isblockedip())     { ////here comes message }` 

either pass variable when call function:

if(isblockedip($somevar)) 

or give $var default value in function declaration:

function isblockedip($var = array()) 

in function block, $var array, looks in shad0w.php there may array of sort function isblockedip may need.

if never pass pre-existing array isblockedip change function delcaration to:

function isblockedip() { $var = array(); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -