Released under the terms of the GNU General Public License. You should have received a copy of the GNU General Public License, along with this software. In the main directory, see: /licensing/ If not, see: . */ /* Direct access denial. */ if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"])) exit ("Do not access this file directly."); /**/ if (!class_exists ("c_ws_widget__ad_squares_utils_arrays")) { class c_ws_widget__ad_squares_utils_arrays { /* Function that extends array_unique to support multi-dimensional arrays. */ public static function array_unique ($array = FALSE) { if (!is_array ($array)) { return array ($array); } else /* Serialized array_unique. */ { foreach ($array as &$value) { $value = serialize ($value); } /**/ $array = array_unique ($array); /**/ foreach ($array as &$value) { $value = unserialize ($value); } /**/ return $array; } } } } ?>