PageRenderTime 364ms queryTime 83ms sortTime 0ms getByIdsTime 49ms findMatchingLines 65ms

100+ results results for 'php array_unique repo:granitegreg/ezpublish' (364 ms)

Not the results you expected?
Class.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 328 lines
                    
38 * @subpackage Util_Skeleton
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
42 * @link       http://www.phpunit.de/
                    
45
                    
46require_once ( PHPU_BASE_PATH . '/Text/Template.php' );
                    
47
                    
52 * @subpackage Util_Skeleton
                    
53 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
54 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
59 */
                    
60class PHPUnit_Util_Skeleton_Class extends PHPUnit_Util_Skeleton
                    
61{
                    
                
class.I18Nlocale.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/**
                    
4*/
                    
5require_once 'class.I18Nbase.inc.php';
                    
6
                    
9* @author Michael Wimmer <flaimo@gmail.com>
                    
10* @category flaimo-php
                    
11* @example  ../www_root/i18n_example_script.php  i18n example script
                    
12* @license GNU General Public License v3
                    
13* @link http://code.google.com/p/flaimo-php/
                    
14* @package i18n
                    
166		if (is_array($this->languages)) {
                    
167			$this->languages = array_unique($this->languages);
                    
168		} // end if
                    
170		if (is_array($this->countries)) {
                    
171			$this->countries = array_unique($this->countries);
                    
172		} // end if
                    
                
pts_result_file_analyzer.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 375 lines
                    
1<?php
                    
2
                    
44		$hw = $result_file->get_system_hardware();
                    
45		$hw_unique = array_unique($hw);
                    
46		$sw = $result_file->get_system_software();
                    
46		$sw = $result_file->get_system_software();
                    
47		$sw_unique = array_unique($sw);
                    
48		$desc = false;
                    
                
Select.php git://github.com/kohana/database.git | PHP | 447 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
353			// Select all columns
                    
354			$query .= implode(', ', array_unique(array_map($quote_column, $this->_select)));
                    
355		}
                    
359			// Set tables to select from
                    
360			$query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from)));
                    
361		}
                    
                
export.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 410 lines
                    
303<channel>
                    
304	<title><?php bloginfo_rss( 'name' ); ?></title>
                    
305	<link><?php bloginfo_rss( 'url' ) ?></link>
                    
313	<?php if ( $cats ) : foreach ( $cats as $c ) : ?>
                    
314	<wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category>
                    
315	<?php endforeach; endif; ?>
                    
316	<?php if ( $tags ) : foreach ( $tags as $t ) : ?>
                    
317	<wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag>
                    
318	<?php endforeach; endif; ?>
                    
319	<?php if ( $terms ) : foreach ( $terms as $t ) : ?>
                    
320	<wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term>
                    
321	<?php endforeach; endif; ?>
                    
354		<wp:post_id><?php echo $post->ID; ?></wp:post_id>
                    
355		<wp:post_date><?php echo $post->post_date; ?></wp:post_date>
                    
356		<wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>
                    
                
cache.php http://core.svn.wordpress.org/ | PHP | 374 lines
                    
1<?php
                    
