About 150,767 results: "php implode"
Page 1 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On








  1. q($mc);}return$b->processInput($m,$Y,$p);}function
  2. search_tables(){global$b,$h;$_GET["where"][0]["op"]="LIKE %%";$_GET["where"][0]["val"]=$_POST["query"];$vc=false;foreach(table_status()as$P=>$Q){$A=$b->tableName($Q);if(isset($Q["Engine"])&&$A!=""&&(!$_POST["tables"]||in_array($P,$_POST["tables"]))){$G=$h->query("SELECT".limit("1 FROM ".table($P)," WHERE ".implode(" AND ",$b->selectSearchProcess(fields($P),array())),1));if(!$G||$G->fetch_row()){if(!$vc){echo"<ul>\n";$vc=true;}echo"<li>".($G?"<a href='".h(ME."select=".urlencode($P)."&where[0][op]=".urlencode($_GET["where"][0]["op"])."&where[0][val]=".urlencode($_GET["where"][0]["val"]))."'>$A</a>\n":"$A: <span class='error'>".error()."</span>\n");}}}echo($vc?"</ul>":"<p class='message'>".lang(6))."\n";}function
  3. as$w=>$X){if(preg_match("~[\"\n,;\t]~",$X)||$X==="")$I[$w]='"'.str_replace('"','""',$X).'"';}echo
  4. implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$I)."\r\n";}function
  5. as$m){if($m[0]!=""||!$m[1]||$m[2]){$xg=true;break;}}$c=array();$ne=array();$Ie=false;foreach($n
  6. as$m){if($m[1]){if($m[1][6])$Ie=true;$c[]=($xg?"  ":"ADD ").implode($m[1]);if($m[0]!="")$ne[$m[0]]=$m[1][0];}}if($xg){if($P!=""){queries("BEGIN");foreach(foreign_keys($P)as$o){$f=array();foreach($o["source"]as$e){if(!$ne[$e])continue
  7. 2;$f[]=$ne[$e];}$rc[]="  FOREIGN KEY (".implode(", ",$f).") REFERENCES ".table($o["table"])." (".implode(", ",array_map('idf_escape',$o["target"])).") ON DELETE $o[on_delete] ON UPDATE $o[on_update]";}$u=array();foreach(indexes($P)as$cd=>$t){$f=array();foreach($t["columns"]as$e){if(!$ne[$e])continue
  8. 2;$f[]=$ne[$e];}$f="(".implode(", ",$f).")";if($t["type"]!="PRIMARY")$u[]=array($t["type"],$cd,$f);elseif(!$Ie)$rc[]="  PRIMARY KEY $f";}}$c=array_merge($c,$rc);if(!queries("CREATE TABLE ".table($P!=""?"adminer_$A":$A)." (\n".implode(",\n",$c)."\n)"))return
  9. false;if($P!=""){if($ne&&!queries("INSERT INTO ".table("adminer_$A")." (".implode(", ",$ne).") SELECT ".implode(", ",array_map('idf_escape',array_keys($ne)))." FROM ".table($P)))return
  10. false;$lg=array();foreach(triggers($P)as$jg=>$Xf){$hg=trigger($jg);$lg[]="CREATE TRIGGER ".idf_escape($jg)." ".implode(" ",$Xf)." ON ".table($A)."\n$hg[Statement]";}if(!queries("DROP TABLE ".table($P)))return
  11. false;queries("ALTER TABLE ".table("adminer_$A")." RENAME TO ".table($A));if(!alter_indexes($A,$u))return
  12. alter_table($P,$A,$n,$rc,$cb,$Sb,$d,$Ca,$we){$c=array();$Qe=array();foreach($n
  13. as$m){$e=idf_escape($m[0]);$X=$m[1];if(!$X)$c[]="DROP $e";else{$_g=$X[5];unset($X[5]);if(isset($X[6])&&$m[0]=="")$X[1]=($X[1]=="bigint"?" big":" ")."serial";if($m[0]=="")$c[]=($P!=""?"ADD ":"  ").implode($X);else{if($e!=$X[0])$Qe[]="ALTER TABLE ".table($P)." RENAME $e TO $X[0]";$c[]="ALTER $e TYPE$X[1]";if(!$X[6]){$c[]="ALTER $e ".($X[3]?"SET$X[3]":"DROP DEFAULT");$c[]="ALTER $e ".($X[2]==" NULL"?"DROP NOT":"SET").$X[2];}}if($m[0]!=""||$_g!="")$Qe[]="COMMENT ON COLUMN ".table($P).".$X[0] IS ".($_g!=""?substr($_g,9):"''");}}$c=array_merge($c,$rc);if($P=="")array_unshift($Qe,"CREATE TABLE ".table($A)." (\n".implode(",\n",$c)."\n)");elseif($c)array_unshift($Qe,"ALTER TABLE ".table($P)."\n".implode(",\n",$c));if($P!=""&&$P!=$A)$Qe[]="ALTER TABLE ".table($P)." RENAME TO ".table($A);if($P!=""||$cb!="")$Qe[]="COMMENT ON TABLE ".table($A)." IS ".q($cb);if($Ca!=""){}foreach($Qe
  14. as$X){if($X[0]!="INDEX")$lb[]=($X[2]=="DROP"?"\nDROP CONSTRAINT ".idf_escape($X[1]):"\nADD $X[0] ".($X[0]=="PRIMARY"?"KEY ":"").$X[2]);elseif($X[2]=="DROP")$Fb[]=idf_escape($X[1]);elseif(!queries("CREATE INDEX ".idf_escape($X[1]!=""?$X[1]:uniqid($P."_"))." ON ".table($P)." $X[2]"))return
  15. false;}return((!$lb||queries("ALTER TABLE ".table($P).implode(",",$lb)))&&(!$Fb||queries("DROP INDEX ".implode(", ",$Fb))));}function

  1. q($lc);}return$b->processInput($m,$X,$p);}function
  2. search_tables(){global$b,$h;$_GET["where"][0]["op"]="LIKE %%";$_GET["where"][0]["val"]=$_POST["query"];$uc=false;foreach(table_status()as$O=>$P){$A=$b->tableName($P);if(isset($P["Engine"])&&$A!=""&&(!$_POST["tables"]||in_array($O,$_POST["tables"]))){$G=$h->query("SELECT".limit("1 FROM ".table($O)," WHERE ".implode(" AND ",$b->selectSearchProcess(fields($O),array())),1));if(!$G||$G->fetch_row()){if(!$uc){echo"<ul>\n";$uc=true;}echo"<li>".($G?"<a href='".h(ME."select=".urlencode($O)."&where[0][op]=".urlencode($_GET["where"][0]["op"])."&where[0][val]=".urlencode($_GET["where"][0]["val"]))."'>$A</a>\n":"$A: <span class='error'>".error()."</span>\n");}}}echo($uc?"</ul>":"<p class='message'>".lang(6))."\n";}function
  3. as$w=>$W){if(preg_match("~[\"\n,;\t]~",$W)||$W==="")$I[$w]='"'.str_replace('"','""',$W).'"';}echo
  4. implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$I)."\r\n";}function
  5. as$m){if($m[0]!=""||!$m[1]||$m[2]){$xg=true;break;}}$c=array();$me=array();$He=false;foreach($n
  6. as$m){if($m[1]){if($m[1][6])$He=true;$c[]=($xg?"  ":"ADD ").implode($m[1]);if($m[0]!="")$me[$m[0]]=$m[1][0];}}if($xg){if($O!=""){queries("BEGIN");foreach(foreign_keys($O)as$o){$f=array();foreach($o["source"]as$e){if(!$me[$e])continue
  7. 2;$f[]=$me[$e];}$qc[]="  FOREIGN KEY (".implode(", ",$f).") REFERENCES ".table($o["table"])." (".implode(", ",array_map('idf_escape',$o["target"])).") ON DELETE $o[on_delete] ON UPDATE $o[on_update]";}$u=array();foreach(indexes($O)as$bd=>$t){$f=array();foreach($t["columns"]as$e){if(!$me[$e])continue
  8. 2;$f[]=$me[$e];}$f="(".implode(", ",$f).")";if($t["type"]!="PRIMARY")$u[]=array($t["type"],$bd,$f);elseif(!$He)$qc[]="  PRIMARY KEY $f";}}$c=array_merge($c,$qc);if(!queries("CREATE TABLE ".table($O!=""?"adminer_$A":$A)." (\n".implode(",\n",$c)."\n)"))return
  9. false;if($O!=""){if($me&&!queries("INSERT INTO ".table("adminer_$A")." (".implode(", ",$me).") SELECT ".implode(", ",array_map('idf_escape',array_keys($me)))." FROM ".table($O)))return
  10. false;$lg=array();foreach(triggers($O)as$jg=>$Xf){$hg=trigger($jg);$lg[]="CREATE TRIGGER ".idf_escape($jg)." ".implode(" ",$Xf)." ON ".table($A)."\n$hg[Statement]";}if(!queries("DROP TABLE ".table($O)))return
  11. false;queries("ALTER TABLE ".table("adminer_$A")." RENAME TO ".table($A));if(!alter_indexes($A,$u))return
  12. alter_table($O,$A,$n,$qc,$cb,$Sb,$d,$Ca,$ve){$c=array();$Pe=array();foreach($n
  13. as$m){$e=idf_escape($m[0]);$W=$m[1];if(!$W)$c[]="DROP $e";else{$_g=$W[5];unset($W[5]);if(isset($W[6])&&$m[0]=="")$W[1]=($W[1]=="bigint"?" big":" ")."serial";if($m[0]=="")$c[]=($O!=""?"ADD ":"  ").implode($W);else{if($e!=$W[0])$Pe[]="ALTER TABLE ".table($O)." RENAME $e TO $W[0]";$c[]="ALTER $e TYPE$W[1]";if(!$W[6]){$c[]="ALTER $e ".($W[3]?"SET$W[3]":"DROP DEFAULT");$c[]="ALTER $e ".($W[2]==" NULL"?"DROP NOT":"SET").$W[2];}}if($m[0]!=""||$_g!="")$Pe[]="COMMENT ON COLUMN ".table($O).".$W[0] IS ".($_g!=""?substr($_g,9):"''");}}$c=array_merge($c,$qc);if($O=="")array_unshift($Pe,"CREATE TABLE ".table($A)." (\n".implode(",\n",$c)."\n)");elseif($c)array_unshift($Pe,"ALTER TABLE ".table($O)."\n".implode(",\n",$c));if($O!=""&&$O!=$A)$Pe[]="ALTER TABLE ".table($O)." RENAME TO ".table($A);if($O!=""||$cb!="")$Pe[]="COMMENT ON TABLE ".table($A)." IS ".q($cb);if($Ca!=""){}foreach($Pe
  14. as$W){if($W[0]!="INDEX")$lb[]=($W[2]=="DROP"?"\nDROP CONSTRAINT ".idf_escape($W[1]):"\nADD $W[0] ".($W[0]=="PRIMARY"?"KEY ":"").$W[2]);elseif($W[2]=="DROP")$Fb[]=idf_escape($W[1]);elseif(!queries("CREATE INDEX ".idf_escape($W[1]!=""?$W[1]:uniqid($O."_"))." ON ".table($O)." $W[2]"))return
  15. false;}return((!$lb||queries("ALTER TABLE ".table($O).implode(",",$lb)))&&(!$Fb||queries("DROP INDEX ".implode(", ",$Fb))));}function

  1. set_session($v,$W){$_SESSION[$v][DRIVER][SERVER][$_GET["username"]]=$W;}function
  2. auth_url($vb,$J,$U,$j=null){global$wb;preg_match('~([^?]*)\\??(.*)~',remove_from_uri(implode("|",array_keys($wb))."|username|".($j!==null?"db|":"").session_name()),$z);return"$z[1]?".(sid()?SID."&":"").($vb!="server"||$J!=""?urlencode($vb)."=".urlencode($J)."&":"")."username=".urlencode($U).($j!=""?"&db=".urlencode($j):"").($z[2]?"&$z[2]":"");}function
  3. queries($D=null){global$g;static$_e=array();if($D===null)return
  4. implode(";\n",$_e);$_e[]=(ereg(';$',$D)?"DELIMITER ;;\n$D;\nDELIMITER ":$D);return$g->query($D);}function
  5. q($cc);}return$b->processInput($l,$X,$o);}function
  6. search_tables(){global$b,$g;$_GET["where"][0]["op"]="LIKE %%";$_GET["where"][0]["val"]=$_POST["query"];$lc=false;foreach(table_status()as$N=>$O){$_=$b->tableName($O);if(isset($O["Engine"])&&$_!=""&&(!$_POST["tables"]||in_array($N,$_POST["tables"]))){$E=$g->query("SELECT".limit("1 FROM ".table($N)," WHERE ".implode(" AND ",$b->selectSearchProcess(fields($N),array())),1));if($E->fetch_row()){if(!$lc){echo"<ul>\n";$lc=true;}echo"<li><a href='".h(ME."select=".urlencode($N)."&where[0][op]=".urlencode($_GET["where"][0]["op"])."&where[0][val]=".urlencode($_GET["where"][0]["val"]))."'>$_</a>\n";}}}echo($lc?"</ul>":"<p class='message'>".lang(6))."\n";}function
  7. as$v=>$W){if(preg_match("~[\"\n,;\t]~",$W)||$W==="")$G[$v]='"'.str_replace('"','""',$W).'"';}echo
  8. implode(($_POST["format"]=="csv"?",":($_POST["format"]=="tsv"?"\t":";")),$G)."\r\n";}function
  9. alter_table($N,$_,$m,$hc,$Wa,$Ib,$d,$Aa,$ge){$c=array();foreach($m
  10. as$l){if($l[1])$c[]=($N!=""&&$l[0]==""?"ADD ":"  ").implode($l[1]);}$c=array_merge($c,$hc);if($N!=""){foreach($c
  11. false;}if($N!=$_&&!queries("ALTER TABLE ".table($N)." RENAME TO ".table($_)))return
  12. false;}elseif(!queries("CREATE TABLE ".table($_)." (\n".implode(",\n",$c)."\n)"))return
  13. trigger_sql($N,$M){return
  14. implode(get_vals("SELECT sql || ';;\n' FROM sqlite_master WHERE type = 'trigger' AND tbl_name = ".q($N)));}function
  15. alter_table($N,$_,$m,$hc,$Wa,$Ib,$d,$Aa,$ge){$c=array();$_e=array();foreach($m
  16. as$l){$e=idf_escape($l[0]);$W=$l[1];if(!$W)$c[]="DROP $e";else{$cg=$W[5];unset($W[5]);if(isset($W[6])&&$l[0]=="")$W[1]=($W[1]=="bigint"?" big":" ")."serial";if($l[0]=="")$c[]=($N!=""?"ADD ":"  ").implode($W);else{if($e!=$W[0])$_e[]="ALTER TABLE ".table($N)." RENAME $e TO $W[0]";$c[]="ALTER $e TYPE$W[1]";if(!$W[6]){$c[]="ALTER $e ".($W[3]?"SET$W[3]":"DROP DEFAULT");$c[]="ALTER $e ".($W[2]==" NULL"?"DROP NOT":"SET").$W[2];}}if($l[0]!=""||$cg!="")$_e[]="COMMENT ON COLUMN ".table($N).".$W[0] IS ".($cg!=""?substr($cg,9):"''");}}$c=array_merge($c,$hc);if($N=="")array_unshift($_e,"CREATE TABLE ".table($_)." (\n".implode(",\n",$c)."\n)");elseif($c)array_unshift($_e,"ALTER TABLE ".table($N)."\n".implode(",\n",$c));if($N!=""&&$N!=$_)$_e[]="ALTER TABLE ".table($N)." RENAME TO ".table($_);if($N!=""||$Wa!="")$_e[]="COMMENT ON TABLE ".table($_)." IS ".q($Wa);if($Aa!=""){}foreach($_e

  1. set_session($y,$X){$_SESSION[$y][DRIVER][SERVER][$_GET["username"]]=$X;}function
  2. auth_url($pb,$O,$If,$i=null){global$qb;preg_match('~([^?]*)\\??(.*)~',remove_from_uri(implode("|",array_keys($qb))."|username|".($i!==null?"db|":"").session_name()),$B);return"$B[1]?".(sid()?SID."&":"").($pb!="server"||$O!=""?urlencode($pb)."=".urlencode($O)."&":"")."username=".urlencode($If).($i!=""?"&db=".urlencode($i):"").($B[2]?"&$B[2]":"");}function
  3. queries($H=null){global$f;static$ie=array();if($H===null)return
  4. implode(";\n",$ie);$ie[]=(ereg(';$',$H)?"DELIMITER ;;\n$H;\nDELIMITER ":$H);return$f->query($H);}function
  5. apply_queries("DROP DATABASE",$h,'idf_escape');}function
  6. rename_database($D,$La){if(create_database($D,$La)){$re=array();foreach(tables_list()as$S=>$V)$re[]=table($S)." TO ".idf_escape($D).".".table($S);if(!$re||queries("RENAME TABLE ".implode(", ",$re))){queries("DROP DATABASE ".idf_escape(DB));return
  7. alter_table($S,$D,$l,$Zb,$Qa,$Cb,$La,$ua,$Od){$ra=array();foreach($l
  8. as$k)$ra[]=($k[1]?($S!=""?($k[0]!=""?"CHANGE ".idf_escape($k[0]):"ADD"):" ")." ".implode($k[1]).($S!=""?" $k[2]":""):"DROP ".idf_escape($k[0]));$ra=array_merge($ra,$Zb);$Me="COMMENT=".q($Qa).($Cb?" ENGINE=".q($Cb):"").($La?" COLLATE ".q($La):"").($ua!=""?" AUTO_INCREMENT=$ua":"").$Od;if($S=="")return
  9. queries("CREATE TABLE ".table($D)." (\n".implode(",\n",$ra)."\n) $Me");if($S!=$D)$ra[]="RENAME TO ".table($D);$ra[]=$Me;return
  10. queries("ALTER TABLE ".table($S)."\n".implode(",\n",$ra));}function
  11. alter_indexes($S,$ra){foreach($ra
  12. as$y=>$X)$ra[$y]=($X[2]=="DROP"?"\nDROP INDEX ".idf_escape($X[1]):"\nADD $X[0] ".($X[0]=="PRIMARY"?"KEY ":"").($X[1]!=""?idf_escape($X[1])." ":"").$X[2]);return
  13. queries("ALTER TABLE ".table($S).implode(",",$ra));}function
  14. drop_tables($bf){return
  15. queries("DROP TABLE ".implode(", ",array_map('table',$bf)));}function
  16. move_tables($bf,$Mf,$ef){$re=array();foreach(array_merge($bf,$Mf)as$S)$re[]=table($S)." TO ".idf_escape($ef).".".table($S);return

  1. 
                        
  2. 					echo implode(' | </li><li>', $links);
  3. 		AND 	tax.taxonomy		= 'shop_order_status'
  4. 		AND		term.slug			IN ('" . implode( "','", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) . "')
  5. 		AND 	tax.taxonomy		= 'shop_order_status'
  6. 		AND		term.slug			IN ('" . implode( "','", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) . "')
  7. 			AND 	tax.taxonomy		= 'shop_order_status'
  8. 			AND		term.slug			IN ('" . implode( "','", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) . "')
  9. 			LEFT JOIN {$wpdb->terms} AS term USING( term_id )
  10. 			WHERE 	term.slug IN ('" . implode( "','", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) . "')
  11. 		AND 	tax.taxonomy		= 'shop_order_status'
  12. 		AND		term.slug			IN ('" . implode( "','", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) . "')
  13. 						$product_name = '<a href="' . get_permalink( $product_id ) . '">'. __( $product_title ) .'</a>';
  14. 						$orders_link = admin_url( 'edit.php?s&post_status=all&post_type=shop_order&action=-1&s=' . urlencode( $product_title ) . '&shop_order_status=' . implode( ",", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) );
  15. 		AND 	tax.taxonomy		= 'shop_order_status'
  16. 		AND		term.slug			IN ('" . implode( "','", apply_filters( 'woocommerce_reports_order_statuses', array( 'completed', 'processing', 'on-hold' ) ) ) . "')


  1. 
                        
  2. 				$field = '<p class="form-row ' . esc_attr( implode( ' ', $args['class'] ) ) .'" id="' . esc_attr( $key ) . '_field">';
  3. 				if ( $args['label'] )
  4. 					$field .= '<label class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label']  . '</label>';
  5. 
                        
  6. 				$field .= '<input type="hidden" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . current( array_keys( $woocommerce->countries->get_allowed_countries() ) ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
  7. 
                        
  8. 				$field = '<p class="form-row ' . esc_attr( implode( ' ', $args['class'] ) ) .'" id="' . esc_attr( $key ) . '_field">
  9. 						<label for="' . esc_attr( $key ) . '" class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label']. $required  . '</label>
  10. 						<select name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" class="country_to_state country_select" ' . implode( ' ', $custom_attributes ) . '>
  11. 							<option value="">'.__( 'Select a country&hellip;', 'woocommerce' ) .'</option>';
  12. 
                        
  13. 				$field  = '<p class="form-row ' . esc_attr( implode( ' ', $args['class'] ) ) .'" id="' . esc_attr( $key ) . '_field" style="display: none">';
  14. 				if ( $args['label'] )
  15. 					$field .= '<label for="' . esc_attr( $key ) . '" class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label'] . $required . '</label>';
  16. 				$field .= '<input type="hidden" class="hidden" name="' . esc_attr( $key )  . '" id="' . esc_attr( $key ) . '" value="" ' . implode( ' ', $custom_attributes ) . ' placeholder="' . $args['placeholder'] . '" />';



  1. 
                        
  2. 				$field = '<p class="form-row ' . esc_attr( implode( ' ', $args['class'] ) ) .'" id="' . esc_attr( $key ) . '_field">';
  3. 				if ( $args['label'] )
  4. 					$field .= '<label class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label']  . '</label>';
  5. 
                        
  6. 				$field .= '<input type="hidden" name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" value="' . current( array_keys( $woocommerce->countries->get_allowed_countries() ) ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
  7. 
                        
  8. 				$field = '<p class="form-row ' . esc_attr( implode( ' ', $args['class'] ) ) .'" id="' . esc_attr( $key ) . '_field">
  9. 						<label for="' . esc_attr( $key ) . '" class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label']. $required  . '</label>
  10. 						<select name="' . esc_attr( $key ) . '" id="' . esc_attr( $key ) . '" class="country_to_state country_select" ' . implode( ' ', $custom_attributes ) . '>
  11. 							<option value="">'.__( 'Select a country&hellip;', 'woocommerce' ) .'</option>';
  12. 
                        
  13. 				$field  = '<p class="form-row ' . esc_attr( implode( ' ', $args['class'] ) ) .'" id="' . esc_attr( $key ) . '_field" style="display: none">';
  14. 				if ( $args['label'] )
  15. 					$field .= '<label for="' . esc_attr( $key ) . '" class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label'] . $required . '</label>';
  16. 				$field .= '<input type="hidden" class="hidden" name="' . esc_attr( $key )  . '" id="' . esc_attr( $key ) . '" value="" ' . implode( ' ', $custom_attributes ) . ' placeholder="' . $args['placeholder'] . '" />';



Back to Top