PageRenderTime 1400ms queryTime 767ms sortTime 11ms getByIdsTime 340ms findMatchingLines 187ms

100+ results results for 'php ksort' (1400 ms)

Not the results you expected?
Service.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 453 lines
                    
1<?php
                    
2/**
                    
18 *
                    
19 * @todo       Revised method regex to allow NS; however, should SMD be revised to strip PHP NS instead when attaching functions?
                    
20 */
                    
153        if (!preg_match($this->nameRegex, $name)) {
                    
154            throw new InvalidArgumentException("Invalid name '{$name} provided for service; must follow PHP method naming conventions");
                    
155        }
                    
300    {
                    
301        ksort($params);
                    
302        foreach ($params as $options) {
                    
349        }
                    
350        ksort($params);
                    
351        return $params;
                    
                
class.ScalrAPICore.php https://github.com/kennethjiang/Wolke.git | PHP | 361 lines
                    
1<?php
                    
2
                    
37		
                    
38		protected function insensitiveUksort($a,$b) { 
                    
39		    return strtolower($a)>strtolower($b); 
                    
99			
                    
100			uksort($request, array($this, 'insensitiveUksort'));
                    
101				
                    
145			
                    
146			ksort($request);
                    
147				
                    
                
SimpleHeaderSet.php https://gitlab.com/dsasmita/talita-shop | PHP | 387 lines
                    
1<?php
                    
2
                    
219        if ($this->_canSort()) {
                    
220            uksort($headers, array($this, '_sortHeaders'));
                    
221        }
                    
304        if ($this->_canSort()) {
                    
305            uksort($headers, array($this, '_sortHeaders'));
                    
306        }
                    
350
                    
351    /** uksort() algorithm for Header ordering */
                    
352    private function _sortHeaders($a, $b)
                    
                
UnitTestCase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
                    
1<?php
                    
2
                    
11use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
                    
12use Drupal\Tests\Traits\PhpUnitWarnings;
                    
13use Drupal\TestTools\TestVarDumper;
                    
13use Drupal\TestTools\TestVarDumper;
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
16use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
                    
17
                    
27
                    
28  use PhpUnitWarnings;
                    
29  use PhpUnitCompatibilityTrait;
                    
116    @trigger_error(__METHOD__ . "() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use ::assertEquals(), ::assertEqualsCanonicalizing(), or ::assertSame() instead. See https://www.drupal.org/node/3136304", E_USER_DEPRECATED);
                    
117    ksort($expected);
                    
118    ksort($actual);
                    
                
users.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 181 lines
                    
1<?php // $Id: users.php,v 1.26.2.18 2010/04/10 15:11:49 iarenaza Exp $
                    
2
                    
24    $temp->add(new admin_setting_configtext('alternateloginurl', get_string('alternateloginurl', 'auth'),
                    
25                                            get_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php')), ''));
                    
26    $temp->add(new admin_setting_configtext('forgottenpasswordurl', get_string('forgottenpasswordurl', 'auth'),
                    
46        }
                    
47        ksort($authbyname);
                    
48
                    
49        foreach ($authbyname as $strauthname=>$authname) {
                    
50            if (file_exists($CFG->dirroot.'/auth/'.$authname.'/settings.php')) {
                    
51                // do not show disabled auths in tree, keep only settings link on manage page
                    
53                if ($ADMIN->fulltree) {
                    
54                    include($CFG->dirroot.'/auth/'.$authname.'/settings.php');
                    
55                }
                    
59            } else {
                    
60                $ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !in_array($authname, $authsenabled)));
                    
61            }
                    
                
FieldHandlerInterface.php https://gitlab.com/andecode/theme-spark | PHP | 270 lines
                    
1<?php
                    
2
                    
18   */
                    
19  public function clickSort($order);
                    
20
                    
27   */
                    
28  public function clickSortable();
                    
29
                    
                
collator_test.php https://github.com/pauln/moodle.git | PHP | 333 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package    core
                    
21 * @category   phpunit
                    
22 * @copyright  2011 Sam Hemelryk
                    
31 * @package    core
                    
32 * @category   phpunit
                    
33 * @copyright  2011 Sam Hemelryk
                    
59        } else {
                    
60            $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
                    
61        }
                    
261    /**
                    
262     * Tests the static ksort method.
                    
263     */
                    
263     */
                    
264    public function test_ksort() {
                    
265        $arr = array('b' => 'ab', 1 => 'aa', 0 => 'cc');
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
357		// Filter keeping the Keys
                    
358		ksort( $ocost );
                    
359
                    
                
SimpleHeaderSet.php https://github.com/exponentcms/exponent-cms.git | PHP | 399 lines
                    
1<?php
                    
2
                    
233        if ($this->canSort()) {
                    
234            uksort($headers, [$this, 'sortHeaders']);
                    
235        }
                    
304        if ($this->canSort()) {
                    
305            uksort($headers, [$this, 'sortHeaders']);
                    
306        }
                    
348
                    
349    /** uksort() algorithm for Header ordering */
                    
350    private function sortHeaders($a, $b)
                    
                
class.jetpack-modules-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 305 lines
                    
1<?php
                    
2
                    
3if ( ! class_exists( 'WP_List_Table' ) )
                    
4	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
                    
5
                    
74						<# if ( item.activated && 'vaultpress' !== item.module ) { #>
                    
75							<span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
                    
76						<# } else if ( item.available ) { #>
                    
76						<# } else if ( item.available ) { #>
                    
77							<span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
                    
78						<# } #>
                    
86				<tr class="no-modules-found">
                    
87					<td colspan="2"><?php esc_html_e( 'No Modules Found' , 'jetpack' ); ?></td>
                    
88				</tr>
                    
215			<div class="module-image">
                    
216				<p><span class="module-image-badge"><?php echo $badge_text; ?></span><span class="module-image-free" style="display: none"><?php echo $free_text; ?></span></p>
                    
217			</div>
                    
                
Item.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
                    
1<?php
                    
2/**
                    
239                        // Alphabetical ordering.
                    
240                        ksort($children, SORT_NATURAL);
                    
241                        break;
                    
                
Service.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
246        if (!in_array($envelopeType, $this->_envelopeTypes)) {
                    
247            require_once 'Zend/Json/Server/Exception.php';
                    
248            throw new Zend_Json_Server_Exception(sprintf('Invalid envelope type "%s"; please specify one of (%s)', $envelopeType, implode(', ', $this->_envelopeTypes)));
                    
                
Controller.php https://github.com/klando/piwik.git | PHP | 321 lines
                    
1<?php
                    
2/**
                    
66		
                    
67		ksort($usersAccessByWebsite);
                    
68		
                    
                
questiontype.php https://github.com/cmiic/moodle.git | PHP | 301 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once($CFG->dirroot . '/question/type/calculated/questiontype.php');
                    
30
                    
182            $i = 1;
                    
183            ksort($question->definition);
                    
184            foreach ($question->definition as $key => $defid) {
                    
                
array.idl.php https://github.com/diegoIta/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
342
                    
343f('ksort', Boolean,
                    
344  array('array' => VariantMap | Reference,
                    
358
                    
359f('uksort', Boolean,
                    
360  array('array' => VariantMap | Reference,
                    
                
Links.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 271 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
117        if (intval($position) > 0) {
                    
118            ksort($this->_links);
                    
119        }
                    
                
CategoryRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 277 lines
                    
1<?php
                    
2/**
                    
21    /**
                    
22     * @magentoApiDataFixture Magento/Catalog/_files/category_backend.php
                    
23     */
                    
44        unset($result['created_at'], $result['updated_at'], $result['children'], $result['custom_attributes']);
                    
45        ksort($expected);
                    
46        ksort($result);
                    
81     *
                    
82     * @magentoApiDataFixture Magento/Catalog/Model/Category/_files/service_category_create.php
                    
83     */
                    
100    /**
                    
101     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
102     */
                    
153    /**
                    
154     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
155     */
                    
                
Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 524 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
338        }
                    
339        ksort($data);
                    
340        return $data;
                    
                
class.AmazonSQS.php https://github.com/kennethjiang/Wolke.git | PHP | 223 lines
                    
1<?php
                    
2
                    
75
                    
76			ksort($args);
                    
77			
                    
                
settings.php https://bitbucket.org/ngmares/moodle.git | PHP | 218 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once($CFG->dirroot . '/mod/quiz/lib.php');
                    
30require_once($CFG->dirroot . '/mod/quiz/settingslib.php');
                    
33// we use a simpler overall menu structure.
                    
34$reports = get_plugin_list_with_file('quiz', 'settings.php', false);
                    
35$reportsbyname = array();
                    
39}
                    
40ksort($reportsbyname);
                    
41
                    
204
                    
205    // Add the report pages for the settings.php files in sub directories of mod/quiz/report.
                    
206    foreach ($reportsbyname as $strreportname => $report) {
                    
211        if ($ADMIN->fulltree) {
                    
212            include($CFG->dirroot . "/mod/quiz/report/$reportname/settings.php");
                    
213        }
                    
                
kodoc.php https://github.com/dyron/userguide-de.git | PHP | 357 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 */
                    
68
                    
69		ksort($classes);
                    
70
                    
108		// Sort the packages
                    
109		ksort($menu);
                    
110
                    
216
                    
217		// Remove the phpdoc open/close tags and split
                    
218		$comment = array_slice(explode("\n", $comment), 1, -1);
                    
                
Repository.php https://gitlab.com/rsilveira1987/Expresso | PHP | 300 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Repository.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
98                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
99                    require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
100                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
128        $this->_manifests[$index] = $manifest;
                    
129        ksort($this->_manifests);
                    
130        
                    
271                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
272                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
273                $string .= $metadataString;
                    
                
aweber_collection.php https://gitlab.com/iamgraeme/royalmile | PHP | 297 lines
                    
1<?php
                    
2class AWeberCollection extends AWeberResponse implements ArrayAccess, Iterator, Countable {
                    
121            );
                    
122            ksort($params);
                    
123        } else {
                    
241     * Allows this object to be accessed via bracket notation (ie $obj[$x])
                    
242     * http://php.net/manual/en/class.arrayaccess.php
                    
243     */
                    
263     * Provides iterator functionality.
                    
264     * http://php.net/manual/en/class.iterator.php
                    
265     */
                    
290     * Allows PHP's count() and sizeOf() functions to act on this object
                    
291     * http://www.php.net/manual/en/class.countable.php
                    
292     */
                    
                
layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
                    
1<?php
                    
2/**
                    
15
                    
16Files: default.php, style.css
                    
17
                    
55		$header_html = "";
                    
56		ksort($page->html_headers);
                    
57		foreach($page->html_headers as $line) {
                    
127		$qp = explode("/", ltrim(_get_query(), "/"));
                    
128		// php sucks
                    
129		switch($qp[0]) {
                    
                
Service.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
class.cli.php https://gitlab.com/billyprice1/osTicket | PHP | 309 lines
                    
1<?php
                    
2
                    
129            $opt = new Option($opt);
                    
130        $this->stdout = new OutputStream('php://output');
                    
131        $this->stderr = new OutputStream('php://stderr');
                    
146
                    
147        ksort($this->options);
                    
148        if ($this->options) {
                    
                
Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 177 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
161
                    
162        Mage::helper('core/string')->ksortMultibyte($sort);
                    
163        $options = array();
                    
                
CommandParser.php https://github.com/NickBelhomme/Game.git | PHP | 256 lines
                    
1<?php
                    
2namespace Game;
                    
125        $completeInventoryList = $this->getItemListFromInventory($this->tile->getInventory()) + $this->getItemListFromInventory($this->personalInventory);
                    
126        ksort($completeInventoryList);
                    
127        $completeInventoryList = array_reverse($completeInventoryList);
                    
                
test_ext_mailparse.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 412 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   +----------------------------------------------------------------------+
                    
49bool TestExtMailparse::test_mail() {
                    
50  //VCB("<?php ");
                    
51  return Count(true);
                    
                
TypedArrayUtils.js https://github.com/supereggbert/three.js.git | JavaScript | 596 lines
                    
3/**
                    
4 * In-place quicksort for typed arrays (e.g. for Float32Array)
                    
5 * provides fast sorting
                    
7 *
                    
8 * Complexity: http://bigocheatsheet.com/ see Quicksort
                    
9 *
                    
15
                    
16TypedArrayUtils.quicksortIP = function ( arr, eleSize, orderElement ) {
                    
17
                    
161 *
                    
162 * @license MIT License <http://www.opensource.org/licenses/mit-license.php>
                    
163 *
                    
163 *
                    
164 * Requires typed array quicksort
                    
165 *
                    
                
view.html.php https://github.com/xillibit/Kunena-forum.git | PHP | 189 lines
                    
1<?php
                    
2/**
                    
144		$constants  = $reflection->getConstants();
                    
145		ksort($constants);
                    
146
                    
                
ProcessedCodeCoverageData.php https://gitlab.com/jjpa2018/dashboard | PHP | 267 lines
                    
1<?php declare(strict_types=1);
                    
2/*
                    
2/*
                    
3 * This file is part of phpunit/php-code-coverage.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
17use function is_array;
                    
18use function ksort;
                    
19use SebastianBergmann\CodeCoverage\Driver\Driver;
                    
21/**
                    
22 * @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
                    
23 */
                    
99    {
                    
100        ksort($this->lineCoverage);
                    
101
                    
                
Service.php https://github.com/tuteke/isaved.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $
                    
32 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
file.php https://github.com/whiletrue/fluxcms.git | PHP | 112 lines
                    
1<?php
                    
2class bx_plugins_gallery_file {
                    
25        }
                    
26        ksort($files);
                    
27        foreach ($files as $file) {
                    
                
ConditionalStyles.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 149 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Style\Conditional;
                    
6use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalDataBar;
                    
6use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalDataBar;
                    
7use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormattingRuleExtension;
                    
8use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormatValueObject;
                    
8use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormatValueObject;
                    
9use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
                    
10use SimpleXMLElement;
                    
54        foreach ($conditionals as $ref => $cfRules) {
                    
55            ksort($cfRules);
                    
56            $conditionalStyles = $this->readStyleRules($cfRules, $xmlExtLst);
                    
                
cron.php https://gitlab.com/mattswann/launch-housing | PHP | 157 lines
                    
3internal CRON jobs automatically if they are removed.<br><br>
                    
4<?php
                    
5$cron = get_option('cron');
                    
76
                    
77include( '_cron.php' );
                    
78
                    
113}
                    
114ksort( $pretty_intervals );
                    
115pb_backupbuddy::$ui->list_table(
                    
136	<center>
                    
137		<a href="<?php echo pb_backupbuddy::page_url(); ?>&tab=3&show_cron_array=true#pb_backupbuddy_getting_started_tab_tools" style="text-decoration: none;">
                    
138			<?php _e('Display CRON Debugging Array', 'it-l10n-backupbuddy' ); ?>
                    
141	</p>
                    
142	<?php
                    
143} else {
                    
                
display-coupons.php https://github.com/evadne/wp-e-commerce.git | PHP | 451 lines
                    
28			//sort both arrays to make sure that if they contain the same stuff, that they will compare to be the same, may not need to do this, but what the heck
                    
29			ksort($check_values); ksort($coupon_data);
                    
30						
                    
84
                    
85  <a href='' onclick='return show_status_box("add_coupon_box","add_coupon_box_link");' class='add_item_link' id='add_coupon_box_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADD_COUPON;?></span></a>
                    
86  
                    
357        ?>
                    
358        <input type='radio' value='1' name='wpsc_also_bought' id='wpsc_also_bought1' <?php echo $wpsc_also_bought1; ?> /> <label for='wpsc_also_bought1'><?php echo TXT_WPSC_YES;?></label> &nbsp;
                    
359        <input type='radio' value='0' name='wpsc_also_bought' id='wpsc_also_bought2' <?php echo $wpsc_also_bought2; ?> /> <label for='wpsc_also_bought2'><?php echo TXT_WPSC_NO;?></label>
                    
423		<td>
                    
424			<?php echo get_option('siteurl')."/index.php?rss=true&amp;action=product_list" ?>
                    
425		</td>
                    
437				$itemsFeedURL = "http://www.google.com/base/feeds/items";
                    
438				$next_url  = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']."?page=".WPSC_DIR_NAME."/display-items.php";
                    
439				$redirect_url = 'https://www.google.com/accounts/AuthSubRequest?session=1';
                    
                
Repository.php https://github.com/tanduy/zf.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
104                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
105                    require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
106                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
134        $this->_manifests[$index] = $manifest;
                    
135        ksort($this->_manifests);
                    
136
                    
181                        if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) {
                    
182                            require_once 'Zend/Tool/Framework/Metadata/Dynamic.php';
                    
183                        }
                    
284                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
285                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
286                $string .= $metadataString;
                    
                
Command.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 390 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
228        }
                    
229        ksort(self::$_commandsAll);
                    
230        return self::$_commandsAll;
                    
275    {
                    
276        $pathCommands = dirname(__FILE__).DIRECTORY_SEPARATOR.basename(__FILE__, ".php");
                    
277        $f = new DirectoryIterator($pathCommands);
                    
281            }
                    
282            $pattern = preg_match("/(.*)_Header\.php/imsu", $file->getFilename(), $matches);
                    
283            if(! $pattern) {
                    
                
PhpReferenceCompatibility.php https://gitlab.com/x33n/ImpressPages | PHP | 433 lines
                    
1<?php
                    
2/**
                    
21 * This ArrayObject is a rewrite of the implementation to fix
                    
22 * issues with php's implementation of ArrayObject where you
                    
23 * are unable to unset multi-dimensional arrays because you
                    
25 */
                    
26abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
                    
27{
                    
251     */
                    
252    public function ksort()
                    
253    {
                    
253    {
                    
254        ksort($this->storage);
                    
255    }
                    
395     */
                    
396    public function uksort($function)
                    
397    {
                    
                
Links.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 271 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
117        if (intval($position) > 0) {
                    
118            ksort($this->_links);
                    
119        }
                    
                
plugin.php https://github.com/howardlei82/IGSM-Website.git | PHP | 473 lines
                    
250		}
                    
251		ksort($core); ksort($optional);	// Sort components by ID.
                    
252		$components = array_merge($core, $optional);
                    
378			if ( ! function_exists('get_plugin_data') ) {
                    
379				require_once ( ABSPATH . 'wp-admin/includes/plugin.php' );
                    
380			}
                    
417		<dl>
                    
418			<dt><?php _e('Activate Components', 'akfw'); ?></dt>
                    
419			<dd>
                    
419			<dd>
                    
420				<?php wp_nonce_field('ak-component-activation', '_aknonce', false); ?>
                    
421				<table width="100%" class="form-table">
                    
426						<td>
                    
427							<input type="radio" name="components[<?php echo $c['Component']; ?>]" value="1" <?php checked(1, $c['active']); ?> /> <?php _e('Yes', 'akfw'); ?> &nbsp;&nbsp;
                    
428							<input type="radio" name="components[<?php echo $c['Component']; ?>]" value="0" <?php checked(0, $c['active']); ?> /> <?php _e('No', 'akfw'); ?> &nbsp;&nbsp;
                    
                
view.php https://github.com/Socrattes2099/ezpublish.git | PHP | 255 lines
                    
1<?php
                    
2//
                    
99            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
100            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null, true );
                    
101            $iniTemp->removeSetting( $block, $setting );
                    
212    }
                    
213    ksort( $settings );
                    
214    $tpl->setVariable( 'settings', $settings );
                    
234    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) );
                    
235    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) );
                    
236}
                    
