Code Duplication    Length = 2-2 lines in 2 locations

include/adminer.php 1 location

@@ 64-65 (lines=2) @@
61
where_check($X,$m=array()){parse_str($X,$Ma);remove_slashes(array(&$Ma));return
62
where($Ma,$m);}function
63
where_link($t,$c,$Y,$Yd="="){return"&where%5B$t%5D%5Bcol%5D=".urlencode($c)."&where%5B$t%5D%5Bop%5D=".urlencode(($Y!==null?$Yd:"IS NULL"))."&where%5B$t%5D%5Bval%5D=".urlencode($Y);}function
64
convert_fields($d,$m,$N=array()){$K="";foreach($d
65
as$z=>$X){if($N&&!in_array(idf_escape($z),$N))continue;$ua=convert_field($m[$z]);if($ua)$K.=", $ua AS ".idf_escape($z);}return$K;}function
66
cookie($F,$Y,$nd=2592000){global$ba;$pe=array($F,(preg_match("~\n~",$Y)?"":$Y),($nd?time()+$nd:0),preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]),"",$ba);if(version_compare(PHP_VERSION,'5.2.0')>=0)$pe[]=true;return
67
call_user_func_array('setcookie',$pe);}function
68
restart_session(){if(!ini_bool("session.use_cookies"))session_start();}function

include/editor.php 1 location

@@ 64-65 (lines=2) @@
61
where_check($V,$m=array()){parse_str($V,$Ea);remove_slashes(array(&$Ea));return
62
where($Ea,$m);}function
63
where_link($q,$d,$W,$Vc="="){return"&where%5B$q%5D%5Bcol%5D=".urlencode($d)."&where%5B$q%5D%5Bop%5D=".urlencode(($W!==null?$Vc:"IS NULL"))."&where%5B$q%5D%5Bval%5D=".urlencode($W);}function
64
convert_fields($e,$m,$N=array()){$K="";foreach($e
65
as$x=>$V){if($N&&!in_array(idf_escape($x),$N))continue;$oa=convert_field($m[$x]);if($oa)$K.=", $oa AS ".idf_escape($x);}return$K;}function
66
cookie($D,$W,$zc=2592000){global$aa;$ed=array($D,(preg_match("~\n~",$W)?"":$W),($zc?time()+$zc:0),preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]),"",$aa);if(version_compare(PHP_VERSION,'5.2.0')>=0)$ed[]=true;return
67
call_user_func_array('setcookie',$ed);}function
68
restart_session(){if(!ini_bool("session.use_cookies"))session_start();}function