Deprecated: Function eregi() is deprecated in /home/hjlhvqyy/public_html/fastseoindia/klib/class.kValidate.php on line 107
Deprecated: Function eregi() is deprecated in /home/hjlhvqyy/public_html/fastseoindia/klib/class.kValidate.php on line 109
Deprecated: Function eregi() is deprecated in /home/hjlhvqyy/public_html/fastseoindia/klib/class.kValidate.php on line 110
Deprecated: Function eregi() is deprecated in /home/hjlhvqyy/public_html/fastseoindia/klib/class.kValidate.php on line 111
Deprecated: Function ereg() is deprecated in /home/hjlhvqyy/public_html/fastseoindia/klib/class.kValidate.php on line 92
below is code
function is_email($string)
{
$string = trim($string);
$result = ereg(
'^([A-Za-z0-9_!]|\\-|\\.)+'.
'@'.
'(([A-Za-z0-9_]|\\-)+\\.)+'.
'[A-Za-z]{2,4}$',
$string
); //line 92
return($result);
}
function is_url($urladdr)
{
$regexp = "^(https?://)";
$regexp .= "?(([0-9a-z_!~*'().&=+$%-]+:)?[0-9a-z_!~*'().&=+$%-]+@)?";
$regexp .= "(([0-9]{1,3}\.){3}[0-9]{1,3}";
$regexp .= "|";
$regexp .= "([0-9a-z_!~*'()-]+\.)*";
$regexp .= "([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.";
$regexp .= "[a-z]{2,6})";
$regexp .= "(:[0-9]{1,4})?";
$regexp .= "((/?)|";
$regexp .= "(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";
if (eregi( $regexp,$urladdr )) { // line 107
if (!eregi( "^https?://",$urladdr )) {
$urladdr = "http://".$urladdr; //line 109
}
if (!eregi( "^https?://.+/",$urladdr )) { // line 110
$urladdr .= "/";
}
if ((eregi( "/[0-9a-z~_-]+$",$urladdr)) && (!eregi( "[\?;&=+\$,#]",$urladdr))) {
$urladdr .= "/";
}
return ($urladdr);
} else {
return false;
}
}
please.... this code is work but after refresh... it saved... but on when we click on save button it show this warning then after refresh the page it works.... means directly save the settings