Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/plugins/polylang/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/plugins/polylang/include/db-tools.php
<?php
/**
 * @package Polylang
 */

defined( 'ABSPATH' ) || exit;

/**
 * Small set of tools to work with the database.
 *
 * @since 3.2
 */
class PLL_Db_Tools {

	/**
	 * Changes an array of values into a comma separated list, ready to be used in a `IN ()` clause.
	 * Only string and integers and supported for now.
	 *
	 * @since 3.2
	 *
	 * @param (int|string)[] $values An array of values.
	 * @return string A comma separated list of values.
	 */
	public static function prepare_values_list( $values ) {
		$values = array_map( array( __CLASS__, 'prepare_value' ), (array) $values );

		return implode( ',', $values );
	}

	/**
	 * Wraps a value in escaped double quotes or casts as an integer.
	 * Only string and integers and supported for now.
	 *
	 * @since 3.2
	 *
	 * @global wpdb $wpdb
	 *
	 * @param int|string $value A value.
	 * @return int|string
	 */
	public static function prepare_value( $value ) {
		if ( ! is_numeric( $value ) ) {
			return $GLOBALS['wpdb']->prepare( '%s', $value );
		}

		return (int) $value;
	}
}

Spamworldpro Mini