PageRenderTime 447ms queryTime 32ms sortTime 10ms getByIdsTime 224ms findMatchingLines 107ms

100+ results results for 'php strcmp repo:begriffs/nomnom' (447 ms)

Not the results you expected?
dhd_cdc.c https://github.com/Dabary/linux_gt-i9000.git | C | 589 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
129	{
                    
130		if (!strcmp((char *)buf, "bcmerrorstr"))
                    
131		{
                    
134		}
                    
135		else if (!strcmp((char *)buf, "bcmerror"))
                    
136		{
                    
306	/* Intercept the wme_dp ioctl here */
                    
307	if ((!ret) && (ioc->cmd == WLC_SET_VAR) && (!strcmp(buf, "wme_dp"))) {
                    
308		int slen, val = 0;
                    
                
config.m4 https://github.com/leeight/php-src.git | m4 | 585 lines
                    
271
                    
272  AC_DEFINE_UNQUOTED(PHP_USE_PHP_CRYPT_R, 1, [Whether PHP has to use its own crypt_r for blowfish, des, ext des and md5])
                    
273  AC_DEFINE_UNQUOTED(PHP_STD_DES_CRYPT, 1, [Whether the system supports standard DES salt])
                    
279
                    
280  PHP_ADD_SOURCES(PHP_EXT_DIR(standard), crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c)
                    
281else
                    
315  fi
                    
316  AC_DEFINE_UNQUOTED(PHP_MD5_CRYPT, $ac_result, [Whether the system supports MD5 salt])  
                    
317  
                    
335
                    
336  AC_DEFINE_UNQUOTED(PHP_USE_PHP_CRYPT_R, 0, [Whether PHP has to use its own crypt_r for blowfish, des and ext des])
                    
337fi
                    
364
                    
365if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
                    
366  AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
                    
                
FinderTest.php https://github.com/Exercise/symfony.git | PHP | 333 lines
                    
65        $this->assertSame($finder, $finder->depth('<= 0'));
                    
66        $this->assertIterator($this->toAbsolute(array('foo', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
                    
67
                    
79        $finder = new Finder();
                    
80        $this->assertSame($finder, $finder->name('*.php'));
                    
81        $this->assertIterator($this->toAbsolute(array('test.php')), $finder->in(self::$tmpDir)->getIterator());
                    
132        $this->assertSame($finder, $finder->ignoreVCS(false));
                    
133        $this->assertIterator($this->toAbsolute(array('.git', 'foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
                    
134
                    
136        $this->assertSame($finder, $finder->ignoreVCS(true));
                    
137        $this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
                    
138    }
                    
224
                    
225        $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator);
                    
226    }
                    
                
Element.php https://github.com/robtuley/knotwerk.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
513    {
                    
514        if (strcmp($alias,$this->alias)===0) {
                    
515            return $this;
                    
                
system_routes_edit.php https://github.com/vongrippen/pfsense.git | PHP | 351 lines
                    
156		
                    
157		header("Location: system_routes.php");
                    
158		exit;
                    
167<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
                    
168<?php include("fbegin.inc"); ?>
                    
169<?php if ($input_errors) print_input_errors($input_errors); ?>
                    
180                    <select name="network_subnet" class="formselect" id="network_subnet"
                    
181                      <?php
                    
182			if(is_ipaddrv4($pconfig['network'])) {
                    
187			for ($i = $size; $i >= 1; $i--): ?>
                    
188                      <option value="<?=$i;?>" <?php if ($i == $pconfig['network_subnet']) echo "selected"; ?>>
                    
189                      <?=$i;?>
                    
330						selectbox.selectedIndex = (selectbox.options.length-1);
                    
331						$('notebox').innerHTML="<p/><strong><?=gettext("NOTE:");?></strong> <?php printf(gettext("You can manage Gateways %shere%s."), "<a target='_new' href='system_gateways.php'>", "</a>");?> </strong>";
                    
332					}				
                    
                
functions.php https://github.com/mastertheknife/ZoneMinder-kfir.git | PHP | 455 lines
                    
1<?php
                    
2/* 
                    
2/* 
                    
3 * functions.php is created by Jai Dhar, FPS-Tech, for use with eyeZm
                    
4 * iPhone application. This is not intended for use with any other applications,
                    
9 */
                    
10/* These functions are taken from functions.php */
                    
11function validInteger( $input )
                    
41	/* Check if it starts with eyeZm */
                    
42	if (!strcmp(substr($str, 0, 5),"eyeZm")) {
                    
43		/* Found eyeZm */
                    
135</head>
                    
136<?php
                    
137}
                    
191}
                    
192/* Returns with PHP-GD exists */
                    
193function gdExists()
                    
                
sort-helpers.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 359 lines
                    
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          |
                    
24#include "hphp/runtime/base/type-variant.h"
                    
25#include "hphp/runtime/base/zend-functions.h"
                    
26#include "hphp/runtime/base/zend-string.h"
                    
26#include "hphp/runtime/base/zend-string.h"
                    
27#include "hphp/runtime/base/sort-flags.h"
                    
28
                    
28
                    
29#include "hphp/util/safesort.h"
                    
30
                    
260    if (sort_flags == SORT_REGULAR) {
                    
261      return ascending ? HPHP::more(vLeft, vRight) : HPHP::less(vLeft, vRight);
                    
262    }
                    
                
signature_v2query.class.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 163 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 */
                    
83		// Do a case-sensitive, natural order sort on the array keys.
                    
84		uksort($query, 'strcmp');
                    
85
                    
                
paypal.php https://gitlab.com/Gashler/sg | PHP | 174 lines
                    
1<?php
                    
2
                    
163
                    
164        if ( !is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 && (strcmp( $response['body'], "VERIFIED" ) == 0) ) {
                    
165            return true;
                    
                
main.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 147 lines
                    
1<?php
                    
2function check_main( $theme ) {
                    
8				if ( substr( $filename, -4 ) == '.php' ) {
                    
9					$php[$filename] = php_strip_whitespace( $filename );
                    
10				}
                    
19			// run the checks
                    
20			$failed = !run_themechecks($php, $css, $other);
                    
21			?>
                    
52			</style>
                    
53			<?php
                    
54			global $checkcount;
                    
66			$plugins = get_plugins( '/theme-check' );
                    
67			$version = explode( '.', $plugins['theme-check.php']['Version'] );
                    
68			echo '<br /><br />Running <strong>' . $checkcount . '</strong> tests against <strong>' . $data[ 'Title' ] . '</strong> using Guidelines Version: <strong>'. $version[0] . '</strong> Plugin revision: <strong>'. $version[1] .'</strong><br />';
                    
95      # loop through the files, skipping . and .., and recursing if necessary
                    
96      if ( strcmp( $file, '.' )==0 || strcmp( $file, '..' )==0 ) continue;
                    
97      $filepath = $start_dir . '/' . $file;
                    
                
Settings.php https://github.com/gryzz/crystal_magento.git | PHP | 196 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 */
                    
182    {
                    
183        return strcmp($a["label"], $b["label"]);
                    
184    }
                    
                
packet.cpp https://gitlab.com/iranjith4/hhvm | C++ | 432 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
main.php https://github.com/jcftang/flex-slurm.git | PHP | 351 lines
                    
48			require_once("objects/summary/partition_job_cpus.php");
                    
49			require_once("objects/summary/partition_node_summary.php");
                    
50			require_once("objects/Partition.php");
                    
50			require_once("objects/Partition.php");
                    
51			require_once("includes/constants.php");
                    
52			$jobs = slurm_load_job_information();
                    
189		{
                    
190			require_once("objects/summary/sinfo_object.php");
                    
191			$nodes = array();
                    
192
                    
193			if(strcmp($part_name,"")==0 || strcmp($part_name,"TOTAL")==0 || $part_name==NULL) {
                    
194				foreach(slurm_print_partition_names() as $tmp) {
                    
298			require_once("objects/Node.php");
                    
299			require_once("objects/summary/partition_nodes.php");
                    
300
                    
                
gettext.php https://gitlab.com/mucill/majalengka | PHP | 432 lines
                    
1<?php
                    
2/*
                    
5
                    
6   This file is part of PHP-gettext.
                    
7
                    
7
                    
8   PHP-gettext is free software; you can redistribute it and/or modify
                    
9   it under the terms of the GNU General Public License as published by
                    
12
                    
13   PHP-gettext is distributed in the hope that it will be useful,
                    
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
18   You should have received a copy of the GNU General Public License
                    
19   along with PHP-gettext; if not, write to the Free Software
                    
20   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                    
27 * It can read MO files and use them for translating strings.
                    
28 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
29 *
                    
                
bench_internal.c https://gitlab.com/vectorci/rippled | C | 318 lines
                    
3 * Distributed under the MIT software license, see the accompanying   *
                    
4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.*
                    
5 **********************************************************************/
                    
280    while (argv != NULL && argv != argm) {
                    
281        if (strcmp(*argv, flag) == 0) return 1;
                    
282        argv++;
                    
                
stream.php https://github.com/jmarc06/yacs.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
31 * @link http://www.spartanicus.utvinternet.ie/streaming.htm Streaming audio/video from a web server
                    
32 * @link http://forums.winamp.com/showthread.php?s=dbec47f3a05d10a3a77959f17926d39c&threadid=65772 The Unofficial M3U and PLS Specification
                    
33 *
                    
46 * Accept following invocations:
                    
47 * - stream.php/12
                    
48 * - stream.php?id=12
                    
59// common definitions and initial processing
                    
60include_once '../shared/global.php';
                    
61include_once 'files.php';
                    
61include_once 'files.php';
                    
62include_once '../users/activities.php'; // record file fetch
                    
63
                    
85$behaviors = NULL;
                    
86include_once '../behaviors/behaviors.php';
                    
87if(isset($item['id']))
                    
                
basic.php https://bitbucket.org/simancms/simancms.git | PHP | 105 lines
                    
1<?php
                    
2
                    
84
                    
85	function sm_strcmp($str1, $str2)
                    
86		{
                    
86		{
                    
87			return strcmp(sm_null_safe_str($str1), sm_null_safe_str($str2));
                    
88		}
                    
101		{
                    
102			if (strcmp(substr($classname, 0, 3), 'SM\\')==0)
                    
103				include_once(dirname(dirname(__FILE__)).'/'.str_replace('\\', '/', $classname).'.php');
                    
                
BCGDrawJPG.php https://gitlab.com/talueses/SIPVE | PHP | 102 lines
                    
1<?php
                    
2/**
                    
8 * Copyright (C) Jean-Sebastien Goupil
                    
9 * http://www.barcodephp.com
                    
10 */
                    
10 */
                    
11include_once('BCGDraw.php');
                    
12
                    
90	private function internalSetC(&$bin) {
                    
91		if(strcmp(substr($bin, 0, 4), pack('H*', 'FFD8FFE0')) === 0) {
                    
92			$offset = 4 + (ord($bin[4]) << 8 | ord($bin[5]));
                    
                
slot.c https://github.com/kvaneesh/linux.git | C | 380 lines
                    
148
                    
149	if (strcmp(pci_slot_name(slot), name) == 0)
                    
150		return result;
                    
212 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify
                    
213 * a slot. There is one notable exception - pSeries (rpaphp), where the
                    
214 * @slot_nr cannot be determined until a device is actually inserted into
                    
                
Fl_Shared_Image.cxx https://github.com/paniwani/OTB.git | C++ | 467 lines
                    
24//
                    
25//     http://www.fltk.org/str.php
                    
26//
                    
77                         Fl_Shared_Image **i1) {	// I - Second image
                    
78  int i = strcmp((*i0)->name(), (*i1)->name());
                    
79
                    
                
locallib.php https://github.com/plymouthstate/moodle.git | PHP | 383 lines
                    
1<?php
                    
2
                    
2
                    
3require_once($CFG->dirroot.'/tag/lib.php');
                    
4require_once($CFG->libdir.'/filelib.php');
                    
6/**
                    
7 * locallib.php - moodle tag local library - output functions
                    
8 *
                    
56
                    
57        $link = $CFG->wwwroot .'/tag/index.php?tag='. rawurlencode($tag->name);
                    
58        $output .= '<li><a href="'. $link .'" class="'. $tag->class .'" '.
                    
72 * This function is used by print_tag_cloud, to usort() the tags in the cloud.
                    
73 * See php.net/usort for the parameters documentation. This was originally in
                    
74 * blocks/blog_tags/block_blog_tags.php, named blog_tags_sort().
                    
87    } elseif (is_string($a->$tagsort)) {
                    
88        return strcmp($a->$tagsort, $b->$tagsort);
                    
89    } else {
                    
                
PwTagService.php https://gitlab.com/wuhang2003/phpwind | PHP | 482 lines
                    
1<?php
                    
2Wind::import('SRV:tag.dm.PwTagDm');
                    
6 * @author peihong <peihong.zhangph@aliyun-inc.com>
                    
7 * @copyright ©2003-2103 phpwind.com
                    
8 * @license http://www.phpwind.com
                    
8 * @license http://www.phpwind.com
                    
9 * @version $Id: PwTagService.php 3833 2012-02-16 03:32:27Z peihong.zhangph $
                    
10 * @package src.service.tag.srv
                    
137	private static function cmp($a, $b) {
                    
138		    return strcmp($b["created_time"], $a["created_time"]);
                    
139	}
                    
                
VendorsModel.php https://gitlab.com/7slayer/h-node | PHP | 82 lines
                    
1<?php
                    
2
                    
35		{
                    
36			$clean['bus'] = strcmp($interface,'USB') === 0 ? "USB" : "PCI";
                    
37			
                    
54		{
                    
55			$clean['bus'] = strcmp($interface,'USB') === 0 ? "USB" : "PCI";
                    
56			
                    
                
pp_pro_iframe.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 308 lines
                    
1<?php
                    
2class ControllerPaymentPPProIframe extends Controller {
                    
121
                    
122				if ((strcmp($response, 'VERIFIED') == 0 || strcmp($response, 'UNVERIFIED') == 0) && isset($this->request->post['payment_status'])) {
                    
123					$order_status_id = $this->config->get('pp_pro_iframe_canceled_reversal_status_id');
                    
                
FUXmlWriter.cpp https://bitbucket.org/ardalanaz/dava.framework.git | C++ | 259 lines
                    
5	
                    
6	MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
227			if (p->type != XML_ELEMENT_NODE) continue;
                    
228			if (strcmp((const char*) p->name, (const char*) child->name) <= 0)
                    
229			{
                    
                
libgnomecups-0.2.3-cups-1.6.patch https://gitlab.com/abchk1234/slackbuilds | Patch | 285 lines
                    
7and ippSet functions for all of the fields in these structures.
                    
8http://www.cups.org/str.php?L3928
                    
9
                    
75-#define MAP_INT(v,a) {if (!g_ascii_strcasecmp (attr->name, (a))) { if ((v) != attr->values[0].integer) { changed = TRUE; } (v) = attr->values[0].integer; }}
                    
76-#define MAP_STRING(v,a) {if (!g_ascii_strcasecmp (attr->name, (a))) { if (!v || strcmp (v, attr->values[0].string.text)) { g_free (v); changed = TRUE; (v) = g_strdup (attr->values[0].string.text); }}}
                    
77+#define MAP_INT(v,a) {if (!g_ascii_strcasecmp (ippGetName (attr), (a))) { if ((v) != ippGetInteger (attr, 0)) { changed = TRUE; } (v) = ippGetInteger (attr, 0); }}
                    
77+#define MAP_INT(v,a) {if (!g_ascii_strcasecmp (ippGetName (attr), (a))) { if ((v) != ippGetInteger (attr, 0)) { changed = TRUE; } (v) = ippGetInteger (attr, 0); }}
                    
78+#define MAP_STRING(v,a) {if (!g_ascii_strcasecmp (ippGetName (attr), (a))) { if (!v || strcmp (v, ippGetString (attr, 0, NULL))) { g_free (v); changed = TRUE; (v) = g_strdup (ippGetString (attr, 0, NULL)); }}}
                    
79 
                    
91 			} 
                    
92-			if (!g_ascii_strcasecmp (attr->name, "attributes-charset") || !strcmp (attr->name, "attributes-charset")) {
                    
93+			if (!g_ascii_strcasecmp (ippGetName (attr), "attributes-charset") || !strcmp (ippGetName (attr), "attributes-charset")) {
                    
                
goblinclient.php https://github.com/tehsis/Goblin.git | PHP | 70 lines
                    
1<?php
                    
2/*
                    
50    $memcache_obj->connect('localhost',11211);
                    
51    if(strcmp($memcache_obj->get('LastTag'),$tags) == 0) {
                    
52      $this->found = $memcache_obj->get('search');
                    
                
AspDownloads.tpl https://bitbucket.org/jstechnologies/cats.git | Smarty Template | 181 lines
                    
1<?php /* $Id: AspDownloads.tpl 3367 2007-10-31 22:24:34Z brian $ */ ?>

                    
2<?php TemplateUtility::printHeader('Settings', array('modules/settings/validator.js', 'modules/settings/downloads.css')); ?>

                    
2<?php TemplateUtility::printHeader('Settings', array('modules/settings/validator.js', 'modules/settings/downloads.css')); ?>

                    
3<?php TemplateUtility::printHeaderBlock(); ?>

                    
4<?php TemplateUtility::printTabs($this->active, $this->subActive); ?>

                    
5

                    
6<?php // <---------------------------------- FIXME: Move to ASP Hook? ?>

                    
7<script>

                    
39    }

                    
40    ajaxObj.open("GET","<?php echo CATSUtility::getIndexName(); ?>?m=settings&a=downloads&sendDevEmail=true",true);

                    
41    ajaxObj.send(null);

                    
43</script>

                    
44<?php

                    
45if (isset($_GET['sendDevEmail']) && !strcmp($_GET['sendDevEmail'], 'true') && file_exists('modules/asp') &&

                    
47{

                    
48    if (isset($_COOKIE['CATS_firefoxToolbar']) && !strcmp($_COOKIE['CATS_firefoxToolbar'], 'true')) exit(0);

                    
49

                    
                
Configurator.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 284 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
64			if (isset ($this->config[$key]) || in_array($key, $this->allow_undefined)) {
                    
65				if (strcmp("$value", 'true') == 0) {
                    
66					$value = true;
                    
67				}
                    
68				if (strcmp("$value", 'false') == 0) {
                    
69					$value = false;
                    
97
                    
98		$overideString = "<?php\n/***CONFIGURATOR***/\n";
                    
99
                    
106			if (in_array($key, $this->allow_undefined) || isset ($sugar_config[$key])) {
                    
107				if (strcmp("$val", 'true') == 0) {
                    
108					$val = true;
                    
110				}
                    
111				if (strcmp("$val", 'false') == 0) {
                    
112					$val = false;
                    
                
db.php https://github.com/romainhk/ABULE.git | PHP | 373 lines
                    
1<?php
                    
2/*
                    
21    // $forcer permet de forcer la mise à jour si la page existe déjà
                    
22    $contenu = preg_replace("/<?php.*?>/", '', $contenu);
                    
23    $san_contenu = htmlspecialchars($contenu);
                    
74function bdd_supprimer($db, $nom) {
                    
75    if (strcmp($nom, '')) {
                    
76        if (bdd_get($db, 'niveau', $nom)) { # On vérifie que la page existe
                    
                
checkbase.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 231 lines
                    
1<?php
                    
2// main global to hold our checks
                    
13	// should return true for good/okay/acceptable, false for bad/not-okay/unacceptable
                    
14	public function check( $php_files, $css_files, $other_files );
                    
15
                    
21$dir = 'checks';
                    
22foreach (glob(dirname(__FILE__). "/{$dir}/*.php") as $file) {
                    
23	include $file;
                    
25
                    
26function run_themechecks($php, $css, $other) {
                    
27	global $themechecks;
                    
30		if ($check instanceof themecheck) {
                    
31			$pass = $pass & $check->check($php, $css, $other);
                    
32		}
                    
158			# loop through the files, skipping . and .., and recursing if necessary
                    
159			if ( strcmp( $file, '.' )==0 || strcmp( $file, '..' )==0 ) continue;
                    
160			$filepath = $start_dir . '/' . $file;
                    
                
php.js https://github.com/qronon/qronesite.git | JavaScript | 157 lines
                    
1editAreaLoader.load_syntax["php"] = {
                    
2	'DISPLAY_NAME' : 'Php'
                    
16			'null', '__LINE__', '__FILE__',
                    
17			'false', '&lt;?php', '?&gt;', '&lt;?',
                    
18			'&lt;script language', '&lt;/script&gt;',
                    
20			'function', 'class', 'new', '&amp;new', 'this',
                    
21			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',
                    
22			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
22			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
23			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',
                    
24			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
24			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
25			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',
                    
26			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',
                    
33			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
                    
34			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',
                    
35			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',
                    
                
Relation.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 278 lines
                    
1<?php
                    
2/*+***********************************************************************************
                    
81		foreach($actions as $action) {
                    
82			if(strcmp(strtolower($action), $actionName)== 0){
                    
83				return true;
                    
                
register.php https://github.com/brettp/Elgg-pagodabox.git | PHP | 79 lines
                    
1<?php
                    
2/**
                    
25
                    
26		if (strcmp($password, $password2) != 0) {
                    
27			throw new RegistrationException(elgg_echo('RegistrationException:PasswordMismatch'));
                    
                
filestore_funcs.php https://github.com/Nerutiz/trades.git | PHP | 366 lines
                    
1<?php
                    
2/**
                    
136	//Try to normalize down the paths so it does a consistent return.
                    
137	if (strcmp($rootPath, $resolvedDir) === 0) {
                    
138		$dir = ".";
                    
142	}
                    
143	if (strcmp($rootPath, $resolvedFullPath) === 0) {
                    
144		$path = ".";
                    
209		if (is_string($a) && is_string($b)) {
                    
210			$ret = strcmp($a,$b);
                    
211		} else if($a > $b || $a === null){
                    
365}
                    
366// No closing PHP tag on purpose.  Do not want it to print whitepace and thus not allow setting headers later.
                    
367
                    
                
locallib.php https://github.com/bobpuffer/1.9.12-LAE1.3.git | PHP | 389 lines
                    
1<?php // $Id: locallib.php 68 2009-07-31 18:23:01Z dlandau $
                    
2
                    
3/**
                    
4 * locallib.php - moodle tag local library - output functions
                    
5 *
                    
5 *
                    
6 * @version: $Id: locallib.php 68 2009-07-31 18:23:01Z dlandau $
                    
7 * @licence http://www.gnu.org/copyleft/gpl.html GNU Public License
                    
55
                    
56        $link = $CFG->wwwroot .'/tag/index.php?tag='. rawurlencode($tag->name);
                    
57        $output .= '<li><a href="'. $link .'" class="'. $tag->class .'" '.
                    
71 * This function is used by print_tag_cloud, to usort() the tags in the cloud.  
                    
72 * See php.net/usort for the parameters documentation. This was originally in
                    
73 * blocks/blog_tags/block_blog_tags.php, named blog_tags_sort().
                    
86    } elseif (is_string($a->$tagsort)) {
                    
87        return strcmp($a->$tagsort, $b->$tagsort);
                    
88    } else {
                    
                
GenCRC32Section.c https://gitlab.com/envieidoc/Clover | C | 313 lines
                    
6which accompanies this distribution.  The full text of the license may be found at        
                    
7http://opensource.org/licenses/bsd-license.php                                            
                    
8                                                                                          
                    
255  for (Index = 0; Index < argc; Index++) {
                    
256    if (_strcmpi (argv[Index], "-i") == 0) {
                    
257      ReturnValue = ReadFilesContentsIntoBuffer (
                    
272
                    
273    if (_strcmpi (argv[Index], "-o") == 0) {
                    
274      OutputFileName = argv[Index + 1];
                    
                
bcmnvram.h https://gitlab.com/buktemirlnk/mirrors | C Header | 329 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
140	/* In nvramstubs.c builds, nvram_get() is defined as returning zero,
                    
141	* so the return line below never executes the strcmp(),
                    
142	* resulting in 'match' being an unused parameter.
                    
147
                    
148	return (value && !strcmp(value, match));
                    
149}
                    
163	BCM_REFERENCE(match);
                    
164	return (value && !strcmp(value, match));
                    
165}
                    
179	/* In nvramstubs.c builds, nvram_get() is defined as returning zero,
                    
180	* so the return line below never executes the strcmp(),
                    
181	* resulting in 'invmatch' being an unused parameter.
                    
                
FinderTest.php https://github.com/l3l0/BehatExamples.git | PHP | 274 lines
                    
58        $this->assertSame($finder, $finder->depth('< 1'));
                    
59        $this->assertIterator($this->toAbsolute(array('foo', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
                    
60
                    
62        $this->assertSame($finder, $finder->depth('<= 0'));
                    
63        $this->assertIterator($this->toAbsolute(array('foo', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
                    
64
                    
108        $this->assertSame($finder, $finder->files()->size('< 1K')->size('> 500'));
                    
109        $this->assertIterator($this->toAbsolute(array('test.php')), $finder->in(self::$tmpDir)->getIterator());
                    
110    }
                    
115        $this->assertSame($finder, $finder->files()->date('until last month'));
                    
116        $this->assertIterator($this->toAbsolute(array('foo/bar.tmp', 'test.php')), $finder->in(self::$tmpDir)->getIterator());
                    
117    }
                    
188
                    
189        $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator);
                    
190    }
                    
                
JStringTest.php https://github.com/orware/joomla-platform.git | PHP | 439 lines
                    
1<?php
                    
2/**
                    
9
                    
10require_once JPATH_PLATFORM.'/joomla/utilities/string.php';
                    
11require_once 'TestHelpers/JString-helper-dataset.php';
                    
14 * Test class for JString.
                    
15 * Generated by PHPUnit on 2009-10-26 at 22:29:34.
                    
16 */
                    
16 */
                    
17class JStringTest extends PHPUnit_Framework_TestCase
                    
18{
                    
76
                    
77	static public function strcmpData() {
                    
78		return JStringTest_DataSet::$strcmpTests;
                    
224	{
                    
225		if (substr(php_uname(), 0, 6) == 'Darwin' &&
                    
226		      $locale != false) {
                    
                
format.php https://github.com/iarenaza/moodle.git | PHP | 392 lines
                    
1<?php
                    
2
                    
11
                    
12// Based on default.php, included by ../import.php
                    
13/**
                    
16 */
                    
17require_once ("$CFG->libdir/xmlize.php");
                    
18
                    
119
                    
120        if (strcmp($id, $correct_answer) == 0) {  // true is correct
                    
121            $question->answer = 1;
                    
178            // if choice is the answer, give 100%, otherwise give 0%
                    
179            if (strcmp ($id, $correct_answer_id) == 0) {
                    
180                $question->fraction[$j] = 1;
                    
244                $correct_answer_id = trim($correctanswers[$k]["@"]["answer_id"]);
                    
245                if (strcmp ($id, $correct_answer_id) == 0) {
                    
246                    $iscorrect = 1;
                    
                
AppController.php https://gitlab.com/vortexadventures/void | PHP | 292 lines
                    
1<?php
                    
2namespace App\Controller;
                    
92		$action = $this->request->getParam('action');
                    
93		$nested = strcmp(substr($action, -5, 5), 'Index') === 0;
                    
94		if($nested && isset($this->viewVars['parent'])) {
                    
121
                    
122		if(strcmp(substr($action, -3, 3), 'add') == 0
                    
123		|| strcmp(substr($action, -4, 4), 'edit') == 0) {
                    
134		}
                    
135		if(strcmp(substr($action, -5, 5), 'Index') == 0) {
                    
136			$model = ucfirst(substr($action, 0, -5));
                    
149			$oldAction = $this->request->getParam('action');
                    
150			if(strcmp(substr($oldAction, -4, 4), 'Edit') == 0) {
                    
151				$action = substr($oldAction, 0, -4) . 'View';
                    
                
glob.cpp https://gitlab.com/iranjith4/hhvm | C++ | 271 lines
                    
25// under MSVC.
                    
26#include "hphp/util/portability/glob.h"
                    
27
                    
38
                    
39#include "hphp/util/portability/fnmatch.h"
                    
40#include "hphp/util/portability.h"
                    
134      continue;
                    
135    if (literal && strcmp(p, de->d_name))
                    
136      continue;
                    
187static int sort(const void *a, const void *b) {
                    
188  return strcmp(*(const char **)a, *(const char **)b);
                    
189}
                    
                
RakString.h https://gitlab.com/computerphilly/openblox | C Header | 354 lines
                    
189	/// Compare strings (case sensitive)
                    
190	int StrCmp(const RakString &rhs) const;
                    
191
                    
215
                    
216	/// URL Encode the string. See http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/
                    
217	RakNet::RakString& URLEncode(void);
                    
                
FlowCompositeNode.cpp https://gitlab.com/dahbearz/CRYENGINE | C++ | 437 lines
                    
101{
                    
102	if (!strcmp(INTERIOR_NODE_TYPE, m_pFlowSystem->GetTypeName(typeId)))
                    
103		return new CCompositeInteriorNode(m_pFactory);
                    
108{
                    
109	if (!strcmp(INTERIOR_NODE_TYPE, m_pFlowSystem->GetTypeName(typeId)))
                    
110	{
                    
135
                    
136IFlowGraphPtr CCompositeGraph::Clone()
                    
137{
                    
157
                    
158CFlowCompositeNode::CFlowCompositeNode(SActivationInfo* pActInfo, IFlowGraphPtr pGraph, CFlowCompositeNodeFactoryPtr pFactory)
                    
159	: m_refs(0), m_parentInfo(*pActInfo), m_pGraph(pGraph), m_pFactory(pFactory)
                    
267
                    
268		if (0 == strcmp("Input", tag))
                    
269		{
                    
                
login_func.php https://gitlab.com/ColoradoSchoolOfMines/MinesPlaza-Defunct- | PHP | 172 lines
                    
1<?php
                    
2require ('../includes/common_func.php');
                    
2require ('../includes/common_func.php');
                    
3require_once('../includes/variables.php');
                    
4
                    
39        $row = $result->fetch_assoc();
                    
40        if(strcmp($_COOKIE['SessionID'], $row['session_id'])){
                    
41            if(time() < $row['expire_time']){
                    
69    defineUser(-1);
                    
70    header('Location: login.php?msg=You have been logged out');
                    
71    exit();
                    
                
Controller.php https://github.com/quarkness/piwik.git | PHP | 321 lines
                    
1<?php
                    
2/**
                    
85		$websites = Piwik_SitesManager_API::getInstance()->getSitesWithAdminAccess();
                    
86    	function orderByName($a, $b) { return strcmp($a['name'], $b['name']); }
                    
87		uasort($websites, 'orderByName');
                    
                
run_js_tests.php https://bitbucket.org/jokusafet/magento2.git | PHP | 241 lines
                    
29define('RELATIVE_APP_ROOT', '../../..');
                    
30require __DIR__ . '/../../../app/autoload.php';
                    
31Magento_Autoload_IncludePath::addIncludePath(realpath(RELATIVE_APP_ROOT . '/lib'));
                    
110        $proxyServer = sprintf($proxy['server'], $server, normalize(RELATIVE_APP_ROOT));
                    
111        fwrite($fh, '  - {matcher: "' . $proxy['matcher'] . '", server: "' . $proxyServer . '"}' . PHP_EOL);
                    
112    }
                    
117    if (!in_array($file, $serveFiles)) {
                    
118        fwrite($fh, "  - " . $file . PHP_EOL);
                    
119    }
                    
121
                    
122fwrite($fh, "test:" . PHP_EOL);
                    
123foreach ($testFiles as $file) {
                    
182{
                    
183    reportError('Usage: php run_js_tests.php');
                    
184}
                    
                
RestControllerHelper.php https://github.com/openemr/openemr.git | PHP | 339 lines
                    
1<?php
                    
2
                    
198            foreach ($capResource->getSearchParam() as $searchParam) {
                    
199                if (strcmp($searchParam->getName(), $fhirSearchField) == 0) {
                    
200                    $paramExists = true;
                    
258        // now setup our interaction types
                    
259        if (strcmp($reqMethod, "GET") == 0) {
                    
260            if (!empty(preg_match('/:/', $items[$numberItems - 1]))) {
                    
264            }
                    
265        } elseif (strcmp($reqMethod, "POST") == 0) {
                    
266            $code = "insert";
                    
266            $code = "insert";
                    
267        } elseif (strcmp($reqMethod, "PUT") == 0) {
                    
268            $code = "update";
                    
                
rpaphp_slot.c https://github.com/xoox/linux-2.6.18_pro500.git | C | 224 lines
                    
129
                    
130	list_for_each_entry(tmp_slot, &rpaphp_slot_head, rpaphp_slot_list) {
                    
131		if (!strcmp(tmp_slot->name, slot->name))
                    
144
                    
145	list_del(&slot->rpaphp_slot_list);
                    
146	
                    
147	/* remove "phy_location" file */
                    
148	rpaphp_sysfs_remove_attr_location(php_slot);
                    
149
                    
149
                    
150	retval = pci_hp_deregister(php_slot);
                    
151	if (retval)
                    
187
                    
188	list_add(&slot->rpaphp_slot_list, &rpaphp_slot_head);
                    
189	info("Slot [%s](PCI location=%s) registered\n", slot->name,
                    
                
form.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 267 lines
                    
125            
                    
126        } elseif (!strcmp("add", $op)) {
                    
127            
                    
178
                    
179<form action="<?php print SELF ?>?op=<?php print $op ?>&id=<?php print $id ?>" method="post" name="apressform" enctype="multipart/form-data">
                    
180<table border="0" cellpadding="0" cellspacing="0">
                    
193        ?>
                    
194        <option value="<?php print $aClients[$i]["Client Id"] ?>" selected><?php print clean($aClients[$i]["Client"]) ?></option>
                    
195        <?php } else { ?>
                    
195        <?php } else { ?>
                    
196        <option value="<?php print $aClients[$i]["Client Id"] ?>"><?php print clean($aClients[$i]["Client"]) ?></option>
                    
197        <?php } ?>
                    
219    </tr>
                    
220    <?php if (!strcmp("add", $op)) { ?>
                    
221    <tr>
                    
                
ezextensionpackagehandler.php https://github.com/Yannix/ezpublish.git | PHP | 262 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZExtensionPackageHandler ezextensionpackagehandler.php
                    
13  \brief Handles extenstions in the package system
                    
89            $siteINI->setVariable( "ExtensionSettings", "ActiveExtensions", $selectedExtensions );
                    
90            $siteINI->save( 'site.ini.append', '.php', false, false );
                    
91        }
                    
111        $extensionName = $trans->transformByGroup( $name, 'urlalias' );
                    
112        if ( strcmp( $name, $extensionName ) !== 0 )
                    
113        {
                    
174            $siteINI->setVariable( "ExtensionSettings", "ActiveExtensions", $selectedExtensions );
                    
175            $siteINI->save( 'site.ini.append', '.php', false, false );
                    
176        }
                    
                
riak_curl.c https://github.com/maxbeutel/ext.riak.git | C | 365 lines
                    
1#include <php.h>
                    
2
                    
2
                    
3#include <ext/json/php_json.h>
                    
4
                    
4
                    
5#include "ext/standard/php_smart_str.h"
                    
6
                    
13
                    
14PHPAPI riakCurlRequestHeader* riak_curl_create_request_header() {
                    
15    size_t block_size;
                    
34
                    
35PHPAPI void riak_curl_delete_request_header(riakCurlRequestHeader* request_header) {
                    
36    char **iter;
                    
45
                    
46PHPAPI int riak_curl_add_request_header_str(riakCurlRequestHeader* request_header, char* str, int str_len) {
                    
47    size_t num = request_header->num;
                    
                
cmd_print.cpp https://github.com/tstarling/hiphop-php.git | C++ | 368 lines
                    
52    char buf[64];
                    
53    if (strcmp(format, "hex") == 0 || strcmp(format, "x") == 0) {
                    
54      snprintf(buf, sizeof(buf), "%" PRIx64, nret);
                    
96  String sret = DebuggerClient::FormatVariable(ret, -1);
                    
97  if (strcmp(format, "hex") == 0 || strcmp(format, "x") == 0 ||
                    
98      strcmp(format, "oct") == 0) {
                    
192  client.helpCmds(
                    
193    "[p]rint {php}",              "prints result of PHP code",
                    
194    "[p]rint r {php}",            "prints result of PHP code, (print_r)",
                    
194    "[p]rint r {php}",            "prints result of PHP code, (print_r)",
                    
195    "[p]rint v {php}",            "prints result of PHP code, (var_dump)",
                    
196    "[p]rint x {php}",            "prints hex encoded string or number",
                    
354    m_ret =
                    
355      proxy.ExecutePHP(DebuggerProxy::MakePHPReturn(m_body),
                    
356                       m_output, m_frame, failed,
                    
                
format.php https://github.com/kpike/moodle.git | PHP | 313 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once ($CFG->libdir . '/xmlize.php');
                    
30
                    
252                $question->answer[$key] = s($this->unxmlise($value[0]['#']));
                    
253                if (strcmp($key, $answer) == 0) {
                    
254                    $question->fraction[$key] = 1;
                    
                
AuthCodeGrant.php https://bitbucket.org/roome2018/roome-web.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * @link        https://github.com/thephpleague/oauth2-server
                    
8 */
                    
218            $request,
                    
219            $this->getServerParameter('PHP_AUTH_USER', $request)
                    
220        );
                    
240                is_string($client->getRedirectUri())
                    
241                && (strcmp($client->getRedirectUri(), $redirectUri) !== 0)
                    
242            ) {
                    
                
TemplateList.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 388 lines
                    
1<?php namespace Cms\Widgets;
                    
2
                    
159        usort($items, function ($a, $b) {
                    
160            return strcmp($a->fileName, $b->fileName);
                    
161        });
                    
                
ext_icu_collator.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 369 lines
                    
1#include "hphp/runtime/ext/icu/ext_icu_collator.h"
                    
2#include "hphp/runtime/base/builtin-functions.h"
                    
2#include "hphp/runtime/base/builtin-functions.h"
                    
3#include "hphp/runtime/base/zend-collator.h"
                    
4#include "hphp/runtime/base/zend-qsort.h"
                    
5
                    
6namespace HPHP { namespace Intl {
                    
7/////////////////////////////////////////////////////////////////////////////
                    
184  char* key2 = ((collator_sort_key_index_t*)p2)->key;
                    
185  return strcmp( key1, key2 );
                    
186}
                    
368//////////////////////////////////////////////////////////////////////////////
                    
369}} // namespace HPHP::Intl
                    
370
                    
                
shared-functions.php https://gitlab.com/chernushov881/charity-fund | PHP | 310 lines
                    
1<?php
                    
2/**
                    
291	// The inet_pton will give us binary string of an ipv4 or ipv6.
                    
292	// We can then use strcmp to see if the address is in range.
                    
293	if ( function_exists( 'inet_pton' ) ) {
                    
296		$ip_high = inet_pton( $range_high );
                    
297		if ( $ip_num && $ip_low && $ip_high && strcmp( $ip_num, $ip_low ) >= 0 && strcmp( $ip_num, $ip_high ) <= 0 ) {
                    
298			return true;
                    
                
TraceableEventDispatcher.php https://gitlab.com/madwanz64/laravel | PHP | 407 lines
                    
1<?php
                    
2
                    
384    {
                    
385        if (0 !== $cmp = strcmp($a['event'], $b['event'])) {
                    
386            return $cmp;
                    
                
EfiCompressMain.c https://gitlab.com/envieidoc/Clover | C | 399 lines
                    
6which accompanies this distribution.  The full text of the license may be found at        
                    
7http://opensource.org/licenses/bsd-license.php                                            
                    
8                                                                                          
                    
190  while (argc > 0) {
                    
191    if (strcmp (*argv, "-h") == 0 || strcmp (*argv, "-?") == 0) {
                    
192      //
                    
                
rpaphp_core.c https://github.com/kvaneesh/linux.git | C | 539 lines
                    
24				/* and pci_do_scan_bus */
                    
25#include "rpaphp.h"
                    
26
                    
26
                    
27bool rpaphp_debug;
                    
28LIST_HEAD(rpaphp_slot_head);
                    
28LIST_HEAD(rpaphp_slot_head);
                    
29EXPORT_SYMBOL_GPL(rpaphp_slot_head);
                    
30
                    
40
                    
41module_param_named(debug, rpaphp_debug, bool, 0644);
                    
42
                    
106
                    
107	rc = rpaphp_get_sensor_state(slot, &state);
                    
108
                    
                
http.auth.lib.php https://gitlab.com/albert925/lading-ach | PHP | 229 lines
                    
59<center>
                    
60    <h1><?php echo sprintf($GLOBALS['strWelcome'], ' phpMyAdmin'); ?></h1>
                    
61</center>
                    
128        if (PMA_getenv('PHP_AUTH_PW')) {
                    
129            $PHP_AUTH_PW = PMA_getenv('PHP_AUTH_PW');
                    
130        } elseif (PMA_getenv('REMOTE_PASSWORD')) {
                    
140    // (do not use explode() because a user might have a colon in his password
                    
141    if (strcmp(substr($PHP_AUTH_USER, 0, 6), 'Basic ') == 0) {
                    
142        $usr_pass = base64_decode(substr($PHP_AUTH_USER, 6));
                    
155    if (!empty($old_usr)
                    
156        && (isset($PHP_AUTH_USER) && $old_usr == $PHP_AUTH_USER)) {
                    
157        $PHP_AUTH_USER = '';
                    
186    global $cfg, $server;
                    
187    global $PHP_AUTH_USER, $PHP_AUTH_PW;
                    
188
                    
                
arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
406			{
                    
407				$cmp = JString::strcmp($va, $vb, $locale);
                    
408			}
                    
436	 *
                    
437	 * @see     http://php.net/manual/en/function.array-unique.php
                    
438	 * @since   11.2
                    
                
people.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 387 lines
                    
1<?php
                    
2/**
                    
61			// Choose public profile
                    
62			if (!strcmp($type, 'public'))
                    
63			{
                    
                
protocol.class.php https://bitbucket.org/atulsavaliya/all-in-one-social-post.git | PHP | 516 lines
                    
1<?php
                    
2require 'decode.php';
                    
2require 'decode.php';
                    
3require 'exception.php';
                    
4
                    
74            foreach ($this->_children as $child) {
                    
75                if (strcmp($child->_tag, $tag) == 0) {
                    
76                    return $child;
                    
                
class.php https://github.com/dyron/userguide-de.git | PHP | 238 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
43	/**
                    
44	 * Loads a class and uses [reflection](http://php.net/reflection) to parse
                    
45	 * the class. Reads the class modifiers, constants and comment. Parses the
                    
150		// Otherwise just do alphabetical
                    
151		return strcmp($a->name, $b->name);
                    
152	}
                    
199		echo kohana::debug('a is '.$a->class.'::'.$a->name,'b is '.$b->class.'::'.$b->name,
                    
200						   'are the classes the same?', $a->class == $b->class,'if they are, the result is:',strcmp($a->name, $b->name),
                    
201						   'is a this class?', $a->name == $this->class->name,-1,
                    
202						   'is b this class?', $b->name == $this->class->name,1,
                    
203						   'otherwise, the result is:',strcmp($a->class, $b->class)
                    
204						   );
                    
                
main.cpp https://github.com/aurelienRT1/ezpublish.git | C++ | 376 lines
                    
46
                    
47// defined in fetchtr_php.cpp and fetchtr_tpl.cpp
                    
48extern void fetchtr_php( QFileInfo *fi, MetaTranslator *tor, bool mustExist );
                    
99    {
                    
100        if ( qstrcmp( argv[i], "--help" ) == 0 ||
                    
101             qstrcmp( argv[i], "-h" ) == 0 )
                    
105        }
                    
106        else if ( qstrcmp( argv[i], "--untranslated" ) == 0 ||
                    
107                  qstrcmp( argv[i], "-u" ) == 0 )
                    
110        }
                    
111        else if ( qstrcmp( argv[i], "--extension" ) == 0 ||
                    
112                  qstrcmp( argv[i], "-e" ) == 0 )
                    
133        }
                    
134        else if ( qstrcmp( argv[i], "--dirs" ) == 0 ||
                    
135                  qstrcmp( argv[i], "-d" ) == 0 )
                    
                
ipn.php https://gitlab.com/ptisky/API_prestashop | PHP | 250 lines
                    
1<?php
                    
2/**
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright 2007-2015 PrestaShop SA
                    
23*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
26
                    
27include_once(dirname(__FILE__).'/../../config/config.inc.php');
                    
28include_once(_PS_MODULE_DIR_.'paypal/paypal.php');
                    
38	{
                    
39		if (is_array($result) || (strcmp(trim($result), "VERIFIED") === false))
                    
40		{
                    
94		
                    
95		if (strcmp(trim($result), "VERIFIED") === false)
                    
96		{
                    
                
getopt.m4 https://gitlab.com/RobertCochran/emacs | m4 | 381 lines
                    
76  dnl POSIX 2008 does not specify leading '+' behavior, but see
                    
77  dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on
                    
78  dnl the next version of POSIX.  For now, we only guarantee leading '+'
                    
145    return 4;
                    
146  if (!(strcmp (argv[0], "program") == 0))
                    
147    return 5;
                    
147    return 5;
                    
148  if (!(strcmp (argv[1], "donald") == 0))
                    
149    return 6;
                    
149    return 6;
                    
150  if (!(strcmp (argv[2], "-p") == 0))
                    
151    return 7;
                    
151    return 7;
                    
152  if (!(strcmp (argv[3], "billy") == 0))
                    
153    return 8;
                    
                
dwarf_getsrc_file.c https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C | 193 lines
                    
21   under any Open Source Initiative certified open source license
                    
22   (http://www.opensource.org/licenses/index.php) which requires the
                    
23   distribution of source code with any binary distribution and to
                    
113	      if (is_basename)
                    
114		lastmatch = strcmp (basename (fname2), fname) == 0;
                    
115	      else
                    
115	      else
                    
116		lastmatch = strcmp (fname2, fname) == 0;
                    
117	    }
                    
                
gettext.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 400 lines
                    
128  NULL,
                    
129  PHP_MINFO(php_gettext),
                    
130  NO_VERSION_YET,
                    
147#define PHP_GETTEXT_LENGTH_CHECK(check_name, check_len) \
                    
148  if (check_len > PHP_GETTEXT_MAX_MSGID_LENGTH) { \
                    
149    php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s passed too long", check_name); \
                    
152
                    
153PHP_MINFO_FUNCTION(php_gettext)
                    
154{
                    
172
                    
173  if (strcmp(domain, "") && strcmp(domain, "0")) {
                    
174    domain_name = domain;
                    
352  PHP_GETTEXT_LENGTH_CHECK("msgid1", msgid1_len)
                    
353  PHP_GETTEXT_LENGTH_CHECK("msgid2", msgid2_len)
                    
354
                    
                
Player.php https://github.com/hifi-unmaintained/cncnet3-frontend.git | PHP | 169 lines
                    
1<?php
                    
2
                    
66            $pass_hash = hash ( $this->hashalgo, $password . $row->pass_salt );
                    
67            if ( strcmp ( $pass_hash, $row->pass_hash ) == 0 )
                    
68            {
                    
95            $pass_hash = hash ( $this->hashalgo, $oldpass . $row->pass_salt );
                    
96            if ( strcmp ( $pass_hash, $row->pass_hash ) == 0 )
                    
97            {
                    
126        {
                    
127            if ( strcmp ( $ip, $row->ip ) == 0 )
                    
128            {
                    
                
password.php https://github.com/bernard357/yacs.git | PHP | 271 lines
                    
1<?php
                    
2/**
                    
23// common definitions and initial processing
                    
24include_once '../shared/global.php';
                    
25
                    
81	if(!isset($context['with_email']) || ($context['with_email'] != 'Y'))
                    
82		Safe::redirect($context['url_to_home'].$context['url_to_root'].'query.php');
                    
83
                    
91	if(!isset($context['with_email']) || ($context['with_email'] != 'Y'))
                    
92		Safe::redirect($context['url_to_home'].$context['url_to_root'].'query.php');
                    
93
                    
95	if(!isset($item['email']) || !trim($item['email']))
                    
96		Safe::redirect($context['url_to_home'].$context['url_to_root'].'query.php');
                    
97
                    
114
                    
115		// direct link to login page --see users/login.php
                    
116		$link = $context['url_to_home'].$context['url_to_root'].Users::get_login_url('login', $id, rand(1000, 9999), $item['handle']);
                    
                
mod_files.c https://bitbucket.org/luobailiang/php-src.git | C | 464 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2012 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
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   +----------------------------------------------------------------------+
                    
                
list_view_2.php http://ditag.googlecode.com/svn/trunk/ | PHP | 426 lines
                    
82
                    
83if ( (strcmp($who,$PROV)==0) or (strcmp($who,$ADMIN)==0) ) {
                    
84	render_user_list();
                    
163	}
                    
164	else if (strcmp($what, $EDIT) == 0) {
                    
165		$button_name = "save";
                    
171		echo("<th width='25%' class='table_header' scope='col'>" .
                    
172		"<form action=\" " . $_SERVER[PHP_SELF] . "\" method=\"POST\">\n" .
                    
173		"Comments <input type=\"submit\" name=$button_name value=$button_val>\n" .
                    
236		 echo "<td>";
                    
237		 if ( (strcmp($what,$EDIT) == 0) && (strcmp($who,$USER) == 0) )  {
                    
238			echo "<textarea name=\"user_sample$id\" cols=\"30\" rows=\"10\">$data[user_comment]</textarea>";
                    
246		echo "<td>";
                    
247		if ( (strcmp($what,$EDIT) == 0) && (strcmp($who,$PROV)==0) ){
                    
248			echo "<textarea name=\"cp_sample$id\" cols=\"30\" rows=\"10\">$data[cp_comment]</textarea>";
                    
                
Worldpay.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 177 lines
                    
1<?php
                    
2
                    
72
                    
73			$errors = "\nUsing BUILT-IN PHP curl methods\n";
                    
74			// Run through the posted array
                    
113
                    
114			if (strcmp($result, "VERIFIED") == 0) { // It may seem strange but this function returns 0 if the result matches the string So you MUST check it is 0 and not just do strcmp ($result, "VERIFIED") (the if will fail as it will equate the result as false)
                    
115				// Do some checks to ensure that the payment has been sent to the correct person
                    
                
Abstract.php https://gitlab.com/rsilveira1987/Expresso | PHP | 200 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
22
                    
23require_once 'Zend/Service/Amazon/Abstract.php';
                    
24
                    
24
                    
25require_once 'Zend/Service/Amazon/Ec2/Response.php';
                    
26
                    
26
                    
27require_once 'Zend/Service/Amazon/Ec2/Exception.php';
                    
28
                    
160
                    
161        uksort($paramaters, 'strcmp');
                    
162        unset($paramaters['Signature']);
                    
                
view.php https://github.com/agnesrambaud/yacs.git | PHP | 188 lines
                    
1<?php
                    
2/**
                    
13 * Accept following invocations:
                    
14 * - view.php/12
                    
15 * - view.php?id=12
                    
26// common definitions and initial processing
                    
27include_once '../shared/global.php';
                    
28include_once 'versions.php';
                    
79if(!isset($item['id'])) {
                    
80	include '../error.php';
                    
81
                    
86	if(!Surfer::is_logged())
                    
87		Safe::redirect($context['url_to_home'].$context['url_to_root'].'users/login.php?url='.urlencode(Versions::get_url($item['id'])));
                    
88
                    
117				$compared = $anchor->diff($name, $attributes[ $name ]);
                    
118				if($params[2] || strcmp($compared, $attributes[ $name ])) {
                    
119
                    
                
graphparser.c https://gitlab.com/envieidoc/tomato | C | 357 lines
                    
25
                    
26#include "graphparser.h"
                    
27#include "avfilter.h"
                    
150
                    
151    while(*links && strcmp((*links)->name, label))
                    
152        links = &((*links)->next);
                    
340
                    
341    if(open_inputs && !strcmp(open_inputs->name, "out") && curr_inputs) {
                    
342        /* Last output can be omitted if it is "[out]" */
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 358 lines
                    
1<?php
                    
2/**
                    
82	function ($a, $b) {
                    
83		return strcmp($a["name"], $b["name"]);
                    
84	}
                    
                
GraphWidget.cpp git://pkgs.fedoraproject.org/edb | C++ | 381 lines
                    
167
                    
168	if(strcmp(tmp, "dashed") == 0)
                    
169		return Qt::DashLine;
                    
170
                    
171	if(strcmp(tmp, "dotted") == 0)
                    
172		return Qt::DotLine;
                    
173
                    
174	if(strcmp(tmp, "solid") == 0)
                    
175		return Qt::SolidLine;
                    
222
                    
223	QPen graphPen(aggetToQColor(graph, "color", Qt::white));
                    
224
                    
229
                    
230	QGraphicsRectItem *item = scene_->addRect(subGraphRect, graphPen, graphBrush);
                    
231	item->setZValue(INT_MIN);
                    
                
StringUtils.php https://gitlab.com/link233/bootmw | PHP | 288 lines
                    
1<?php
                    
2/**
                    
33	 * @note In MediaWiki 1.21, this function did not provide proper UTF-8 validation.
                    
34	 * In particular, the pure PHP code path did not in fact check for overlong forms.
                    
35	 * Beware of this when backporting code to that version of MediaWiki.
                    
45		// incorrectly allows values above U+10FFFF, so we have to check
                    
46		// for them separately. (This issue also exists in PHP 5.3 and
                    
47		// older, which are no longer supported.)
                    
47		// older, which are no longer supported.)
                    
48		static $newPHP;
                    
49		if ( $newPHP === null ) {
                    
49		if ( $newPHP === null ) {
                    
50			$newPHP = !mb_check_encoding( "\xf4\x90\x80\x80", 'UTF-8' );
                    
51		}
                    
121		$encEnd = preg_quote( $endDelim, '!' );
                    
122		$strcmp = strpos( $flags, 'i' ) === false ? 'strcmp' : 'strcasecmp';
                    
123		$endLength = strlen( $endDelim );
                    
                
update.php https://github.com/damanlovett/SEAHO.git | PHP | 165 lines
                    
1<?php require_once('../../../Connections/Programming.php'); ?>
                    
2<?php
                    
31?>
                    
32<?php require_once('../../includefiles/init.php'); ?>
                    
33
                    
100do {  
                    
101?><option value="<?php echo $row_rsProgramList['id']?>" <?php if (!(strcmp($row_rsProgramList['id'], $row_rsRooms['programID']))) {echo "selected=\"selected\"";} ?>><?php echo substr($row_rsProgramList['ProgramTitle'],0,30)."..."?></option>
                    
102          <?php
                    
109?>
                    
110          <?php
                    
111do {  
                    
112?>
                    
113          <option value="<?php echo $row_rsProgramList['id']?>"<?php if (!(strcmp($row_rsProgramList['id'], $row_rsRooms['programID']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsProgramList['ProgramTitle']?></option>
                    
114          <?php
                    
125        <td nowrap align="right"><strong>Location:</strong></td>
                    
126        <td><input type="text" name="location" value="<?php echo $row_rsRooms['location']; ?>" size="32"></td>
                    
127      </tr>
                    
                
wikiplugin_draw.php https://gitlab.com/ElvisAns/tiki | PHP | 193 lines
                    
1<?php
                    
2
                    
99            {
                    
100                return strcmp(strtolower($a["name"]), strtolower($b["name"]));
                    
101            }
                    
139        ~np~
                    
140        <form id="newDraw$drawIndex" method="get" action="tiki-edit_draw.php">
                    
141            <p>
                    
182            $editicon = smarty_function_icon(['name' => 'edit'], $smarty->getEmptyInternalTemplate());
                    
183            $ret .= "<a href='tiki-edit_draw.php?fileId=$id&page=$page&index=$drawIndex&label=$label" .
                    
184                (isset($width) ? "&width=$width" : "") . (isset($height) ? "&height=$height" : "") .
                    
                
ChangeName.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 212 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
24 * @package    File_Archive
                    
25 * @author     Vincent Lascaux <vincentlascaux@php.net>
                    
26 * @copyright  1997-2005 The PHP Group
                    
27 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL
                    
28 * @version    CVS: $Id: ChangeName.php,v 1.19 2005/07/09 12:54:35 vincentlascaux Exp $
                    
29 * @link       http://pear.php.net/package/File_Archive
                    
31
                    
32require_once "File/Archive/Reader/Relay.php";
                    
33
                    
153          !strncmp($name, $this->oldBaseName.'/', strlen($this->oldBaseName)+1) ||
                    
154           strcmp($name, $this->oldBaseName) == 0) {
                    
155            return $this->newBaseName.
                    
                
Abstract.php https://github.com/grandison/budo16.git | PHP | 200 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
22
                    
23// require_once 'Zend/Service/Amazon/Abstract.php';
                    
24
                    
24
                    
25// require_once 'Zend/Service/Amazon/Ec2/Response.php';
                    
26
                    
26
                    
27// require_once 'Zend/Service/Amazon/Ec2/Exception.php';
                    
28
                    
160
                    
161        uksort($paramaters, 'strcmp');
                    
162        unset($paramaters['Signature']);
                    
                
Navigation.php https://bitbucket.org/simancms/simancms.git | PHP | 218 lines
                    
1<?php
                    
2
                    
164									if (
                    
165										(sm_strcmp($main_suburl.$itemparams['attrs']['href'], $sm['server']['REQUEST_URI'])==0
                    
166											||
                    
166											||
                    
167											sm_strcmp($main_suburl.$itemparams['attrs']['href'], $sm['server']['REQUEST_URI'].'index.php')==0)
                    
168										|| (sm_is_index_page() && sm_strcmp($itemparams['attrs']['href'], $sm['s']['page']['scheme'].'://'.$sm['_s']['resource_url'])==0)
                    
                
rpadlpar_core.c https://bitbucket.org/codefirex/kernel_samsung_jf.git | C | 472 lines
                    
53	while ((dn = of_get_next_child(parent, dn))) {
                    
54		rc = rpaphp_get_drc_props(dn, NULL, &name, NULL, NULL);
                    
55		if ((rc == 0) && (!strcmp(drc_name, name)))
                    
71	while ((np = of_find_node_by_name(np, "pci"))) {
                    
72		rc = rpaphp_get_drc_props(np, NULL, &name, &type, NULL);
                    
73		if (rc == 0)
                    
73		if (rc == 0)
                    
74			if (!strcmp(drc_name, name) && !strcmp(drc_type, type))
                    
75				break;
                    
106/**
                    
107 * find_php_slot - return hotplug slot structure for device node
                    
108 * @dn: target &device_node
                    
114 */
                    
115static struct slot *find_php_slot(struct device_node *dn)
                    
116{
                    
                
Fl_Menu_.cxx https://github.com/paniwani/OTB.git | C++ | 232 lines
                    
24//
                    
25//     http://www.fltk.org/str.php
                    
26//
                    
95      strlcat(menupath, m->label(), sizeof(menupath));
                    
96      if (!strcmp(menupath, name)) return m;
                    
97    } else {
                    
110      strlcat(itempath, m->label(), sizeof(itempath));
                    
111      if (!strcmp(itempath, name)) return m;
                    
112    }
                    
                
write.c https://github.com/rowanj/libgit2.git | C | 316 lines
                    
123	  	{ GIT_FILEMODE_BLOB, "htaccess.htaccess"},
                    
124	  	{ GIT_FILEMODE_BLOB, "index.php"},
                    
125	  	{ GIT_FILEMODE_TREE, "plugins"},
                    
146
                    
147		if (strcmp(entry->filename, "c") == 0)
                    
148			position_c = i;
                    
149
                    
150		if (strcmp(entry->filename, "cake") == 0)
                    
151			position_cake = i;
                    
152
                    
153		if (strcmp(entry->filename, "config") == 0)
                    
154			position_config = i;
                    
244
                    
245		if (!strcmp(entry->filename, "aardvark"))
                    
246			aardvark_i = i;
                    
                
amazon-fps-cbui-pipeline.js https://github.com/rupa/amazon-fps.git | JavaScript | 267 lines
                    
144        
                    
145        parameters = makeSortedObject(parameters,false); //uksort($parameters, 'strcmp');
                    
146        data += getParametersAsString(parameters);
                    
163      return hmac.digest('base64');
                    
164      //php: l1aQhiVCfR2L0Q9t1Nt1HRa7tF0=    <== Yes this sign is identical to the php version
                    
165      //node:l1aQhiVCfR2L0Q9t1Nt1HRa7tF0=
                    
                
RakString.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 328 lines
                    
167	/// Compare strings (case sensitive)
                    
168	int StrCmp(const RakString &rhs) const;
                    
169
                    
193
                    
194	/// URL Encode the string. See http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/
                    
195	RakNet::RakString& URLEncode(void);
                    
206	/// Format as a POST command that can be sent to a webserver
                    
207	/// \param[in] uri For example, jenkinssoftware.com/raknet/DirectoryServer.php?query=download&downloadPassword=a
                    
208	/// \param[in] contentType For example, application/x-www-form-urlencoded
                    
214	/// Format as a GET comand that can be sent to a webserver
                    
215	/// \param[in] uri For example, jenkinssoftware.com/raknet/DirectoryServer.php?query=download&downloadPassword=a
                    
216	/// \param[in] contentType For example, application/x-www-form-urlencoded
                    
                
packet.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 432 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
ini.php https://github.com/ponlue/abktours.git | PHP | 281 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: ini.php 14401 2010-01-26 14:10:00Z louis $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
88	/**
                    
89	 * Parse an .ini string, based on phpDocumentor phpDocumentor_parse_ini_file function
                    
90	 *
                    
178							$parts	= preg_split('/(?<!\\\)\|/', $newline);
                    
179							$array	= (strcmp($parts[0], $newline) === 0) ? false : true;
                    
180							$parts	= str_replace('\|', '|', $parts);
                    
                
bakerlib.php https://github.com/mackensen/moodle.git | PHP | 177 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
98
                    
99                if (strcmp($key, $check) == 0) {
                    
100                    debugging('Key "' . $check . '" already exists in "' . $type . '" chunk.');
                    
                
format.php https://github.com/DeanLennard/Moodle-Question-Engine-2.git | PHP | 314 lines
                    
1<?php
                    
2
                    
29
                    
30require_once ($CFG->libdir . '/xmlize.php');
                    
31
                    
253                $question->answer[$key] = s($this->unxmlise($value[0]['#']));
                    
254                if (strcmp($key, $answer) == 0) {
                    
255                    $question->fraction[$key] = 1;
                    
                
test_issue373.c git://github.com/eclipse/paho.mqtt.c.git | C | 434 lines
                    
10 * and the Eclipse Distribution License is available at
                    
11 *   http://www.eclipse.org/org/documents/edl-v10.php.
                    
12 *
                    
74	{
                    
75		if (strcmp(argv[count], "--test_no") == 0)
                    
76		{
                    
81		}
                    
82		else if (strcmp(argv[count], "--connection") == 0)
                    
83		{
                    
88		}
                    
89		else if (strcmp(argv[count], "--proxy_connection") == 0)
                    
90		{
                    
95		}
                    
96		else if (strcmp(argv[count], "--verbose") == 0)
                    
97			options.verbose = 1;
                    
                
CustomDeviceRepository.php https://bitbucket.org/jerwinse/iagh-cms.git | PHP | 252 lines
                    
1<?php
                    
2/**
                    
155		// TODO: Prevent infinite recursion
                    
156		while (strcmp($deviceId, "root")) {
                    
157			$device = $this->persistenceStorage->load($deviceId);
                    
206		$devices = array();
                    
207		while (strcmp($deviceId, "root")) {
                    
208			$device = $this->getDevice($deviceId);
                    
                
account.php https://bitbucket.org/simancms/simancms.git | PHP | 264 lines
                    
1<?php
                    
2
                    
49				}
                    
50			elseif (sm_strcmp($password, $password2) != 0)
                    
51				{
                    
54				}
                    
55			elseif (intval(sm_settings('use_protect_code')) == 1 && (sm_strcmp($_sessionvars['protect_code'], sm_postvars('p_protect_code')) != 0 || empty(sm_postvars('p_protect_code'))))
                    
56				{
                    
83						{
                    
84							sm_redirect('index.php?m=account&d=usrlist');
                    
85						}
                    
95			$ui->p(sm_lang('success_registration'));
                    
96			$ui->a('index.php?m=account&d=show', sm_lang('you_can_enter'));
                    
97			$ui->Output(true);
                    
105					$ui=new UI();
                    
106					$f=new Form('index.php');
                    
107					$f->SetMethodGet();
                    
                
 

Source

Language