100+ results results for 'php array_unique repo:moodle/moodle' (339 ms)
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{select.php git://github.com/fuel/core.git | PHP | 524 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 10 * @copyright 2008 - 2009 Kohana Team 11 * @link https://fuelphp.com 12 */ 447 // Select all columns 448 $query .= implode(', ', array_unique(array_map($quote_ident, $this->_select))); 449 } 453 // Set tables to select from 454 $query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from))); 455 }inventory_move.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 218 lines
1<?php 2require_once('../includes/prepend.inc.php'); 6 // authenticate error 7 QApplication::Redirect('./index.php'); 8} 21 */ 22 $arrInventoryCodeLocationQuantity = array_unique(explode('#',$_POST['result'])); 23 169 170 $strWarning .= "Your transaction has successfully completed<br /><a href='index.php'>Main Menu</a> | <a href='inventory_menu.php'>Inventory Menu</a><br />"; 171 //Remove that flag when transaction is compelete or exists some errors 192 193require_once('./includes/header.inc.php'); 194?> 195 196 <div id="warning"><?php echo $strWarning; ?></div> 197<?phpsurvey_template_user.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 326 lines
1<?php 2namespace repository\content_object\survey; 86 $class = self :: type_to_class($type); 87 require_once dirname(__FILE__) . '/template/' . $type . '/' . $type . '.class.php'; 88 return new $class($defaultProperties, $additionalProperties); 281 282 $hierarchy = array_unique($hierarchy); 283 299 $merged_array = array_merge($context_ids, $attached_context_ids); 300 $parent_child_context_ids[$context_id] = array_unique($merged_array); 301 304 { 305 $parent_child_context_ids[$context_id] = array_unique($context_ids); 306 }import_NS_data_from_other_project.php http://prohits.googlecode.com/svn/trunk/ | PHP | 407 lines
36$DB_index = ''; 37$script = "import_NS_data_from_other_project.php"; 38// -------------------------- 38// -------------------------- 39require("../common/site_permission.inc.php"); 40require("../common/common_fun.inc.php"); 40require("../common/common_fun.inc.php"); 41require("common_functions.inc.php"); 42require_once("../msManager/is_dir_file.inc.php"); 116 $merged_arr = array_merge($tmpArr, $tmpArr_2); 117 $new_arr = array_unique($merged_arr); 118 $new_str = implode(",",$new_arr); 143function passvalue(){ 144 theFile = "./mng_set_non_specific.php?order_by=GeneName&filterID=12&frm_TaxID=9606&frm_NS_group_id=<?=$frm_group_name_s?>"; 145 opener.window.open(theFile,"_top");point.model.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 196 lines
1<?php 2/** 98 if(count($member_srls)==0) return; 99 array_unique($member_srls); 100 193} 194/* End of file point.model.php */ 195/* Location: ./modules/point/point.model.php */String.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 257 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 189 } 190 $unqiue = array_unique($rand); 191 if(count($unqiue)==count($rand)) { 197 } 198 $rand = array_slice(array_unique ($rand),0,$number); 199 return $rand;add.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 366 lines
1<?php 2 89 $links = array_map( "trim", $links ); 90 $links = array_unique( $links ); 91 116 { 117 $array['linkdirect'] = array_unique( $array['linkdirect'] ); 118 } 219 nv_insert_logs( NV_LANG_DATA, $module_name, 'log_add', " ", $admin_info['userid'] ); 220 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 221 exit(); 246{ 247 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&add=1" ); 248 exit(); 280{ 281 require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 282}Type.hx git://github.com/MarcWeber/haxe-compiler-experiments.git | 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;AkLocaleManager.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 389 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 22 23require_once(AK_LIB_DIR.DS.'AkObject.php'); 24 50 while (false !== ($entry = $d->read())) { 51 if (preg_match('/\\.php$/', $entry)){ 52 $locale = str_replace('.php','',$entry); 96 } 97 return array_unique($browser_languages); 98 } 155 $used_entries = AkLocaleManager::getUsedLanguageEntries(); 156 require(AK_CONFIG_DIR.DS.'locales'.DS.AK_FRAMEWORK_LANGUAGE.'.php'); 157 $core_dictionary = $dictionary; 164 $controller = $k; 165 $module_lang_file = AK_APP_DIR.DS.'locales'.DS.$controller.DS.AK_FRAMEWORK_LANGUAGE.'.php'; 166 if(is_file($module_lang_file)){inventory_restock.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 182 lines
1<?php 2require_once('../includes/prepend.inc.php'); 6 // authenticate error 7 QApplication::Redirect('./index.php'); 8} 21 */ 22 $arrInventoryCodeQuantity = array_unique(explode('#',$_POST['result'])); 23 135 136 $strWarning .= "Your transaction has successfully completed<br /><a href='index.php'>Main Menu</a> | <a href='inventory_menu.php'>Inventory Menu</a><br />"; 137 //Remove that flag when transaction is compelete or exists some errors 158 159require_once('./includes/header.inc.php'); 160?> 161 162 <div id="warning"><?php echo $strWarning; ?></div> 163<?phprepository_shared_content_objects_browser_table_cell_renderer.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 186 lines
1<?php 2namespace repository; 20/** 21 * $Id: repository_shared_content_objects_browser_table_cell_renderer.class.php 204 2009-11-13 12:51:30Z kariboe $ 22 * @package repository.lib.repository_manager.component.browser.shared_content_objects_browser 23 */ 24require_once dirname(__FILE__) . '/repository_shared_content_objects_browser_table_column_model.class.php'; 25require_once dirname(__FILE__) . '/../../../../content_object_table/default_shared_content_objects_table_cell_renderer.class.php'; 158 159 $shared_users = array_unique($target_entities[UserEntity :: ENTITY_TYPE]); 160 $shared_groups = array_unique($target_entities[PlatformGroupEntity :: ENTITY_TYPE]);shBrushPhp.js git://github.com/daylightstudio/FUEL-CMS.git | JavaScript | 92 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']; 92ErrorCoverage.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 186 lines
1<?php 2/** 4 * 5 * PHP Version 5.3.2 6 * 38 * 39 * @category PHP_CodeBrowser 40 * @package PHP_CodeBrowser 44 * @copyright 2007-2010 Mayflower GmbH 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id$ 46 * @version SVN: $Id$ 47 * @link http://www.phpunit.de/ 48 * @since File available since 0.1.0 53 * 54 * @category PHP_CodeBrowser 55 * @package PHP_CodeBrowserUrlMatcher.php git://github.com/symfony/symfony.git | PHP | 279 lines
1<?php 2 95 96 throw 0 < \count($this->allow) ? new MethodNotAllowedException(array_unique($this->allow)) : new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo)); 97 } 205 * in matchers that do not have access to the matched Route instance 206 * (like the PHP and Apache matcher dumpers). 207 *edit.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 17{ 18 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 19 die(); 26{ 27 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 28 die(); 53{ 54 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 55 die(); 183 } 184 $users = array_unique( $users ); 185 sort( $users ); 233 { 234 @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" ); 235access.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 377 lines
1<?php 2/** 245 else { 246 $result = array_unique($result); 247 }access.php git://github.com/joomla/joomla-platform.git | PHP | 538 lines
1<?php 2/** 345 { 346 $result = array_unique($result); 347 }write.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 284 lines
1<?php 2 57 { 58 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/admin_" . $dirlang . ".php"; 59 } 61 { 62 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $dirlang . ".php"; 63 } 65 { 66 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/admin_" . $module . ".php"; 67 } 69 { 70 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php"; 71 } 73 { 74 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php"; 75 }getcomment.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 312 lines
1<?php 2 167 { 168 $base_url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=getcomment&list_comment=" . $id; 169 196 } 197 $post_name = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=users&" . NV_OP_VARIABLE . "=edit&userid=" . $row['post_id'] . "\">" . $post_name . "</a>"; 198 } 247 'admin_reply' => $admin_reply, // 248 'edit_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=comment&edit=1&id=" . $row['id'], // 249 'del_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=comment" 255 $in = array_keys( $users ); 256 $in = array_unique( $in ); 257 $in = implode( ",", $in ); 283 $in = array_keys( $admins ); 284 $in = array_unique( $in ); 285 $in = implode( ",", $in );admin_functions.php http://wordcraft.googlecode.com/svn/trunk/ | PHP | 211 lines
1<?php 2 13 14require_once "../include/url.php"; 15 29 30 if($exit) require_once "./header.php"; 31 33 <div class="notice_error"> 34 <?php echo htmlspecialchars($error_message, ENT_COMPAT, "UTF-8"); ?> 35 </div> 35 </div> 36 <?php 37 37 38 if($exit) require_once "./footer.php"; 39atom.php http://textpattern.googlecode.com/svn/development/4.x/ | PHP | 435 lines
1<?php 2 103 104 $section = ($section ? array_slice(array_unique(do_list($section)), 0, $feed_filter_limit) : array()); 105 $category = ($category ? array_slice(array_unique(do_list($category)), 0, $feed_filter_limit) : array()); 393{ 394 if (version_compare(phpversion(), "5.0.0", ">=")) { 395 $str = html_entity_decode($toUnicode, ENT_QUOTES, "UTF-8");survey_publication_mailer_form.class.php https://bitbucket.org/chamilo/chamilo-app-survey-dev/ | PHP | 144 lines
1<?php 2namespace application\survey; 41 $attributes = array(); 42 $attributes['search_url'] = Path :: get(WEB_PATH) . 'group/php/xml_feeds/xml_group_feed.php'; 43 $locale = array(); 136 } 137 $user_ids = array_unique($group_user_ids); 138 }PluginsAbstract.php https://bitbucket.org/chamilo/chamilo/ | PHP | 289 lines
1<?php 2/** 4 * 5 * PHP Version 5.3.0 6 * 38 * 39 * @category PHP_CodeBrowser 40 * @package PHP_CodeBrowser 43 * @copyright 2007-2010 Mayflower GmbH 44 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 45 * @version SVN: $Id$ 45 * @version SVN: $Id$ 46 * @link http://www.phpunit.de/ 47 * @since File available since 0.1.0 52 * 53 * @category PHP_CodeBrowser 54 * @package PHP_CodeBrowserdata.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 247 lines
1<?php 2 36 } 37 $allow_sitelangs = array_unique( $allow_sitelangs ); 38 $query = "UPDATE `" . NV_CONFIG_GLOBALTABLE . "` SET `config_value` = " . $db->dbescape( implode( ",", $allow_sitelangs ) ) . " WHERE `lang`='sys' AND `module` = 'global' AND `config_name` = 'allow_sitelangs'"; 42 $contents = "<br><br><br><p align=\"center\">" . $lang_module['nv_setting_save'] . "</p>"; 43 $contents .= "<META HTTP-EQUIV=\"refresh\" content=\"1;URL=" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "\">"; 44 include ( NV_ROOTDIR . "/includes/header.php" ); 45 echo nv_admin_theme( $contents ); 46 include ( NV_ROOTDIR . "/includes/footer.php" ); 47 exit(); 58 $global_config['site_theme'] = $site_theme; 59 require_once ( NV_ROOTDIR . '/includes/sqldata.php' ); 60 $sql_create_table = nv_create_table_sys( $keylang ); 75 76 require_once ( NV_ROOTDIR . "/" . NV_ADMINDIR . "/modules/modules/functions.php" ); 77reflection_php5.php git://github.com/moodle/moodle.git | PHP | 381 lines
1<?php 2/** 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 71 /** 72 * Needed to select the autoload feature in PHP5 73 * for classes created dynamically. 94 function getMethods() { 95 return array_unique(get_class_methods($this->_interface)); 96 }create.class.php git://github.com/modxcms/revolution.git | PHP | 376 lines
1<?php 2/* 70 $contexts = is_array($contexts) ? $contexts : explode(',',$contexts); 71 $contexts = array_unique($contexts); 72 116 $users = is_array($users) ? $users : explode(',',$users); 117 $users = array_unique($users); 118 foreach ($users as $userKey) { 201 $resourceGroupNames = is_array($resourceGroupNames) ? $resourceGroupNames : explode(',',$resourceGroupNames); 202 $resourceGroupNames = array_unique($resourceGroupNames); 203 276 $categoryNames = is_array($categoryNames) ? $categoryNames : explode(',',$categoryNames); 277 $categoryNames = array_unique($categoryNames); 278request.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 239 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: request.php 3917 2009-01-21 03:06:22Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 50 { 51 if (PHP_SAPI === 'cli') 52 { 125 // Load q values for all given content types 126 foreach (array_unique($types) as $type) 127 {EventManager.php git://github.com/zendframework/zf2.git | PHP | 471 lines
1<?php 2/** 142 if (is_array($identifiers) || $identifiers instanceof \Traversable) { 143 $this->identifiers = array_unique((array) $identifiers); 144 } elseif ($identifiers !== null) { 158 if (is_array($identifiers) || $identifiers instanceof \Traversable) { 159 $this->identifiers = array_unique($this->identifiers + (array) $identifiers); 160 } elseif ($identifiers !== null) { 160 } elseif ($identifiers !== null) { 161 $this->identifiers = array_unique($this->identifiers + array($identifiers)); 162 } 257 * @param string $event 258 * @param callback $callback PHP callback 259 * @param int $priority If provided, the priority at which to register the callbackhtml.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 510 lines
1<?php 2/** 147 148 $this->_links = (isset($data['links']) && !empty($data['links']) && is_array($data['links'])) ? array_unique(array_merge($this->_links, $data['links'])) : $this->_links; 149 $this->_styleSheets = (isset($data['styleSheets']) && !empty($data['styleSheets']) && is_array($data['styleSheets'])) ? array_merge($this->_styleSheets, $data['styleSheets']) : $this->_styleSheets; 171 172 $this->_custom = (isset($data['custom']) && !empty($data['custom'])&& is_array($data['custom'])) ? array_unique(array_merge($this->_custom, $data['custom'])) : $this->_custom; 173 } 179 * ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.) 180 * Typical tag: <link href="index.php" rel="Start"> 181 *magictoolbox.installer.magento.class.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 265 lines
1<?php 2 /** 5 6 require_once(dirname(__FILE__) . '/magictoolbox.installer.core.class.php'); 7 32 // include core magento file (load front page) 33 include('index.php'); 34 ob_end_clean(); 101 $this->setStatus('check', 'place'); 102 if(!is_dir($this->dir . '/app') && !file_exists($this->dir . '/index.php')) { 103 $this->setError('Wrong location: please upload the files from the ZIP archive to the Magento store directory.'); 142 $this->setError('Please check write access for following files and/or dirrectories of your Magento store:'); 143 $this->setError(array_unique($wrang), ' - '); 144 return false;template_user_form.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 300 lines
1<?php 2namespace repository\content_object\survey; 84 $attributes = array(); 85 $attributes['search_url'] = Path :: get(WEB_PATH) . 'common/libraries/php/xml_feeds/xml_user_group_feed.php'; 86 $locale = array(); 103 $label = $labels[0] . ' ' . $labels[1]; 104 $url = Path :: get_repository_content_object_path(true) . 'survey/php/xml_feeds/xml_context_feed.php?context_type=' . $type; 105 160 $user_ids = array_merge($user_ids, $users); 161 $user_ids = array_unique($user_ids); 162 }OperatorSpacingSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 230 lines
13 * @version CVS: $Id: OperatorSpacingSniff.php 291903 2009-12-09 00:55:05Z squiz $ 14 * @link http://pear.php.net/package/PHP_CodeSniffer 15 */ 26 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) 27 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence 28 * @version Release: 1.2.2 28 * @version Release: 1.2.2 29 * @link http://pear.php.net/package/PHP_CodeSniffer 30 */ 59 * 60 * @param PHP_CodeSniffer_File $phpcsFile The current file being checked. 61 * @param int $stackPtr The position of the current token in the 65 */ 66 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 67 {search.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 286 lines
1<?php 2/** 2/** 3 * @version 1.5 stable $Id: search.php 1767 2013-09-18 17:46:46Z ggppdk $ 4 * @package Joomla 117 // Get the field ids of the fields removed from searching 118 $del_fieldids = array_unique( array_merge(array_keys($nse_fields), array_keys($nsp_fields), array_keys($fields)) ) ; 119 } else { 282 $msg = JText::_('FLEXI_ITEMS_PURGED'); 283 $this->setRedirect('index.php?option=com_flexicontent&view=search', $msg); 284 }search.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 286 lines
1<?php 2/** 2/** 3 * @version 1.5 stable $Id: search.php 1773 2013-09-25 22:52:18Z ggppdk $ 4 * @package Joomla 117 // Get the field ids of the fields removed from searching 118 $del_fieldids = array_unique( array_merge(array_keys($nse_fields), array_keys($nsp_fields), array_keys($fields)) ) ; 119 } else { 282 $msg = JText::_('FLEXI_ITEMS_PURGED'); 283 $this->setRedirect('index.php?option=com_flexicontent&view=search', $msg); 284 }upload.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 17{ 18 Header( "Location: " . nv_url_rewrite( NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, true ) ); 19 exit(); 25{ 26 Header( "Location: " . nv_url_rewrite( NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, true ) ); 27 exit(); 34{ 35 @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" ); 36 40 { 41 Header( "Location: " . nv_url_rewrite( NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, true ) ); 42 exit(); 81 $linkdirect = array_map( "trim", $linkdirect ); 82 $linkdirect = array_unique( $linkdirect ); 83step_7.php git://github.com/forkcms/forkcms.git | PHP | 470 lines
47 // start generating PHP 48 $value = '<?php' . "\n"; 49 $value .= '/**' . "\n"; 97 // store 98 SpoonFile::setContent(PATH_WWW . '/' . $application . '/cache/locale/' . $language . '.php', $value); 99 } 125 $configurationFiles = array( 126 'globals.base.php' => 'globals.php', 127 'globals_frontend.base.php' => 'globals_frontend.php', 127 'globals_frontend.base.php' => 'globals_frontend.php', 128 'globals_backend.base.php' => 'globals_backend.php' 129 ); 150 // write the file 151 SpoonFile::setContent(PATH_WWW . '/backend/cache/config/config.php', $globalsContent); 152 SpoonFile::setContent(PATH_WWW . '/frontend/cache/config/config.php', $globalsContent);system.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 268 lines
1<?php 2 11$page_title = $lang_module['global_config']; 12if ( defined( 'NV_EDITOR' ) ) require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 13 21{ 22 if ( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) ) 23 { 103 } 104 $my_domains = array_unique( $my_domains ); 105 $array_config_global['my_domains'] = implode( ",", $my_domains ); 134 { 135 require_once ( NV_ROOTDIR . "/includes/rewrite.php" ); 136 $errormess = nv_rewrite_change( $array_config_global ); 154 { 155 Header( 'Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass() ); 156 exit();CodeCoverage.php git://github.com/sebastianbergmann/php-code-coverage.git | PHP | 540 lines
54 * @version Release: @package_version@ 55 * @link http://github.com/sebastianbergmann/php-code-coverage 56 * @since Class available since Release 1.0.0 115 */ 116 public function __construct(PHP_CodeCoverage_Driver $driver = NULL, PHP_CodeCoverage_Filter $filter = NULL) 117 { 122 if ($filter === NULL) { 123 $filter = new PHP_CodeCoverage_Filter; 124 } 277 278 else if ($id instanceof PHPUnit_Extensions_PhptTestCase) { 279 $id = $id->getName(); 486 } else { 487 $tokens = new PHP_Token_Stream($uncoveredFile); 488 }field.taglist.php git://github.com/symphonycms/symphony-2.git | PHP | 743 lines
1<?php 2/** 219 220 return array_unique($values); 221 }content.class.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 925 lines
1<?php 2/** 55 $args->rss_urls = array(); 56 $rss_urls = array_unique(array($args->rss_url0,$args->rss_url1,$args->rss_url2,$args->rss_url3,$args->rss_url4)); 57 for($i=0,$c=count($rss_urls);$i<$c;$i++)frames.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: frames.php 1672 2008-03-02 04:47:34Z edwardzyang $ 7 */ 11 */ 12require_once(dirname(__FILE__) . '/page.php'); 13require_once(dirname(__FILE__) . '/user_agent.php'); 401 } 402 return array_values(array_unique($urls)); 403 }editor.html http://xe-core.googlecode.com/svn/trunk/ | HTML | 688 lines
15<!--// ?? ?? ?? ?? --> 16<!--@if(file_exists(_XE_PATH_.'modules/material/material.class.php'))--> 17 {@$material_exists = true} 24{@$external_components=array_keys($drComponentList)} 25{@$enable_tool=array_unique(array_merge($cookie_tool, $default_tool, (array)$external_components))} 26sfToolkit.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 817 lines
1<?php 2 18 * @author Sean Kerr <sean@code-box.org> 19 * @version SVN: $Id: sfToolkit.class.php 10833 2008-08-13 11:33:13Z fabien $ 20 */ 38 39 $pattern = '/(.*?)\.(class|interface)\.php/i'; 40 174 /** 175 * Strips comments from php source code 176 * 176 * 177 * @param string $source PHP source code. 178 * 231 232 // code from php at moechofe dot com (array_merge comment on php.net) 233 /*class_func.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 845 lines
1<?php 2 7 * @author ls_admin 8 * @version $Id: class_func.php 2359 2012-04-28 07:42:54Z Jochen.Jung $ 9 * @access public 12 13// Rewrite PHP's htmlspecialchars for ' is replaced by ', instead of ' 14function htmlspecchars ($string, $quote_style=ENT_COMPAT, $format=null) { 30 $url_array = parse_url($_SERVER['HTTP_REFERER']); 31 $this->internal_referer = "index.php?".$url_array['query'].$url_array['fragment']; 32 } 77 function str2time($strStr, $strPattern = 'Y-m-d H:i:s') { 78 // an array of the valide date characters, see: http://php.net/date#AEN21898 79 $arrCharacters = array( 93 // transform the delimiters array to a string 94 $strDelimiters = quotemeta(implode('', array_unique($arrDelimiters))); 95content.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 803 lines
1<?php 2 11{ 12 require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 13} 60{ 61 $catids = array_unique( $nv_Request->get_typed_array( 'catids', 'post', 'int', array() ) ); 62 $id_block_content = array_unique( $nv_Request->get_typed_array( 'bids', 'post', 'int', array() ) ); 238 { 239 require_once ( NV_ROOTDIR . "/includes/class/image.class.php" ); 240filequeue.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 693 lines
1<?php 2 19 { 20 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=filequeue" ); 21 exit(); 28 { 29 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=filequeue" ); 30 exit(); 140 $links = array_map( "trim", $links ); 141 $links = array_unique( $links ); 142 167 { 168 $array['linkdirect'] = array_unique( $array['linkdirect'] ); 169 } 346 347 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=filequeue" ); 348 exit();main.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 597 lines
1<?php 2 25 { 26 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 27 exit(); 36 { 37 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 38 exit(); 115 $links = array_map( "trim", $links ); 116 $links = array_unique( $links ); 117 142 { 143 $array['linkdirect'] = array_unique( $array['linkdirect'] ); 144 } 245 246 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 247 exit();find_tested.php git://github.com/infusion/PHP.git | PHP | 222 lines
5 6Usage: php find_tested.php [path_to_test_files] ([extension]) 7 66 67get_phpt_files($extension_test_path, $count, $phpt_files); 68 85 86 foreach($phpt_files as $phpt_file) { 87 $tested_functions = extract_tests($phpt_file); 177 178function get_phpt_files($dir, &$phpt_file_count, &$all_phpt) 179{ 184 if(is_dir($path) == true) { 185 get_phpt_files($path , $phpt_file_count , $all_phpt); 186 } else {tags.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 399 lines
1<?php 2/** 179 // remove identical where clauses 180 $wheres = array_unique($wheres); 181 199 // remove identical join clauses 200 $joins = array_unique($joins); 201ajax.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 425 lines
15 ob_start(); 16 require(CLASS_DIR.'sinfo.php'); 17 ob_end_clean(); 29 case 'linkcheck': 30 require_once(CLASS_DIR.'linkchecker.php'); 31 $glinks = array(); 110 $post = array('opt'=>'check_log','args%5Baid%5D'=>$args[1],'args%5Blid%5D'=>$args[2],'&args%5Boid%5D'=>$args[3], 'args%5Bref%5D'=>''); 111 $L = 'http://bc.vc/fly/ajax.fly.php'; 112 $page = curl($L, $post); 212 if ($l && !$skip && preg_match('@^https?://(?:[^/]+\.)?mediafire\.com/(?:(?:imageview\.php)|(?:view/))?\?(?:quickkey=)?(\w+)@i', $link, $m)) { 213 $page = curl('http://www.mediafire.com/api/file/get_info.php?quick_key='.$m[1],0,0,0,0,0); 214 $link = 'http://www.mediafire.com/?'.$m[1]; 350 echo "<div style='text-align:center;'>\n"; 351 echo "<br /><form action='".((($pos = strrpos($_SERVER['SCRIPT_NAME'], '/')) !== false) ? substr($_SERVER['SCRIPT_NAME'], 0, $pos + 1).'audl.php?GO=GO' : 'audl.php?GO=GO')."' method='POST' >\n"; 352 echo "<input type='hidden' name='links' value='" . $links . "'>\n";XML.php https://code.google.com/p/molinos-cms/ | PHP | 647 lines
1<?php 2/** 110 $v = preg_split('/\s+/', $v, -1, PREG_SPLIT_NO_EMPTY); 111 $v = join(' ', array_unique($v)); 112 } 387 388 file_put_contents('entities.php', '<?php return ' . var_export($result, true) . ';'); 389 }clientscripts.php http://smartbook.googlecode.com/svn/trunk/ | PHP | 575 lines
9 * <code> 10 * <?php 11 * $packages = array( 21 * 22 * clientscripts.php?js=package1 23 * 75/** 76 * @param string packages.php filename 77 * @param array packages requests 233/** 234 * @return string 'x-gzip' or 'gzip' if php supports gzip and browser supports gzip response, null otherwise. 235 */ 255/** 256 * jsmin.php - PHP implementation of Douglas Crockford's JSMin. 257 *sparql_read5.php https://code.google.com/p/s3db/ | PHP | 1853 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 46 if($vars[0]) { 47 $vars = array_unique($vars[0]); 48 $sparql_vars = implode(" ",$vars); 77 78 #$queryModel = rdf2php($rdf); 79 #$data = $queryModel->sparqlQuery($sparql); 140 ##Remove repeated queries 141 #$S3QL=array_unique($S3QL); 142 #$S3QL = array_values($S3QL);sparql_read7.php https://code.google.com/p/s3db/ | PHP | 2081 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 60 if($vars[0]) { 61 $vars = array_unique($vars[0]); 62 $sparql_vars = implode(" ",$vars); 72 #Validate the query first 73 include_once(RDFAPI_INCLUDE_DIR."sparql/SparqlParser.php"); 74 103 104 #$queryModel = rdf2php($rdf); 105 #$data = $queryModel->sparqlQuery($sparql);sparql_read.php https://code.google.com/p/s3db/ | PHP | 1786 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 46 if($vars[0]) { 47 $vars = array_unique($vars[0]); 48 $sparql_vars = implode(" ",$vars); 71 72 #$queryModel = rdf2php($rdf); 73 #$data = $queryModel->sparqlQuery($sparql); 125 ##Remove repeated queries 126 $S3QL=array_unique($S3QL); 127class.user.group.keyring.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 0 lines
1<?php 2 32 "columns" => array( 33 "group_id" => array( "php"=>"int", "sql"=>"smallint", "format"=>"%d", "width"=>null, "flags"=>"UNSIGNED NOT NULL", "auto_inc"=>false, "default"=>null, 34 // This forces every group_id + key_id combination to be unique 35 "index"=>array("name"=>"groupid_keyid", "col"=>array("group_id", "key_id"), "index"=>"PRIMARY"), "this_row"=>true), 36 "key_id" => array( "php"=>"int", "sql"=>"smallint", "format"=>"%d", "width"=>null, "flags"=>"UNSIGNED NOT NULL", "auto_inc"=>false, "default"=>null, "index"=>true) 37 ) 40 41 // PHP allows this: $foo = new $class_name; $result = $foo::$struct; but does not allow this: $result = $class_name::$struct; 42 // or this: $result = $class_name::get_struct(); ...so we have to do this: $result = call_user_func( array($class_name,'_struct') ); 330 331 // Merge the groups' keyrings. There is no PHP array function that will take 332 // two or more numeric-keyed arrays and merge them into a single array containing 333 // their combined keys with no duplicates. If is possible to merge with duplicates 334 // then use array_unique() to remove them, but it would be an N^2 process on an 335 // unsorted aray. The algorithm below is probably faster.PhabricatorFeedStoryPublisher.php git://github.com/facebook/phabricator.git | PHP | 134 lines
1<?php 2 73 $conn = $ref->establishConnection('w'); 74 foreach (array_unique($this->relatedPHIDs) as $phid) { 75 $sql[] = qsprintf( 111 // On 32-bit machines, we have to get creative. 112 if (PHP_INT_SIZE < 8) { 113 // We're on a 32-bit machine.Validation.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 859 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 4 * 5 * $Id: Validation.php 3127 2008-07-16 14:43:52Z Shadowhand $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 109 // All the fields that are being validated 110 $all_fields = array_unique(array_merge 111 ( 438 // All the fields that are being validated 439 $all_fields = array_unique(array_merge 440 (Validation.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 826 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Validation.php 3917 2009-01-21 03:06:22Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 110 // All the fields that are being validated 111 $fields = array_unique(array_merge 112 (HeraldTranscriptController.php git://github.com/facebook/phabricator.git | PHP | 536 lines
1<?php 2 64 $phids = array_merge($filter, $this->getTranscriptPHIDs($xscript)); 65 $phids = array_unique($phids); 66 $phids = array_filter($phids);DifferentialCommentEditor.php git://github.com/facebook/phabricator.git | PHP | 554 lines
1<?php 2 333 334 $added_reviewers = array_unique($added_reviewers); 335DifferentialRevisionViewController.php git://github.com/facebook/phabricator.git | PHP | 672 lines
1<?php 2 124 $object_phids = array_merge($object_phids, array_mergev($aux_phids)); 125 $object_phids = array_unique($object_phids); 126PhabricatorMetaMTAMail.php git://github.com/facebook/phabricator.git | PHP | 545 lines
1<?php 2 91 public function addTos(array $phids) { 92 $phids = array_unique($phids); 93 $this->setParam('to', $phids); 97 public function addCCs(array $phids) { 98 $phids = array_unique($phids); 99 $this->setParam('cc', $phids);PhabricatorObjectHandleData.php git://github.com/facebook/phabricator.git | PHP | 494 lines
1<?php 2 23 public function __construct(array $phids) { 24 $this->phids = array_unique($phids); 25 } 135 $image_phids = mpull($users, 'getProfileImagePHID'); 136 $image_phids = array_unique(array_filter($image_phids)); 137 241 $repositories = id(new PhabricatorRepository())->loadAllWhere( 242 'id in (%Ld)', array_unique($repository_ids)); 243 $callsigns = mpull($repositories, 'getCallsign');entities.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 3761 lines
1<?php 2/** 18/// Require the locatable interface 19// @todo Move this into start.php? 20require_once('location.php'); 160 // arrays are stored with multiple enties per name 161 $metadata_names = array_unique($metadata_names); 162_phpbuiltins.py http://crunchy.googlecode.com/svn/trunk/ | Python | 3390 lines
2""" 3 pygments3.lexers._phpbuiltins 4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 This file loads the function names and their modules from the 7 php webpage and generates itself. 8 91 'array_uintersect_uassoc', 92 'array_unique', 93 'array_unshift',EntityGenerator.php git://github.com/doctrine/doctrine2.git | PHP | 1950 lines
1<?php 2 23use function array_sum; 24use function array_unique; 25use function array_values; 56use const DIRECTORY_SEPARATOR; 57use const PHP_EOL; 58use const PHP_VERSION_ID; 75/** 76 * Generic class used to generate PHP5 entity classes from ClassMetadataInfo instances. 77 * 77 * 78 * [php] 79 * $classes = $em->getClassMetadataFactory()->getAllMetadata(); 107 /** 108 * The extension to use for written php files. 109 *mysql.engine.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 555 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 240 // No need to parse the same variables multiple times, is there? 241 $matches[0] = array_unique($matches[0]); 242members.class.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 1195 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 89 90 $members = array_unique($members); 91 }model.php git://github.com/forkcms/forkcms.git | PHP | 438 lines
1<?php 2 198 // found any? merge with original term 199 if($synonyms) return array_unique(array_merge(array($term), explode(',', $synonyms))); 200addvideo.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 422 lines
1<?php 2 153 $list_old_cat[] = $array_old['theloai']; 154 $list_old_cat = array_unique( $list_old_cat ); 155 158 $list_new_cat[] = $array['theloai']; 159 $list_new_cat = array_unique( $list_new_cat ); 160 189 nv_del_moduleCache( $module_name ); 190 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=videoclip" ); 191 die(); 243 $list_new_cat[] = $array['theloai']; 244 $list_new_cat = array_unique( $list_new_cat ); 245 256 nv_del_moduleCache( $module_name ); 257 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=videoclip" ); 258 die();StripTags.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: StripTags.php 14359 2009-03-18 13:24:04Z matthew $ 21 */ 26 */ 27require_once 'Zend/Filter/Interface.php'; 28 187 preg_match_all('/<\!--.*?--\s*>/s' , (string) $valueCopy, $matches); 188 $comments = array_unique($matches[0]); 189 foreach ($comments as $k => $v) {ItemController.php http://rsslounge.googlecode.com/svn/trunk/ | PHP | 358 lines
1<?php 2 263 $this->_helper->json(true); 264 $items = array_unique($items); 265CronParser.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 604 lines
1<?php /* $Id: CronParser.php,v 1.7 2005/09/12 01:04:05 ns Exp $ */ 2 25$cron_str0 = "0,12,30-51 3,21-23,10 1-25 9-12,1 0,3-7"; 26require_once("CronParser.php"); 27$cron = new CronParser(); 136 } 137 $ret = array_unique($ret); 138 sort($ret);search.php http://miacms.googlecode.com/svn/trunk/ | PHP | 250 lines
1<?php 2/** 3 * @package MiaCMS 4 * @author MiaCMS see README.php 5 * @copyright see README.php 5 * @copyright see README.php 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 59 $search_ignore = array(); 60 @include "$mosConfig_absolute_path/language/$mosConfig_lang.ignore.php"; 61 103 $sanitizedsearch = array(); 104 $words = array_unique( preg_split( '/\s+|,/', $searchword ) ); 105 foreach ($words as $word) {media.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 231 lines
1<?php 2/** 28function media_localized_images($content) { 29 include_file(COM_PATH.'/system/httplib.php'); 30 if (preg_match_all('/<img[^>]+src\s*=([^\s\>]+)[^>]*>/i', $content, $matchs)) { 31 $suffixs = C('UPIMG-Exts'); 32 $matchs[1] = array_unique($matchs[1]); 33 foreach ($matchs[1] as $url) {setting.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 199 lines
1<?php 2 24 $contents = "<br><br><br><p align=\"center\">" . $lang_module['nv_setting_save'] . "</p>"; 25 $contents .= "<META HTTP-EQUIV=\"refresh\" content=\"2;URL=" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=setting\">"; 26 include ( NV_ROOTDIR . "/includes/header.php" ); 27 echo nv_admin_theme( $contents ); 28 include ( NV_ROOTDIR . "/includes/footer.php" ); 29 exit(); 44 45 $allow_adminlangs = array_unique( $allow_adminlangs ); 46 46 47 $allow_sitelangs_temp = array_unique( $allow_sitelangs ); 48 $allow_sitelangs = array(); 50 { 51 if ( file_exists( NV_ROOTDIR . "/language/" . $lang_temp . "/global.php" ) ) 52 {Generator.php git://github.com/zendframework/zf2.git | PHP | 343 lines
1<?php 2/** 73 /** 74 * Construct, configure, and return a PHP class file code generation object 75 * 92 93 $fetched = array_unique(array_merge($definitions->getClasses(), $im->getAliases())); 94 266 267 // Create PHP file code generation object 268 $classFile = new FileGenerator(); 312 /** 313 * Create a PhpMethod code generation object named after a given alias 314 *ezproxy-export.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 287 lines
1<?php 2 10 * @license http://www.gnu.org/licenses/ 11 * @version $Id: ezproxy-export.php 1552 2010-12-07 22:54:43Z rochkind@jhu.edu $ 12 * @package Xerxes 90 91 $groups = array_unique(array_merge( $groups, $entry['group_restrictions'])); 92 }tag_model.php http://emlog.googlecode.com/svn/trunk/ | PHP | 149 lines
1<?php 2/** 4 * @copyright (c) Emlog All Rights Reserved 5 * $Id: tag_model.php 2018 2011-08-29 16:02:06Z emloog $ 6 */ 77 $tag = !empty($tagStr) ? explode(',', $tagStr) : array(); 78 $tag = array_filter(array_unique($tag)); 79 foreach ($tag as $tagName) 110 } 111 $dif_tag = findArray(array_filter(array_unique($tag)),$old_tag); 112 for($n = 0; $n < count($dif_tag); $n++)Rule.php git://github.com/peteboere/css-crush.git | PHP | 375 lines
1<?php 2/** 93 } 94 $functions = array_unique( $out ); 95 }SearchClass.XVWeb.class.php http://xvweb.googlecode.com/svn/trunk/ | PHP | 148 lines
1<?php 2 103 } 104 $this->text_ary = array_merge($this->text_ary, array_unique(preg_split('#\s+#', $keyword))); 105 for ( $i = 0; $i < count($this->text_ary); $i++ )add_theme_template.php git://github.com/forkcms/forkcms.git | PHP | 313 lines
1<?php 2 182 // add errors 183 if($errors) $this->frm->addError(implode('<br />', array_unique($errors))); 184 } 278 // add errors 279 if($errors) $this->frm->getField('format')->addError(implode('<br />', array_unique($errors))); 280 }install_check.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 13{ 14 require_once NV_ROOTDIR . '/includes/class/pclzip.class.php'; 15 $zip = new PclZip( $filename ); 44 $("#step1").html(""); 45 $("#step1").load("' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&overwrite=' . md5( $filename . $global_config['sitekey'] . session_id() ) . '",function(){ 46 $("#message").hide(); 154 } 155 $error_create_folder = array_unique( $error_create_folder ); 156 if ( ! empty( $error_create_folder ) ) 189 $theme = substr( $ziplistContent[0]['filename'], 0, - 1 ); 190 $nv_redirect = NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=setuplayout&selectthemes=' . $theme; 191 echo "<br /><b>" . $lang_module['autoinstall_theme_unzip_success'] . "</b><br />"; 220 $("#step1").html(""); 221 $("#step1").load("' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=install_check",function(){ 222 $("#message").hide();system.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 31{ 32 if (file_exists(NV_ROOTDIR . "/language/" . $lang_i . "/global.php")) 33 { 101 } 102 $my_domains = array_unique($my_domains); 103 $array_config_global['my_domains'] = implode(",", $my_domains); 148 { 149 Header('Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass()); 150 exit(); 232{ 233 $xtpl->assign('CONFIG_LANG_GEO', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=language&op&' . NV_OP_VARIABLE . '=countries'); 234 $xtpl->assign('CHECKED_LANG_GEO', ($global_config['lang_geo'] == 1) ? ' checked ' : ''); 282 283include (NV_ROOTDIR . "/includes/header.php"); 284echo nv_admin_theme($content);apiChar.php http://ooe.googlecode.com/svn/trunk/ | PHP | 544 lines
1<?php 2 299 } 300 $ids = array_unique($ids); 301 $names = new apiRequest('eve/CharacterName.xml.aspx', null, array('ids' => implode(',', $ids)));mng_set_non_specific.php http://prohits.googlecode.com/svn/trunk/ | PHP | 545 lines
30 31require("../common/site_permission.inc.php"); 32require("../common/common_fun.inc.php"); 32require("../common/common_fun.inc.php"); 33require("common_functions.inc.php"); 34require_once("../msManager/is_dir_file.inc.php"); 144get_NS_geneID($NSfilteIDarr,$frm_NS_group_id); 145$NSlistAarr = array_unique($NSfilteIDarr); 146$genePropertyArr = array(); 194 } 195 var pop_file = "./import_NS_data.php?show=first_time&frm_group_name_s=" + frm_NS_group_id; 196 popwin(pop_file,650,395,'w_name') 271 272 var file = 'pop_proteinInfo.php?GeneID=' + GeneID + '&LocusTag=' + LocusTag + '&TaxID=' + TaxID + '&GeneName=' + GeneName + '&pageName=mng_set'; 273 if(TaxID == ""){search.php http://prohits.googlecode.com/svn/trunk/ | PHP | 543 lines
48 49require("../common/site_permission.inc.php"); 50include("common_functions.inc.php"); 50include("common_functions.inc.php"); 51require("../common/common_fun.inc.php"); 52 55 56require("site_header.php"); 57 164 } 165 $hit_selected_bait_arr = array_unique($hit_selected_bait_arr); 166 $hit_selected_band_arr = array_unique($hit_selected_band_arr); 166 $hit_selected_band_arr = array_unique($hit_selected_band_arr); 167 $TPP_hit_selected_bait_arr = array_unique($TPP_hit_selected_bait_arr); 168 $TPP_hit_selected_band_arr = array_unique($TPP_hit_selected_band_arr);phpgettext.catalog.php http://miacms.googlecode.com/svn/trunk/ | PHP | 454 lines
1<?php 2/** 5 * @copyright Copyright (c) 2005 Carlos Souza <csouza@web-sense.net> 6 * @package PHPGettext 7 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 7 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 8 * @link http://phpgettext.web-sense.net 9 */ 16 17require_once(dirname(__FILE__).'/phpgettext.message.php'); 18class PHPGettext_Catalog 28 var $strings = array(); 29 function PHPGettext_Catalog($name, $path) 30 { 152 { 153 $entry = new PHPGettext_Message($msgid, $msgid_plural); 154 if (!is_null($msgstr)) $entry->setmsgstr($msgstr);survey_raw_excel_exporter.class.php https://bitbucket.org/chamilo/chamilo-app-survey-dev/ | PHP | 384 lines
1<?php 2namespace application\survey; 41 42use PHPExcel; 43use PHPExcel_Style_Alignment; 43use PHPExcel_Style_Alignment; 44use PHPExcel_Style_Fill; 45use PHPExcel_IOFactory; 45use PHPExcel_IOFactory; 46use PHPExcel_Style_Font; 47use PHPExcel_Style_Color; 51 52require_once Path :: get_plugin_path() . 'phpexcel/PHPExcel.php'; 53 92 93 $excel = new PHPExcel(); 94send_mail.class.php https://bitbucket.org/chamilo/chamilo-app-survey-dev/ | PHP | 412 lines
1<?php 2namespace application\survey; 73 74 $invitee_count = count(array_unique($this->invitees)); 75 $started_count = count(array_unique($this->started)); 75 $started_count = count(array_unique($this->started)); 76 $finished_count = count(array_unique($this->finished)); 77 $started_and_finished_users = array_merge($this->started, $this->finished); 89 $this->invitees = SurveyRights :: get_allowed_users(SurveyRights :: RIGHT_EXPORT_RESULT, $this->publication_id, SurveyRights :: TYPE_PUBLICATION); 90 $invitee_count = count(array_unique($this->invitees)); 91 $users = array(); 96 $this->invitees = SurveyRights :: get_allowed_users(SurveyRights :: RIGHT_REPORTING, $this->publication_id, SurveyRights :: TYPE_PUBLICATION); 97 $invitee_count = count(array_unique($this->invitees)); 98 $users = array(); 223 224 $mail_user_ids = array_unique($mail_user_ids); 225compare.php http://showslow.googlecode.com/svn/trunk/ | PHP | 322 lines
205 <li> 206 <a href="./?url=<?php echo urlencode($url)?>"><?php echo htmlentities(substr($url, 0, 60))?><?php if (strlen($url) > 60) { ?>...<?php } ?></a><?php 207 208 if (is_null($data[$url][$ranker])) { 209 ?> (no <?php 210 if ($ranker == 'yslow') { echo 'YSlow '; } 263 <div class="addthis_toolbox addthis_default_style" style="margin-right: 10px;"> 264 <a href="http://www.addthis.com/bookmark.php?v=250&username=<?php echo urlencode($addThisProfile)?>" class="addthis_button_compact">Share</a> 265 <span class="addthis_separator">|</span> 276 </div> 277 <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=<?php echo urlencode($addThisProfile)?>"></script> 278 <!-- AddThis Button END --> 290 } 291 ?><span style="font-weight: bold; color: <?php echo $data_to_display[$url]['color'] ?>"><?php echo $url ?></span> (0-100); 292 <?phplabels.php http://phc.googlecode.com/svn/trunk/ | PHP | 299 lines
1<?php 2/* 2/* 3 * phc -- the open source PHP compiler 4 * See doc/license/README.license for licensing information 247 248// returns a list of all php scripts 249function get_all_scripts() 262 } 263 $result = array_unique($result); 264 return $result; 267 268// returns a list of all the php files within a directory (recursively) 269function get_all_scripts_in_dir($directory) 273 274 $command = "find -L $directory -name \"*.php\""; 275 $result = explode ("\n", trim (`$command`));feeds.php http://rsslounge.googlecode.com/svn/trunk/ | PHP | 404 lines
1<?PHP 2 70 $categoryModel = new application_models_categories(); 71 foreach(array_unique($oldCategories) as $current) 72 $categoryModel->fixPositions($categoryModel->find($current)->current());survey_menu.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 692 lines
1<?php 2namespace repository\content_object\survey; 189 190 $parent_ids = array_unique($parent_ids); 191forum.admin.view.php http://xe-forum.googlecode.com/svn/trunk/ | PHP | 419 lines
1<?php 2 /** 136 } 137 if(is_array($member_list)) $member_list=array_unique($member_list); 138 if(is_array($lastweek_member_list)) $lastweek_member_list=array_unique($lastweek_member_list);underscore.php git://github.com/brianhaveri/Underscore.php.git | PHP | 1120 lines
1<?php 2 3/** 4 * Underscore.php v1.3.1 5 * Copyright (c) 2011 Brian Haveri 5 * Copyright (c) 2011 Brian Haveri 6 * Underscore.php is licensed under the MIT license 7 * Underscore.php was inspired by and borrowed from Underscore.js 7 * Underscore.php was inspired by and borrowed from Underscore.js 8 * For docs, license, tests, and downloads, see: http://brianhaveri.github.com/Underscore.php 9 */ 17 18// Underscore.php 19class __ { 400 $__ = new self; 401 return self::_wrap($__->flatten(array_values(array_unique(call_user_func_array('array_merge', $arrays))))); 402 }action.php http://textmotion.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 18 * @lastmodified $Date: 2008-11-07 12:05:50 +1100 (Fri, 07 Nov 2008) $ 19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 20 * 56 $driver = preg_replace('/[^a-z0-9]/i', '', $driver); 57 return TM_LIB_DIR.'databases/'.$driver.'.php'; 58 } 99 100 $modules = array_unique(array_merge($main, $modules)); 101 207 208 $dbfile = TM_USER_DIR.'conf'.DS.'database.php'; 209 210 $conf = 211'<?php 212Boolean.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 23/** Zend_Search_Lucene_Search_Query */ 24require_once 'Zend/Search/Lucene/Search/Query.php'; 25 26/** Zend_Search_Lucene_Search_Weight_Boolean */ 27require_once 'Zend/Search/Lucene/Search/Weight/Boolean.php'; 28 355 // Check, if all subqueries have been decomposed and all terms has the same boost factor 356 if (count($subqueries) == 0 && count(array_unique($boostFactors)) == 1) { 357 $optimizedQuery = new Zend_Search_Lucene_Search_Query_MultiTerm($terms, $tsigns); 387 $terms = array(); 388 } else if (count($terms) > 1 && count(array_unique($boostFactors)) == 1) { 389 $clause = new Zend_Search_Lucene_Search_Query_MultiTerm($terms, $tsigns);Adapter.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Date.php 2498 2006-12-23 22:13:38Z thomas $ 21 */ 25 */ 26require_once 'Zend/Locale.php'; 27 131 } catch (Zend_Locale_Exception $e) { 132 require_once 'Zend/Translate/Exception.php'; 133 throw new Zend_Translate_Exception("The given Language '{$locale}' does not exist"); 178 $parts = array_merge($parts, $parts2); 179 $parts = array_unique($parts); 180 $prev = ''; 290 } catch (Zend_Locale_Exception $e) { 291 require_once 'Zend/Translate/Exception.php'; 292 throw new Zend_Translate_Exception("The given Language ({$locale}) does not exist");Action.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 21/** Zend_Controller_Action_HelperBroker */ 22require_once 'Zend/Controller/Action/HelperBroker.php'; 23 24/** Zend_Controller_Front */ 25require_once 'Zend/Controller/Front.php'; 26 153 154 require_once 'Zend/View/Interface.php'; 155 if (isset($this->view) && ($this->view instanceof Zend_View_Interface)) { 166 if (!file_exists($baseDir) || !is_dir($baseDir)) { 167 require_once 'Zend/Controller/Exception.php'; 168 throw new Zend_Controller_Exception('Missing base view directory ("' . $baseDir . '")'); 170 171 require_once 'Zend/View.php'; 172 $this->view = new Zend_View(array('basePath' => $baseDir));Adapter.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Date.php 2498 2006-12-23 22:13:38Z thomas $ 21 */ 25 */ 26require_once 'Zend/Locale.php'; 27 169 $parts = array_merge($parts, $parts2); 170 $parts = array_unique($parts); 171 $prev = ''; 266 */ 267 require_once 'Zend/Translate/Exception.php'; 268 throw new Zend_Translate_Exception("The given Language ({$locale}) does not exist"); 277 */ 278 require_once 'Zend/Translate/Exception.php'; 279 throw new Zend_Translate_Exception("The language '{$locale}' has to be added before it can be used.");bindable.php http://skygames.googlecode.com/svn/trunk/ | PHP | 504 lines
1<?php 2/* SVN FILE: $Id: bindable.php 46 2008-05-09 13:39:22Z mgiglesias $ */ 14 * @version $Revision: 46 $ 15 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 16 * @package app 273 if ($Model->findQueryType != 'list' && is_array($query['fields']) && !empty($this->__fields[$Model->alias]) && !empty($query['fields'])) { 274 $query['fields'] = array_unique(array_merge($query['fields'], $this->__fields[$Model->alias])); 275 }AbstractPatternSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 962 lines
34 * @version Release: 1.2.2 35 * @link http://pear.php.net/package/PHP_CodeSniffer 36 */ 198 * 199 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where the 200 * token occured. 207 */ 208 public final function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 209 { 280 * pattern. 281 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where the 282 * token occured. 287 */ 288 protected function processPattern($patternInfo, PHP_CodeSniffer_File $phpcsFile, $stackPtr) 289 {CodeCoverage.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 665 lines
155 */ 156 public function __construct(PHP_CodeCoverage_Driver $driver = NULL, PHP_CodeCoverage_Filter $filter = NULL) 157 { 492 /** 493 * Filters sourcecode files from PHP_CodeCoverage, PHP_TokenStream, 494 * Text_Template, and File_Iterator. 513 514 if (! $this->isFileIteratorTestSuite && (substr($filename, - 17) == 'File/Iterator.php' || substr($filename, - 25) == 'File/Iterator/Factory.php')) 515 { 519 520 if (! $this->isTimerTestSuite && (substr($filename, - 13) == 'PHP/Timer.php')) 521 { 525 526 if (! $this->isTokenStreamTestSuite && (substr($filename, - 13) == 'PHP/Token.php' || substr($filename, - 20) == 'PHP/Token/Stream.php' || substr($filename, - 35) == 'PHP/Token/Stream/CachingFactory.php')) 527 {frames.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 671 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: frames.php 1672 2008-03-02 04:47:34Z edwardzyang $ 7 */ 11 */ 12require_once (dirname(__FILE__) . '/page.php'); 13require_once (dirname(__FILE__) . '/user_agent.php'); 463 } 464 return array_values(array_unique($urls)); 465 }class.dc.meta.php https://bitbucket.org/dotclear/dotclear/ | PHP | 615 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 59 60 return array_unique($res); 61 }flexicontent.fields.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 3300 lines
1<?php 2/** 2/** 3 * @version 1.5 stable $Id: flexicontent.fields.php 1884 2014-04-13 10:38:52Z ggppdk $ 4 * @package Joomla 21// Include com_content helper files, these are needed by some content plugins 22require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); 23require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'query.php'); 25//include constants file 26require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'defineconstants.php'); 27 38 { 39 require_once (JPATH_ADMINISTRATOR.DS.'components/com_flexicontent/defineconstants.php'); 40 JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'tables'); 40 JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'tables'); 41 //require_once("components/com_flexicontent/classes/flexicontent.fields.php"); 42 require_once("components/com_flexicontent/classes/flexicontent.helper.php");relateditems.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 735 lines
1<?php 2/** 2/** 3 * @version 1.0 $Id: relateditems.php 4 * @package Joomla 126 } 127 $catids = array_unique($subcats); 128 } 198 199 require_once(JPATH_ROOT.DS."components".DS."com_flexicontent".DS."classes".DS."flexicontent.categories.php"); 200 $tree = flexicontent_cats::getCategoriesTree();flexicontent.fields.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 3300 lines
1<?php 2/** 2/** 3 * @version 1.5 stable $Id: flexicontent.fields.php 1885 2014-04-14 22:44:11Z ggppdk $ 4 * @package Joomla 21// Include com_content helper files, these are needed by some content plugins 22require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); 23require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'query.php'); 25//include constants file 26require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'defineconstants.php'); 27 38 { 39 require_once (JPATH_ADMINISTRATOR.DS.'components/com_flexicontent/defineconstants.php'); 40 JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'tables'); 40 JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'tables'); 41 //require_once("components/com_flexicontent/classes/flexicontent.fields.php"); 42 require_once("components/com_flexicontent/classes/flexicontent.helper.php");functions.php git://github.com/octo/collectd.git | PHP | 841 lines
1<?php // vim:fenc=utf-8:filetype=php:ts=4 2/* 229 collectd_walk($options); 230 $hosts = array_unique($options['result']); 231 usort($hosts, 'collectd_compare_host'); 251 collectd_walk($options); 252 $plugins = array_unique($options['result']); 253 sort($plugins); 277 collectd_walk($options); 278 $types = array_unique($options['result']); 279 sort($types); 368 if ($r === false || $r != strlen($cmd)) 369 error_log(sprintf("graph.php: Failed to write whole command to unix-socket: %d out of %d written", $r === false ? -1 : $r, strlen($cmd))); 370 372 if ($resp === false) 373 error_log(sprintf("graph.php: Failed to read response from collectd for command: %s", trim($cmd))); 374file.admin.view.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 226 lines
1<?php 2/** 140 // Remove duplication 141 $doc_srls = array_unique($doc_srls); 142 $com_srls = array_unique($com_srls); 142 $com_srls = array_unique($com_srls); 143 $mod_srls = array_unique($mod_srls); 144 // Comment list 223} 224/* End of file file.admin.view.php */ 225/* Location: ./modules/file/file.admin.view.php */ManiphestTransactionSaveController.php git://github.com/facebook/phabricator.git | PHP | 262 lines
1<?php 2 55 if ($err != UPLOAD_ERR_NO_FILE) { 56 $file = PhabricatorFile::newFromPHPUpload( 57 $_FILES['file'], 121 $projects = array_filter($projects); 122 $projects = array_unique($projects); 123 $transaction->setNewValue($projects);Cache.php git://github.com/nette/nette.git | PHP | 415 lines
1<?php 2 168 //clearstatcache(); 169 foreach (array_unique((array) $dp[self::FILES]) as $item) { 170 $dp[self::CALLBACKS][] = array(array(__CLASS__, 'checkFile'), $item, @filemtime($item)); // @ - stat may fail 176 if (isset($dp[self::ITEMS])) { 177 $dp[self::ITEMS] = array_unique((array) $dp[self::ITEMS]); 178 foreach ($dp[self::ITEMS] as $k => $item) { 184 if (isset($dp[self::CONSTS])) { 185 foreach (array_unique((array) $dp[self::CONSTS]) as $item) { 186 $dp[self::CALLBACKS][] = array(array(__CLASS__, 'checkConst'), $item, constant($item));Editor.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 23/** Zend_Dojo_View_Helper_Dijit */ 24require_once 'Zend/Dojo/View/Helper/Dijit.php'; 25 26/** Zend_Json */ 27require_once 'Zend/Json.php'; 28 146 147 return array_unique($modules); 148 }plateWell_class.php http://prohits.googlecode.com/svn/trunk/ | PHP | 278 lines
1<?php 2/*********************************************************************** 109 //------------------------------------------------ 110 // used by band.php 111 //------------------------------------------------ 223 //------------------------------------ 224 //for checkCarryOver.inc.php 225 //fetch all hits in the specified plate 247 //--------------------------------- 248 // used by UploadMDS.php 249 //--------------------------------- 262 //---------------------------------- 263 // used by plate_show.php 264 //---------------------------------- 273 } 274 return array_unique($Plate_ID_arr); 275 }RepositoryservicesController.php https://code.google.com/p/ontowiki/ | PHP | 161 lines
1<?php 2require_once 'Zend/Controller/Action.php'; 2require_once 'Zend/Controller/Action.php'; 3require_once 'OntoWiki/Controller/Component.php'; 4require_once 'OntoWiki/Toolbar.php'; 4require_once 'OntoWiki/Toolbar.php'; 5require_once 'Erfurt/Sparql/SimpleQuery.php'; 6require_once 'Zend/Http/Client.php'; 6require_once 'Zend/Http/Client.php'; 7require_once 'Zend/Json/Encoder.php'; 8require_once 'Zend/Json/Decoder.php'; 16 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 17 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 18 * @version $Id: ServiceController.php 3031 2009-05-05 17:31:06Z norman.heino $ 48 49 require_once 'Erfurt/Sparql/SimpleQuery.php'; 50 if(count($selected_tags)==0){agreement.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 327 lines
1<?php 2namespace application\internship_organizer; 290 291 return array_unique($target_users); 292 }OperatorSpacingSniff.php git://github.com/joomla/joomla-platform.git | PHP | 259 lines
13 * @version CVS: $Id: OperatorSpacingSniff.php 8 2010-11-06 00:40:23Z elkuku $ 14 * @link http://pear.php.net/package/PHP_CodeSniffer 15 */ 28 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) 29 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence 30 * @version Release: 1.3.0RC1 30 * @version Release: 1.3.0RC1 31 * @link http://pear.php.net/package/PHP_CodeSniffer 32 */ 61 * 62 * @param PHP_CodeSniffer_File $phpcsFile The current file being checked. 63 * @param integer $stackPtr The position of the current token in the 67 */ 68 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 69 {AbstractFileDriver.php git://github.com/doctrine/doctrine2.git | PHP | 213 lines
1<?php 2/* 33 * 34 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 35 * @link www.doctrine-project.com 76 { 77 $this->_paths = array_unique(array_merge($this->_paths, $paths)); 78 }post.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 655 lines
1<?php 2/** 125 // ???????? 126 $keywords = array_unique($keywords); 127 // ?????????????HTML 385 'author' => $post['author'], 386 'views' => '<script type="text/javascript" src="'.ROOT.'common/gateway.php?func=post_views&postid='.$post['postid'].'&updated=true"></script>', 387 'comment' => '<script type="text/javascript" src="'.ROOT.'common/gateway.php?func=post_comment&postid='.$post['postid'].'"></script>', 387 'comment' => '<script type="text/javascript" src="'.ROOT.'common/gateway.php?func=post_comment&postid='.$post['postid'].'"></script>', 388 'people' => '<script type="text/javascript" src="'.ROOT.'common/gateway.php?func=post_comment_people&postid='.$post['postid'].'"></script>', 389 'digg' => $post['digg'], 395 'cmt_state' => $post['comments'], 396 'cmt_ajaxinfo' => ROOT.'common/gateway.php?func=post_ajax_comment&postid='.$post['postid'], 397 'cmt_replyurl' => ROOT.'common/gateway.php?func=post_send_comment&postid='.$post['postid'], 412 'path' => ROOT.$post['list']['path'].'/', 413 'count' => '<script type="text/javascript" src="'.ROOT.'common/gateway.php?func=taxonomy_count&listid='.$post['list']['taxonomyid'].'"></script>', 414 );taxonomy.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 790 lines
1<?php 2/** 93 94 include_file(COM_PATH.'/system/keyword.php'); 95 $splitword = new keyword($dicts); 99 // ??keyword.lazycms.com????? 100 include_file(COM_PATH.'/system/httplib.php'); 101 $r = @httplib_get(sprintf('http://keyword.lazycms.com/related_kw.php?title=%s&content=%s', rawurlencode($title), rawurlencode($content)),array( 112 if (!empty($keys)) { 113 $newkeys = array_unique(array_merge($keywords,$keys)); 114 $keywords = $newkeys; 227function taxonomy_get_ids($listid, $listsub = 'me') { 228 $listids = array_unique(explode(',', $listid)); 229 if ($listsub == 'me') { 244 } 245 return array_unique($listids); 246}fulltext_native.php git://github.com/phpbb/phpbb3.git | PHP | 1758 lines
1<?php 2/** 4* @package search 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 22*/ 23class phpbb_search_fulltext_native extends phpbb_search_base 24{ 40 { 41 global $phpbb_root_path, $phpEx, $config; 42 49 { 50 include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx); 51 }salemaker.php http://daocart.googlecode.com/svn/trunk/ | PHP | 557 lines
1<?php 2/** 62 asort($categories_all); 63 $categories_all_string = ',' . implode(',', array_unique($categories_all)) . ','; 64 } else { 234 if(!relatedcheckbox.disabled) { 235<?php 236 if ( (defined('AUTOCHECK')) && (AUTOCHECK == 'True') ) { 267<!-- header //--> 268<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 269<!-- header_eof //--> 300</script> 301 <tr><form name="sale_form" <?php echo 'action="' . zen_href_link(FILENAME_SALEMAKER, zen_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'NONSSL') . '"'; ?> method="post"><?php if ($form_action == 'update') echo zen_draw_hidden_field('sID', $_GET['sID']); ?> 302 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 304 <td class="main"><?php echo TEXT_SALEMAKER_POPUP; ?></td> 305 <td class="main" align="right" valign="top"><br><?php echo (($form_action == 'insert') ? zen_image_submit('button_insert.gif', IMAGE_INSERT) : zen_image_submit('button_update.gif', IMAGE_UPDATE)). ' <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . ($_GET['sID'] > 0 ? '&sID=' . $_GET['sID'] : '')) . '"Source.php git://github.com/simplepie/simplepie.git | PHP | 611 lines
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 */ 200 { 201 return $this->registry->call('Misc', 'array_unique', array($categories)); 202 } 283 { 284 return $this->registry->call('Misc', 'array_unique', array($authors)); 285 } 354 { 355 return $this->registry->call('Misc', 'array_unique', array($contributors)); 356 }Unit_Test.php git://github.com/gallery/gallery3.git | PHP | 551 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Unit_Test.php 4367 2009-05-27 21:23:57Z samsoir $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 83 // Take out duplicate test paths after normalization 84 $this->paths = array_unique($paths); 85 259 260 if (PHP_SAPI == 'cli') 261 {database_internship_organizer_data_manager.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 1868 lines
1<?php 2namespace application\internship_organizer; 27 28require_once dirname(__FILE__) . '/../internship_organizer_data_manager.interface.php'; 29 29 30require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'category.class.php'; 31require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'location.class.php'; 31require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'location.class.php'; 32require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'category_rel_location.class.php'; 33require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'category_rel_period.class.php'; 33require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'category_rel_period.class.php'; 34require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'organisation.class.php'; 35require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'organisation_rel_user.class.php'; 35require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'organisation_rel_user.class.php'; 36require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement.class.php'; 37require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement_rel_location.class.php';ClassCollectionLoader.php git://github.com/symfony/symfony.git | PHP | 403 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])) { 55 56 $classes = array_unique($classes); 57 131 132 $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($class->getFileName())); 133 223 if (PHP_VERSION_ID >= 70000) { 224 // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098 225 unset($tokens, $rawChunk);system.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 30{ 31 if ( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) ) 32 { 100 } 101 $my_domains = array_unique( $my_domains ); 102 $array_config_global['my_domains'] = implode( ",", $my_domains ); 144 { 145 Header( 'Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass() ); 146 exit(); 272 273include ( NV_ROOTDIR . "/includes/header.php" ); 274echo nv_admin_theme( $content ); 274echo nv_admin_theme( $content ); 275include ( NV_ROOTDIR . "/includes/footer.php" ); 276Md5.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/File/Hash.php'; 26 74 } elseif (!is_array($options)) { 75 require_once 'Zend/Validate/Exception.php'; 76 throw new Zend_Validate_Exception('Invalid options to validator provided'); 163 // Is file readable ? 164 require_once 'Zend/Loader.php'; 165 if (!Zend_Loader::isReadable($value)) { 168 169 $hashes = array_unique(array_keys($this->_hash)); 170 $filehash = hash_file('md5', $value);UnionSortedSets.php git://github.com/isaacsu/twich.git | PHP | 34 lines
1<?php 2 5 */ 6require_once 'Rediska/Command/CompareSortedSets.php'; 7 19 * @link http://rediska.geometria-lab.net 20 * @licence http://www.opensource.org/licenses/bsd-license.php 21 */ 31 } 32 return array_unique($resultSet); 33 }write.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 56 { 57 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $admin_file . ".php"; 58 } 60 { 61 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $admin_file . "_" . $dirlang . ".php"; 62 } 64 { 65 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/admin_" . $dirlang . ".php"; 66 } 68 { 69 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $dirlang . ".php"; 70 } 72 { 73 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/admin_" . $module . ".php"; 74 }viewvideo.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 124 lines
1<?php 2 16$g_array['name'] = defined( 'NV_IS_USER' ) ? $user_info['username'] : ''; 17$g_array['user_login'] = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=users&" . NV_OP_VARIABLE . "=login&nv_redirect=" . nv_base64_encode( $client_info['selfurl'] ); 18$g_array['user_register'] = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=users&" . NV_OP_VARIABLE . "=register"; 32 33$row['listcat'] = empty( $row['listcat'] ) ? array() : array_diff( array_filter( array_unique( explode( ",", $row['listcat'] ) ) ), array( $row['theloai'] ) ); 34if( ! empty( $row['listcat'] ) ) 119 120include ( NV_ROOTDIR . "/includes/header.php" ); 121echo nv_site_theme( $contents ); 121echo nv_site_theme( $contents ); 122include ( NV_ROOTDIR . "/includes/footer.php" ); 123functions.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 430 lines
1<?php 2 28 { 29 $name = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $list[$id]['alias'] . "\">" . $list[$id]['title'] . "</a> » " . $name; 30 } 76 { 77 $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $list2[$row['id']]['alias'] . "\">" . $list2[$row['id']]['name'] . "</a>"; 78 } 88 { 89 $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "\">" . $module_info['custom_title'] . "</a> » " . $list2[$row['id']]['name']; 90 } 178 $rss[] = array( // 179 'title' => $module_info['custom_title'], 'src' => NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=rss" // 180 ); 193 $s_act = ( $s_c['alias'] == $catalias ) ? 1 : 0; 194 $s_link = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $s_c['alias']; 195 $sub_menu[] = array(file.field.inc git://github.com/drupal/drupal.git | Pascal | 1013 lines
1<?php 2 103 '#default_value' => $settings['max_filesize'], 104 '#description' => t('Enter a value like "512" (bytes), "80 KB" (kilobytes) or "50 MB" (megabytes) in order to restrict the allowed file size. If left empty the file sizes will be limited only by PHP\'s maximum post and file upload sizes (current limit <strong>%limit</strong>).', array('%limit' => format_size(file_upload_max_size()))), 105 '#size' => 10, 143 $extensions = array_filter(explode(' ', $extensions)); 144 $extensions = implode(' ', array_unique($extensions)); 145 if (!preg_match('/^([a-z0-9]+([.][a-z0-9])* ?)+$/', $extensions)) {profile.admin.inc git://github.com/drupal/drupal.git | Pascal | 447 lines
1<?php 2 43 // Add the category combo boxes 44 $categories = array_unique($categories); 45 foreach ($form as $fid => $field) {SilvercartShoppingCartPositionNotice.php https://bitbucket.org/silvercart/silvercart/ | PHP | 132 lines
1<?php 2/** 87 $codes = array_merge($existingPositionCodes['codes'], $notice['codes']); 88 $notice['codes'] = array_unique($codes); 89 }browser.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 176 lines
1<?php 2namespace application\internship_organizer; 20 21require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'appointment_manager/component/moment_rel_location/table.class.php'; 22require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'appointment_manager/component/appointment/table.class.php'; 22require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'appointment_manager/component/appointment/table.class.php'; 23require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement_rel_user.class.php'; 24 96 } 97 $agreement_ids = array_unique($agreement_ids); 98blacklist.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 2/** 3 * @version $Id: blacklist.class.php 398 2008-03-26 02:20:50Z hodaka $ 4 */ 125 } 126 $this->_ips = array_unique($this->_ips); 127 $this->_domains = array_unique($this->_domains);initialize.php http://recipe-press.googlecode.com/svn/trunk/ | PHP | 851 lines
1<?php 2if ( preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF']) ) { 6/** 7 * initialize.php - Initialize the post types and taxonomies 8 * 79 function upgrade_warning() { 80 echo "<div id='recipe-press-warning' class='updated fade'><p><strong>" . __('RecipePress requires an update.') . "</strong> " . sprintf(__('You must <a href="%1$s">run the update tool</a> for it to work.'), admin_url() . "plugins.php?page=recipe-press-update") . "</p></div>"; 81 } 86 function add_upgrade_menu_option() { 87 add_submenu_page('plugins.php', __('RecipePress Upgrade'), __('RecipePress Upgrade'), 'manage_options', 'recipe-press-update', array(&$this, 'update_function')); 88 } 99 <div class="icon32" id="icon-recipe-press"><br/></div> 100 <h2><?php echo $this->pluginName; ?> » <?php _e('Update to version 2.0', 'recipe-press'); ?> </h2> 101 <ul> 101 <ul> 102 <?php 103 /* Register the post type */salemaker.php http://goldcat.googlecode.com/svn/ | PHP | 565 lines
1<?php 2/** 62 asort($categories_all); 63 $categories_all_string = ',' . implode(',', array_unique($categories_all)) . ','; 64 } else { 234 if(!relatedcheckbox.disabled) { 235<?php 236 if ( (defined('AUTOCHECK')) && (AUTOCHECK == 'True') ) { 267<!-- header //--> 268<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 269<!-- header_eof //--> 300</script> 301 <tr><?php echo zen_draw_form("sale_form", FILENAME_SALEMAKER, zen_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action); ?><?php if ($form_action == 'update') echo zen_draw_hidden_field('sID', $_GET['sID']); ?> 302 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 304 <td class="main"><?php echo TEXT_SALEMAKER_POPUP; ?></td> 305 <td class="main" align="right" valign="top"><br><?php echo (($form_action == 'insert') ? zen_image_submit('button_insert.gif', IMAGE_INSERT) : zen_image_submit('button_update.gif', IMAGE_UPDATE)). ' <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . ($_GET['sID'] > 0 ? '&sID=' . $_GET['sID'] : '')) . '">' . zen_image_button('button_cancel.gif',TClientScriptManager.php http://prado3.googlecode.com/svn/trunk/ | PHP | 830 lines
1<?php 2/** 9 * @license http://www.pradosoft.com/license/ 10 * @version $Id: TClientScriptManager.php 3208 2012-09-29 08:18:05Z ctrlaltca $ 11 * @package System.Web.UI 20 * @author Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering) 21 * @version $Id: TClientScriptManager.php 3208 2012-09-29 08:18:05Z ctrlaltca $ 22 * @package System.Web.UI 33 */ 34 const PACKAGES_FILE='Web/Javascripts/packages.php'; 35 /** 121 /** 122 * Registers Prado javascript by library name. See "Web/Javascripts/packages.php" 123 * for library names. 212 $scripts = array_merge($scripts, array_values($this->_scriptFiles)); 213 $scripts = array_unique($scripts); 214frames.php http://prado3.googlecode.com/svn/trunk/ | PHP | 588 lines
1<?php 2 /** 5 * @subpackage WebTester 6 * @version $Id: frames.php 1398 2006-09-08 19:31:03Z xue $ 7 */ 11 */ 12 require_once(dirname(__FILE__) . '/page.php'); 13 require_once(dirname(__FILE__) . '/user_agent.php'); 377 } 378 return array_values(array_unique($urls)); 379 } 393 } 394 return array_values(array_unique($urls)); 395 }Comparator.php git://github.com/doctrine/dbal.git | PHP | 538 lines
1<?php 2 11use function array_shift; 12use function array_unique; 13use function assert;MsSqlPlatform.php git://github.com/doctrine/dbal.git | PHP | 0 lines
1<?php 2 198 if (isset($options['primary']) && !empty($options['primary'])) { 199 $columnListSql .= ', PRIMARY KEY(' . implode(', ', array_unique(array_values($options['primary']))) . ')'; 200 }MySqlPlatform.php git://github.com/doctrine/dbal.git | PHP | 1191 lines
1<?php 2 15use function array_merge; 16use function array_unique; 17use function array_values; 437 if (isset($options['primary']) && ! empty($options['primary'])) { 438 $keyColumns = array_unique(array_values($options['primary'])); 439 $queryFields .= ', PRIMARY KEY(' . implode(', ', $keyColumns) . ')';SqlitePlatform.php git://github.com/doctrine/dbal.git | PHP | 1218 lines
1<?php 2 15use function array_merge; 16use function array_unique; 17use function array_values; 384 385 $keyColumns = array_unique(array_values($options['primary'])); 386PostgreSqlPlatform.php git://github.com/doctrine/dbal.git | PHP | 1274 lines
1<?php 2 19use function array_merge; 20use function array_unique; 21use function array_values;Module.php https://bitbucket.org/zurmo/zurmo/ | PHP | 536 lines
1<?php 2 /********************************************************************************* 78 } 79 return array_values(array_unique($dependencies)); 80 }Abstract.php http://digitalus-site-manager.googlecode.com/svn/trunk/ | PHP | 981 lines
1<?php 2/** 22/** Zend_Validate_Interface */ 23require_once 'Zend/Validate/Interface.php'; 24 145 default: 146 require_once 'Zend/File/Transfer/Exception.php'; 147 throw new Zend_File_Transfer_Exception(sprintf('Invalid type "%s" provided to setPluginLoader()', $type)); 174 175 require_once 'Zend/Loader/PluginLoader.php'; 176 $this->_loaders[$type] = new Zend_Loader_PluginLoader($paths); 179 default: 180 require_once 'Zend/File/Transfer/Exception.php'; 181 throw new Zend_File_Transfer_Exception(sprintf('Invalid type "%s" provided to getPluginLoader()', $type)); 219 default: 220 require_once 'Zend/File/Transfer/Exception.php'; 221 throw new Zend_File_Transfer_Exception(sprintf('Invalid type "%s" provided to getPluginLoader()', $type));Adapter.php http://digitalus-site-manager.googlecode.com/svn/trunk/ | PHP | 544 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Date.php 2498 2006-12-23 22:13:38Z thomas $ 21 */ 25 */ 26require_once 'Zend/Locale.php'; 27 170 $parts = array_merge($parts, $parts2); 171 $parts = array_unique($parts); 172 $prev = ''; 267 */ 268 require_once 'Zend/Translate/Exception.php'; 269 throw new Zend_Translate_Exception("The given Language ({$locale}) does not exist"); 277 */ 278 require_once 'Zend/Translate/Exception.php'; 279 throw new Zend_Translate_Exception("Language ({$locale}) has to be added before it can be used.");content.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 14{ 15 require_once (NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php'); 16} 38{ 39 Header("Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name); 40 die(); 53 $field_lang = nv_file_table($table_name); 54 $id_block_content = array_unique($nv_Request->get_typed_array('bids', 'post', 'int', array())); 55 56 $rowcontent['listcatid'] = $nv_Request->get_int('catid', 'post', 0); 57 $group_id = array_unique($nv_Request->get_typed_array('groupids', 'post', 'int', array())); 58 $rowcontent['group_id'] = implode(",", $group_id); 248 { 249 require_once (NV_ROOTDIR . "/includes/class/image.class.php"); 250filequeue.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 20 { 21 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=filequeue" ); 22 exit(); 29 { 30 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=filequeue" ); 31 exit(); 181 $links = array_map( "trim", $links ); 182 $links = array_unique( $links ); 183 208 { 209 $array['linkdirect'] = array_unique( $array['linkdirect'] ); 210 }main.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 36 } 37 $allow_sitelangs = array_unique( $allow_sitelangs ); 38 $query = "UPDATE `" . NV_CONFIG_GLOBALTABLE . "` SET `config_value` = " . $db->dbescape( implode( ",", $allow_sitelangs ) ) . " WHERE `lang`='sys' AND `module` = 'global' AND `config_name` = 'allow_sitelangs'"; 44 $contents = "<br /><br /><br /><p align=\"center\">" . $lang_module['nv_setting_save'] . "</p>"; 45 $contents .= "<meta http-equiv=\"Refresh\" content=\"1;URL=" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "\" />"; 46 include ( NV_ROOTDIR . "/includes/header.php" ); 47 echo nv_admin_theme( $contents ); 48 include ( NV_ROOTDIR . "/includes/footer.php" ); 49 exit(); 61 $global_config['site_theme'] = $site_theme; 62 require_once ( NV_ROOTDIR . '/includes/sqldata.php' ); 63 $sql_create_table = nv_create_table_sys( $keylang ); 78 $module_name = "modules"; 79 require_once ( NV_ROOTDIR . "/" . NV_ADMINDIR . "/modules/modules/functions.php" ); 80 $module_name = "";content.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 13{ 14 require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 15} 37{ 38 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 39 die(); 55 $field_lang = nv_file_table( $table_name ); 56 $id_block_content = array_unique( $nv_Request->get_typed_array( 'bids', 'post', 'int', array() ) ); 57 59 $rowcontent['topic_id'] = $nv_Request->get_int( 'topicid', 'post', 0 ); 60 $group_id = array_unique( $nv_Request->get_typed_array( 'groupids', 'post', 'int', array() ) ); 61 $rowcontent['group_id'] = implode( ",", $group_id ); 277 { 278 require_once ( NV_ROOTDIR . "/includes/class/image.class.php" ); 279content.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 12{ 13 require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 14} 168 { 169 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "" ); 170 die(); 235{ 236 $catids = array_unique( $nv_Request->get_typed_array( 'catids', 'post', 'int', array() ) ); 237 $id_block_content = array_unique( $nv_Request->get_typed_array( 'bids', 'post', 'int', array() ) );main.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 25 { 26 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 27 exit(); 36 { 37 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 38 exit(); 122 $links = array_map( "trim", $links ); 123 $links = array_unique( $links ); 124 149 { 150 $array['linkdirect'] = array_unique( $array['linkdirect'] ); 151 } 252 nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['download_editfile'], $array['title'], $admin_info['userid'] ); 253 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 254 exit();survey_total_user_result_view_reporting_block.class.php https://bitbucket.org/chamilo/chamilo-app-survey-dev/ | PHP | 150 lines
1<?php 2namespace application\survey; 98 99 $viewed_users = array_unique($user_ids); 100 101 $reporting_users = SurveyRights :: get_allowed_users(SurveyRights :: RIGHT_REPORTING, $this->publication_id, SurveyRights :: TYPE_PUBLICATION); 102 $reporting_users = array_unique($reporting_users); 103 115 { 116 $user_count = count(array_unique($not_viewed_users)); 117 $user_ids = $not_viewed_users;reflection_php5.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 1683 2008-03-05 21:57:08Z lastcraft $ 7 */ 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 71 /** 72 * Needed to select the autoload feature in PHP5 73 * for classes created dynamically.Module.php http://explay-cms.googlecode.com/svn/trunk/ | PHP | 372 lines
1<?php 2 82 protected function extend ($className) { 83 $file = ENGINE_ROOT . '/modules/' . $this->moduleName . '/' . $className . '.php'; 84 174 $aGarbage = explode (',', $requestString); 175 $aGarbage = array_unique ($aGarbage); 176Rule.php git://github.com/composer/composer.git | PHP | 293 lines
1<?php 2 243 } 244 $learnedString .= implode("\n - ", array_unique($reasons)); 245 } else {RouteCompiler.php git://github.com/symfony/symfony.git | PHP | 348 lines
1<?php 2 101 $hostVariables, 102 array_unique($variables) 103 ); 142 143 // A PCRE subpattern name must start with a non-digit. Also a PHP variable cannot start with a digit so the 144 // variable would not be usable as a Controller action argument. 212 // find the first optional token 213 $firstOptional = PHP_INT_MAX; 214 if (!$isHost) {asset_audit.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 252 lines
6 // authenticate error 7 QApplication::Redirect('./index.php'); 8} 17 if ($_POST['method'] == 'complete_transaction') { 18 $arrLocationAssetCode = array_unique(explode('|',$_POST['result'])); 19 $blnError = false; 33 $intLocationIdArray[] = $objDestinationLocation->LocationId; 34 $arrAssetCode = array_unique(explode('#',$strAssetCodeArray)); 35 foreach ($arrAssetCode as $strAssetCode) { 125 126 $strWarning .= "Your transaction has successfully completed<br /><a href='index.php'>Main Menu</a> | <a href='asset_menu.php'>Manage Assets</a><br />"; 127 //Remove that flag when transaction is compelete or exists some errors 142 $arrCheckedAssetCode = array(); 143 $arrAssetCode = array_unique(explode('#',$_POST['result'])); 144 $blnError = false;ConduitAPI_diffusion_getcommits_Method.php git://github.com/facebook/phabricator.git | PHP | 274 lines
1<?php 2 68 $callsigns = ipull($commits, 'callsign'); 69 $callsigns = array_unique($callsigns); 70 $repos = id(new PhabricatorRepository())->loadAllWhere(AkImageColorScheme.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 118 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 18 19require_once(AK_LIB_DIR.DS.'AkImage.php'); 20 82 asort($colors_array); 83 $colors_array = array_slice(array_unique(array_keys(array_reverse($colors_array, true))), 0, $number_of_colors); 84 natsort($colors_array);post_dossiers.php http://gespac.googlecode.com/svn/trunk/ | PHP | 273 lines
1<?PHP 2 session_start(); 6 // lib 7 include_once ('../config/databases.php'); 8 include_once ('../../class/Sql.class.php'); 8 include_once ('../../class/Sql.class.php'); 9 include_once ('../../class/Log.class.php'); 10 128 // Cette fonction va nous retourner un tableau complטtement dיdoublonnי !! Magique ! 129 $verif_doublon_mail_destinataire = array_unique($verif_doublon_mail_destinataire); 130 // On reconstruit notre string א partir du tableau dיdoublonnי 227 // Cette fonction va nous retourner un tableau complטtement dיdoublonnי !! Magique ! 228 $verif_doublon_mail_destinataire = array_unique($verif_doublon_mail_destinataire); 229 // On reconstruit notre string א partir du tableau dיdoublonnיbrowser.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 240 lines
1<?php 2namespace application\internship_organizer; 21 22require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement_manager/agreement_manager.class.php'; 23require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement_manager/component/browser/browser_table.class.php'; 23require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement_manager/component/browser/browser_table.class.php'; 24require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'user_type.class.php'; 25require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'agreement_rel_user.class.php'; 235 236 return array_unique($agreement_ids); 237 }BatchMailer.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 229 lines
1<?php 2 107 $this->failed[] = $address; 108 $this->failed = array_unique($this->failed); 109 }Vote.php https://code.google.com/p/ecartcommerce/ | PHP | 165 lines
1<?php 2/** 159 160 $cookieValues = implode(',', array_unique(array_merge( 161 $values, $cookieValuesclass.xsltprocess.php git://github.com/symphonycms/symphony-2.git | PHP | 388 lines
55 * 56 * @link http://www.php.net/manual/en/xsltprocessor.setparameter.php#81077 57 * @param array $param 75 if (is_array($function)) { 76 $this->_registered_php_functions = array_unique( 77 array_merge($this->_registered_php_functions, $function) 118 if (!empty($this->_registered_php_functions)) { 119 $XSLProc->registerPHPFunctions($this->_registered_php_functions); 120 } 300 * @since Symphony 2.3 301 * @link http://au.php.net/manual/en/function.set-error-handler.php 302 * @param integer $errno 315 * 316 * @link http://au.php.net/manual/en/function.set-error-handler.php 317 * @param integer $numberFolderTagsEdit.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 124 lines
1<?php 2 9 * @license http://www.gnu.org/licenses/ 10 * @version $Id: FolderTagsEdit.php 1030 2010-01-05 18:42:09Z dwalker@calstate.edu $ 11 * @package Xerxes 40 41 $arrTags = array_unique( $arrTags ); 42LoadEditors.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 150 lines
1<?php 2/** 20 * @license http://digitalus-media.com/license/new-bsd New BSD License 21 * @version $Id: LoadEditors.php 774 2010-06-11 15:33:10Z lowtower@gmx.de $ 22 * @link http://www.digitaluscms.com 28 */ 29require_once 'Zend/View/Helper/Abstract.php'; 30 65 $('.ckeditor').ckeditor({ 66 language : '<?php echo $adminLanguage;?>', 67 });<?php 75 $('.fckeditor').fck({ 76 path: '<?php echo $this->_scriptsPath . '/fckeditor/';?>', 77 toolbar: 'Digitalus', 78 height: 300 79 });<?php 80 $this->view->jQuery()->onLoadCaptureEnd();index.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 244 lines
17 * If you're interested in running the test-cases, mosey over to 18 * ../test-settings.sample.php, copy the file to test-settings.php and follow 19 * the enclosed instructions. 39 40$php = 'php'; // for safety 41ini_set('memory_limit', '64M'); 75 --dry 76 --php /path/to/php 77 --type ( htmlpurifier | configdoc | fstools | htmlt | vtest | phpt ) 97 // Undo any dangerous parameters 98 $AC['php'] = $php; 99} 150 $phpt = PHPT_Registry :: getInstance(); 151 $phpt->php = $AC['php']; 152}owp.php http://ovz-web-panel.googlecode.com/svn/trunk/ | PHP | 262 lines
1<?php 2/** 28 29 $serverTemplates = array_unique($serverTemplates); 30 $osTemplates = array_unique($osTemplates);url_matcher1.php git://github.com/fabpot/symfony.git | PHP | 94 lines
1<?php 2 90 91 throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new NotFoundException(); 92 }email.php http://myopensources.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/* 2/* 3 $Id: email.php 1739 2007-12-20 00:52:16Z hpdl $ 4 11 12 mail.php - a class to assist in building mime-HTML eMails 13 13 14 The original class was made by Richard Heyes <richard@phpguru.org> 15 and can be found here: http://www.phpguru.org 130// If duplicate images are embedded, they may show up as attachments, so remove them. 131 $html_images = array_unique($html_images); 132 sort($html_images); 191 192/* HPDL PHP3 */ 193// function &add_text_part(&$obj, $text) {modeladmin.php git://github.com/joomla/joomla-platform.git | PHP | 1125 lines
1<?php 2/** 152 // Sanitize user ids. 153 $pks = array_unique($pks); 154 JArrayHelper::toInteger($pks);html.php git://github.com/joomla/joomla-platform.git | PHP | 710 lines
1<?php 2/** 213 $this->_links = (isset($data['links']) && !empty($data['links']) && is_array($data['links'])) 214 ? array_unique(array_merge($this->_links, $data['links'])) 215 : $this->_links; 246 $this->_custom = (isset($data['custom']) && !empty($data['custom']) && is_array($data['custom'])) 247 ? array_unique(array_merge($this->_custom, $data['custom'])) 248 : $this->_custom; 257 * ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.) 258 * Typical tag: <link href="index.php" rel="Start"> 259 *