100+ results results for 'php array_unique repo:jrbasso/super_find' (1123 ms)
1<?php 2 63 64 if (PHP_INT_MAX !== $this->maxDepth) { 65 $find->add('-maxdepth')->add($this->maxDepth + 1); 104 105 $paths = $this->shell->testCommand('uniq') ? $command->add('| uniq')->execute() : array_unique($command->execute()); 106 $iterator = new Iterator\FilePathsIterator($paths, $dir);previewmanager.php https://gitlab.com/wuhang2003/core | PHP | 342 lines
1<?php 2/** 239 } 240 $this->defaultProviders = array_unique($this->defaultProviders); 241 return $this->defaultProviders;Collection.php https://gitlab.com/inglobe/mgt-clemente-css | PHP | 411 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 289 290 $productsId = array_unique($productsId); 291pm.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 373 lines
1<?php 2 6 7 $Id: pm.php 1067 2011-03-08 10:06:51Z svn_project_zhangjie $ 8*/ 49 $lastpm = $_ENV['pm']->lastpm($uid); 50 require_once UC_ROOT.'lib/uccode.class.php'; 51 $this->uccode = new uccode(); 90 if(!empty($msgto)) { 91 $msgto = array_unique(explode(',', $msgto)); 92 } 278 279 require_once UC_ROOT.'lib/uccode.class.php'; 280 $this->uccode = new uccode(); 310 311 require_once UC_ROOT.'lib/uccode.class.php'; 312 $this->uccode = new uccode();PhpMatcherDumper.php https://gitlab.com/oytunistrator/92five | PHP | 378 lines
17/** 18 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes. 19 * 23 */ 24class PhpMatcherDumper extends MatcherDumper 25{ 26 /** 27 * Dumps a set of routes to a PHP class. 28 * 35 * 36 * @return string A PHP class representing the matcher class 37 */ 82 * 83 * @return string Match method as PHP code 84 */bookmark.php https://github.com/alx/barceloneta.git | PHP | 346 lines
1<?php 2/** 23 $link = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark_id)); 24 $link->link_category = array_unique( wp_get_object_terms($link->link_id, 'link_category', 'fields=ids') ); 25Store.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 707 lines
1<?php 2 492 { 493 $values = array_unique(array_merge($this->get('flash.new', []), $keys)); 494BelongsTo.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 328 lines
1<?php 2 180 181 return array_values(array_unique($keys)); 182 }internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 53 $aliases = $this->get_setting('aliases', array()); 54 $aliases = array_map('unserialize', array_unique(array_map('serialize', $aliases))); 55 $aliases = array_filter($aliases, array(&$this, 'remove_empty_aliases')); 175 if ($content && preg_match_all('@ href=["\']([^#][^"\']+)["\']@', $content, $matches)) { 176 $urls = array_unique($matches[1]); 177CollectionConstraint.php https://gitlab.com/yousafsyed/easternglamor | PHP | 112 lines
1<?php 2 40 } 41 if (count(array_unique($unique)) != count($value)) { 42 $this->addError($path, "There are no duplicates allowed in the array", 'uniqueItems');City.php https://gitlab.com/sajyeasmin/AtomicProject_Sajeda_Yeasmin_SEIP_132820_B37 | PHP | 292 lines
1<?php 2namespace App\city; 36 Message::message("<div id='msg'><h3 align='center'>[ UserName: $this->user_name ] , [ UserCity: $this->user_city] <br> Data Has Been Inserted Successfully!</h3></div>"); 37 Utility::redirect('create.php'); 38 } 72 Message::message("<div id='message'><h3 align='center'> Failed! Data Has Not Been Updated Successfully!</h3></div>"); 73 Utility::redirect('index.php'); 74 }// end of update() 82 Message::message("<div id='message'><h3 align='center'> Failed! Data Has Not Been Deleted Successfully!</h3></div>"); 83 Utility::redirect('index.php'); 84 95 ); 96 Utility::redirect('index.php'); 97 } 138 Message::message("<div id='message'><h3 align='center'> Success! Data Has Been Restored Successfully!</h3></div>"); 139 Utility::redirect('trashList.php'); 140 }check_configuration.php https://gitlab.com/klausmig/InformationRetrievalSystem | PHP | 106 lines
51 52echo sprintf("php.ini used by PHP: %s\n\n", get_ini_path()); 53 56 echo "** WARNING **\n"; 57 echo "* The PHP CLI can use a different php.ini file\n"; 58 echo "* than the one used with your web server.\n"; 69echo "\n** Mandatory requirements **\n\n"; 70check(version_compare(phpversion(), '5.2.4', '>='), 'PHP version is at least 5.2.4', 'Current version is '.phpversion(), true); 71 95 96check(!ini_get('short_open_tag'), 'php.ini has short_open_tag set to off', 'Set it to off in php.ini', false); 97check(!ini_get('magic_quotes_gpc'), 'php.ini has magic_quotes_gpc set to off', 'Set it to off in php.ini', false); 100 101check(version_compare(phpversion(), '5.2.9', '!='), 'PHP version is not 5.2.9', 'PHP 5.2.9 broke array_unique() and sfToolkit::arrayDeepMerge(). Use 5.2.10 instead [Ticket #6211]', false); 102Rss.php https://gitlab.com/rsilveira1987/Expresso | PHP | 533 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 34 */ 35require_once 'Zend/Feed/Reader/Extension/DublinCore/Feed.php'; 36 39 */ 40require_once 'Zend/Date.php'; 41class-wp-themes-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 240 lines
70 if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { 71 printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) ); 72 94 ?> 95 <div class="tablenav <?php echo $which; ?>"> 96 <?php $this->pagination( $which ); ?> 170 if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) 171 $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url( "themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet ) . '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $theme_name ) ) . "' );" . '">' . __( 'Delete' ) . '</a>'; 172 $actions = apply_filters( 'theme_action_links', $actions, $themes[$theme_name] ); 175?> 176 <a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> 177<?php if ( $screenshot ) : ?> 192<?php if ( $tags ) : ?> 193<p><?php _e( 'Tags:' ); ?> <?php echo join( ', ', $tags ); ?></p> 194<?php endif; ?>weekly-mail.php https://gitlab.com/pankajmohale/chef2go | PHP | 283 lines
1<?php 2 12 /** Set up WordPress environment */ 13 require_once( '/home/rgbastud/public_html/chefs2go/wp-load.php' ); 14} 15 16require('/home/rgbastud/public_html/chefs2go/wp-content/themes/chef2go/mpdf60/mpdf.php'); 17$timesheet_value = weekly_mail_timesheet_function(); 50 $author_id_array[] = $author_id; 51 $author_unique_id_array = array_unique($author_id_array); 52 } 250$fileName = 'weekly-timesheet.pdf'; 251$eol = PHP_EOL; 252$separator = md5(time());class-wp-theme-install-list-table.php https://gitlab.com/Gashler/dp | PHP | 394 lines
133 <div class="alignleft actions"> 134 <?php do_action( 'install_themes_table_header' ); ?> 135 </div> 151 ?> 152 <div class="available-theme installable-theme"><?php 153 $this->single_row( $theme ); 226 ?> 227 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 228 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' /> 242 243 <?php 244 $this->install_theme_info( $theme ); 261 <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"> 262 <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span> 263 <span class="collapse-sidebar-arrow"></span>Relation.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 349 lines
1<?php 2 187 { 188 return array_unique(array_values(array_map(function ($value) use ($key) { 189 return $key ? $value->getAttribute($key) : $value->getKey();Index.php https://gitlab.com/billyprice1/bdApi | PHP | 120 lines
1<?php 2 88 if (!empty($clientIds)) { 89 $clientIds = array_unique($clientIds); 90PwLikeService.php https://gitlab.com/wuhang2003/phpwind | PHP | 419 lines
1<?php 2/** 3 * @author Foxsee@aliyun.com 4 * @copyright ?2003-2103 phpwind.com 5 * @license http://www.phpwind.com 5 * @license http://www.phpwind.com 6 * @version $Id: PwLikeService.php 20027 2012-10-22 11:49:23Z gao.wanggao $ 7 * @package 127 $tagnames = array_filter(explode(' ', $tags)); 128 $tagnames = array_unique($tagnames); 129 foreach ($tagnames AS $k=>$tag) {InlineServiceDefinitionsPass.php https://gitlab.com/pr0055/symfonypizza | PHP | 141 lines
1<?php 2 130 131 if (count(array_unique($ids)) > 1) { 132 return false;feed.php https://gitlab.com/gregtyka/WordPress-on-OpenShift | PHP | 546 lines
1<?php 2/** 319 320 $cat_names = array_unique($cat_names); 321 443 * 444 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1 445 * 530function fetch_feed($url) { 531 require_once (ABSPATH . WPINC . '/class-feed.php'); 532class-wp-theme-install-list-table.php https://gitlab.com/webkod3r/tripolis | PHP | 472 lines
1<?php 2/** 70 71 /** This filter is documented in wp-admin/theme-install.php */ 72 $tabs = apply_filters( 'install_themes_tabs', $tabs ); 174 $class = ( $action === $tab ) ? ' class="current"' : ''; 175 $href = self_admin_url('theme-install.php?tab=' . $action); 176 $display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>"; 189 <div class="alignleft actions"> 190 <?php 191 /** 303 ?> 304 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 305 <img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" alt="" /> 319 320 <?php 321 $this->install_theme_info( $theme );DefaultTableMapping.php https://gitlab.com/guillaumev/alkarama | PHP | 396 lines
1<?php 2 95 public function getTableNames() { 96 return array_unique(array_merge(array_keys($this->fieldNames), array_keys($this->extraColumns))); 97 }Twig.php https://gitlab.com/sulistiana/web-profile-arsy | PHP | 238 lines
1<?php 2/** 12 13require_once APPPATH . 'third_party/Twig-1.24.1/lib/Twig/Autoloader.php'; 14Twig_Autoloader::register(); 55 $this->functions_asis = 56 array_unique( 57 array_merge($this->functions_asis, $params['functions']) 62 $this->functions_safe = 63 array_unique( 64 array_merge($this->functions_safe, $params['functions_safe'])class-wp-taxonomy.php https://gitlab.com/pankajmohale/chef2go | PHP | 453 lines
1<?php 2/** 359 360 $args['object_type'] = array_unique( (array) $object_type ); 361ContentsController.php https://gitlab.com/techniconline/kmc | PHP | 294 lines
1<?php namespace App\Http\Controllers\backend; 2 142 $input['title_tags'] = CategoryHelper::createTags($input['link_title']); 143 $input['tags_upd'] = array_unique(explode(",", $input['title_tags'] . ',' . $input['tags'])); 144 $input['tags'] = implode(",", $input['tags_upd']); 226 $updateContent->sort = isset($input['sort']) && $input['sort'] ? $input['sort'] : 1; 227 $input['tags_upd'] = array_unique(explode(",", $input['title_tags'] . ',' . $input['tags'])); 228MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
1<?php 2 74 $unionascensores = array_merge($ascensoreslist, $ascensoreslistcli); 75 $resultascensores = array_unique($unionascensores); 76 77 $unionmantenimientos = array_merge($mantenimientoexternoslist, $mantenimientoexternoslistcli); 78 $resultmantenimientos = array_unique($unionmantenimientos); 79 102 $union = array_merge($mantenimientosascensor, $mantenimientosexternos); 103 $result = array_unique($union); 104 190 ob_start(); 191 include(app_path().'/views/pdf/informemantenimiento.php'); 192 $content = ob_get_clean(); 194 // convert to PDF 195 require_once(public_path().'/packages/html2pdf/html2pdf.class.php'); 196 $html2pdf = new HTML2PDF('P', 'A4', 'es');XMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
1<?php 2 3// Handle eval errors that cause the script to finish 4$wpaeErrorHandler = new WpaePhpInterpreterErrorHandler(); 5register_shutdown_function(array($wpaeErrorHandler, 'handle')); 149 preg_match_all("%(\{[^\}\{]*\})%", $node_tpl, $matches); 150 $xpaths = array_unique($matches[0]); 151 246 preg_match_all("%(\[[^\]\[]*\])%", $xml, $matches); 247 $snipets = empty($matches) ? array() : array_unique($matches[0]); 248 $simple_snipets = array(); 249 preg_match_all("%(\{[^\}\{]*\})%", $xml, $matches); 250 $xpaths = array_unique($matches[0]); 251Class.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 328 lines
38 * @subpackage Util_Skeleton 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 * @link http://www.phpunit.de/ 45 46require_once ( PHPU_BASE_PATH . '/Text/Template.php' ); 47 52 * @subpackage Util_Skeleton 53 * @author Sebastian Bergmann <sebastian@phpunit.de> 54 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 59 */ 60class PHPUnit_Util_Skeleton_Class extends PHPUnit_Util_Skeleton 61{banner.php https://bitbucket.org/asosso/joomla25.git | PHP | 487 lines
1<?php 2/** 43 // Sanitize user ids. 44 $pks = array_unique($pks); 45 JArrayHelper::toInteger($pks);http.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 313 lines
1<?php 2/** 216 if ( $url && !isset( $capabilities['ssl'] ) ) { 217 $scheme = parse_url( $url, PHP_URL_SCHEME ); 218 if ( 'https' == $scheme || 'ssl' == $scheme ) { 252 // @todo preserve port? 253 $allowed_origins = array_unique( array( 254 'http://' . $admin_origin[ 'host' ],helper.php https://gitlab.com/ricardosanchez/prueba | PHP | 481 lines
1<?php 2/** 12$com_path = JPATH_SITE . '/components/com_content/'; 13require_once $com_path . 'helpers/route.php'; 14 158 159 $catids = array_unique(array_merge($catids, $additional_catids)); 160 } 239 $menu = $app->getMenu(); 240 $menuitems = $menu->getItems('link', 'index.php?option=com_users&view=login'); 241 251 252 $item->link = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $Itemid); 253 }ticket_group_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 299 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/prolog.php"); 15 16$LIST_URL = '/bitrix/admin/ticket_group_list.php'; 17 50 $UIDS = array_map('intval', $_POST[$FMUTagName]['VALS']); 51 $UIDS = array_unique($UIDS); 52 $USERS = array(); 101 'CAN_MAIL_UPDATE_GROUP_MESSAGES' => $ar_ug['CAN_MAIL_UPDATE_GROUP_MESSAGES'], 102 'USER_NAME' => '[<a title="'.GetMessage("MAIN_USER_PROFILE").'" href="user_edit.php?ID='.$ar_ug["USER_ID"].'&lang='.LANG.'">'.$ar_ug["USER_ID"].'</a>] ('.$ar_ug["LOGIN"].') '.$ar_ug["FIRST_NAME"].' '.$ar_ug["LAST_NAME"], 103 ); 120 121require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 122Template.php https://gitlab.com/dcnf/dcbase.org | PHP | 424 lines
1<?php 2 297 298 return array_unique($names); 299 }eventpergame.php https://gitlab.com/julienv/joomleague | PHP | 337 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL, see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 14 15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php'); 16 78 /** 79 * (non-PHPdoc) 80 * @see administrator/components/com_joomleague/statistics/JLGStatistic#getPlayerStatsByProject($person_id, $project_id) 104 $res = array(); 105 foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 106 {quipthread.class.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 346 lines
1<?php 2/** 206 } 207 $moderators = array_unique($moderators); 208 279 280 $this->xpdo->getService('mail', 'mail.modPHPMailer'); 281 if (!$this->xpdo->mail) return false;BlockHelper.php https://gitlab.com/cuza/Clinic_Recods | PHP | 480 lines
1<?php 2 67 /** 68 * This property is a state variable holdings all assets used by the block for the current PHP request 69 * It is used to correctly render the javascripts and stylesheets tags on the main layout. 199 $this->assets = array( 200 'js' => array_unique(array_merge($assets['js'], $this->assets['js'])), 201 'css' => array_unique(array_merge($assets['css'], $this->assets['css'])),ComposerInformation.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 379 lines
101 /** 102 * Retrieves required php version 103 * 106 */ 107 public function getRequiredPhpVersion() 108 { 110 $allPlatformReqs = $this->getLocker()->getPlatformRequirements(true); 111 $requiredPhpVersion = $allPlatformReqs['php']->getPrettyConstraint(); 112 } else { 118 if ($packageName === 'magento/product-community-edition') { 119 $phpRequirementLink = $package->getRequires()['php']; 120 if ($phpRequirementLink instanceof Link) { 120 if ($phpRequirementLink instanceof Link) { 121 $requiredPhpVersion = $phpRequirementLink->getPrettyConstraint(); 122 }Reader.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.0 216 /** 217 * Return the key/pairs as a PHP generator 218 * 303 { 304 if (empty($keys) || $keys !== array_unique(array_filter($keys, [$this, 'isValidKey']))) { 305 throw new InvalidArgumentException('Use a flat array with unique string values');meta-box-saves.inc.php https://gitlab.com/Gashler/dp | PHP | 148 lines
1<?php 2/** 59 for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++) 60 $pages[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_pages"])); 61 62 for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++) 63 $posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"])); 64 88 for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++) 89 $posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"])); 90wpml-post-translation.class.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 367 lines
1<?php 2require ICL_PLUGIN_PATH . '/inc/post-translation/wpml-post-duplication.class.php'; 2require ICL_PLUGIN_PATH . '/inc/post-translation/wpml-post-duplication.class.php'; 3require 'wpml-post-synchronization.class.php'; 4require_once 'wpml-wordpress-actions.class.php'; 72 update_option( 'sticky_posts', 73 array_values( array_unique( array_filter( array_merge( $posts, $unfiltered ) ) ) ) ); 74 } 82 } 83 $posts = array_values( array_unique( array_filter( $posts ) ) ); 84 } 100 public function pre_update_option_sticky_posts( $posts ) { 101 $updated_sticky_list = array_values( array_unique( array_filter( array_merge( $posts, 102 $this->filtered_sticky_posts ) ) ) ); 240 } 241 require_once ICL_PLUGIN_PATH . '/inc/cache.php'; 242 icl_cache_clear( $post_vars['post_type'] . 's_per_language', true );appProdUrlMatcher.php https://gitlab.com/abdelwahed.farabi/TimeToStartWeb | PHP | 277 lines
1<?php 2 274 275 throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException(); 276 }Process.php https://bitbucket.org/kdms/sh-magento.git | PHP | 451 lines
1<?php 2/** 127 if (strpos(str_replace($this->_includeDir, '', $target), '-') 128 || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) { 129 return $this; 199 } else { 200 if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) { 201 return $this; 297 $arrFiles[$code] = array_merge($arrFiles[$code], $statClasses); 298 $arrFiles[$code] = array_unique($arrFiles[$code]); 299 sort($arrFiles[$code]); 334 $classesSorce = $this->_getClassesSourceCode($classes, $code); 335 file_put_contents($this->_includeDir.DS.Varien_Autoload::SCOPE_FILE_PREFIX.$code.'.php', $classesSorce); 336 } 369 370 $classesSource = "<?php\n"; 371 foreach ($sortedClasses as $className) {ThemeSuggestions.php https://gitlab.com/guillaumev/alkarama | PHP | 359 lines
1<?php 2/** 96 // Ensure the list of suggestions is unique. 97 $suggestions = array_unique($this->suggestions); 98 }class-wp-rest-search-controller.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 387 lines
1<?php 2/** 72 __METHOD__, 73 /* translators: %s: PHP class name. */ 74 sprintf( __( 'REST search handlers must extend the %s class.' ), 'WP_REST_Search_Handler' ), 188 * @since 5.6.0 The `$id` parameter can accept a string. 189 * @since 5.9.0 Renamed `$id` to `$item` to match parent class for PHP 8 named parameter support. 190 * 241 242 $types = array_unique( $types ); 243 $subtypes = array_unique( $subtypes ); 306 307 $types = array_unique( $types ); 308 $subtypes = array_unique( $subtypes );SummaryOfOrganization.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 404 lines
1<?php 2namespace App\BITM\SEIP143979\SummaryOfOrganization; 55 56 Utility::redirect('create.php'); 57 120 121 Utility::redirect('index.php'); 122 136 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 137 Utility::redirect('index.php'); 138 160 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 161 Utility::redirect('index.php'); 162 220 } 221 Utility::redirect("multipleDelete.php"); 222 }List.php https://gitlab.com/rsilveira1987/Expresso | PHP | 448 lines
1<?php 2/** 90 /** 91 * (non-PHPdoc) 92 * @see Tinebase_Controller_Record_Abstract::get() 115 } 116 $allMemberIds = array_unique($allMemberIds); 117 142 /** 143 * (non-PHPdoc) 144 * @see Tinebase_Controller_Record_Abstract::search() 153 /** 154 * (non-PHPdoc) 155 * @see Tinebase_Controller_Record_Abstract::getMultiple()bookmark.php https://gitlab.com/VTTE/sitios-vtte | PHP | 327 lines
1<?php 2/** 128 $cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) ); 129 return array_unique( $cats ); 130} 264 $link_categories = array_map( 'intval', $link_categories ); 265 $link_categories = array_unique( $link_categories ); 266 311 global $pagenow; 312 if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) { 313 return; 320 if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { 321 $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); 322 /* translators: %s: URL to install the Link Manager plugin. */DoctrineExtensionTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 284 lines
1<?php 2 20 */ 21class DoctrineExtensionTest extends \PHPUnit_Framework_TestCase 22{ 215 216 foreach (array_unique($expectedCalls) as $call) { 217 $this->assertContains($call, $actualCalls);Collection.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 717 lines
1<?php namespace Illuminate\Support; 2 550 { 551 return new static(array_unique($this->items)); 552 }Cache.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 289 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Cache.php 24853 2012-05-31 23:19:27Z adamlundrigan $ 20 */ 24 */ 25require_once 'Zend/Controller/Action/Helper/Abstract.php'; 26 29 */ 30require_once 'Zend/Controller/Action/Exception.php'; 31 34 */ 35require_once 'Zend/Cache/Manager.php'; 36 90 $controller = $this->getRequest()->getControllerName(); 91 $actions = array_unique($actions); 92 if (!isset($this->_caching[$controller])) {tags.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 383 lines
1<?php 2 3/** 4* Tag PHP class for the WordPress plugin NextGEN Gallery 5* nggallery.lib.php 346 $slugarray = array_map('sanitize_title', $taglist); 347 $slugarray = array_unique($slugarray); 348PhpScanner.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 247 lines
1<?php 2/** 12 13class PhpScanner implements ScannerInterface 14{ 180 } 181 return array_unique($output); 182 } 244 } 245 return array_unique($classes); 246 }Type.hx https://gitlab.com/ezeql/haxe | Haxe | 266 lines
120 } 121 __php__("php_Boot::$skip_constructor = false"); 122 return i; 164 "); 165 return untyped __php__("new _hx_array(array_values(array_unique($r)))"); 166 } 185 "); 186 return untyped __php__("new _hx_array(array_unique($r))"); 187 } 226 if(getEnum(untyped __php__("$a->params[$i]")) != null) { 227 if(!untyped enumEq(__php__("$a->params[$i]"),__php__("$b->params[$i]"))) 228 return false; 229 } else { 230 if(!untyped __call__("_hx_equal", __php__("$a->params[$i]"),__php__("$b->params[$i]"))) 231 return false;Feed.php https://gitlab.com/rsilveira1987/Expresso | PHP | 265 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/Extension/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Date.php'; 31 87 if (!empty($authors)) { 88 $authors = array_unique($authors); 89 }Reader.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.1 216 /** 217 * Return the key/pairs as a PHP generator 218 * 303 { 304 if (empty($keys) || $keys !== array_unique(array_filter($keys, [$this, 'isValidKey']))) { 305 throw new InvalidArgumentException('Use a flat array with unique string values');admin.functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 321 lines
1<?php 2/** 317 } 318 return array_unique( $array_cat ); 319}TbGroupGridView.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 375 lines
1<?php 2/** 128 //store columns for group. Set object for existing columns in grid and string for attributes 129 $groupColumns = array_unique(array_merge($this->mergeColumns, $this->extraRowColumns)); 130 foreach ($groupColumns as $key => $colName) {edit_index_save.class.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 236 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 122 // Check that there aren't duplicate column names 123 $uniquearr = array_unique($fieldsarr); 124 if (count($fieldsarr) != count($uniquearr)) { 181 <p>' . $tempindex->readableInfo() . '</p>'; 182 $o.= '<a href="index.php?action=edit_index&index=' .$index->getName() . '&table=' . $table->getName() . 183 '&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';special.php https://gitlab.com/shapcy/opencart | PHP | 286 lines
1<?php 2class ControllerProductSpecial extends Controller { 221 222 $limits = array_unique(array($this->config->get($this->config->get('config_theme') . '_product_limit'), 25, 50, 75, 100)); 223Router.php https://gitlab.com/mohamed_hussein/prodt | PHP | 339 lines
1<?php 2 112 } 113 // PHP 7.4 introduces changes to its serialization format, which mean that 114 // older versions of PHP are unable to unserialize data that is serialized 114 // older versions of PHP are unable to unserialize data that is serialized 115 // in PHP 7.4. If the site's version of PHP has been downgraded, then 116 // attempting to unserialize routes from the database will fail, and so the 117 // router needs to be rebuilt on the current PHP version. 118 // See https://www.php.net/manual/en/migration74.incompatible.php. 119 catch (\TypeError $e) { 133 throw 0 < count($this->allow) 134 ? new MethodNotAllowedException(array_unique($this->allow)) 135 : new ResourceNotFoundException(sprintf('No routes found for "%s".', $this->currentPath->getPath()));class-wc-shipping-zone-data-store.php https://gitlab.com/campus-academy/krowkaramel | PHP | 373 lines
1<?php 2/** 109 110 /** This action is documented in includes/datastores/class-wc-shipping-zone-data-store.php. */ 111 do_action( 'woocommerce_shipping_zone_loaded', $zone ); 166 167 return $wpdb->get_results( $wpdb->prepare( $raw_methods_sql, $zone_id ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared 168 } 270 $matches = wc_postcode_location_matcher( $postcode, $postcode_locations, 'zone_id', 'location_code', $country ); 271 $do_not_match = array_unique( array_diff( $zone_ids_with_postcode_rules, array_keys( $matches ) ) ); 272 291 LEFT OUTER JOIN {$wpdb->prefix}woocommerce_shipping_zone_locations as locations ON zones.zone_id = locations.zone_id AND location_type != 'postcode' 292 WHERE " . implode( ' ', $criteria ) // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared 293 . ' ORDER BY zone_order ASC, zones.zone_id ASC LIMIT 1'wpml-installation.class.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 325 lines
1<?php 2 2 3require 'wpml-language-switcher-settings.class.php'; 4 88 $sanitized_codes = array(); 89 $lang_codes = array_filter( array_unique( $lang_codes ) ); 90 foreach ( $lang_codes as $code ) {apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
1<?php 2/* 9 10Install this file to wp-content/object-cache.php 11 19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) { 20 wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' ); 21} 24 // Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe 25 die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' ); 26} else { 27 28// Users with setups where multiple installs share a common wp-config.php can use this 29// to guarantee uniqueness for the keys generated by this object cache 160 $this->global_groups = array_merge( $this->global_groups, $groups ); 161 $this->global_groups = array_unique( $this->global_groups ); 162 }Birthday.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 402 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: DELL 105 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 106 Utility::redirect('index.php'); 107 121 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 122 Utility::redirect('index.php'); 123 142 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 143 Utility::redirect('index.php'); 144 165 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 166 Utility::redirect('index.php'); 167my-account-takeover.class.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 376 lines
1<?php if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) die( header( 'Location: /') ); 2 29 if (self::$options->{'qsot-infinite-login'} == 'yes') { 30 //add_action('login_init', array(__CLASS__, 'long_test_cookie'), PHP_INT_MAX); 31 add_filter('auth_cookie_expiration', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 3); 31 add_filter('auth_cookie_expiration', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 3); 32 add_filter('auth_cookie_expire_time', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 4); 33 add_filter('wc_session_expiring', array(__CLASS__, 'long_login_expiring'), PHP_INT_MAX, 3); 33 add_filter('wc_session_expiring', array(__CLASS__, 'long_login_expiring'), PHP_INT_MAX, 3); 34 add_filter('wc_session_expiration', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 3); 35 add_filter('init', array(__CLASS__, 'extend_login_expiration'), -1); 62 63 $shows = array_unique($shows); 64 ?> 65 <td> 66 <?php if (count($shows)): ?> 67 <?php echo implode('<br/>', $shows) ?>users.php https://github.com/joebushi/joomla.git | PHP | 194 lines
1<?php 2/** 79 80 $this->setRedirect('index.php?option=com_users&view=users'); 81 } 120 121 $this->setRedirect('index.php?option=com_users&view=users'); 122 } 152 153 $this->setRedirect('index.php?option=com_users&view=users'); 154 } 172 // Sanitize user ids. 173 $cid = array_unique($cid); 174 JArrayHelper::toInteger($cid); 185 $message = JText::sprintf('USERS_USER_BATCH_FAILED', $model->getError()); 186 $this->setRedirect('index.php?option=com_users&view=users', $message, 'error'); 187 return false;view.php https://bitbucket.org/crevillo/enetcall.git | PHP | 240 lines
1<?php 2/** 77 // Without reference there will be a inconsistency with GLOBAL instance and stored ini file. 78 $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null ); 79 $iniTemp->removeSetting( $block, $setting ); 219 $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) ); 220 $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) ); 221} 224$iniFiles = preg_replace('%.*/%', '', $iniFiles ); 225// remove *.ini[.append.php] from file name 226$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles ); 228 229$tpl->setVariable( 'ini_files', array_unique( $iniFiles ) ); 230$tpl->setVariable( 'siteaccess_list', $siteAccessList );bookmark.php https://gitlab.com/Gashler/dp | PHP | 387 lines
1<?php 2/** 36 if ( $_bookmark ) { 37 $_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) ); 38 wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' );Rss.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 533 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 16963 2009-07-22 14:39:31Z padraic $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 34 */ 35require_once 'Zend/Feed/Reader/Extension/DublinCore/Feed.php'; 36 39 */ 40require_once 'Zend/Date.php'; 41Generator.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 223 lines
1<?php 2/** 98 return [ 99 'controller.php', 100 'view.php', 159 $this->getControllerFile(), 160 $this->render('controller.php') 161 ); 165 $this->getViewFile($action), 166 $this->render('view.php', ['action' => $action]) 167 ); 178 { 179 $actions = array_unique(preg_split('/[\s,]+/', $this->actions, -1, PREG_SPLIT_NO_EMPTY)); 180 sort($actions); 189 { 190 return Yii::getAlias('@' . str_replace('\\', '/', $this->controllerClass)) . '.php'; 191 }block_sort.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 274 lines
1<?php 2 6 * 7 * $Id: block_sort.php 29557 2012-04-18 10:10:07Z svn_project_zhangjie $ 8 */ 159 } 160 $fids = array_unique($fids); 161 } 235 if($threadtypes[$fid]['prefix'] == 1) { 236 $thread['typehtml'] = '<em>[<a href="forum.php?mod=forumdisplay&fid='.$fid.'&filter=typeid&typeid='.$thread['typeid'].'">'.$threadtypes[$fid]['types'][$thread['typeid']].'</a>]</em>'; 237 } elseif($threadtypes[$fid]['icons'][$thread['typeid']] && $threadtypes[$fid]['prefix'] == 2) { 237 } elseif($threadtypes[$fid]['icons'][$thread['typeid']] && $threadtypes[$fid]['prefix'] == 2) { 238 $thread['typehtml'] = '<em><a title="'.$threadtypes[$fid]['types'][$thread['typeid']].'" href="forum.php?mod=forumdisplay&fid='.$fid.'&filter=typeid&typeid='.$thread['typeid'].'">'.'<img style="vertical-align: middle;padding-right:4px;" src="'.$threadtypes[$fid]['icons'][$thread['typeid']].'" alt="'.$threadtypes[$fid]['types'][$thread['typeid']].'" /></a></em>'; 239 } 258 } 259 $verify[$value['uid']] .= "<a href=\"home.php?mod=spacecp&ac=profile&op=verify&vid=$vid\" target=\"_blank\">".(!empty($srcurl) ? '<img src="'.$srcurl.'" class="vm" alt="'.$vsetting['title'].'" title="'.$vsetting['title'].'" />' : $vsetting['title']).'</a>'; 260 }MPSUM_Admin_Plugins.php https://gitlab.com/memuller.web/wp_site | PHP | 275 lines
1<?php 2/** 215 //Update option 216 $plugin_options = array_values( array_unique( $plugin_options ) ); 217 $plugin_automatic_options = array_values( array_unique( $plugin_automatic_options ) ); 247 ?> 248 <div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div> 249 <?php 252 ?> 253 <form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post"> 254 <?php 260 ?> 261 <h3><?php esc_html_e( 'Plugin Update Options', 'stops-core-theme-and-plugin-updates' ); ?></h3> 262 <?php 272 </form> 273 <?php 274 } //end tab_output_pluginsshBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
29 */ 30SyntaxHighlighter.brushes.Php = function() 31{ 40 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ 41 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ 42 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ 86 87 this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88}; 90SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91SyntaxHighlighter.brushes.Php.aliases = ['php']; 92Abstract.php https://bitbucket.org/acidel/buykoala.git | PHP | 287 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 83 if ($parentIds) { 84 $processIds = array_unique(array_merge($processIds, $parentIds)); 85 } 87 if ($childIds) { 88 $processIds = array_unique(array_merge($processIds, $childIds)); 89 }class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
1<?php 2/** 241 // Get a list of post id's which match the current filters set (in the layered nav and price filter) 242 $post__in = array_unique( apply_filters( 'loop_shop_post_in', array() ) ); 243spacing.php https://gitlab.com/vanafroo/voipWEB | PHP | 361 lines
1<?php 2/* 14 * @author Thomas Usborne 15 * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) 16 * @link http://www.generatepress.com 256 // We'll also remove the padding if there's no color difference between the widgets and content background color 257 if ( count( array_unique( $widget_padding ) ) === 1 && end( $widget_padding ) === '40' && $colors_match ) { 258 $output .= '.one-container .sidebar .widget{padding:0px;}';MessageBag.php https://gitlab.com/Sigpot/AirSpot | PHP | 359 lines
1<?php 2 197 { 198 return array_unique($this->all($format)); 199 }perfmon_index_list.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
5define("PERFMON_STOP", true); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 7/** @global CMain $APPLICATION */ 10Loader::includeModule('perfmon'); 11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php"); 12 105 { 106 foreach (array_unique($arMissedKeys) as $suggest) 107 { 267 268 $row->AddViewField("SQL_COUNT", '<a href="perfmon_sql_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_suggest_id='.$f_ID.'">'.$f_SQL_COUNT.'</a>'); 269 $row->AddViewField("COLUMN_NAMES", str_replace(",", "<br>", $f_COLUMN_NAMES)); 308 "TEXT" => GetMessage("PERFMON_INDEX_DETAILS"), 309 "ACTION" => $lAdmin->ActionRedirect('perfmon_index_detail.php?lang='.LANG.'&ID='.$f_ID), 310 ),CopyableBehavior.php git://github.com/croogo/croogo.git | PHP | 416 lines
1<?php 2 23 * @copyright Jamie Nay 24 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 25 * @link http://github.com/jamienay/copyable_behavior 149 } 150 $ignore = array_unique($this->settings[$Model->alias]['ignore']); 151 foreach ($ignore as $path) {content.php https://gitlab.com/ppapadatis/Videolearn | PHP | 240 lines
1<?php 2/** 32 JText::_('JGLOBAL_ARTICLES'), 33 'index.php?option=com_content&view=articles', 34 $vName == 'articles' 37 JText::_('COM_CONTENT_SUBMENU_CATEGORIES'), 38 'index.php?option=com_categories&extension=com_content', 39 $vName == 'categories'); 41 JText::_('COM_CONTENT_SUBMENU_FEATURED'), 42 'index.php?option=com_content&view=featured', 43 $vName == 'featured' 182 // Remove duplicates before processing (because the black list uses both sets of arrays). 183 $blackListTags = array_unique($blackListTags); 184 $blackListAttributes = array_unique($blackListAttributes); 184 $blackListAttributes = array_unique($blackListAttributes); 185 $customListTags = array_unique($customListTags); 186 $customListAttributes = array_unique($customListAttributes);Kernel.php https://gitlab.com/jjpa2018/dashboard | PHP | 380 lines
1<?php 2 209 { 210 $paths = array_unique(Arr::wrap($paths)); 211 223 $command = $namespace.str_replace( 224 ['/', '.php'], 225 ['\\', ''],export.php https://github.com/exploradoreselectronicos/pressmark.git | PHP | 255 lines
1<?php 2 169 <title><?php bloginfo_rss('name'); ?></title> 170 <link><?php bloginfo_rss('url') ?></link> 171 <description><?php bloginfo_rss("description") ?></description> 178<?php if ( $cats ) : foreach ( $cats as $c ) : ?> 179 <wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name($c); ?><?php wxr_category_description($c); ?></wp:category> 180<?php endforeach; endif; ?> 181<?php if ( $tags ) : foreach ( $tags as $t ) : ?> 182 <wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name($t); ?><?php wxr_tag_description($t); ?></wp:tag> 183<?php endforeach; endif; ?> 207<wp:comment_status><?php echo $post->comment_status; ?></wp:comment_status> 208<wp:ping_status><?php echo $post->ping_status; ?></wp:ping_status> 209<wp:post_name><?php echo $post->post_name; ?></wp:post_name> 243<wp:comment_type><?php echo $c->comment_type; ?></wp:comment_type> 244<wp:comment_parent><?php echo $c->comment_parent; ?></wp:comment_parent> 245<wp:comment_user_id><?php echo $c->user_id; ?></wp:comment_user_id>widget-recent-posts-tab.php https://gitlab.com/mattswann/launch-housing | PHP | 249 lines
87 <li class="recent-posts-tab active"><a href="#recent-posts-tab-<?php echo intval($random_tab_id) ?>" data-toggle="tab"><?php _e('Recent', 'Elise') ?></a></li> 88 <?php if ($show_popular_posts) { ?><li class="popular-posts-tab"><a href="#popular-posts-tab-<?php echo intval($random_tab_id) ?>" data-toggle="tab"><?php _e('Popular', 'Elise') ?></a></li><?php } ?> 89 <?php if ($show_recent_comments) { ?><li class="recent-comments-tab"><a href="#recent-comments-tab-<?php echo intval($random_tab_id) ?>" data-toggle="tab"><i class="fa fa-comments"></i></a></li><?php } ?> 232 <p><label for="<?php echo $this->get_field_id( 'number_recent' ); ?>"><?php _e( 'Number of recent/popular posts to show:', 'Elise' ); ?></label> 233 <input id="<?php echo $this->get_field_id( 'number_recent' ); ?>" name="<?php echo $this->get_field_name( 'number_recent' ); ?>" type="text" value="<?php echo $number_recent; ?>" size="3" /></p> 234 234 235 <p><input class="checkbox" type="checkbox" <?php checked( $show_popular_posts ); ?> id="<?php echo $this->get_field_id( 'show_popular_posts' ); ?>" name="<?php echo $this->get_field_name( 'show_popular_posts' ); ?>" /> 236 <label for="<?php echo $this->get_field_id( 'show_popular_posts' ); ?>"><?php _e( 'Display Popular Posts Tab', 'Elise' ); ?></label></p> 237 238 <p><input class="checkbox" type="checkbox" <?php checked( $show_recent_comments ); ?> id="<?php echo $this->get_field_id( 'show_recent_comments' ); ?>" name="<?php echo $this->get_field_name( 'show_recent_comments' ); ?>" /> 239 <label for="<?php echo $this->get_field_id( 'show_recent_comments' ); ?>"><?php _e( 'Display Recent Comments Tab', 'Elise' ); ?></label></p> 241 <p><label for="<?php echo $this->get_field_id( 'number_comments' ); ?>"><?php _e( 'Number of recent comments to show:', 'Elise' ); ?></label> 242 <input id="<?php echo $this->get_field_id( 'number_comments' ); ?>" name="<?php echo $this->get_field_name( 'number_comments' ); ?>" type="text" value="<?php echo $number_comments; ?>" size="3" /></p> 243entreprise.php https://gitlab.com/Erdrix/overviewCompanies | PHP | 431 lines
1<?php 2 69 // Nombre de stage moyen 70 $fili = array_unique($fili); 71 $average = count($stages); 71 $average = count($stages); 72 $average = round($average / count(array_unique($date)), 1); 73component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 297 lines
37 $arParams["PATH_TO_SEARCH"] .= "&"; 38$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]); 39 99 } 100 $arHobbyDB=array_unique($arHobbyDB); 101 if(count($arHobbyDB)>0)Container.php https://gitlab.com/paveltizek/shop | PHP | 498 lines
1<?php 2 160 } 161 return array_unique($errors); 162 }PwDesignThreadDataService.php https://gitlab.com/wuhang2003/phpwind | PHP | 231 lines
1<?php 2Wind::import('SRV:design.srv.model.PwDesignModelBase'); 10 * @author $Author: gao.wanggao $ Foxsee@aliyun.com 11 * @copyright ?2003-2103 phpwind.com 12 * @license http://www.phpwind.com 12 * @license http://www.phpwind.com 13 * @version $Id: PwDesignThreadDataService.php 25436 2013-03-15 08:45:34Z gao.wanggao $ 14 * @package 18 /** 19 * (non-PHPdoc) 20 * @see src/service/design/srv/model/PwDesignModelBase::decorateAddProperty() 32 /** 33 * (non-PHPdoc) 34 * @see src/service/design/srv/model/PwDesignModelBase::decorateEditProperty() 48 /** 49 * (non-PHPdoc) 50 * @see src/service/design/srv/model/PwDesignModelBase::decorateSaveProperty()Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 376 lines
1<?php 2/** 288 289 $productsId = array_unique($productsId); 290IncludeResolver.php https://gitlab.com/mohamed_hussein/prodt | PHP | 258 lines
1<?php 2 23 * 24 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This 25 * class may change at any time and this will break any dependencies on it. 27 * @see https://www.drupal.org/project/drupal/issues/3032787 28 * @see jsonapi.api.php 29 */ 148 $entity_storage = $this->entityTypeManager->getStorage($target_type); 149 $targeted_entities = $entity_storage->loadMultiple(array_unique($ids)); 150 $access_checked_entities = array_map(function (EntityInterface $entity) {bookmark.php https://bitbucket.org/theshipswakecreative/psw.git | PHP | 305 lines
1<?php 2/** 119 120 return array_unique( $cats ); 121} 247 $link_categories = array_map( 'intval', $link_categories ); 248 $link_categories = array_unique( $link_categories ); 249 290 global $pagenow; 291 if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) 292 return; 298 if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { 299 $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); 300 wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );DatabaseBatchRepository.php https://gitlab.com/jjpa2018/dashboard | PHP | 347 lines
1<?php 2 166 'failed_jobs' => $batch->failed_jobs + 1, 167 'failed_job_ids' => json_encode(array_values(array_unique(array_merge(json_decode($batch->failed_job_ids, true), [$jobId])))), 168 ];class.jetpack-autoupdate.php https://gitlab.com/chernushov881/charity-fund | PHP | 369 lines
1<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName 2/** 71 if ( 72 /** This filter is documented in class.jetpack-json-api-endpoint.php */ 73 apply_filters( 'jetpack_json_manage_api_enabled', true ) 109 $autoupdate_plugin_list = (array) get_site_option( 'auto_update_plugins', array() ); 110 $plugin_files = array_unique( array_merge( $autoupdate_plugin_list, $autoupdate_plugin_translations ) ); 111 $plugin_slugs = array_map( array( __CLASS__, 'get_plugin_slug' ), $plugin_files ); 157 * 158 * @param string $item Example: 'jetpack/jetpack.php' for type 'plugin' or 'twentyfifteen' for type 'theme'. 159 * @param string $type 'plugin' or 'theme'. 295 // Lets check some reasons why it might not be working as expected. 296 include_once ABSPATH . '/wp-admin/includes/admin.php'; 297 include_once ABSPATH . '/wp-admin/includes/class-wp-upgrader.php'; 322 $skin = new Automatic_Upgrader_Skin(); 323 include_once ABSPATH . 'wp-admin/includes/file.php'; 324 include_once ABSPATH . 'wp-admin/includes/template.php';update.php https://gitlab.com/emad.rashad/mls-grading | PHP | 245 lines
1<?php 2require_once('../../../../classes/Session.php'); 2require_once('../../../../classes/Session.php'); 3require_once('../../../../classes/Functions.php'); 4require_once('../../../../classes/MysqlDatabase.php'); 4require_once('../../../../classes/MysqlDatabase.php'); 5require_once('../../../../classes/Users.php'); 6require_once('../../../../classes/Profile.php'); 6require_once('../../../../classes/Profile.php'); 7require_once('../../../../classes/Nodes.php'); 8require_once('../../../../classes/NodesContent.php'); 8require_once('../../../../classes/NodesContent.php'); 9require_once('../../../../classes/NodesSelectedTaxonomies.php'); 10require_once('../../../../classes/Localization.php'); 10require_once('../../../../classes/Localization.php'); 11require_once('../../../../classes/NodesImageGallery.php'); 12require_once('../../../../classes/Taxonomies.php');ClassNotFoundFatalErrorHandler.php https://gitlab.com/madwanz64/laravel | PHP | 183 lines
1<?php 2 113 114 return array_unique($classes); 115 } 123 $classes = []; 124 $filename = $class.'.php'; 125 foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) { 137 // namespaced class 138 $namespacedClass = str_replace([$path.\DIRECTORY_SEPARATOR, '.php', '/'], ['', '', '\\'], $file), 139 // namespaced class (with target dir)Plugin.php https://gitlab.com/vannh/portal_training | PHP | 392 lines
2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 2.0.0 66 * 67 * Will load the bootstrap.php and routes.php files. 68 * 70 * 71 * Will load routes.php file but not bootstrap.php 72 * 190 191 $vendorFile = dirname(dirname(dirname(dirname(__DIR__)))) . DS . 'cakephp-plugins.php'; 192 if (!file_exists($vendorFile)) {viewData.php https://gitlab.com/florianocomercial/centreon | PHP | 332 lines
1<?php 2/* 38} 39require_once './class/centreonDuration.class.php'; 40require_once './class/centreonBroker.class.php'; 40require_once './class/centreonBroker.class.php'; 41include_once("./include/monitoring/common-Func.php"); 42 45 */ 46require_once "HTML/QuickForm.php"; 47require_once 'HTML/QuickForm/Renderer/ArraySmarty.php'; 56 */ 57$url = "viewData.php"; 58 59/* 60 * PHP functions 61 */MigrationSnapshotTask.php https://gitlab.com/alexandresgv/siteentec | PHP | 277 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @license http://www.opensource.org/licenses/mit-license.php MIT License 200 201 return array_unique($list); 202 } 223 $tableDir = new Folder($path); 224 $tableDir = $tableDir->find('.*\.php'); 225 return $tableDir; 237 $tables = []; 238 $className = str_replace('Table.php', '', $className); 239 if ($pluginName !== null) {LinkManagement.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 386 lines
1<?php 2/** 16/** 17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 18 */ 117 * {@inheritdoc} 118 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 119 * @SuppressWarnings(PHPMD.NPathComplexity) 206 * {@inheritdoc} 207 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 208 */ 314 $resource->dropAllUnneededSelections($product->getData($linkField), $excludeSelectionIds); 315 $resource->removeProductRelations($product->getData($linkField), array_unique($usedProductIds)); 316select.php https://gitlab.com/webkod3r/tripolis | PHP | 232 lines
187 <tr> 188 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th> 189 <td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td> 197 <textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea> 198 <label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One option per line.", 'contact-form-7' ) ); ?></span></label><br /> 199 <label><input type="checkbox" name="multiple" class="option" /> <?php echo esc_html( __( 'Allow multiple selections', 'contact-form-7' ) ); ?></label><br /> 205 <tr> 206 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th> 207 <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td> 210 <tr> 211 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th> 212 <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td> 228 229 <p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p> 230</div>Scraper.php https://gitlab.com/boptom/scraper | PHP | 413 lines
1<?php 2 151 if (self::isArray()) { 152 $this->text = array_unique($this->text); 153 }AdminPaymentController.php https://gitlab.com/jslee1/PrestaShop | PHP | 126 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 38 { 39 $this->toolbar_title = array_unique($this->breadcrumbs); 40 }ajax.php https://gitlab.com/michield/dokuwiki | PHP | 452 lines
1<?php 2/** 9if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); 10require_once(DOKU_INC.'inc/init.php'); 11//close session 108 $data = array_map('noNS',$data); 109 $data = array_unique($data); 110 sort($data); 237 $fullscreen = true; 238 require_once(DOKU_INC.'lib/exe/mediamanager.php'); 239EditView.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 391 lines
1<?php 2/*+******************************************************************************** 9 ********************************************************************************/ 10require_once('data/Tracker.php'); 11 26$image_path=$theme_path."images/"; 27require_once('modules/CustomView/CustomView.php'); 28 77 78 $smarty->assign("MANDATORYCHECK",implode(",",array_unique($oCustomView->mandatoryvalues))); 79 $smarty->assign("SHOWVALUES",implode(",",$oCustomView->showvalues)); 158 $smarty->assign("STDFILTER_JAVASCRIPT",$stdfilterjs); 159 $smarty->assign("MANDATORYCHECK",implode(",",array_unique($oCustomView->mandatoryvalues))); 160 $smarty->assign("SHOWVALUES",implode(",",$oCustomView->showvalues)); 291 global $app_list_strings, $current_language,$app_strings,$current_user; 292 require('user_privileges/user_privileges_'.$current_user->id.'.php'); 293 global $oCustomView;SummaryOfOrganization.php https://gitlab.com/Charlesbasis/AtomicProject_CharlesValerioHowlader_136344_B35 | PHP | 282 lines
1<?php 2 59 60 Utility::redirect('create.php'); 61 101 $STH->execute($arrData); 102 Utility::redirect('index.php'); 103 110 111 Utility::redirect('index.php'); 112 } // end of delete(), permanent delete 121 122 Utility::redirect('index.php'); 123 156 157 Utility::redirect('index.php'); 158ClassCollectionLoader.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 379 lines
1<?php 2 36 */ 37 public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php') 38 { 38 { 39 // each $name can only be loaded once per PHP process 40 if (isset(self::$loaded[$name])) { 58 59 $classes = array_unique($classes); 60 104 105 $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($class->getFileName())); 106 198 if (PHP_VERSION_ID >= 70000) { 199 // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098 200 unset($tokens, $rawChunk);yandex_setup.php https://gitlab.com/Rad1calDreamer/honey | PHP | 463 lines
2//<title>Yandex</title> 3IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php'); 4 108 { 109 $V = array_unique(array_values($V)); 110 $_REQUEST['V'] = $V; 134 "TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"), 135 "LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID, 136 "ICON"=>"btn_list", 198 ), 199 "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';", 200 "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';", 358 </script> 359 <iframe src="/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=<?=intval($IBLOCK_ID)?>&<? echo bitrix_sessid_get(); ?>" id="id_ifr" name="ifr" style="display:none"></iframe> 360 </td>Move.php https://gitlab.com/rsilveira1987/Expresso | PHP | 299 lines
1<?php 2/** 111 $movedMessages = FALSE; 112 foreach (array_unique($_messages->folder_id) as $folderId) { 113 $movedMessages = ($this->_moveMessagesByFolder($_messages, $folderId, $_targetFolder) || $movedMessages);cache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 503 lines
1<?php 2/** 281 $this->global_groups = array_merge($this->global_groups, $groups); 282 $this->global_groups = array_unique($this->global_groups); 283 } 411 * The $expire parameter is not used, because the cache will automatically 412 * expire for each time a page is accessed and PHP finishes. The method is 413 * more for cache plugins which use files. 465 /** 466 * PHP4 constructor; Calls PHP 5 style constructor 467 * 476 /** 477 * Sets up object properties; PHP 5 style constructor 478 * 483 /** 484 * @todo This should be moved to the PHP4 style constructor, PHP5 485 * already calls __destruct()Getlist.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 290 lines
1<?php 2/* 161 } 162 $request['params']['return'] = array_unique(array_merge($fieldsToReturn, $request['extra'])); 163}Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
1<?php 2 351 $content = sprintf(<<<EOF 352<?php 353 377 { 378 return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php'; 379 } 423 424 return array_unique($locales); 425 }ProfilePicture.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 390 lines
1<?php 2namespace App\BITM\SEIP143979\ProfilePicture; 86 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 87 Utility::redirect('create.php'); 88 115 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 116 Utility::redirect('index.php'); 117 131 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 132 Utility::redirect('index.php'); 133 155 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 156 Utility::redirect('index.php'); 157 212 } 213 Utility::redirect("multipleDelete.php"); 214 }Summary_Of_Organization.php https://gitlab.com/rahad777/atomic_project_Rahad_143368_B36 | PHP | 273 lines
1<?php 2namespace App\Summary_Of_Organization; 44 Message::message("Failed! DATA HAS not BEEN INSERTED SUCCESSFULLY"); 45 Utility::redirect('create.php'); 46 } 90 91 Utility::redirect('create.php'); 92 101 102 Utility::redirect('create.php'); 103 114 115 Utility::redirect('create.php'); 116 149 150 Utility::redirect('create.php'); 151filterbar.php https://gitlab.com/futuredrive630/wp-event-list | PHP | 316 lines
1<?php 2if(!defined('ABSPATH')) { 5 6require_once( EL_PATH.'includes/db.php' ); 7require_once( EL_PATH.'includes/categories.php' ); 202 } 203 $events_cat_array = array_unique($events_cat_array); 204 //create filtered cat_array