2function wp_cache_add($key, $data, $flag = '', $expire = 0) {
                    
49
                    
50define('CACHE_SERIAL_HEADER', "<?php\n//");
                    
51define('CACHE_SERIAL_FOOTER', "\n?".">");
                    
128
                    
129		$cache_file = $this->cache_dir.$this->get_group_dir($group)."/".md5($id.DB_PASSWORD).'.php';
                    
130		if (!file_exists($cache_file)) {
                    
206
                    
207			if (!file_exists($this->cache_dir.$make_dir."index.php")) {
                    
208				@ touch($this->cache_dir.$make_dir."index.php");
                    
279
                    
280		if (!file_exists($this->cache_dir."index.php")) {
                    
281			@ touch($this->cache_dir."index.php");
                    
293
                    
294			$ids = array_unique($ids);
                    
295			foreach ($ids as $id) {
                    
                
migration.php git://github.com/jrbasso/migrations.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
8 * @since         v 0.1
                    
9 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
76			$varName = Inflector::camelize($use);
                    
77			if (!PHP5) {
                    
78				$this->{$varName} =& ClassRegistry::init(array('class' => $use, 'alias' => $use, 'ds' => $shell->connection));
                    
107		}
                    
108		return array_unique(array_merge($uses, $this->uses));
                    
109	}
                    
                
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<?php
                    
                
PHPDriver.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 116 lines
                    
1<?php
                    
2/*
                    
24/**
                    
25 * The PHPDriver invokes a static PHP function on the document class itself passing
                    
26 * a ClassMetadata instance for you to manually populate with mapping information.
                    
27 *
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.doctrine-project.org
                    
33 */
                    
34class PHPDriver implements Driver
                    
35{
                    
44    {
                    
45        $this->paths = array_unique(array_merge($this->paths, $paths));
                    
46    }
                    
                
edit.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 352 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" );
                    
235            
                    
                
survey_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");
                    
                
mejoramiento_adecuaciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2class MejoramientoAdecuacionesController extends AppController {
                    
35		
                    
36		$registros = array_unique($registros);	
                    
37		
                    
101		
                    
102		$nombre_iem2 = array_unique($nombre_iem2);		
                    
103		
                    
                
getcomment.php http://viet-group.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 . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=getcomment&amp;list_comment=" . $id;
                    
169                
                    
196                            }
                    
197                            $post_name = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=users&amp;" . NV_OP_VARIABLE . "=edit&amp;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 . "&amp;" . NV_OP_VARIABLE . "=comment&amp;edit=1&amp;id=" . $row['id'], //
                    
249						'del_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . 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 );
                    
                
host_view.php git://pkgs.fedoraproject.org/ganglia | PHP | 266 lines
                    
1<?php
                    
2include_once("./global.php");
                    
41// Remove duplicates
                    
42$reports["included_reports"] = array_unique($reports["included_reports"]);
                    
43$reports["excluded_reports"] = array_unique($reports["excluded_reports"]);
                    
54  if ( ! in_array( $report_name, $reports["excluded_reports"] ) ) {
                    
55    $graph_anchor = "<a href=\"./graph_all_periods.php?$graph_args&amp;g=" . $report_name . "&amp;z=large&amp;c=$cluster_url\">";
                    
56
                    
58
                    
59    $csvBtn = "<button title=\"Export to CSV\" class=\"cupid-green\" onClick=\"javascript:location.href='./graph.php?$graph_args&amp;g={$report_name}&amp;z=large&amp;c=$cluster_url&amp;csv=1';return false;\">CSV</button>";
                    
60
                    
60
                    
61    $jsonBtn = "<button title=\"Export to JSON\" class=\"cupid-green\" onClick=\"javascript:location.href='./graph.php?$graph_args&amp;g={$report_name}&amp;z=large&amp;c=$cluster_url&amp;json=1';return false;\">JSON</button>";
                    
62
                    
77        $optional_reports .= $addMetricBtn . '&nbsp;';
                    
78      $optional_reports .= $csvBtn . '&nbsp;' . $jsonBtn . '&nbsp;' .$inspectBtn . '&nbsp;' . $showEventBtn . "<br />" . $graph_anchor . "<img id=\"" . $graphId . "\" $additional_cluster_img_html_args border=\"0\" title=\"$cluster_url\" SRC=\"./graph.php?$graph_args&amp;g=" . $report_name ."&amp;z=medium&amp;c=$cluster_url\" style=\"margin-top:5px;\" /></a></div>";
                    
79    }
                    
                
sitealias.drush.inc git://github.com/jyr/MNPP.git | Pascal | 330 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 *   Site alias commands. @see example.drushrc.php for details.
                    
6 */
                    
78  $base_path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites';
                    
79  $files = drush_scan_directory($base_path, '/settings\.php/', array('.', '..', 'CVS', 'all'));
                    
80  foreach ($files as $filename => $info) {
                    
80  foreach ($files as $filename => $info) {
                    
81    if ($info->basename == 'settings.php') {
                    
82      $alias_record = drush_sitealias_build_record_from_settings_file($filename);
                    
194  }
                    
195  $site_specs = array_unique($site_specs);
                    
196  asort($site_specs);
                    
196  asort($site_specs);
                    
197  drush_print_pipe(array_unique($site_specs));
                    
198  if (!empty($rows)) {
                    
                
GettextExtractor.php git://github.com/karelklima/gettext-extractor.git | PHP | 361 lines
                    
1<?php
                    
2
                    
17
                    
18if (version_compare(PHP_VERSION, '5.2.2', '<'))
                    
19    exit('GettextExtractor needs PHP 5.2.2 or newer');
                    
37    protected $filters = array(
                    
38        'php' => array('PHP'),
                    
39        'phtml'	=> array('PHP', 'NetteLatte')
                    
170    {
                    
171    	$inputFiles = array_unique($inputFiles);
                    
172    	foreach ($inputFiles as $inputFile)
                    
213        if (!class_exists($filter)) {
                    
214            $filter_file = dirname(__FILE__) . '/Filters/' . $filter . ".php";
                    
215            if (!file_exists($filter_file)) {
                    
                
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}
                    
                
db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
259			}
                    
260			$item_list = array_unique($item_list);
                    
261			$item_list_tmp = '';
                    
                
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<?php
                    
                
uploaddkp.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 441 lines
                    
21require('../config/site.php');
                    
22require('config/adminClass.php');
                    
23$ndkp = new nurfedAdmin;
                    
127	$unknown_player = array_unique($unknown_player);
                    
128	$unknown_item   = array_unique($unknown_item);
                    
129	$meta_attend    = array_unique($meta_attend);
                    
168				<div id='rightcontent'>
                    
169				<?php include('../includes/newsitems.php'); ?>
                    
170				<div class="break"></div>
                    
170				<div class="break"></div>
                    
171				<?php include('../includes/moreNDKP.php'); ?>
                    
172				</div>
                    
319	print '<br /><i>This record has already been added</i> ';
                    
320	print ' [<a href="edit-timeClock.php?id=' . $record . '">edit</a>]';
                    
321}
                    
                
FunctionCommentThrowTagSniff.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 215 lines
                    
14 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
                    
15 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
16 */
                    
34 * @version   Release: @package_version@
                    
35 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
36 */
                    
53     *
                    
54     * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
                    
55     * @param int                  $stackPtr  The position where the token was found.
                    
59     */
                    
60    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
61    {
                    
93        try {
                    
94            $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile);
                    
95            $this->commentParser->parse();
                    
                
ctl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 333 lines
                    
1<?php
                    
2define('MANUAL_SEND','MANUAL_SEND');
                    
43        
                    
44        $this->begin('index.php?ctl=member/messenger&act=outbox&p[0]='.$sender);
                    
45        $mdl = $this->system->loadModel('resources/message');
                    
55        if($ret){
                    
56            $this->splash('success','index.php?ctl=member/messenger&act=index');
                    
57        }else{
                    
57        }else{
                    
58            $this->splash('failed','index.php?ctl=member/messenger&act=index');
                    
59        }
                    
64        if ($messenger->saveActions($_POST['actdo'])) {
                    
65            $this->splash('success', 'index.php?ctl=member/messenger&act=index');
                    
66        }else{
                    
66        }else{
                    
67            $this->splash('failed','index.php?ctl=member/messenger&act=index');
                    
68        }
                    
                
Report.class.php http://praticarh.googlecode.com/svn/trunk/ | PHP | 371 lines
                    
1<?php 
                    
2
                    
2
                    
3include_once ROOT.'config/config.inc.php';
                    
4include_once ROOT.'lib/LoginSystem/Visit.class.php';
                    
4include_once ROOT.'lib/LoginSystem/Visit.class.php';
                    
5include_once ROOT.'lib/LoginSystem/User.class.php';
                    
6include_once ROOT.'lib/CandidatoProcessoSeletivo.class.php';
                    
7
                    
8include_once ROOT.'plugins/getLastDayOfMonth.function.php';
                    
9include_once ROOT.'plugins/getDateInterval.function.php';
                    
351					
                    
352				$this->months = array_unique($this->months);
                    
353				$this->years = array_unique($this->years);
                    
                
repository_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]);
                    
                
Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 459 lines
                    
1<?php
                    
2
                    
281
                    
282        return array_unique(array_merge($ids, array_keys($this->services)));
                    
283    }
                    
                
admin-db.php http://core.svn.wordpress.org/ | PHP | 526 lines
                    
1<?php
                    
2
                    
441
                    
442	return array_unique($result);
                    
443}
                    
450
                    
451	$link_categories = array_unique($link_categories);
                    
452
                    
461	} else {
                    
462		$old_categories = array_unique($old_categories);
                    
463	}
                    
492	// Update category counts.
                    
493	$all_affected_cats = array_unique(array_merge($link_categories, $old_categories));
                    
494	foreach ( $all_affected_cats as $cat_id ) {
                    
                
control.php http://goodgirl.googlecode.com/svn/ | PHP | 351 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
29
                    
30        cache::remove('sql/schema/'.$this->table.'.php');
                    
31        return self::query($query)->exec();
                    
75            if (self::_is_HABTM($k)){
                    
76                $v = array_unique($v);
                    
77                sort($v);
                    
198
                    
199        if ($multiple = array_unique($this->multiple)){
            $class->select[] = $this->primary_key.' as __';
                    
200
                    
                
suspend.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 324 lines
                    
1<?php
                    
2
                    
13{
                    
14	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
15	die();
                    
21{
                    
22	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
23	die();
                    
29{
                    
30	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
31	die();
                    
37{
                    
38	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
39	die();
                    
175			}
                    
176			Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=suspend&id=" . $id );
                    
177		}
                    
                
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'];
                    
92
                    
                
Lint_function.php git://github.com/robotis/PHPLinter.git | PHP | 90 lines
                    
1<?php
                    
2/**
                    
5----------------------------------------------------------------------+
                    
6*  @file 			Lint_function.php
                    
7*  @author 			J?hann T. Mar?usson <jtm@robot.is>
                    
8*  @since 		    Oct 29, 2011
                    
9*  @package 		PHPLinter
                    
10*  @copyright     
                    
10*  @copyright     
                    
11*    phplinter is free software: you can redistribute it and/or modify
                    
12*    it under the terms of the GNU General Public License as published by
                    
24*/
                    
25namespace PHPLinter;
                    
26class Lint_function extends BaseLint implements ILint {
                    
73		}
                    
74		$locals = array_unique($_locals);
                    
75		$compares = array(
                    
                
ErrorCoverage.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_CodeBrowser
                    
                
UrlMatcher.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     *
                    
                
AssetCollectionTest.php git://github.com/eryx/php-framework-benchmark.git | PHP | 262 lines
                    
1<?php
                    
2
                    
17
                    
18class AssetCollectionTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
240
                    
241        $this->assertEquals(2, count(array_unique($urls)), 'iterator prevents basename collisions');
                    
242    }
                    
                
system.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 302 lines
                    
1<?php
                    
2
                    
41{
                    
42	if( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) )
                    
43	{
                    
131	}
                    
132	$array_config_global['my_domains'] = array_unique( $array_config_global['my_domains'] );
                    
133	$array_config_global['my_domains'] = implode( ",", $array_config_global['my_domains'] );
                    
179
                    
180	Header( 'Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass() );
                    
181	exit();
                    
259{
                    
260	$xtpl->assign( 'CONFIG_LANG_GEO', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=language&op&' . NV_OP_VARIABLE . '=countries' );
                    
261	$xtpl->assign( 'CHECKED_LANG_GEO', ( $array_config_global['lang_geo'] == 1 ) ? ' checked ' : '' );
                    
297
                    
298include ( NV_ROOTDIR . "/includes/header.php" );
                    
299echo nv_admin_theme( $content );
                    
                
mdl.status.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 191 lines
                    
1<?php
                    
2class mdl_status extends modelFactory {
                    
93        }
                    
94        $filter['goods_id'] = array_unique($filter['goods_id']);
                    
95        if(empty($filter['goods_id'])) $filter['goods_id'][] = -1;
                    
                
select.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 445 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
351			// Select all columns
                    
352			$query .= implode(', ', array_unique(array_map($quote_column, $this->_select)));
                    
353		}
                    
357			// Set tables to select from
                    
358			$query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from)));
                    
359		}
                    
                
tiny_mce_gzip.php git://github.com/silverstripe/sapphire.git | PHP | 388 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * tinymce.gzip.php
                    
4 *
                    
15// require composers autoloader
                    
16if(file_exists($basePath . '/vendor/autoload.php')) {
                    
17	require_once $basePath . '/vendor/autoload.php';
                    
54 * Example of direct usage:
                    
55 * require_once("../js/tinymce/tinymce.gzip.php");
                    
56 *
                    
58 * TinyMCE_Compressor::renderTag(array(
                    
59 *    "url" => "../js/tinymce/tinymce.gzip.php",
                    
60 *    "plugins" => "pagebreak,style",
                    
119
                    
120		$plugins = array_unique(preg_split('/,/', $this->settings["plugins"], -1, PREG_SPLIT_NO_EMPTY));
                    
121
                    
                
events.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 372 lines
                    
1<?php
                    
2/*
                    
20?>
                    
21<?php
                    
22function event_source2str($sourceid) {
                    
60	if (!empty($elements['hosts_groups'])) {
                    
61		$options['groupids'] = array_unique($elements['hosts_groups']);
                    
62	}
                    
63	if (!empty($elements['hosts'])) {
                    
64		$options['hostids'] = array_unique($elements['hosts']);
                    
65	}
                    
66	if (!empty($elements['triggers'])) {
                    
67		$options['triggerids'] = array_unique($elements['triggers']);
                    
68	}
                    
183				zbx_date2str(_('d M Y H:i:s'), $event['clock']),
                    
184				'tr_events.php?triggerid='.$event['objectid'].'&eventid='.$event['eventid'],
                    
185				'action'
                    
                
Job.php https://code.google.com/p/monkeys-job/ | PHP | 288 lines
                    
1<?php
                    
2
                    
182	{
                    
183		$this->tags=JTag::array2string(array_unique(JTag::string2array($this->tags)));
                    
184	}
                    
                
environment_7.inc git://pkgs.fedoraproject.org/drupal6-drush | Pascal | 180 lines
                    
1<?php
                    
2// $Id: environment_7.inc,v 1.16 2010/10/15 09:04:37 jonhattan Exp $
                    
76
                    
77  return array_unique($dependents);
                    
78}
                    
                
wikimarkup.php git://pkgs.fedoraproject.org/moodle | PHP | 434 lines
                    
1<?php
                    
2
                    
68        if (!$this->printable) {
                    
69            $this->returnvalues['repeated_sections'] = array_unique($this->returnvalues['repeated_sections']);
                    
70        }
                    
183        if (!$this->pretty_print && $level == 1) {
                    
184            $text .= parser_utils::h('a', $this->section_edit_text, array('href' => "edit.php?pageid={$this->wiki_page_id}&section=" . urlencode($text), 'class' => 'wiki_edit_section'));
                    
185        }
                    
                
Security.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 227 lines
                    
1<?php
                    
2
                    
19 * @license 	New BSD License
                    
20 * @version 	$Id: Security.php 136 2010-04-12 14:48:51Z gutierrezandresfelipe $
                    
21 */
                    
219		$eachchar = str_split($password);
                    
220    	if(count(array_unique($eachchar))<5){
                    
221			++$failTests;
                    
                
Type.class.php https://code.google.com/p/haquery/ | PHP | 516 lines
                    
1<?php
                    
2
                    
163		try {
                    
164			php_Boot::$skip_constructor = true;
                    
165			$rfl = $cl->__rfl__();
                    
178			}
                    
179			php_Boot::$skip_constructor = false;
                    
180			{
                    
192				$GLOBALS['%s']->push($GLOBALS['%e'][0]);
                    
193				php_Boot::$skip_constructor = false;
                    
194				throw new HException("Unable to instantiate " . Std::string($cl));
                    
269		{
                    
270			$?tmp = new _hx_array(array_values(array_unique($r)));
                    
271			$GLOBALS['%s']->pop();
                    
300		{
                    
301			$?tmp = new _hx_array(array_unique($r));
                    
302			$GLOBALS['%s']->pop();
                    
                
goods.import_goodsline.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 115 lines
                    
1<?php
                    
2function goods_import_goodsline(&$aData , &$object){
                    
45            $images = explode('#',$aData['image_file']);
                    
46            $images = array_unique($images);
                    
47        }else{
                    
                
hookmanager.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 346 lines
                    
1<?php
                    
2/* Copyright (C) 2010-2016 Laurent Destailleur  <eldy@users.sourceforge.net>
                    
20/**
                    
21 *	\file       htdocs/core/class/hookmanager.class.php
                    
22 *	\ingroup    core
                    
75	 *  When initHooks function is called, with initHooks(list_of_contexts), an array $this->hooks is defined with instance of controler
                    
76	 *  class found into file /mymodule/class/actions_mymodule.class.php (if module has declared the context as a managed context).
                    
77	 *  Then when a hook executeHooks('aMethod'...) is called, the method aMethod found into class will be executed.
                    
95
                    
96		$this->contextarray = array_unique(array_merge($arraycontext, $this->contextarray)); // All contexts are concatenated
                    
97
                    
115						$path = '/'.$module.'/class/';
                    
116						$actionfile = 'actions_'.$module.'.class.php';
                    
117
                    
                
string.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 234 lines
                    
1<?php
                    
2
                    
166			}
                    
167			$unqiue = array_unique($rand);
                    
168			if(count($unqiue)==count($rand)) {
                    
174			}
                    
175			$rand = array_slice(array_unique ($rand),0,$number);
                    
176			return $rand;
                    
                
extrafields.php http://getk2.googlecode.com/svn/trunk/ | PHP | 314 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: extrafields.php 1531 2012-03-26 09:54:29Z lefteris.kavadas $
                    
4 * @package		K2
                    
117		$cache->clean();
                    
118		$mainframe->redirect('index.php?option=com_k2&view=extrafields');
                    
119	}
                    
131		$cache->clean();
                    
132		$mainframe->redirect('index.php?option=com_k2&view=extrafields');
                    
133	}
                    
156		if(!$params->get('disableCompactOrdering')){
                    
157			$groupings = array_unique($groupings);
                    
158			foreach ($groupings as $group) {
                    
164		$msg = JText::_('K2_NEW_ORDERING_SAVED');
                    
165		$mainframe->redirect('index.php?option=com_k2&view=extrafields', $msg);
                    
166	}
                    
                
access.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 377 lines
                    
1<?php
                    
2/**
                    
245				else {
                    
246					$result = array_unique($result);
                    
247				}
                    
                
field.drush.inc git://github.com/jyr/MNPP.git | Pascal | 360 lines
                    
1<?php
                    
2
                    
106    }
                    
107    return array('values' => array_unique($bundles));
                    
108  }
                    
                
String.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 252 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// +----------------------------------------------------------------------
                    
10// +----------------------------------------------------------------------
                    
11// $Id: String.class.php 2601 2012-01-15 04:59:14Z liu21st $
                    
12
                    
186			}
                    
187			$unqiue = array_unique($rand);
                    
188			if(count($unqiue)==count($rand)) {
                    
194			}
                    
195			$rand = array_slice(array_unique ($rand),0,$number);
                    
196			return $rand;
                    
                
access.php git://github.com/joomla/joomla-platform.git | PHP | 538 lines
                    
1<?php
                    
2/**
                    
345				{
                    
346					$result = array_unique($result);
                    
347				}
                    
                
Optimizer.php git://github.com/savetheinternet/Tinyboard.git | PHP | 246 lines
                    
1<?php
                    
2
                    
57
                    
58        if (!version_compare(phpversion(), '5.4.0RC1', '>=') && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('sandbox')) {
                    
59            if ($this->inABody) {
                    
97                    $nodes = array();
                    
98                    foreach (array_unique($prependedNodes) as $name) {
                    
99                        $nodes[] = new Twig_Node_SetTemp($name, $node->getLine());
                    
                
phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/*
                    
51        if(is_null($this->escapeChars) ){
                    
52            $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3))  == "win" ) ;
                    
53        }
                    
119            case phMagickHistory::returnCsv:
                    
120                return explode(',', array_unique($this->history));
                    
121                break;
                    
124            case phMagickHistory::returnArray :
                    
125                return array_unique($this->history) ;
                    
126                break;
                    
163        $base = dirname(__FILE__) . '/plugins';
                    
164        $plugins = glob($base . '/*.php');
                    
165        foreach($plugins as $plugin){
                    
166            include_once $plugin ;
                    
167            $name = basename($plugin, '.php');
                    
168            $className = 'phMagick_'.$name ;
                    
                
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        }
                    
                
system.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 277 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" );
                    
276
                    
                
BakAction.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 409 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
12// +----------------------------------------------------------------------
                    
13// | $Id: BakAction.class.php 109 2011-05-06 08:21:00Z nicholasinlove1986@gmail.com $
                    
14// +----------------------------------------------------------------------
                    
215				if ($m_file) {
                    
216					$m_file = array_unique ($m_file);
                    
217		
                    
                
cache.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 504 lines
                    
1<?php
                    
2/**
                    
281		$this->global_groups = array_merge($this->global_groups, $groups);
                    
282		$this->global_groups = array_unique($this->global_groups);
                    
283	}
                    
411	 * The $expire parameter is not used, because the cache will automatically
                    
412	 * expire for each time a page is accessed and PHP finishes. The method is
                    
413	 * more for cache plugins which use files.
                    
465	/**
                    
466	 * PHP4 constructor; Calls PHP 5 style constructor
                    
467	 *
                    
476	/**
                    
477	 * Sets up object properties; PHP 5 style constructor
                    
478	 *
                    
483		/**
                    
484		 * @todo This should be moved to the PHP4 style constructor, PHP5
                    
485		 * already calls __destruct()
                    
                
AnnotationDriver.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 370 lines
                    
1<?php
                    
2/*
                    
25
                    
26require __DIR__ . '/DoctrineAnnotations.php';
                    
27
                    
30 *
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.org
                    
57     */
                    
58    private $fileExtension = '.php';
                    
59
                    
86    {
                    
87        $this->paths = array_unique(array_merge($this->paths, $paths));
                    
88    }
                    
                
main.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2
                    
71
                    
72	$email_list = array_unique( $email_list );
                    
73
                    
183
                    
184			$url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA;
                    
185			$contents .= call_user_func( "sendcontact", $url );
                    
186		
                    
187			include ( NV_ROOTDIR . "/includes/header.php" );
                    
188			echo nv_site_theme( $contents );
                    
188			echo nv_site_theme( $contents );
                    
189			include ( NV_ROOTDIR . "/includes/footer.php" );
                    
190			exit();
                    
218$checkss = md5( $client_info['session_id'] . $global_config['sitekey'] );
                    
219$base_url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name;
                    
220$contents = call_user_func( "main_theme", $array_content, $array_rows, $base_url, $checkss );
                    
                
DatabasePeopleRetriever.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 280 lines
                    
1<?php
                    
2
                    
46            if ($searchFields = array_diff($this->searchFields, $defaultFields)) {
                    
47                return array_unique($searchFields);
                    
48            }
                    
                
MimeType.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 359 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: MimeType.php 20505 2010-01-21 21:40:23Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
119        } elseif (!is_array($mimetype)) {
                    
120            require_once 'Zend/Validate/Exception.php';
                    
121            throw new Zend_Validate_Exception("Invalid options to validator provided");
                    
162     * Sets the magicfile to use
                    
163     * if null, the MAGIC constant from php is used
                    
164     *
                    
172        } else if (!is_readable($file)) {
                    
173            require_once 'Zend/Validate/Exception.php';
                    
174            throw new Zend_Validate_Exception('The given magicfile can not be read');
                    
                
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";
                    
39
                    
                
atom.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                }
                    
                
Type.class.php http://na-agent.googlecode.com/svn/trunk/ | PHP | 505 lines
                    
1<?php
                    
2
                    
170		try {
                    
171			php_Boot::$skip_constructor = true;
                    
172			$rfl = $cl->__rfl__();
                    
186			}
                    
187			php_Boot::$skip_constructor = false;
                    
188			{
                    
199			$GLOBALS['%s']->push($GLOBALS['%e'][0]);
                    
200			php_Boot::$skip_constructor = false;
                    
201			throw new HException("Unable to instantiate " . Std::string($cl));
                    
275		{
                    
276			$?tmp3 = new _hx_array(array_values(array_unique($r)));
                    
277			$GLOBALS['%s']->pop();
                    
306		{
                    
307			$?tmp3 = new _hx_array(array_unique($r));
                    
308			$GLOBALS['%s']->pop();
                    
                
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_CodeBrowser
                    
                
add.php http://viet-group.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, $lang_module['file_addfile'], $array['title'], $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}
                    
                
Model.php http://devj.googlecode.com/svn/trunk/ | PHP | 612 lines
                    
1<?php
                    
2// ??????
                    
97        if (empty($this->fieldsName) && ! empty($this->tableName)) {
                    
98            if (is_file(CACHEPATH . DS . 'array_CTABLE_' . $this->tableFullName . '.php')) {
                    
99                $this->fieldsName = include (CACHEPATH . DS . 'array_CTABLE_' . $this->tableFullName . '.php');
                    
546            } else {
                    
547                $value = implode('\' , \'', array_unique($value));
                    
548                $condition[] = "`{$key}` IN ('{$value}')";
                    
                
main.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 297 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 = "";
                    
                
main.php http://viet-group.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                nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['download_editfile'], $array['title'], $admin_info['userid'] );
                    
246                Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
247                exit();
                    
                
filequeue.php http://viet-group.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();
                    
                
content.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 866 lines
                    
1<?php
                    
2
                    
12{
                    
13    require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' );
                    
14}
                    
172    {
                    
173        Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "" );
                    
174        die();
                    
239{
                    
240    $catids = array_unique( $nv_Request->get_typed_array( 'catids', 'post', 'int', array() ) );
                    
241    $id_block_content = array_unique( $nv_Request->get_typed_array( 'bids', 'post', 'int', array() ) );
                    
                
feed.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 547 lines
                    
1<?php
                    
2/**
                    
318
                    
319	$cat_names = array_unique($cat_names);
                    
320
                    
442 *
                    
443 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
                    
444 *
                    
                
misc.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 618 lines
                    
1<?php
                    
2/**
                    
156
                    
157	// Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
                    
158	if ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) {
                    
183		$oldfiles = array_reverse( $oldfiles );
                    
184		$oldfiles = array_unique( $oldfiles );
                    
185		if ( 5 < count( $oldfiles ))
                    
299
                    
300	$functions = array_unique( $functions );
                    
301	sort( $functions );
                    
302	$ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );
                    
303	$ignore_functions = array_unique( $ignore_functions );
                    
304
                    
389		/* First we check if the DOMDocument class exists. If it does not exist,
                    
390		 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file,
                    
391		 * hence we just bail out and tell user that pretty permalinks cannot be used.
                    
                
guestban.php http://adminserv.googlecode.com/svn/trunk/ | PHP | 545 lines
                    
1<?php
                    
2	// GAMEDATA
                    
50		}
                    
51		$blackListPlayer = array_unique($blackListPlayer);
                    
52		
                    
237<section class="cadre left">
                    
238	<form method="post" action="?p=<?php echo USER_PAGE; ?>">
                    
239	<div id="banlist">
                    
239	<div id="banlist">
                    
240		<h1>Banlist<?php if($countBanList > 0){ echo ' ('.$countBanList.')'; } ?></h1>
                    
241		<div class="title-detail">
                    
242			<ul>
                    
243				<li><a class="cleanList" href="?p=<?php echo USER_PAGE; ?>&amp;clean=banlist" data-empty="La liste est déjŕ vide.">Vider la liste</a></li>
                    
244				<li><input type="checkbox" name="checkAllBanlist" id="checkAllBanlist" value=""<?php if($countBanList == 0){ echo ' disabled="disabled"'; } ?> /></li>
                    
256			<tbody>
                    
257				<?php
                    
258					$showBanList = null;
                    
                
frames.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 592 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage WebTester
                    
6 *  @version    $Id: frames.php 1784 2008-04-26 13:07:14Z pp11 $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/page.php');
                    
13require_once(dirname(__FILE__) . '/user_agent.php');
                    
401        }
                    
402        return array_values(array_unique($urls));
                    
403    }
                    
                
roadmap_page.php git://pkgs.fedoraproject.org/mantis | PHP | 317 lines
                    
1<?php
                    
2# MantisBT - a php based bugtracking system
                    
25	  */
                    
26	require_once( 'core.php' );
                    
27
                    
27
                    
28	require_once( 'bug_api.php' );
                    
29
                    
36
                    
37		$t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line( $t_project_name ) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line( $t_version_name ) . '</a>';
                    
38
                    
47		echo '<tt>';
                    
48		echo '<br />', $t_release_title, $t_scheduled_release_date, lang_get( 'word_separator' ), print_bracket_link( 'view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value( FILTER_PROPERTY_TARGET_VERSION, $t_version_name ), lang_get( 'view_bugs_link' ) ), '<br />';
                    
49
                    
107
                    
108		$t_project_ids_to_check = array_unique( $t_project_ids );
                    
109		$t_project_ids = array();
                    
                
data.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" );
                    
77            
                    
                
reflection_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    }
                    
                
CommonDaoWorker.class.php git://github.com/onPHP/onphp-framework.git | PHP | 505 lines
                    
1<?php
                    
2/****************************************************************************
                    
170			// dupes, if any, will be resolved later @ ArrayUtils::regularizeList
                    
171			$ids = array_unique($ids);
                    
172			
                    
                
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);
                    
278
                    
                
request.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		{
                    
                
planet.controller.php http://xe-planet.googlecode.com/svn/ | PHP | 937 lines
                    
1<?php
                    
2	/**
                    
226
                    
227			$calling = array_unique($calling);
                    
228			foreach($calling as $k => $module_srl){
                    
456			if(count($arrTags)) {
                    
457				$arrTags = array_unique($arrTags);
                    
458				foreach($arrTags as $tag){
                    
                
UserAction.class.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 556 lines
                    
1<?php 
                    
2class UserAction extends AdministratorAction {
                    
170    		$uids		= model('UserGroup')->getUidByUserGroup($_POST['user_group_id']);
                    
171    		$uids		= array_unique( $uids );
                    
172    		//???????????????
                    
                
sfProjectConfiguration.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 597 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfProjectConfiguration.class.php 13929 2008-12-10 22:06:40Z FabianLange $
                    
18 */
                    
83
                    
84      if (is_readable($file = sprintf('%s/config/%s.class.php', $path, $class)))
                    
85      {
                    
281    $configs = array();
                    
282    foreach (array_unique($files) as $file)
                    
283    {
                    
                
ctl.gallery.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 594 lines
                    
1<?php
                    
2class ctl_gallery extends shopPage{
                    
48            }
                    
49            $cat_id = array_unique($cat_id);
                    
50            $this->id = implode(",",$cat_id);
                    
147                }
                    
148                $tmp_type = array_unique($tmp_type);
                    
149                if (count($tmp_type) == 1){
                    
198        }
                    
199        $cat_id = array_unique($cat_id); //???? by yangyichao 2012-1-30
                    
200
                    
                
ctl.spec.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 433 lines
                    
1<?php
                    
2class ctl_spec extends adminPage{
                    
218        foreach($_POST['vars'] as $d=>$vs){
                    
219            $vars[] = array('id'=>$d,'name'=>$vs,'vars'=>json_encode(array_unique($_POST['val'][$d])));
                    
220        }
                    
                
mdl.wholesaleSingle.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 618 lines
                    
1<?php
                    
2/**
                    
6 * @package trading
                    
7 * @version $Id: mdl.wholesale.php 1985 2008-09-03 06:36:02Z flaboy $
                    
8 * @copyright 2003-2007 ShopEx
                    
11 */
                    
12require_once('shopObject.php');
                    
13
                    
87        }
                    
88        $aSingleItems = array_unique($aSingleItems);
                    
89        $trading['ws_pdt'] = array_merge($trading['ws_pdt'], $aSingleItems);
                    
103        if($aGid){
                    
104            $aGid = array_unique($aGid);
                    
105            $sSql = 'select goods_id,wss_params from sdb_goods where goods_id in ('.implode(',',$aGid).')';
                    
                
ktheme.class.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 430 lines
                    
190		global $kapenta;
                    
191		$file = 'modules/' . $module . '/views/' . $fn . '.fn.php';
                    
192		if ('theme' == $module) 
                    
192		if ('theme' == $module) 
                    
193			{ $file = 'themes/' . $kapenta->defaultTheme . '/views/' . $fn . '.fn.php'; }
                    
194
                    
225		
                    
226		$blocks = array_unique($blocks);		// prevent looking up the same thing twice
                    
227		return $blocks;
                    
                
content.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 726 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" );
                    
279            
                    
                
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 callback
                    
                
main.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 332 lines
                    
1<?php
                    
2
                    
44	
                    
45	$allow_sitelangs = array_unique( $allow_sitelangs );
                    
46
                    
54
                    
55	$xtpl->assign( 'URL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
56
                    
59	
                    
60	include ( NV_ROOTDIR . "/includes/header.php" );
                    
61	echo nv_admin_theme( $contents );
                    
61	echo nv_admin_theme( $contents );
                    
62	include ( NV_ROOTDIR . "/includes/footer.php" );
                    
63	exit();
                    
78	
                    
79		require_once ( NV_ROOTDIR . '/includes/sqldata.php' );
                    
80	
                    
                
html.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	 *
                    
                
HandlePolicyViolationError.php http://google-api-adwords-php.googlecode.com/svn/trunk/ | PHP | 152 lines
                    
1<?php
                    
2/**
                    
33// Add the library to the include path. This is not neccessary if you've already
                    
34// done so in your php.ini file.
                    
35$path = dirname(__FILE__) . '/../../../src';
                    
37
                    
38require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
                    
39require_once 'Google/Api/Ads/Common/Util/ErrorUtils.php';
                    
110    }
                    
111    $operationIndicesToRemove = array_unique($operationIndicesToRemove);
                    
112    rsort($operationIndicesToRemove, SORT_NUMERIC);
                    
134// Don't run the example if the file is being included.
                    
135if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
                    
136  return;
                    
140  // Get AdWordsUser from credentials in "../auth.ini"
                    
141  // relative to the AdWordsUser.php file's directory.
                    
142  $user = new AdWordsUser();
                    
                
sendmail.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 511 lines
                    
1<?php
                    
2# Every mails sent should be using functions listed here.
                    
64  if ($to != "") 
                    
65    { $to = array_unique(explode(",", ereg_replace(" ", "", $to))); } 
                    
66  else 
                    
159      $exclude_list = ereg_replace(";", ",", $exclude_list);
                    
160      $exclude = array_unique(explode(",", ereg_replace(" ", "", $exclude_list)));
                    
161    }
                    
                
AuthController.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 409 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
23*  @version  Release: $Revision: 6878 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
32		$this->ssl = true;
                    
33		$this->php_self = 'authentication.php';
                    
34
                    
42		if (self::$cookie->isLogged() AND !Tools::isSubmit('ajax'))
                    
43			Tools::redirect('my-account.php');
                    
44
                    
90				$this->errors[] = Tools::displayError('You must register at least one phone number');
                    
91			$this->errors = array_unique(array_merge($this->errors, $customer->validateControler()));
                    
92			/* Preparing address */
                    
                
AutoDetect.php http://php-csv-utils.googlecode.com/svn/trunk/ | PHP | 424 lines
                    
1<?php
                    
2/**
                    
9 * 
                    
10 * @package     PHP CSV Utilities
                    
11 * @subpackage  AutoDetect
                    
14 * @license     GNU Lesser General Public License
                    
15 * @version     $Id: AutoDetect.php 86 2010-04-26 03:44:15Z luke.visinoni $
                    
16 */
                    
90        foreach ($types as $key => $column) {
                    
91            $unique = array_unique($column);
                    
92            if (count($unique) == 1) { // if all are of the same type
                    
94                    // all rows type matched header type, so try length now
                    
95                    $unique = array_unique($lengths[$key]);
                    
96                    if (count($unique) == 1) {
                    
                
RightsService.class.php http://pagizer-cms.googlecode.com/svn/trunk/ | PHP | 616 lines
                    
1<?php
                    
2
                    
74
                    
75		return array_unique($tmp);
                    
76	}
                    
86		$fileResolver = f_file_Resolver::getInstance();
                    
87		return $fileResolver->fromDirectory($path.DS."actions")->setMask("*Action.class.php")->setRecursive(true)->find();
                    
88	}
                    
                
class.iCalBase.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 699 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
27* @license GNU General Public License v3
                    
28* @link http://code.google.com/p/flaimo-php/
                    
29* @package iCalendar
                    
266			if (count($recdays) > 1) {
                    
267				$recdays = array_values(array_unique($recdays));
                    
268			} // end if
                    
                
article.class.php http://xklog.googlecode.com/svn/ | PHP | 905 lines
                    
1<?php
                    
2
                    
105				$reply = str_replace( array("\r\n", "\n", "\r"), '<br />', $reply );
                    
106				$db->query( "UPDATE `" . DB_PREFIX . "comment` SET replyuser = '" . $_SESSION['user_name'] . "',reply = '$reply',replytime = " . PHP_TIME . " WHERE cid = $id" );
                    
107				echo '<p class="warning">' . '??????' . '</p>';
                    
156		if( count( $_CACHE['category'] ) == 0 ) {
                    
157			show_admin_message( '??????', 'admin_article.php' );
                    
158			exit;
                    
172		}
                    
173		show_admin_message( '???????????', 'admin_article.php' );
                    
174		exit;
                    
279			cache_tag();
                    
280			show_admin_message( '????????', 'admin_article.php?action=article' );
                    
281		}elseif( $control == '??' ) {
                    
296			cache_category();
                    
297			show_admin_message( '?????????????????????', 'admin_article.php?action=article' );
                    
298		}elseif( $control == '??' ) {
                    
                
CHostInterface.php git://pkgs.fedoraproject.org/zabbix | PHP | 957 lines
                    
1<?php
                    
2/*
                    
20?>
                    
21<?php
                    
22/**
                    
245
                    
246		$sqlParts['select'] = array_unique($sqlParts['select']);
                    
247		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
247		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
248		$sqlParts['where'] = array_unique($sqlParts['where']);
                    
249		$sqlParts['group'] = array_unique($sqlParts['group']);
                    
249		$sqlParts['group'] = array_unique($sqlParts['group']);
                    
250		$sqlParts['order'] = array_unique($sqlParts['order']);
                    
251
                    
                
CScreen.php git://pkgs.fedoraproject.org/zabbix | PHP | 611 lines
                    
1<?php
                    
2/*
                    
20?>
                    
21<?php
                    
22/**
                    
160
                    
161		$sqlParts['select'] = array_unique($sqlParts['select']);
                    
162		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
162		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
163		$sqlParts['where'] = array_unique($sqlParts['where']);
                    
164		$sqlParts['group'] = array_unique($sqlParts['group']);
                    
164		$sqlParts['group'] = array_unique($sqlParts['group']);
                    
165		$sqlParts['order'] = array_unique($sqlParts['order']);
                    
166
                    
275
                    
276			$groupsToCheck = array_unique($groupsToCheck);
                    
277			$hostsToCheck = array_unique($hostsToCheck);
                    
                
CImage.php git://pkgs.fedoraproject.org/zabbix | PHP | 571 lines
                    
1<?php
                    
2/*
                    
20?>
                    
21<?php
                    
22/**
                    
151
                    
152		$sqlParts['select'] = array_unique($sqlParts['select']);
                    
153		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
153		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
154		$sqlParts['where'] = array_unique($sqlParts['where']);
                    
155		$sqlParts['order'] = array_unique($sqlParts['order']);
                    
                
CService.php git://pkgs.fedoraproject.org/zabbix | PHP | 1564 lines
                    
1<?php
                    
2/*
                    
313		if ($deleteDependenciesForServiceIds) {
                    
314			$this->deleteDependencies(array_unique($deleteDependenciesForServiceIds));
                    
315		}
                    
392		);
                    
393		$serviceIds = array_unique($serviceIds);
                    
394		$this->checkServicePermissions($serviceIds);
                    
486
                    
487		$this->checkServicePermissions(array_unique(zbx_objectValues($serviceTimes, 'serviceid')));
                    
488	}
                    
                
CUser.php git://pkgs.fedoraproject.org/zabbix | PHP | 1224 lines
                    
1<?php
                    
2/*
                    
196
                    
197		$sqlParts['select'] = array_unique($sqlParts['select']);
                    
198		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
198		$sqlParts['from'] = array_unique($sqlParts['from']);
                    
199		$sqlParts['where'] = array_unique($sqlParts['where']);
                    
200		$sqlParts['order'] = array_unique($sqlParts['order']);
                    
                
MantisEnum.class.php git://pkgs.fedoraproject.org/mantis | PHP | 221 lines
                    
1<?php
                    
2# MantisBT - a php based bugtracking system
                    
161	public static function getValues( $enumString ) {
                    
162		return array_unique( array_keys( MantisEnum::getAssocArrayIndexedByValues( $enumString ) ) );
                    
163	}
                    
                
rebuild.ctrl.php git://github.com/alombarte/SIFO.git | PHP | 259 lines
                    
1<?php
                    
2
                    
12	protected $filenames = array(
                    
13		'config' => 'configuration_files.config.php',
                    
14		'templates' => 'templates.config.php',
                    
14		'templates' => 'templates.config.php',
                    
15		'classes' => 'classes.config.php',
                    
16		'locale' => 'locale.config.php'
                    
34
                    
35		$instance_inheritance 	= array_unique( \Sifo\Domains::getInstance()->getInstanceInheritance() );
                    
36
                    
102
                    
103		$instance_inheritance 	= implode( ' > ', array_reverse( array_unique( \Sifo\Domains::getInstance()->getInstanceInheritance() ) ) );
                    
104
                    
146	/**
                    
147	 * Converts something like home/index.ctrl.php to HomeIndex.
                    
148	 *
                    
                
Query.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 284 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @author The phpLDAPadmin development team
                    
6 * @package phpLDAPadmin
                    
11 *
                    
12 * @package phpLDAPadmin
                    
13 * @subpackage Queries
                    
71						error(sprintf(_('In the XML file (%s), [%s] contains an unknown key.'),
                    
72							$this->filename,$xml_key),'error','index.php');
                    
73
                    
73
                    
74					$this->base = array_unique($this->base);
                    
75					break;
                    
252
                    
253			$result = array_unique($result);
                    
254			sort($result);
                    
                
Attribute.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Attribute.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Ldap/Converter.php';
                    
26
                    
148        if (!isset($data[$attribName])) return;
                    
149        $data[$attribName] = array_values(array_unique($data[$attribName]));
                    
150    }
                    
214    /**
                    
215     * Converts a PHP data type into its LDAP representation
                    
216     *
                    
218     * @param          mixed $value
                    
219     * @return         string|null - null if the PHP data type cannot be converted.
                    
220     */
                    
                
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), '&nbsp;&nbsp;&nbsp;-&nbsp;');
                    
144                return false;
                    
                
last_visited_api.php git://pkgs.fedoraproject.org/mantis | PHP | 92 lines
                    
1<?php
                    
2# MantisBT - a php based bugtracking system
                    
27 */
                    
28require_once( 'tokens_api.php' );
                    
29
                    
60		$t_ids = explode( ',', $p_issue_id . ',' . $t_value );
                    
61		$t_ids = array_unique( $t_ids );
                    
62		$t_ids = array_slice( $t_ids, 0, config_get( 'recently_visited_count' ) );
                    
                
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        }
                    
                
functions.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 263 lines
                    
1<?php
                    
2
                    
10define( 'NV_IS_MOD_SHOPS', true );
                    
11require_once ( NV_ROOTDIR . "/modules/" . $module_file . "/global.functions.php" );
                    
12
                    
24{
                    
25    $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $alias_i . "";
                    
26    $global_array_cat[$catid_i] = array( 
                    
42{
                    
43    $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=group/" . $alias_i . "-".$groupid_i;
                    
44    $global_array_group[$groupid_i] = array( 
                    
126    }
                    
127    return array_unique( $array_cat );
                    
128}
                    
256    $contents .= "<meta http-equiv=\"refresh\" content=\"2;url=" . $nv_redirect . "\" />";
                    
257    include ( NV_ROOTDIR . "/includes/header.php" );
                    
258    echo nv_site_theme( $contents );
                    
                
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    {
                    
                
functions.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 263 lines
                    
1<?php
                    
2
                    
10define( 'NV_IS_MOD_SHOPS', true );
                    
11require_once ( NV_ROOTDIR . "/modules/" . $module_file . "/global.functions.php" );
                    
12
                    
24{
                    
25    $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $alias_i . "";
                    
26    $global_array_cat[$catid_i] = array( 
                    
42{
                    
43    $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=group/" . $alias_i . "-" . $groupid_i;
                    
44    $global_array_group[$groupid_i] = array( 
                    
126    }
                    
127    return array_unique( $array_cat );
                    
128}
                    
256    $contents .= "<meta http-equiv=\"refresh\" content=\"2;url=" . $nv_redirect . "\" />";
                    
257    include ( NV_ROOTDIR . "/includes/header.php" );
                    
258    echo nv_site_theme( $contents );
                    
                
FactoryMethod.php git://github.com/hafriedlander/phockito.git | PHP | 206 lines
                    
1<?php
                    
2
                    
117  public function createCalls(array $names) {
                    
118    $names = array_unique($names);
                    
119    foreach ($names as $name) {
                    
194  public function getCommentText() {
                    
195    return implode(PHP_EOL, $this->comment);
                    
196  }
                    
200    foreach ($this->comment as $line) {
                    
201      $comment .= PHP_EOL . $indent . ' * ' . $line;
                    
202    }
                    
202    }
                    
203    $comment .= PHP_EOL . $indent . ' */';
                    
204    return $comment;
                    
                
Package.class.php http://dyhb-frame.googlecode.com/svn/trunk/ | PHP | 342 lines
                    
9	static private $OBJECTS=array();
                    
10	static private $_arrClassRegex=array('/^(.+)\.class\.php$/i','/^(.+)\.interface\.php$/i');
                    
11	static private $_bAutoLoad=true;
                    
15	static private $_arrInterPat=array('%DirPath%/%ClassName%.interface.php');
                    
16	static private $_arrInsPat=array('%DirPath%/%ClassName%.ins.php');
                    
17	static private $_arrNotFiles=array();
                    
24	'VIEW'=>'LibPHP/Core/View',
                    
25	'VIEWHTML'=>'LibPHP/Core/View/ViewHtml',
                    
26	'APP'=>'LibPHP/App',
                    
27	'CONFIG'=>'LibPHP/App/Lib/Config',
                    
28	'HTMLRESOURCE'=>'LibPHP/App/Lib/HtmlResource',
                    
29	'CACHE'=>'LibPHP/App/Package/Cache',
                    
64			foreach($arrFileStores as $nKeyFileStore=>$sFileStoreValue){
                    
65				if(in_array(DYHB_PATH.'/LibPHP/'.$sFileStoreValue,(array)(include DYHB_PATH.'/LibPHP/Common/Paths.inc.php'))){
                    
66					unset($arrFileStores[$nKeyFileStore]);
                    
                
export.php http://core.svn.wordpress.org/ | PHP | 219 lines
                    
1<?php
                    
2require_once ('admin.php');
                    
3$title = __('Export');
                    
4$parent_file = 'edit.php';
                    
5
                    
8
                    
9require_once ('admin-header.php');
                    
10?>
                    
12<div class="wrap">
                    
13<h2><?php _e('Export'); ?></h2>
                    
14<div class="narrow">
                    
141
                    
142<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"-->
                    
143<rss version="2.0"
                    
157<?php if ( $cats ) : foreach ( $cats as $c ) : ?>
                    
158	<wp:category><wp:category_nicename><?php echo $c->category_nicename; ?></wp:category_nicename><wp:category_parent><?php echo $c->category_parent ? $cats[$c->category_parent]->cat_name : ''; ?></wp:category_parent><wp:posts_private><?php echo $c->posts_private ? '1' : '0'; ?></wp:posts_private><wp:links_private><?php echo $c->links_private ? '1' : '0'; ?></wp:links_private><?php wxr_cat_name($c); ?><?php wxr_category_description($c); ?></wp:category>
                    
159<?php endforeach; endif; ?>
                    
                
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	}
                    
                
update.lib.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 4312 lines
                    
1<?php
                    
2/**
                    
9 * @license	http://www.gnu.org/licenses/gpl.html   Licensed under the GNU General Public License v3.
                    
10 * @version	SVN: $Id: update.lib.php 2351 2011-09-13 19:45:48Z ulminia@gmail.com $
                    
11 * @link	   http://www.wowroster.net
                    
73			{
                    
74				$hookfile = ROSTER_ADDONS . $row['basename'] . DIR_SEP . 'inc' . DIR_SEP . 'update_hook.php';
                    
75
                    
78					// Check if this addon is in the process of an upgrade and deny access if it hasn't yet been upgraded
                    
79					$installfile = ROSTER_ADDONS . $row['basename'] . DIR_SEP . 'inc' . DIR_SEP . 'install.def.php';
                    
80					$install_class = $row['basename'] . 'Install';
                    
114					{
                    
115						$roster->locale->add_locale_file(ROSTER_ADDONS . $addon['basename'] . DIR_SEP . 'locale' . DIR_SEP . $lang . '.php',$lang);
                    
116					}
                    
136		// Remove duplicates
                    
137		$this->files = array_unique($this->files);
                    
138
                    
                
nutils_tests.php http://otpauth.googlecode.com/svn/trunk/ | PHP | 510 lines
                    
1<?php
                    
2    if (! defined('SIMPLE_TEST')) {
                    
5     
                    
6    require_once('otpauthHtmlReporter.class.php');
                    
7    require_once('../nutils.php');
                    
414             
                    
415            $randoms_uniq = array_unique($randoms);
                    
416             
                    
431             
                    
432            $randoms_uniq = array_unique($randoms);
                    
433             
                    
445             
                    
446            $randoms_uniq = array_unique($randoms);
                    
447             
                    
                
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 );
                    
83        
                    
                
OpenLdap.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 175 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OpenLdap.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Ldap/Node/Schema/Item.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node/Schema/ObjectClass/Interface.php';
                    
31
                    
117        }
                    
118        $must = array_unique($must);
                    
119        $may = array_unique($may);
                    
                
fixBug20757.php https://bitbucket.org/ghostfreeman/freeside-wiki.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
23
                    
24require_once( __DIR__ . '/../Maintenance.php' );
                    
25
                    
132
                    
133			$secondaryIds = array_unique( $secondaryIds );
                    
134
                    
229					// Add a blob_tracking row so that the new reference can be recompressed
                    
230					// without needing to run trackBlobs.php again
                    
231					$dbw->insert( 'blob_tracking',
                    
                
step_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();
                    
                
pm.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 147 lines
                    
1<?php
                    
2
                    
6
                    
7    $Id: pm.php 12126 2008-01-11 09:40:32Z heyond $
                    
8*/
                    
51
                    
52        $msgto = array_unique(explode(',', $msgto));
                    
53        $isusername && $msgto = $_ENV['user']->name2id($msgto);
                    
109          if($pm) {
                    
110              require_once UC_ROOT.'lib/uccode.class.php';
                    
111            $this->uccode = new uccode();
                    
121         $pms = $_ENV['pm']->get_pm_by_pmid($this->user['uid'], $pmid);
                    
122          require_once UC_ROOT.'lib/uccode.class.php';
                    
123        $this->uccode = new uccode();
                    
                
Report.php git://pkgs.fedoraproject.org/php-bartlett-PHP-CompatInfo | PHP | 168 lines
                    
9 * @author   Laurent Laville <pear@laurent-laville.org>
                    
10 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
11 * @version  SVN: $Id$
                    
11 * @version  SVN: $Id$
                    
12 * @link     http://php5.laurent-laville.org/compatinfo/
                    
13 */
                    
14
                    
15require_once 'PHP/Timer.php';
                    
16
                    
20 * @category PHP
                    
21 * @package  PHP_CompatInfo
                    
22 * @author   Laurent Laville <pear@laurent-laville.org>
                    
22 * @author   Laurent Laville <pear@laurent-laville.org>
                    
23 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
24 * @version  Release: 2.5.0
                    
                
blogsubmitshow.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 241 lines
                    
1<?php
                    
2require_once(ABSPATH . '/wp-load.php');
                    
2require_once(ABSPATH . '/wp-load.php');
                    
3require_once(ABSPATH . '/wp-config.php');
                    
4require_once(ABSPATH . WPINC . '/functions.php');
                    
4require_once(ABSPATH . WPINC . '/functions.php');
                    
5require_once(ABSPATH . WPINC . '/rss.php');  
                    
6require_once(ABSPATH . WPINC . '/feed.php');
                    
6require_once(ABSPATH . WPINC . '/feed.php');
                    
7require_once(ABSPATH . WPINC . '/class-simplepie.php'); 
                    
8require_once (ABSPATH . WPINC . '/class-feed.php');
                    
8require_once (ABSPATH . WPINC . '/class-feed.php');
                    
9require_once(ABSPATH . '/wp-includes/class-snoopy.php'); 
                    
10require_once (ABSPATH . WPINC . '/pluggable.php');
                    
76preg_match_all('/<img([^>&^<])*(src|SRC)=\"([^"]*)\" ([^<&^>])*\/>/i',$body,$img_array); 
                    
77$img_array = array_unique($img_array[3]); 
                    
78set_time_limit(0); 
                    
                
message.service.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 576 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
8/**
                    
9 * message.service.php
                    
10 *
                    
134		//????????
                    
135		$tuids = array_unique($tuids);
                    
136		
                    
                
by-email.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 1191 lines
                    
4require( WP_PLUGIN_DIR . '/invite-anyone/widgets/widgets.php' );
                    
5require( WP_PLUGIN_DIR . '/invite-anyone/by-email/cloudsponge-integration.php' );
                    
6
                    
82		<div class="padder">
                    
83		<?php if ( $bp->action_variables[1] == 'submit' ) : ?>
                    
84			<?php if ( $_POST['opt_out_submit'] == $opt_out_button_text && $email = urldecode( $_POST['opt_out_email'] ) ) : ?>
                    
106
                    
107			<form action="<?php echo $email ?>/submit" method="post">
                    
108
                    
119
                    
120				<p><input type="submit" name="opt_out_submit" value="<?php echo $opt_out_button_text ?>" /> <input type="submit" name="oops_submit" value="<?php echo $oops_button_text ?>" />
                    
121				</p>
                    
148		jQuery(document).ready( function() {
                    
149			jQuery("input#signup_email").val("<?php echo $email ?>");
                    
150		});
                    
                
acp_groups.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 776 lines
                    
1<?php
                    
2/**
                    
4* @package acp
                    
5* @version $Id: acp_groups.php 9053 2008-11-09 15:10:40Z acydburn $
                    
6* @copyright (c) 2005 phpBB Group
                    
28		global $config, $db, $user, $auth, $template, $cache;
                    
29		global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $file_uploads;
                    
30
                    
38
                    
39		include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
                    
40
                    
52		// Clear some vars
                    
53		$can_upload = (file_exists($phpbb_root_path . $config['avatar_path']) && @is_writable($phpbb_root_path . $config['avatar_path']) && $file_uploads) ? true : false;
                    
54		$group_row = array();
                    
262
                    
263				include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
                    
264
                    
                
ucp_main.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 830 lines
                    
160						'U_LAST_POST_AUTHOR'	=> get_username_string('profile', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']),
                    
161						'U_NEWEST_POST'			=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$g_forum_id&amp;t=$topic_id&amp;view=unread") . '#unread',
                    
162						'U_VIEW_TOPIC'			=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$g_forum_id&amp;t=$topic_id"))
                    
169					{
                    
170						include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
                    
171					}
                    
193
                    
194					'U_SEARCH_USER'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'author_id=' . $user->data['user_id'] . '&amp;sr=posts') : '',
                    
195				));
                    
327							$last_post_time = $user->format_date($row['forum_last_post_time']);
                    
328							$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;p=" . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
                    
329						}
                    
351							'U_LAST_POST'			=> $last_post_url,
                    
352							'U_VIEWFORUM'			=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']))
                    
353						);
                    
                
fulltext_native.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 1690 lines
                    
1<?php
                    
2/**
                    
4* @package search
                    
5* @version $Id: fulltext_native.php 9173 2008-12-04 17:01:39Z naderman $
                    
6* @copyright (c) 2005 phpBB Group
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
21*/
                    
22include_once($phpbb_root_path . 'includes/search/search.' . $phpEx);
                    
23
                    
48	{
                    
49		global $phpbb_root_path, $phpEx, $config;
                    
50
                    
57		{
                    
58			include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
                    
59		}
                    
                
memberlist.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 1686 lines
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.' . $phpEx);
                    
18include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
                    
258				'U_GROUP'			=> $u_group,
                    
259				'U_PM'				=> ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($row['user_allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=compose&amp;u=' . $row['user_id']) : '',
                    
260
                    
304				$s_select = (@extension_loaded('xml') && $config['jab_enable']) ? 'S_SEND_JABBER' : 'S_NO_SEND_JABBER';
                    
305				$s_action = append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&amp;action=$action&amp;u=$user_id");
                    
306			break;
                    
341
                    
342						include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
                    
343
                    
                
_php.py https://code.google.com/p/decada/ | Python | 449 lines
                    
1###############################################################################
                    
2# Name: php.py                                                                #
                    
3# Purpose: Define PHP syntax for highlighting and other features              #
                    
11AUTHOR: Cody Precord
                    
12@summary: Lexer configuration module for PHP.
                    
13
                    
16__author__ = "Cody Precord <cprecord@editra.org>"
                    
17__svnid__ = "$Id: _php.py 68798 2011-08-20 17:17:05Z CJP $"
                    
18__revision__ = "$Revision: 68798 $"
                    
34# PHP Keywords
                    
35PHP_KEYWORDS = ("__LINE__ __FILE__ __FUNCTION__ __CLASS__ __METHOD__ declare "
                    
36                "else enddeclare endswitch elseif endif if switch as do endfor "
                    
188            "getmyuid getopt getrusage ini_alter ini_get_all ini_get "
                    
189            "ini_set php_ini_scanned_files php_logo_guid php_sapi_name "
                    
190            "phpcredits phpinfo phpversion putenv set_magic_quotes_runtime "
                    
                
pichi_functional.php http://pichi.googlecode.com/svn/trunk/ | PHP | 526 lines
                    
1<?php
                    
2
                    
2
                    
3require_once("command_handler.php");
                    
4
                    
200				$tmp_ar[] = $tmp['name'];
                    
201			$tmp_ar = array_unique($tmp_ar);
                    
202			$wtfnum = count($tmp_ar);
                    
                
base.php http://prosporous.googlecode.com/svn/trunk/ | PHP | 1077 lines
                    
1<?php
                    
2//define('ROOT_PATH','sevenel/');
                    
6		case "Smarty" :{
                    
7		include($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."Plug-in/smarty/Smarty.class.php");
                    
8		break;
                    
10		case "xajax" :{
                    
11		include($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."Plug-in/xajax/xajax_core/xajax.inc.php");
                    
12		break;
                    
14		case "ext" :{
                    
15		include($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/classes/ext/".$class.".php");
                    
16		break;
                    
18		default:{
                    
19		include($_SERVER['DOCUMENT_ROOT'].ROOT_PATH."includes/classes/".ucfirst($class).".php");
                    
20		break;
                    
23}
                    
24/**array_unique;array ???? $xian ???????
                    
25 * @param unknown_type $ar
                    
                
filter.function.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 560 lines
                    
1<?php
                    
2/***************************************************************
                    
126		global $adb;
                    
127		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.resource.class.php');
                    
128		$resObj = new CoreResourceBase();
                    
145		
                    
146		$attachments_idstmp = array_unique($attachments_ids);
                    
147		$attachments_arrtmp = $resObj->getItemsValues(array('ids' => $attachments_idstmp));
                    
171	if( $isfront == true && preg_match_all("/\{\{block\}\}(\d+)\{\{\/block\}\}/i", $content, $matches) ) {
                    
172		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/block/block.class.php');
                    
173		$blkObj = new BlockBase();
                    
178		
                    
179		$blocks_idstmp = array_unique($blocks_ids);
                    
180		$blocks_arrtmp = $blkObj->getItems(array('ids' => $blocks_idstmp));
                    
216	if( $isfront == true && preg_match_all("/\{\{form\}\}(\d+)\{\{\/form\}\}/i", $content, $matches) ) {
                    
217		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'frontend.filter.class.php');
                    
218		$_feObj = new FrontendFilterBase();
                    
                
lib.email.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 557 lines
                    
1<?php
                    
2/***************************************************************
                    
127			// If duplicate images are embedded, they may show up as attachments, so remove them.
                    
128			$html_images = array_unique($html_images);
                    
129			sort($html_images);
                    
188	
                    
189	/* HPDL PHP3 */
                    
190	//function &add_text_part(&$obj, $text) {
                    
206	
                    
207	/* HPDL PHP3 */
                    
208	//function &add_html_part(&$obj) {
                    
224	
                    
225	/* HPDL PHP3 */
                    
226	//function &add_mixed_part() {
                    
236	
                    
237	/* HPDL PHP3 */
                    
238	//function &add_alternative_part(&$obj) {
                    
                
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    }
                    
                
mcontent.class.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 822 lines
                    
1<?php
                    
2/**
                    
41			$args->rss_urls = array();
                    
42			$rss_urls = array_unique(array($args->rss_url0,$args->rss_url1,$args->rss_url2,$args->rss_url3,$args->rss_url4));
                    
43			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))}
                    
26
                    
                
sfToolkit.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 &#039;, instead of &#39;
                    
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)));
                    
95    
                    
                
content.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" );
                    
240            
                    
                
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();
                    
                
ext_hhvm_infotabs.cpp git://github.com/facebook/hiphop-php.git | C++ | 6063 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
17#include <runtime/ext/ext.h>
                    
18namespace HPHP {
                    
19  struct TypedValue;
                    
                
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 {
                    
                
class_sql_interval.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 370 lines
                    
1<?php
                    
2/**
                    
7 * @version $Id$
                    
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2
                    
9 */
                    
306
                    
307		return (array_unique($childs));
                    
308	}
                    
344		
                    
345		return (array_unique($parents));
                    
346	}
                    
                
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);
                    
201
                    
                
Boolean.php git://github.com/jakubkulhan/shopaholic.git | PHP | 806 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Boolean.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Search_Query */
                    
25require_once 'Zend/Search/Lucene/Search/Query.php';
                    
26
                    
27/** Zend_Search_Lucene_Search_Weight_Boolean */
                    
28require_once 'Zend/Search/Lucene/Search/Weight/Boolean.php';
                    
29
                    
356        // Check, if all subqueries have been decomposed and all terms has the same boost factor
                    
357        if (count($subqueries) == 0  &&  count(array_unique($boostFactors)) == 1) {
                    
358            $optimizedQuery = new Zend_Search_Lucene_Search_Query_MultiTerm($terms, $tsigns);
                    
388            $terms = array();
                    
389        } else if (count($terms) > 1  &&  count(array_unique($boostFactors)) == 1) {
                    
390            $clause = new Zend_Search_Lucene_Search_Query_MultiTerm($terms, $tsigns);
                    
                
Html.php git://github.com/jakubkulhan/shopaholic.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Html.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
24/** Zend_Search_Lucene_Document */
                    
25require_once 'Zend/Search/Lucene/Document.php';
                    
26
                    
157        }
                    
158        $this->_links = array_unique($this->_links);
                    
159
                    
165        }
                    
166        $this->_headerLinks = array_unique($this->_headerLinks);
                    
167    }
                    
303            if (!$success) {
                    
304            	require_once 'Zend/Search/Lucene/Exception.php';
                    
305            	throw new Zend_Search_Lucene_Exception("Error occured while loading highlighted text fragment: '$highlightedNodeHtml'.");
                    
                
codespy.php git://github.com/Enhance-PHP/Enhance-PHP.git | PHP | 1592 lines
                    
1<?php
                    
2// Codespy PHP code coverage analyzing tool version 2.6
                    
86		   		$lines = substr_count($this->content,chr(13));
                    
87				$this->content = str_replace(chr(13),PHP_EOL,$this->content);
                    
88		   }
                    
283	{
                    
284		$tokens = token_get_all("<?php $line");
                    
285		$sf =0;
                    
289		if(isset($from[1])) {
                    
290			$title = join(', ',array_unique($from[1]));
                    
291			$return = "<pre title='$title' class='pre covered'>";
                    
302				if(isset($from[$sf+1]) ) {
                    
303					$title = join(', ',array_unique($from[$sf+1]));
                    
304					if($foundsc) {
                    
339				$lines = array_filter($lines,function($x) { return $x>0;});
                    
340				echo PHP_EOL.$file,PHP_EOL,'match cursorline /\%',join('l\|\%',array_keys($lines))."l/";
                    
341			}
                    
                
Safe.php git://github.com/clone1018/Shocky.git | PHP | 424 lines
                    
1<?php                             
                    
2
                    
71		'array_sum',		// Calculate the sum of values in an array
                    
72		'array_unique',		// Removes duplicate values from an array
                    
73		'array_unshift',	// Prepend one or more elements to the beginning of an array
                    
259	
                    
260	private static $disabledFunctions = array("eval", "call_user_func_array","call_user_func","create_function","forward_static_call_array","forward_static_call","func_get_arg","func_get_args","func_num_args","function_exists","get_defined_functions","register_shutdown_function","register_tick_function","unregister_tick_function", "file_put_contents", "file", "ini_set", "ini_get", "mail", "phpinfo", "setenv", "getenv", "socket_create", "socket_bind", "socket_listen", "socket_create_listen", "socket_create_pair", "socket_accept", "pcntl_fork", "exec", "passthru", "shell_exec", "system", "proc_open", "popen", "parse_ini_file", "show_source", "glob", "opendir", "readdir", "set_time_limit", "unlink", "rmdir", "mkdir", "rename", "copy", "dir", "scandir", "ftp_connect", "ftp_ssl_connect", "openlog", "syslog", "fsockopen", "define_syslog_variables", "pfsockopen", "snmp2_get", "snmp3_get", "snmp2_walk", "snmp2_real_walk", "snmp2_getnext", "snmp3_walk", "snmp3_real_walk", "snmpget", "snmpwalk", "snmpgetnext", "snmprealwalk", "snmp3_getnext", "snmpwalkoid", "ssh2_connect", "ssh2_fetch_stream", "ssh2_tunnel", "yaz_connect", "yaz_wait", "disk_free_space", "disk_total_space", "flock", "link", "tempnam", "tmpfile", "touch", "symlink", "pcntl_exec", "posix_kill", "posix_mkfifo", "posix_mknod", "fopen", "stream_socket_server", "stream_socket_client", "stream_socket_pair", "gc_disable", "ob_end_flush", "flush", "ini_get_all", "get_loaded_extensions", "ini_alter", "chmod", "chgrp", "chown", "posix_access", "posix_ctermid", "posix_errno", "posix_get_last_error", "posix_getcwd", "posix_getegid", "posix_geteuid", "posix_getgid", "posix_getgrgid", "posix_getgrnam", "posix_getgroups", "posix_getlogin", "posix_getpgid", "posix_getpgrp", "posix_getpid", "posix_getppid", "posix_getpwnam", "posix_getpwuid", "posix_getrlimit", "posix_getsid", "posix_getuid", "posix_initgroups", "posix_isatty", "posix_kill", "posix_mkfifo", "posix_mknod", "posix_setegid", "posix_seteuid", "posix_setgid", "posix_setpgid", "posix_setsid", "posix_setuid", "posix_strerror", "posix_times", "posix_ttyname", "posix_uname", "chdir", "opendir", "readdir", "debug_backtrace", "debug_print_backtrace");
                    
261   
                    
279		$this->code = $code;
                    
280		$this->tokens = token_get_all('<?php '.$this->code.' ?>');
                    
281		$this->errors = array();
                    
                
revision.php git://github.com/phpbb/customisation-db.git | PHP | 614 lines
                    
142
                    
143		$ordered_phpbb_versions = order_phpbb_version_list_from_db($this->phpbb_versions, $all_versions);
                    
144
                    
220
                    
221		phpbb::$template->assign_var('ICON_EDIT', '<img src="' . titania::$images_path . 'icon_edit.gif" alt="' . phpbb::$user->lang['EDIT'] . '" title="' . phpbb::$user->lang['EDIT'] . '" />');
                    
222
                    
276
                    
277				if (!isset($row['phpbb_version_branch']) || !isset(titania::$config->phpbb_versions[$row['phpbb_version_branch']]))
                    
278				{
                    
282				// OMG, it's not in our cache!
                    
283				if (!isset($versions[$row['phpbb_version_branch'] . titania::$config->phpbb_versions[$row['phpbb_version_branch']]]))
                    
284				{
                    
292					'phpbb_version_branch'		=> $row['phpbb_version_branch'],
                    
293					'phpbb_version_revision'	=> get_real_revision_version(((isset($row['phpbb_version_revision'])) ? $row['phpbb_version_revision'] : titania::$config->phpbb_versions[$row['phpbb_version_branch']]['latest_revision'])),
                    
294				);
                    
                
Boolean.php git://github.com/phpbb/customisation-db.git | PHP | 816 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Search_Query */
                    
25require_once 'Zend/Search/Lucene/Search/Query.php';
                    
26
                    
176            // Boolean query doesn't has non-insignificant subqueries
                    
177            require_once 'Zend/Search/Lucene/Search/Query/Insignificant.php';
                    
178            return new Zend_Search_Lucene_Search_Query_Insignificant();
                    
188        if ($allProhibited) {
                    
189            require_once 'Zend/Search/Lucene/Search/Query/Insignificant.php';
                    
190            return new Zend_Search_Lucene_Search_Query_Insignificant();
                    
198                    // Matching is required, but is actually empty
                    
199                    require_once 'Zend/Search/Lucene/Search/Query/Empty.php';
                    
200                    return new Zend_Search_Lucene_Search_Query_Empty();
                    
211        if (count($subqueries) == 0) {
                    
212            require_once 'Zend/Search/Lucene/Search/Query/Empty.php';
                    
213            return new Zend_Search_Lucene_Search_Query_Empty();
                    
                
Html.php git://github.com/phpbb/customisation-db.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Document */
                    
25require_once 'Zend/Search/Lucene/Document.php';
                    
26
                    
157        }
                    
158        $this->_links = array_unique($this->_links);
                    
159
                    
165        }
                    
166        $this->_headerLinks = array_unique($this->_headerLinks);
                    
167    }
                    
267        /** Zend_Search_Lucene_Analysis_Analyzer */
                    
268        require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
                    
269
                    
306            if (!$success) {
                    
307                require_once 'Zend/Search/Lucene/Exception.php';
                    
308                throw new Zend_Search_Lucene_Exception("Error occured while loading highlighted text fragment: '$highlightedNodeHtml'.");
                    
                
MultiSearcher.php git://github.com/phpbb/customisation-db.git | PHP | 974 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Search_Lucene_Interface */
                    
24require_once 'Zend/Search/Lucene/Interface.php';
                    
25
                    
55            if (!$index instanceof Zend_Search_Lucene_Interface) {
                    
56                require_once 'Zend/Search/Lucene/Exception.php';
                    
57                throw new Zend_Search_Lucene_Exception('sub-index objects have to implement Zend_Search_Lucene_Interface.');
                    
85    {
                    
86        require_once 'Zend/Search/Lucene/Exception.php';
                    
87        throw new Zend_Search_Lucene_Exception("Generation number can't be retrieved for multi-searcher");
                    
108    {
                    
109        require_once 'Zend/Search/Lucene/Exception.php';
                    
110        throw new Zend_Search_Lucene_Exception("Format version can't be retrieved for multi-searcher");
                    
132    {
                    
133        require_once 'Zend/Search/Lucene/Exception.php';
                    
134        throw new Zend_Search_Lucene_Exception("Index directory can't be retrieved for multi-searcher");
                    
                
waContactsCollection.class.php git://github.com/webasyst/webasyst-framework.git | PHP | 1383 lines
                    
1<?php
                    
2
                    
167                $fields = array_merge($fields, explode(",", $extra_fileds));
                    
168                $fields = array_unique($fields);
                    
169            }
                    
297                if ($table == '_internal') {
                    
298                    foreach (array_unique($fields) as $f) {
                    
299                        /**
                    
                
pts_render.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 1050 lines
                    
1<?php
                    
2
                    
134				{
                    
135					$unique_in_buffer = array_unique(explode(',', $buffer_item->get_result_value()));
                    
136					$all_values_are_flat = count($unique_in_buffer) == 1;
                    
393
                    
394		switch(count(array_unique($compiler_configuration)))
                    
395		{
                    
413
                    
414		switch(count(array_unique($disk_options)))
                    
415		{
                    
                
ajax.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";
                    
                
 

Source

Language