239$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
240// remove *.ini[.append.php] from file name
                    
241$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles );
                    
                
Repository.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 300 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Repository.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
25 */
                    
26//*** require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
98                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
99                    //*** require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
100                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
128        $this->_manifests[$index] = $manifest;
                    
129        ksort($this->_manifests);
                    
130        
                    
271                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
272                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
273                $string .= $metadataString;
                    
                
CacheBase.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 368 lines
                    
3/**
                    
4 * PHPExcel_CachedObjectStorage_CacheBase
                    
5 *
                    
21 *
                    
22 * @category   PHPExcel
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
81     *
                    
82     * @return    PHPExcel_Worksheet
                    
83     */
                    
311     *
                    
312     * @param    PHPExcel_Worksheet    $parent        The new worksheet
                    
313     * @return    void
                    
                
DefaultListenerTest.php https://github.com/Proudio-Interactive/pdepend.git | PHP | 317 lines
                    
69 */
                    
70class PHP_Depend_Visitor_DefaultListenerTest extends PHP_Depend_AbstractTest
                    
71{
                    
124    {
                    
125        include_once 'PHP/Depend/Code/Class.php';
                    
126
                    
167    {
                    
168        include_once 'PHP/Depend/Code/Interface.php';
                    
169
                    
210    {
                    
211        include_once 'PHP/Depend/Code/Function.php';
                    
212
                    
256    {
                    
257        include_once 'PHP/Depend/Code/Method.php';
                    
258
                    
                
Repository.php https://github.com/obias/zf2.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
144        $this->_manifests[$index] = $manifest;
                    
145        ksort($this->_manifests);
                    
146
                    
287        foreach ($metadatasByType as $type => $metadatas) {
                    
288            $string .= $type . PHP_EOL;
                    
289            foreach ($metadatas as $metadata) {
                    
290                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
291                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
292                $string .= $metadataString;
                    
                
themes.php https://github.com/bdonovan/RapidWash-Express.git | PHP | 285 lines
                    
52if ( is_multisite() && current_user_can('edit_themes') ) {
                    
53	?><div id="message0" class="updated"><p><?php printf( __('Administrator: new themes must be activated in the <a href="%s">Network Themes</a> screen before they appear here.'), admin_url( 'ms-themes.php') ); ?></p></div><?php
                    
54}
                    
60		if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?>
                    
61<div id="message2" class="updated"><p><?php printf( __('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings</a> screen to configure them.'), admin_url( 'widgets.php' ) ); ?></p></div><?php
                    
62		} else { ?>
                    
98<?php screen_icon(); ?>
                    
99<h2><a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a><?php if ( current_user_can('install_themes') ) { ?><a href="theme-install.php" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a><?php } ?></h2>
                    
100
                    
252
                    
253<h2><?php _e('Broken Themes'); ?> <?php if ( is_multisite() ) _e( '(Site admin only)' ); ?></h2>
                    
254<p><?php _e('The following themes are installed but incomplete. Themes must have a stylesheet and a template.'); ?></p>
                    
284
                    
285<?php require('./admin-footer.php'); ?>
                    
286
                    
                
DB2Statement.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 344 lines
                    
1<?php
                    
2/*
                    
160        if ($params === null) {
                    
161            ksort($this->_bindParam);
                    
162            $params = array_values($this->_bindParam);
                    
                
PledgeSelection.php https://gitlab.com/bossagna/meik | PHP | 167 lines
                    
1<?php
                    
2
                    
46
                    
47    ksort($reward_options);
                    
48    $sorted_reward_options = array();
                    
                
Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 292 lines
                    
1<?php
                    
2/**
                    
15 * Class Collection
                    
16 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
17 */
                    
76     * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
                    
77     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
78     */
                    
230        }
                    
231        $this->_arrayUtils->ksortMultibyte($sort, $this->_localeResolver->getLocale());
                    
232        foreach (array_reverse($this->_foregroundCountries) as $foregroundCountry) {
                    
                
classWriter.php https://github.com/nickdunn/phpdoctor.git | PHP | 343 lines
                    
1<?php
                    
2
                    
9		$rootDoc =& $this->_doclet->rootDoc();
                    
10		$phpdoctor =& $this->_doclet->phpdoctor();
                    
11		$packages =& $rootDoc->packages();
                    
12		
                    
13        ksort($packages);
                    
14
                    
21			if ($classes) {
                    
22                ksort($classes);
                    
23				foreach ($classes as $name => $class) {
                    
85					$constants =& $class->constants();
                    
86                    ksort($constants);
                    
87					$fields =& $class->fields();
                    
87					$fields =& $class->fields();
                    
88                    ksort($fields);
                    
89					$methods =& $class->methods();
                    
                
Admin.php https://github.com/intraweb-modules13/IWstats.git | PHP | 225 lines
                    
1<?php
                    
2
                    
132
                    
133        ksort($recordsArray);
                    
134
                    
                
SegmentMerger.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Search_Lucene_Index_SegmentInfo */
                    
23#require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
                    
24
                    
25/** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
                    
26#require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
                    
27
                    
28/** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
                    
29#require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
                    
30
                    
114        if ($this->_mergeDone) {
                    
115            #require_once 'Zend/Search/Lucene/Exception.php';
                    
116            throw new Zend_Search_Lucene_Exception('Merge is already done.');
                    
119        if (count($this->_segmentInfos) < 1) {
                    
120            #require_once 'Zend/Search/Lucene/Exception.php';
                    
121            throw new Zend_Search_Lucene_Exception('Wrong number of segments to be merged ('
                    
                
class-wp-embed.php https://bitbucket.org/stephenharris/stephenharris.git | PHP | 386 lines
                    
1<?php
                    
2/**
                    
88	jQuery(document).ready(function($){
                    
89		$.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>");
                    
90	});
                    
91</script>
                    
92<?php
                    
93	}
                    
166		// Look for known internal handlers
                    
167		ksort( $this->handlers );
                    
168		foreach ( $this->handlers as $priority => $handlers ) {
                    
267			if ( $html ) {
                    
268				/** This filter is documented in wp-includes/class-wp-embed.php */
                    
269				return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
                    
                
LockerTest.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 284 lines
                    
1<?php
                    
2
                    
17
                    
18class LockerTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
279
                    
280        ksort($data);
                    
281
                    
                
String.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 306 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
290     */
                    
291    public function ksortMultibyte(array &$sort)
                    
292    {
                    
299        setlocale(LC_COLLATE,  $localeCode . '.UTF8', 'C.UTF-8', 'en_US.utf8');
                    
300        ksort($sort, SORT_LOCALE_STRING);
                    
301        setlocale(LC_COLLATE, $oldLocale);
                    
                
client_mailchimp_export.php https://gitlab.com/nexxuz/phpBMS | PHP | 292 lines
                    
50
                    
51            parent::phpbmsReport($db, $reportUUID, $tabledefUUID);
                    
52
                    
86
                    
87            ksort($this->selectcolumns);
                    
88            $this->selectcolumns = array_reverse($this->selectcolumns);
                    
159		foreach($this->$what as $value){
                    
160			?><option value="<?php echo $i+1; ?>"><?php echo $value["name"];?></option>
                    
161			<?php
                    
172        $pageTitle="Invoice Total";
                    
173        $phpbms->showMenu = false;
                    
174        $phpbms->cssIncludes[] = "pages/totalreports.css";
                    
182            <h1>Invoice Total Options</h1>
                    
183            <form id="GroupForm" action="<?php echo htmlentities($_SERVER["PHP_SELF"])?>" method="post" name="GroupForm">
                    
184
                    
                
result.php https://bitbucket.org/moodle/moodle.git | PHP | 300 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
248        }
                    
249        ksort($result);
                    
250        return $result;
                    
                
functions.wp-cron.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 402 lines
                    
1<?php
                    
2// Last sync [WP12462]
                    
32	$crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
                    
33	uksort( $crons, "strnatcasecmp" );
                    
34	_set_cron_array( $crons );
                    
61	$crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
                    
62	uksort( $crons, "strnatcasecmp" );
                    
63	_set_cron_array( $crons );
                    
226
                    
227		@include_once(ABSPATH . 'wp-cron.php');
                    
228		return;
                    
                
Encoder.php https://github.com/Exercise/zf2.git | PHP | 309 lines
                    
1<?php
                    
2/**
                    
265            if (isset($this->_options['wrap']) && strlen($attribute) > $this->_options['wrap']) {
                    
266                $attribute = trim(chunk_split($attribute, $this->_options['wrap'], PHP_EOL . ' '));
                    
267            }
                    
267            }
                    
268            $output .= $attribute . PHP_EOL;
                    
269        }
                    
269        }
                    
270        return trim($output, PHP_EOL);
                    
271    }
                    
286                && array_key_exists('objectclass', $attributes)) {
                    
287            $string .= sprintf('version: %d', $this->_options['version']) . PHP_EOL;
                    
288            $this->_versionWritten = true;
                    
291        if (isset($this->_options['sort']) && $this->_options['sort'] === true) {
                    
292            ksort($attributes, SORT_STRING);
                    
293            if (array_key_exists('objectclass', $attributes)) {
                    
                
Xlsx.php https://github.com/gryzz/crystal_magento.git | PHP | 262 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Xlsx.php 19035 2009-11-19 14:34:11Z alexander $
                    
21 */
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25#require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
96        if ($relationsXml === false) {
                    
97            #require_once 'Zend/Search/Lucene/Exception.php';
                    
98            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
134        // Sort worksheets
                    
135        ksort($worksheets);
                    
136
                    
                
Export.class.php https://github.com/bgerp/bgerp.git | PHP | 289 lines
                    
1<?php
                    
2
                    
147        if (!empty($exportFormats)) {
                    
148            ksort($exportFormats);
                    
149        }
                    
                
index.php https://github.com/andalit/torrents.git | PHP | 428 lines
                    
1<?php
                    
2
                    
2
                    
3require('./pagestart.php');
                    
4
                    
14	{
                    
15		if( preg_match("/^admin_.*?\.php$/", $file) )
                    
16		{
                    
29
                    
30		"U_FORUM_INDEX" => append_sid("../index.php"),
                    
31		"U_ADMIN_INDEX" => append_sid("index.php?pane=right"))
                    
33
                    
34	ksort($module);
                    
35
                    
43
                    
44		ksort($action_array);
                    
45
                    
                
OAuthUtil.php https://gitlab.com/Blueprint-Marketing/php-maxcdn | PHP | 154 lines
                    
1<?php
                    
2namespace MaxCDN\OAuth;
                    
132        // Ref: Spec: 9.1.1 (1)
                    
133        uksort($params, 'strcmp');
                    
134
                    
                
DocumentWriter.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 231 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DocumentWriter.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Search_Lucene_Index_SegmentWriter */
                    
24require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
                    
25
                    
75        /** Zend_Search_Lucene_Search_Similarity */
                    
76        require_once 'Zend/Search/Lucene/Search/Similarity.php';
                    
77
                    
88                 */
                    
89                require_once 'Zend/Search/Lucene/Exception.php';
                    
90                throw new Zend_Search_Lucene_Exception( 'Store term vector functionality is not supported yet.' );
                    
95                    /** Zend_Search_Lucene_Analysis_Analyzer */
                    
96                    require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
                    
97
                    
                
SegmentMerger.php https://github.com/sitengine/sitengine.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Search_Lucene_Index_SegmentInfo */
                    
23require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
                    
24
                    
25/** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
                    
26require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
                    
27
                    
28/** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
                    
29require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
                    
30
                    
114        if ($this->_mergeDone) {
                    
115            require_once 'Zend/Search/Lucene/Exception.php';
                    
116            throw new Zend_Search_Lucene_Exception('Merge is already done.');
                    
119        if (count($this->_segmentInfos) < 1) {
                    
120            require_once 'Zend/Search/Lucene/Exception.php';
                    
121            throw new Zend_Search_Lucene_Exception('Wrong number of segments to be merged ('
                    
                
authorisation.php http://airscore.googlecode.com/svn/trunk/ | PHP | 253 lines
                    
1<?php
                    
2define('BINDIR', '%CGIBIN%');
                    
39    echo "You are unauthorised to perform that action ($what $usePk $comPk).<br>";
                    
40    //redirect('unauthorised.php');
                    
41    return 0;
                    
75    {
                    
76        redirect("better_browsers.php");
                    
77        exit;
                    
84        echo "<b><i>Authorisation Failed</i></b>";
                    
85        redirect("login.php?message=Authorisation%20Failed:$magic");
                    
86        exit;
                    
121        {
                    
122        echo "<li><a href=\"competition.php?comPk=$comPk\">Admin</a></li>";
                    
123        }
                    
125        {
                    
126            echo "<li><a href=\"comp_admin.php\">Admin</a></li>";
                    
127        }
                    
                
view.php https://github.com/lafka/ezpublish.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
77            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
78            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null );
                    
79            $iniTemp->removeSetting( $block, $setting );
                    
197    }
                    
198    ksort( $settings );
                    
199    $tpl->setVariable( 'settings', $settings );
                    
219    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) );
                    
220    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) );
                    
221}
                    
224$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
225// remove *.ini[.append.php] from file name
                    
226$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles );
                    
                
signature_v4json.class.php https://gitlab.com/mattswann/launch-housing | PHP | 349 lines
                    
1<?php
                    
2/*
                    
26 * @copyright See the included NOTICE.md file for more information.
                    
27 * @link http://aws.amazon.com/php/ PHP Developer Center
                    
28 */
                    
94		// Do a case-sensitive, natural order sort on the array keys.
                    
95		uksort($this->query, 'strcmp');
                    
96
                    
152		// Sort headers
                    
153		uksort($this->headers, 'strnatcasecmp');
                    
154
                    
                
DbDependent.php https://github.com/codeactual/hashmark.git | PHP | 197 lines
                    
1<?php
                    
2// vim: fenc=utf-8:ft=php:ai:si:ts=4:sw=4:et:
                    
8 * @copyright   Copyright (c) 2008-2011 David Smith
                    
9 * @license     http://www.opensource.org/licenses/mit-license.php MIT License
                    
10 * @package     Hashmark
                    
14
                    
15require_once dirname(__FILE__) . '/../DbHelper.php';
                    
16
                    
59        if ($this->_type) {
                    
60            $templateFile = HASHMARK_ROOT_DIR . "/Sql/{$this->_base}/{$this->_type}.php";
                    
61        } else {
                    
61        } else {
                    
62            $templateFile = HASHMARK_ROOT_DIR . "/Sql/{$this->_base}.php";
                    
63        }
                    
154        // Ex. prevent macro :name from being being expanded before :nameSuffix.
                    
155        uksort($map, array('Hashmark_Util', 'sortByStrlenReverse'));
                    
156
                    
                
CldrData.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 320 lines
                    
1<?php
                    
2namespace Gettext\Languages;
                    
123            }
                    
124            ksort($data['languages'], SORT_STRING);
                    
125            ksort($data['territories'], SORT_STRING);
                    
125            ksort($data['territories'], SORT_STRING);
                    
126            ksort($data['plurals'], SORT_STRING);
                    
127            ksort($data['scripts'], SORT_STRING);
                    
127            ksort($data['scripts'], SORT_STRING);
                    
128            ksort($data['standAloneScripts'], SORT_STRING);
                    
129            ksort($data['supersededLanguages'], SORT_STRING);
                    
                
class.csstidy_print.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
23 *
                    
24 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
25 * @package csstidy
                    
246        $this->tokens = array();
                    
247        ksort($this->css);
                    
248        
                    
250        {
                    
251            if ($this->parser->get_cfg('sort_selectors')) ksort($val);
                    
252            if ($medium != DEFAULT_AT) {
                    
257            {
                    
258                if ($this->parser->get_cfg('sort_properties')) ksort($vali);
                    
259                $this->parser->_add_token(SEL_START, $selector, true);
                    
                
AutoconfigGenerator.php https://github.com/ICanBoogie/ICanBoogie.git | PHP | 520 lines
                    
1<?php
                    
2
                    
28use function implode;
                    
29use function ksort;
                    
30use function realpath;
                    
392		return <<<EOT
                    
393<?php
                    
394
                    
449		$synthesized = $config[Autoconfig::CONFIG_CONSTRUCTOR];
                    
450		ksort($synthesized);
                    
451
                    
                
Collection.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 177 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
161
                    
162        Mage::helper('core/string')->ksortMultibyte($sort);
                    
163        $options = array();
                    
                
ErrorCollector.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 209 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
36     * Sends an error message to the collector for later use
                    
37     * @param $severity int Error severity, PHP error style (don't use E_USER_)
                    
38     * @param $msg string Error message text
                    
98            }
                    
99            // These ksorts may present a performance problem
                    
100            ksort($this->lines[$line], SORT_NUMERIC);
                    
107        }
                    
108        ksort($this->lines, SORT_NUMERIC);
                    
109
                    
                
kodoc.php https://gitlab.com/ken3/bluSky | PHP | 357 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2008-2012 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
68
                    
69		ksort($classes);
                    
70
                    
108		// Sort the packages
                    
109		ksort($menu);
                    
110
                    
216
                    
217		// Remove the phpdoc open/close tags and split
                    
218		$comment = array_slice(explode("\n", $comment), 1, -1);
                    
                
Text.php https://gitlab.com/techniconline/kmc | PHP | 246 lines
                    
17 */
                    
18class PHP_CodeCoverage_Report_Text
                    
19{
                    
48    {
                    
49        $output = PHP_EOL . PHP_EOL;
                    
50        $report = $coverage->getReport();
                    
81            '  Classes: %6s (%d/%d)',
                    
82            PHP_CodeCoverage_Util::percent(
                    
83                $report->getNumTestedClassesAndTraits(),
                    
134        if ($this->showOnlySummary) {
                    
135            return $output . PHP_EOL;
                    
136        }
                    
200
                    
201                $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL
                    
202                    . '  ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' '
                    
                
Links.php https://bitbucket.org/kdms/sh-magento.git | PHP | 241 lines
                    
1<?php
                    
2/**
                    
102        if (intval($position) > 0) {
                    
103             ksort($this->_links);
                    
104        }
                    
                
cron.php https://github.com/mchow01/Security.git | PHP | 469 lines
                    
1<?php
                    
2/**
                    
45	$crons[$event->timestamp][$event->hook][$key] = array( 'schedule' => $event->schedule, 'args' => $event->args );
                    
46	uksort( $crons, "strnatcasecmp" );
                    
47	_set_cron_array( $crons );
                    
77	$event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
                    
78	/** This filter is documented in wp-includes/cron.php */
                    
79	$event = apply_filters( 'schedule_event', $event );
                    
87	$crons[$event->timestamp][$event->hook][$key] = array( 'schedule' => $event->schedule, 'args' => $event->args, 'interval' => $event->interval );
                    
88	uksort( $crons, "strnatcasecmp" );
                    
89	_set_cron_array( $crons );
                    
263
                    
264		WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' );
                    
265		return;
                    
290	$cron_request = apply_filters( 'cron_request', array(
                    
291		'url'  => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ),
                    
292		'key'  => $doing_wp_cron,
                    
                
preferences.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 191 lines
                    
1<?php
                    
2/**
                    
16
                    
17$page->add_breadcrumb_item($lang->preferences_and_personal_notes, "index.php?module=home-preferences");
                    
18
                    
22{
                    
23	$page->add_breadcrumb_item($lang->recovery_codes, "index.php?module=home-preferences&action=recovery_codes");
                    
24
                    
46{
                    
47	require_once MYBB_ROOT."inc/3rdparty/2fa/GoogleAuthenticator.php";
                    
48	$auth = new PHPGangsta_GoogleAuthenticator;
                    
94		flash_message($lang->success_preferences_updated, 'success');
                    
95		admin_redirect("index.php?module=home-preferences");
                    
96	}
                    
101		'title' => $lang->preferences_and_personal_notes,
                    
102		'link' => "index.php?module=home-preferences",
                    
103		'description' => $lang->prefs_and_personal_notes_description
                    
                
Default.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
226        }
                    
227        ksort($entry, SORT_LOCALE_STRING);
                    
228        return $entry;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
Default.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
226        }
                    
227        ksort($entry, SORT_LOCALE_STRING);
                    
228        return $entry;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
Xlsx.php https://gitlab.com/yousafsyed/easternglamor | PHP | 266 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25#require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
27/** Zend_Xml_Security */
                    
28#require_once 'Zend/Xml/Security.php';
                    
29
                    
85        if (!class_exists('ZipArchive', false)) {
                    
86            #require_once 'Zend/Search/Lucene/Exception.php';
                    
87            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
102        if ($relationsXml === false) {
                    
103            #require_once 'Zend/Search/Lucene/Exception.php';
                    
104            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
140        // Sort worksheets
                    
141        ksort($worksheets);
                    
142
                    
                
SimpleHeaderSet.php https://gitlab.com/Gashler/sg | PHP | 394 lines
                    
1<?php
                    
2
                    
299    {
                    
300      uksort($headers, array($this, '_sortHeaders'));
                    
301    }
                    
351  
                    
352  /** uksort() algorithm for Header ordering */
                    
353  private function _sortHeaders($a, $b)
                    
                
AviaryFX.php https://github.com/aviaryapi/AviaryFxPhp.git | PHP | 344 lines
                    
1<?php
                    
2
                    
3	/**
                    
4	 * AviaryFX PHP SDK
                    
5	 * 
                    
15		const HARDWARE_VERSION = "1.0";
                    
16	 	const SOFTWARE_VERSION = "PHP";
                    
17		const APP_VERSION = "1.0";
                    
233			$paramString = '';
                    
234			ksort($paramsToHash);
                    
235			foreach($paramsToHash as $keys => $values) {
                    
268		/**
                    
269		 * Converts a SimpleXMLObject into an array. http://php.net/manual/en/book.simplexml.php
                    
270		 * 
                    
                
menus.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 572 lines
                    
1<?php
                    
2/**
                    
42			JText::_('COM_MENUS_SUBMENU_MENUS'),
                    
43			'index.php?option=com_menus&view=menus',
                    
44			$vName == 'menus'
                    
47			JText::_('COM_MENUS_SUBMENU_ITEMS'),
                    
48			'index.php?option=com_menus&view=items',
                    
49			$vName == 'items'
                    
98
                    
99		// Check if the link is in the form of index.php?...
                    
100		if (is_string($request))
                    
103
                    
104			if (strpos($request, 'index.php') === 0)
                    
105			{
                    
105			{
                    
106				parse_str(parse_url(htmlspecialchars_decode($request), PHP_URL_QUERY), $args);
                    
107			}
                    
                
AbstractDateDropdown.php https://gitlab.com/yousafsyed/easternglamor | PHP | 155 lines
                    
1<?php
                    
2/**
                    
118
                    
119        ksort($value);
                    
120        $value = vsprintf($this->format, $value);
                    
                
Info.php https://github.com/ticean/magento-mirror.git | PHP | 164 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
143
                    
144        ksort($accountData, SORT_NUMERIC);
                    
145
                    
                
form.php https://github.com/ezanol/jr.git | PHP | 283 lines
                    
51		}
                    
52		ksort($ordered_simple_search_fields);
                    
53		
                    
116		}
                    
117		ksort($ordered_advanced_search_fields);
                    
118		
                    
197		
                    
198		$.post("<?php echo $vars['url'];?>action/profile_manager/members/search<?php echo $url_security;?>", formdata, function(data){
                    
199			$("#members_search_result").html(data);
                    
205		$("body").addClass("profile_manager_members_wait");
                    
206		$.post("<?php echo $vars['url'];?>action/profile_manager/members/search<?php echo $url_security;?>&offset=" + offset, formdata, function(data){
                    
207			$("#members_search_result").html(data);
                    
238
                    
239<h3 class='settings' onclick='$("#simplesearch").toggle();$("#advancedsearch").toggle();'><?php echo elgg_echo("profile_manager:members:searchform:simple:title");?></h3>
                    
240<form id="simplesearch" action="javascript:perform_members_search('simplesearch');" type="post">
                    
                
S3Signature.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 266 lines
                    
1<?php
                    
2/**
                    
179
                    
180        ksort($headers);
                    
181
                    
                
arrayiterator.natcasesort.html https://bitbucket.org/thncr/manuals.git | HTML | 68 lines
                    
8 <body><div class="manualnavbar" style="text-align: center;">
                    
9 <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.ksort.html">ArrayIterator::ksort</a></div>
                    
10 <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.natsort.html">ArrayIterator::natsort</a></div>
                    
11 <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="arrayiterator.natcasesort" class="refentry">
                    
15  <h1 class="refname">ArrayIterator::natcasesort</h1>
                    
16  <p class="verinfo">(PHP 5 &gt;= 5.2.0)</p><p class="refpurpose"><span class="refname">ArrayIterator::natcasesort</span> &mdash; <span class="dc-title">Sort an array naturally, case insensitive</span></p>
                    
17
                    
54    <li class="member"> <span class="methodname"><a href="arrayiterator.asort.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::asort()</a> - Sort array by values</span></li>
                    
55    <li class="member"> <span class="methodname"><a href="arrayiterator.ksort.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::ksort()</a> - Sort array by keys</span></li>
                    
56    <li class="member"> <span class="methodname"><a href="arrayiterator.natsort.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::natsort()</a> - Sort an array naturally</span></li>
                    
63</div><hr /><div class="manualnavbar" style="text-align: center;">
                    
64 <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.ksort.html">ArrayIterator::ksort</a></div>
                    
65 <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.natsort.html">ArrayIterator::natsort</a></div>
                    
                
index.php https://github.com/olegiv/sitellite.git | PHP | 293 lines
                    
1<?php
                    
2
                    
9
                    
10$applications = parse_ini_file ('inc/conf/auth/applications/index.php');
                    
11
                    
13
                    
14$files = Dir::find ('*.php', 'inc/app/cms/conf/collections', false);
                    
15
                    
44$GLOBALS['_content_types'] = $content_types;
                    
45uksort ($content_types, 'cms_collection_sort');
                    
46foreach ($content_types as $k => $v) {
                    
                
Info.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 256 lines
                    
1<?php
                    
2/*
                    
181        }
                    
182        ksort($this->urls);
                    
183      }
                    
                
Analyzer.php git://github.com/jsylvanus/phpScenario.git | PHP | 247 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpScenario
                    
4 *
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://www.phpscenario.org/license.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to license@phpscenario.org so we can send you a copy immediately.
                    
14 *
                    
17 * @copyright  Copyright (c) 2011-2012 TK Studios. (http://www.tkstudios.com)
                    
18 * @license    http://www.phpscenario.org/license.php     New BSD License
                    
19 */
                    
29 * @copyright  Copyright (c) 2011-2012 TK Studios. (http://www.tkstudios.com)
                    
30 * @license    http://www.phpscenario.org/license.php     New BSD License
                    
31 */
                    
                
Default.php https://bitbucket.org/kdms/sh-magento.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
87             */
                    
88            #require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
226        }
                    
227        ksort($entry, SORT_LOCALE_STRING);
                    
228        return $entry;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                #require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            #require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
ContentModeration.php https://gitlab.com/mohamed_hussein/prodt | PHP | 318 lines
                    
1<?php
                    
2
                    
185      sort($this->configuration['entity_types'][$entity_type_id]);
                    
186      ksort($this->configuration['entity_types']);
                    
187    }
                    
294    // Ensure that states and entity types are ordered consistently.
                    
295    ksort($configuration['states']);
                    
296    ksort($configuration['entity_types']);
                    
                
lmbUri.class.php https://github.com/idler/limb.git | PHP | 543 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * Limb PHP Framework
                    
4 *
                    
8 */
                    
9lmb_require('limb/core/src/lmbSet.class.php');
                    
10lmb_require('limb/core/src/lmbArrayHelper.class.php');
                    
15 * @package net
                    
16 * @version $Id: lmbUri.class.php 8124 2010-02-03 17:03:21Z 3dmax $
                    
17 */
                    
503  *
                    
504  * /foo/bar/../boo.php    => /foo/boo.php
                    
505  * /foo/bar/../../boo.php => /boo.php
                    
505  * /foo/bar/../../boo.php => /boo.php
                    
506  * /foo/bar/.././/boo.php => /foo/boo.php
                    
507  *
                    
                
findDeprecated.php https://gitlab.com/link233/bootmw | PHP | 198 lines
                    
25require_once __DIR__ . '/Maintenance.php';
                    
26require_once __DIR__ . '/../vendor/autoload.php';
                    
27
                    
64		}
                    
65		ksort( $this->foundNodes );
                    
66		return $this->foundNodes;
                    
75			if (
                    
76				$stmt instanceof PhpParser\Node\Expr\FuncCall
                    
77				&& $stmt->name->toString() === 'wfDeprecated'
                    
84
                    
85	public function enterNode( PhpParser\Node $node ) {
                    
86		$retVal = parent::enterNode( $node );
                    
144
                    
145		$parser = new PhpParser\Parser( new PhpParser\Lexer\Emulative );
                    
146		$traverser = new PhpParser\NodeTraverser;
                    
                
BusinessController.php https://gitlab.com/kalasi/vispunchcard.com | PHP | 191 lines
                    
1<?php
                    
2namespace App\Http\Controllers;
                    
65
                    
66        ksort($staff);
                    
67
                    
                
PoFileLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 188 lines
                    
1<?php
                    
2
                    
173                // PO are by definition indexed so sort by index.
                    
174                ksort($plurals);
                    
175                // Make sure every index is filled.
                    
180                $plurals += $empties;
                    
181                ksort($plurals);
                    
182                $messages[stripcslashes($item['ids']['plural'])] = stripcslashes(implode('|', $plurals));
                    
                
future-revision-post-meta.php https://gitlab.com/boldface/boldface-future-updater | PHP | 198 lines
                    
1<?php
                    
2/**
                    
184    return is_array( $this->value ) ?
                    
185      strtoupper( $order === 'DESC' ) ? krsort( $this->value ): ksort( $this->value ) :
                    
186      false;
                    
                
plugin.php http://tpblog.googlecode.com/svn/ | PHP | 357 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
45 */
                    
46function get_plugins($path=PLUGIN_PATH,$app=APP_NAME,$ext='.php')
                    
47{
                    
85                            if($subfile == "." || $subfile == "..")   continue;
                    
86                            if (preg_match('/\.php$/', $subfile))
                    
87                                $plugin_files[] = "$file/$subfile";
                    
257    $_filter  = $_SESSION['_filters'][APP_NAME.'_'.$tag];
                    
258    ksort($_filter);
                    
259    $args = array_slice(func_get_args(), 2);
                    
                
Role.php https://github.com/axxtel/agilebill.git | PHP | 253 lines
                    
10 * the PHP License and are unable to obtain it through the web, please
                    
11 * send a note to license@php.net so we can mail you a copy immediately.
                    
12 *
                    
16 * @copyright  1997-2008 The PHP Group
                    
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
18 * @version    CVS: $Id: Role.php,v 1.20 2008/01/03 20:26:36 cellog Exp $
                    
26require_once 'PEAR/Installer/Role/Common.php';
                    
27require_once 'PEAR/XMLParser.php';
                    
28/**
                    
32 * @copyright  1997-2008 The PHP Group
                    
33 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
34 * @version    Release: 1.7.2
                    
149     * PackageName/filepath
                    
150     * so a tests file tests/file.phpt is installed into PackageName/tests/filepath.php
                    
151     * @param bool clear cache
                    
                
Charsets.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 236 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin;
                    
9
                    
9
                    
10use PhpMyAdmin\Charsets\Charset;
                    
11use PhpMyAdmin\Charsets\Collation;
                    
17use function is_string;
                    
18use function ksort;
                    
19
                    
102
                    
103        ksort(self::$charsets, SORT_STRING);
                    
104    }
                    
140        foreach (array_keys(self::$collations) as $charset) {
                    
141            ksort(self::$collations[$charset], SORT_STRING);
                    
142        }
                    
                
lib.php https://github.com/pauln/moodle.git | PHP | 230 lines
                    
1<?php
                    
2require_once($CFG->libdir.'/portfolio/plugin.php');
                    
2require_once($CFG->libdir.'/portfolio/plugin.php');
                    
3require_once($CFG->libdir.'/filelib.php');
                    
4require_once($CFG->libdir.'/boxlib.php');
                    
89        $folders[0] = '/';
                    
90        ksort($folders);
                    
91        $mform->addElement('select', 'plugin_folder', get_string('existingfolder', 'portfolio_boxnet'), $folders);
                    
126        if (empty($this->boxclient)) {
                    
127            $returnurl = new moodle_url('/portfolio/add.php', array('postcontrol' => 1, 'type' => 'boxnet',
                    
128                'sesskey' => sesskey()));
                    
                
wp_tools.php https://gitlab.com/Gashler/sg | PHP | 327 lines
                    
1<?php
                    
2defined('WYSIJA') or die('Restricted access');
                    
67		}
                    
68		ksort($rolearray);
                    
69		return $rolearray;
                    
132		$checkPlugins=array(
                    
133			'wp-super-cache/wp-cache.php' ,
                    
134			'w3-total-cache/w3-total-cache.php',
                    
134			'w3-total-cache/w3-total-cache.php',
                    
135			'quick-cache/quick-cache.php',
                    
136			'hyper-cache/plugin.php'
                    
141				switch($pluginFileName){
                    
142					case 'wp-super-cache/wp-cache.php':
                    
143						global $cache_enabled, $super_cache_enabled;
                    
145						break;
                    
146					case 'w3-total-cache/w3-total-cache.php':
                    
147						$config = & w3_instance("W3_Config");
                    
                
 

Source

Language