100+ results results for 'php substr_count repo:stechico/tweetnest' (1108 ms)
1<?php 2/* 164 if ('time' === $key) { 165 if (substr_count($value, 'ms')) { 166 $value = (float)$value / 1000; 285 'icon' => 'bolt', 286 'widget' => 'PhpDebugBar.Widgets.SQLQueriesWidget', 287 'map' => $this->getName(),Export.php https://gitlab.com/blingbang2016/shop | PHP | 267 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 */ 150 ->export(); 151 $countRows = substr_count(trim($result), "\n"); 152 if (!$countRows) {po.php https://gitlab.com/Gashler/dp | PHP | 384 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 718 2012-10-31 00:32:02Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/translations.php'; 11 115 if (false !== strpos($string, $newline) && 116 (substr_count($string, $newline) > 1 || !($newline === substr($string, -strlen($newline))))) { 117 $po = "$quote$quote$newline$po"; 163 function prepend_each_line($string, $with) { 164 $php_with = var_export($with, true); 165 $lines = explode("\n", $string); 167 if ("\n" == substr($string, -1)) unset($lines[count($lines) - 1]); 168 $res = implode("\n", array_map(create_function('$x', "return $php_with.\$x;"), $lines)); 169 // give back the empty line, we ignored aboveSYLK.php https://gitlab.com/yameen15/atomicprojectB20 | PHP | 450 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 213 /** 214 * Loads PHPExcel from file into PHPExcel instance 215 * 216 * @param string $pFilename 217 * @param PHPExcel $objPHPExcel 218 * @return PHPExcel 220 */ 221 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 222 {InstanceTest.php https://gitlab.com/AlexandrSy/magento.xxx | PHP | 139 lines
1<?php 2/** 7 8class InstanceTest extends \PHPUnit_Framework_TestCase 9{ 129 $this->assertContains('<block class="' . $model->getType() . '"', $result); 130 $this->assertEquals(count($params), substr_count($result, '<action method="setData">')); 131 $this->assertContains('<argument name="name" xsi:type="string">display_mode</argument>', $result);Lexer.php https://gitlab.com/Laolballs/cbtapp | PHP | 285 lines
1<?php 2 2 3namespace PhpParser; 4 27 public function __construct(array $options = array()) { 28 // map from internal tokens to PhpParser tokens 29 $this->tokenMap = $this->createTokenMap(); 91 92 // PHP cuts error message after null byte, so need special case 93 if (preg_match('~^Unexpected character in input: \'$~', $error['message'])) { 103 * 104 * * 'comments' => Array of PhpParser\Comment or PhpParser\Comment\Doc instances, 105 * representing all comments that occurred between the previous 160 } else { 161 $this->line += substr_count($token[1], "\n"); 162 $this->filePos += strlen($token[1]);php.js https://gitlab.com/Mirros/cdnjs | JavaScript | 129 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace 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 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 import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 127 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 128 CodeMirror.defineMIME("text/x-php", phpConfig); 129})();File.php https://gitlab.com/blingbang2016/shop | PHP | 432 lines
29 */ 30#require_once 'Zend/Reflection/Function.php'; 31 92 // realpath() doesn't return false if Suhosin is included 93 // see http://uk3.php.net/manual/en/function.realpath.php#82770 94 if (!file_exists($fileRealpath)) { 103 if (!$fileRealpath || !in_array($fileRealpath, get_included_files())) { 104 #require_once 'Zend/Reflection/Exception.php'; 105 throw new Zend_Reflection_Exception('File ' . $file . ' must be required before it can be reflected'); 196 if (!$instance instanceof Zend_Reflection_Docblock) { 197 #require_once 'Zend/Reflection/Exception.php'; 198 throw new Zend_Reflection_Exception('Invalid reflection class specified; must extend Zend_Reflection_Docblock'); 329 * Token ID's are explained here: 330 * http://www.php.net/manual/en/tokens.php. 331 */RetrieveFXSQLData.class.php git://github.com/yodarunamok/fxphp.git | PHP | 204 lines
1<?php 2 2 3require_once('RetrieveFXData.class.php'); 4 4 5#### Part of FX.php ##################################################### 6# # 32 $currentOrderBy .= "{$field}"; 33 if (substr_count(strtolower($sortOrder), 'desc') > 0) { 34 $currentOrderBy .= ' DESC';RouteBuilderTest.php https://gitlab.com/geeta7/drupal | PHP | 323 lines
1<?php 2 34 * 35 * @var \Drupal\Core\Routing\MatcherDumperInterface|\PHPUnit_Framework_MockObject_MockObject 36 */ 41 * 42 * @var \Drupal\Core\Lock\LockBackendInterface|\PHPUnit_Framework_MockObject_MockObject 43 */ 48 * 49 * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject 50 */ 55 * 56 * @var \Drupal\Component\Discovery\YamlDiscovery|\PHPUnit_Framework_MockObject_MockObject 57 */ 69 * 70 * @var \Drupal\Core\Controller\ControllerResolverInterface|\PHPUnit_Framework_MockObject_MockObject 71 */Docblock.php https://gitlab.com/devtoannh/cafe | PHP | 294 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Docblock.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Reflection/Docblock/Tag.php'; 26 94 { 95 $str = "Docblock [ /* Docblock */ ] {".PHP_EOL.PHP_EOL; 96 $str .= " - Tags [".count($this->_tags)."] {".PHP_EOL; 101 102 $str .= " }".PHP_EOL; 103 $str .= "}".PHP_EOL; 117 if (!method_exists($commentOrReflector, 'getDocComment')) { 118 require_once 'Zend/Reflection/Exception.php'; 119 throw new Zend_Reflection_Exception('Reflector must contain method "getDocComment"');SYLK.php https://gitlab.com/FellowsDevel/delicto | PHP | 415 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 131 // Create new PHPExcel 132 $objPHPExcel = new PHPExcel(); 133 178 /** 179 * Loads PHPExcel from file into PHPExcel instance 180 * 181 * @param string $pFilename 182 * @param PHPExcel $objPHPExcel 183 * @return PHPExcel 185 */ 186 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 187 {Util.php https://gitlab.com/karora/awl | PHP | 272 lines
1<?php 2/** 2/** 3 * PHP_CodeCoverage 4 * 4 * 5 * Copyright (c) 2009-2013, Sebastian Bergmann <sebastian@phpunit.de>. 6 * All rights reserved. 36 * 37 * @category PHP 38 * @package CodeCoverage 38 * @package CodeCoverage 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2009-2013 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 42 * @link http://github.com/sebastianbergmann/php-code-coverage 43 * @since File available since Release 1.0.0DocBlockReflection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 296 lines
1<?php 2/** 100 // determine line numbers 101 $lineCount = substr_count($this->docComment, "\n"); 102 $this->startLine = $this->reflector->getStartLine() - $lineCount - 1; 271 { 272 $str = "DocBlock [ /* DocBlock */ ] {" . PHP_EOL . PHP_EOL; 273 $str .= " - Tags [" . count($this->tags) . "] {" . PHP_EOL; 278 279 $str .= " }" . PHP_EOL; 280 $str .= "}" . PHP_EOL;php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin 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 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 import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 129 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 130 CodeMirror.defineMIME("text/x-php", phpConfig); 131})();tokenizer.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 277 lines
1<?php 2/** 221 // lead to a false position value. 222 if ( ( $newLines = substr_count( $match, "\n" ) ) > 0 ) 223 {BaseChunk.php https://gitlab.com/kennethgomad01/genisys | PHP | 267 lines
1<?php 2 206 public function setSection($fY, ChunkSection $section){ 207 if(substr_count($section->getIdArray(), "\x00") === 4096 and substr_count($section->getDataArray(), "\x00") === 2048){ 208 $this->sections[(int) $fY] = new EmptyChunkSection($fY);php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 140 lines
32 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 33 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin 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 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 import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 34 multiLineStrings: true, 63 var htmlMode = CodeMirror.getMode(config, "text/html"); 64 var phpMode = CodeMirror.getMode(config, phpConfig); 65 91 return style; 92 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 93 state.curMode = htmlMode; 112 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 113 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 114 if (state.curMode == htmlMode) cur = htmlNew; 138 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 139 CodeMirror.defineMIME("text/x-php", phpConfig); 140});Compiler.php https://gitlab.com/freebird/WebApp | PHP | 277 lines
1<?php 2 13/** 14 * Compiles a node to PHP code. 15 * 54 /** 55 * Gets the current PHP code after compilation. 56 * 56 * 57 * @return string The PHP code 58 */ 132 /** 133 * Appends an indentation to the current PHP code after compilation. 134 * 213 // when mbstring.func_overload is set to 2 214 // mb_substr_count() replaces substr_count() 215 // but they have different signatures!common_methods.php https://gitlab.com/endomorphosis/superchooseday | PHP | 483 lines
170 ob_start();?> 171 <img class="art-metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/posttagicon.png" width="18" height="18" alt="" /> <?php 172 $output .= ob_get_clean(); 230 ob_start();?> 231 <img class="art-metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/postcommentsicon.png" width="18" height="18" alt="" /> <?php 232 $output .= ob_get_clean(); 241 ob_start();?> 242 <img class="art-metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/postcategoryicon.png" width="18" height="18" alt="" /> <?php 243 $output .= ob_get_clean(); 417ob_start();?> 418 <img class="art-metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/postdateicon.png" width="18" height="18" alt="" /> <?php 419 $output .= ob_get_clean(); 424ob_start();?> 425 <img class="art-metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/postauthoricon.png" width="18" height="18" alt="" /> <?php if ($output != '') { 426 $output .= ' | ';smarty_internal_compile_include.php https://gitlab.com/ilya.webcity/anna | PHP | 215 lines
1<?php 2/** 127 // check if compiled code can be merged (contains no variable part) 128 if (!$compiler->has_variable_string && (substr_count($include_file, '"') == 2 or substr_count($include_file, "'") == 2) 129 and substr_count($include_file, '(') == 0 and substr_count($include_file, '$_smarty_tpl->') == 0) { 154 // remove header code 155 $compiled_code = preg_replace("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", '', $compiled_code); 156 if ($tpl->has_nocache_code) { 188 $_hash = $compiler->smarty->merged_templates_func[$tpl_name]['nocache_hash']; 189 $_output = "<?php /* Call merged included template \"" . $tpl_name . "\" */\n"; 190 $_output .= "\$_tpl_stack[] = \$_smarty_tpl;\n"; 205 if (isset($_assign)) { 206 $_output = "<?php \$_smarty_tpl->tpl_vars[$_assign] = new Smarty_variable(\$_smarty_tpl->getSubTemplate ($include_file, $_cache_id, $_compile_id, $_caching, $_cache_lifetime, $_vars, $_parent_scope));?>\n";; 207 } else { 207 } else { 208 $_output = "<?php echo \$_smarty_tpl->getSubTemplate ($include_file, $_cache_id, $_compile_id, $_caching, $_cache_lifetime, $_vars, $_parent_scope);?>\n"; 209 }country_codes.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 119 lines
1<?php //00d4b 2// ************************************************************************* 33// ************************************************************************* 34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199); 35?>install.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 471 lines
35 <h1>Install Error</h1> 36 <p>Shimmie needs to be run via a web server with PHP support -- you 37 appear to be either opening the file from your hard disk, or your 37 appear to be either opening the file from your hard disk, or your 38 web server is mis-configured and doesn't know how to handle PHP files.</p> 39 <p>If you've installed a web server on your desktop PC, you probably 117function do_install() { // {{{ 118 if(file_exists("data/config/auto_install.conf.php")) { 119 require_once "data/config/auto_install.conf.php"; 235 Drivers can generally be downloaded with your OS package manager; 236 for Debian / Ubuntu you want php5-pgsql, php5-mysql, or php5-sqlite. 237 </p> 455 The web server isn't allowed to write to the config file; please copy 456 the text below, save it as 'data/config/shimmie.conf.php', and upload it into the shimmie 457 folder manually. Make sure that when you save it, there is no whitespacedirectw.php https://gitlab.com/varsha_evonix/intranet | PHP | 408 lines
1<?php 2 102 $nb_carac = mb_strlen( $tmp , $this->mpdf->mb_enc ) ; 103 $nb_spaces = mb_substr_count( $tmp ,' ', $this->mpdf->mb_enc ) ; 104 $inclCursive=false; 185 $nb_carac = strlen( $tmp ) ; 186 $nb_spaces = substr_count( $tmp ,' ' ) ; 187 list($charspacing,$ws) = $this->mpdf->GetJspacing($nb_carac,$nb_spaces,((($w-2) - $len_ligne) * _MPDFK),$false);IpUtils.php https://gitlab.com/matijabelec/bigpandadev | PHP | 128 lines
1<?php 2 41 42 $method = substr_count($requestIp, ':') > 1 ? 'checkIp6' : 'checkIp4'; 43 85 * 86 * @author David Soria Parra <dsp at php dot net> 87 * 99 if (!((extension_loaded('sockets') && defined('AF_INET6')) || @inet_pton('::1'))) { 100 throw new \RuntimeException('Unable to check Ipv6. Check that PHP was not compiled with option "disable-ipv6".'); 101 }DoctrineEntityGenerator.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 119 lines
1<?php 2 48 $entityClass = $this->registry->getAliasNamespace($bundle->getName()).'\\'.$entity; 49 $entityPath = $bundle->getPath().'/Entity/'.str_replace('\\', '/', $entity).'.php'; 50 if (file_exists($entityPath)) { 91 if ($withRepository) { 92 $path = $bundle->getPath().str_repeat('/..', substr_count(get_class($bundle), '\\')); 93 $this->getRepositoryGenerator()->writeEntityRepositoryClass($class->customRepositoryClassName, $path);CClientScriptTest.php https://gitlab.com/RECITEC/yii | PHP | 481 lines
1<?php 2 478 $this->_clientScript->render($output); 479 $this->assertEquals($expectedScriptTagCount, substr_count($output, '<script')); 480 }po.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 363 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 406 2010-02-07 11:10:24Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/translations.php'; 11 101 if (false !== strpos($string, $newline) && 102 (substr_count($string, $newline) > 1 || !($newline === substr($string, -strlen($newline))))) { 103 $po = "$quote$quote$newline$po"; 149 function prepend_each_line($string, $with) { 150 $php_with = var_export($with, true); 151 $lines = explode("\n", $string); 153 if ("\n" == substr($string, -1)) unset($lines[count($lines) - 1]); 154 $res = implode("\n", array_map(create_function('$x', "return $php_with.\$x;"), $lines)); 155 // give back the empty line, we ignored aboveEntityResolverManager.php git://github.com/drupal/drupal.git | PHP | 242 lines
1<?php 2 99 100 $count = substr_count($controller, ':'); 101 if ($count == 1) { 120 * @param string|array $controller 121 * A PHP callable representing the controller. 122 * @param \Symfony\Component\Routing\Route $routeSecurity.php https://gitlab.com/blingbang2016/shop | PHP | 478 lines
74 // We cannot use libxml_disable_entity_loader because of this bug 75 // @see https://bugs.php.net/bug.php?id=64938 76 if (self::isPhpFpm()) { 84 85 if (!self::isPhpFpm()) { 86 $loadEntities = libxml_disable_entity_loader(true); 90 // Load XML with network access disabled (LIBXML_NONET) 91 // error disabled with @ for PHP-FPM scenario 92 set_error_handler(array('Zend_Xml_Security', 'loadXmlErrorHandler'), E_WARNING); 105 106 // Scan for potential XEE attacks using ENTITY, if not PHP-FPM 107 if (!self::isPhpFpm()) { 156 /** 157 * Return true if PHP is running with PHP-FPM 158 *VariableCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 345 lines
182 if ($long !== '') { 183 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 184 } 314 * 315 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 316 * @param int $stackPtr The position where the double quoted 320 */ 321 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 322 { 331 * 332 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 333 * @param int $stackPtr The position where the double quoted 337 */ 338 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 339 {template_copy.php https://gitlab.com/alexprowars/bitrix | PHP | 341 lines
13 */ 14require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 15require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); 71{ 72 /* parse source file for PHP code */ 73 $arComponents = PHPParser::ParseScript($filesrc); 78 $nLineFrom = substr_count(mb_substr($filesrc, 0, $arComponents[$i]["START"]), "\n") + 1; 79 $nLineTo = substr_count(mb_substr($filesrc, 0, $arComponents[$i]["END"]), "\n") + 1; 80 148 "\"".$sTemplateName."\", ". 149 "Array(\n\t".PHPParser::ReturnPHPStr2($arComponent["DATA"]["PARAMS"], $arParameters)."\n\t)". 150 ",\n\t".($arComponent["DATA"]["PARENT_COMP"] <> ''? $arComponent["DATA"]["PARENT_COMP"] : "false"). 150 ",\n\t".($arComponent["DATA"]["PARENT_COMP"] <> ''? $arComponent["DATA"]["PARENT_COMP"] : "false"). 151 (!empty($arComponent["DATA"]["FUNCTION_PARAMS"])? ",\n\t"."array(\n\t".PHPParser::ReturnPHPStr2($arComponent["DATA"]["FUNCTION_PARAMS"])."\n\t)" : ""). 152 "\n);";mysql_class_v1_1.php http://htdocstest.googlecode.com/svn/trunk/ | PHP | 411 lines
1<?php 2 59 60 if(trim($size)!='' && substr_count($size,"x") == 1 ){ 61 $this->size=$size; 164 function parse($line){ 165 if (substr_count($line,"=") == 1 ){ 166 $def = explode("=",$line); 287 * $action is insert update based 288 * $form_action is this example (action='index.php') 289 * BETA TESTED WORKS GOOD ON SMALL CODEAjax.php https://gitlab.com/che234/adn | PHP | 183 lines
1<?php 2/** 2/** 3 * @version $Id: Ajax.php 10831 2013-05-29 19:32:17Z btowles $ 4 * @author RocketTheme http://www.rockettheme.com 134 echo " Fatal error on line $errline in file $errfile"; 135 echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n"; 136 echo "Aborting...\n"; 152 153 /* Don't execute PHP internal error handler */ 154 return true; 163 { 164 $cd1 = substr_count($str, "\""); 165 $cd2 = substr_count($str, "\\\""); 165 $cd2 = substr_count($str, "\\\""); 166 $cs1 = substr_count($str, "'"); 167 $cs2 = substr_count($str, "\\'");component_props.php https://gitlab.com/alexprowars/bitrix | PHP | 378 lines
1<? 2require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); 4 5if(!$USER->CanDoOperation('edit_php')) 6 die(GetMessage("ACCESS_DENIED")); 62 { 63 /* parse source file for PHP code */ 64 $arScripts = PHPParser::ParseFile($filesrc); 69 { 70 $nLineFrom = substr_count(mb_substr($filesrc, 0, $script[0]), "\n")+1; 71 $nLineTo = substr_count(mb_substr($filesrc, 0, $script[1]), "\n")+1; 107 { 108 $params = PHPParser::ReturnPHPStr($_POST, $arTemplate["PARAMS"]); 109directw.php https://gitlab.com/Zamal/My-Web2-php | PHP | 463 lines
1<?php 2 111 $nb_carac = mb_strlen($tmp, $this->mpdf->mb_enc); 112 $nb_spaces = mb_substr_count($tmp, ' ', $this->mpdf->mb_enc); 113 $inclCursive = false; 205 $nb_carac = strlen($tmp); 206 $nb_spaces = substr_count($tmp, ' '); 207 list($charspacing, $ws) = $this->mpdf->GetJspacing($nb_carac, $nb_spaces, ((($w - 2) - $len_ligne) * _MPDFK), $false);file.php https://gitlab.com/che234/adn | PHP | 441 lines
1<?php 2/** 126 127 // Search for suffixed versions. Example: tags.j31.php 128 if (!empty($suffixes)) 133 { 134 $rawPath = str_replace('.', '/', $this->layoutId) . '.' . $suffix . '.php'; 135 $this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath); 146 // Standard version 147 $rawPath = str_replace('.', '/', $this->layoutId) . '.php'; 148 $this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath); 248 // Valid option format 249 if (substr_count($component, 'com_')) 250 {File.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 432 lines
24 */ 25require_once 'Zend/Reflection/Class.php'; 26 92 // realpath() doesn't return false if Suhosin is included 93 // see http://uk3.php.net/manual/en/function.realpath.php#82770 94 if (!file_exists($fileRealpath)) { 214 if (!$instance instanceof Zend_Reflection_Class) { 215 require_once 'Zend/Reflection/Exception.php'; 216 throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Class'); 234 if (!$instance instanceof Zend_Reflection_Function) { 235 require_once 'Zend/Reflection/Exception.php'; 236 throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Function'); 329 * Token ID's are explained here: 330 * http://www.php.net/manual/en/tokens.php. 331 */HtmlTrait.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 168 lines
1<?php 2/** 98 $content[] = $line; 99 $level += substr_count($line, "<$tag") - substr_count($line, "</$tag>"); 100 if ($level <= 0) {Regex.php https://gitlab.com/yousafsyed/easternglamor | PHP | 323 lines
1<?php 2 289 $subject = $subject[0]; 290 $replace = 0 === substr_count($subject, '\\') % 2; 291Parser.php https://gitlab.com/Gashler/dp | PHP | 500 lines
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 */ 203 $this->position += 5 + $len; 204 if (substr_count($this->http_version, '.') <= 1) 205 {Xsl.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 361 lines
1<?php 2/** 2/** 3 * phpDocumentor 4 * 4 * 5 * PHP Version 5.3 6 * 7 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 8 * @license http://www.opensource.org/licenses/mit-license.php MIT 9 * @link http://phpdoc.org 11 12namespace phpDocumentor\Plugin\Core\Transformer\Writer; 13 14use Monolog\Logger; 15use phpDocumentor\Application; 16use phpDocumentor\Descriptor\ProjectDescriptor;Security.php https://gitlab.com/yousafsyed/easternglamor | PHP | 488 lines
74 // We cannot use libxml_disable_entity_loader because of this bug 75 // @see https://bugs.php.net/bug.php?id=64938 76 if (self::isPhpFpm()) { 84 85 if (!self::isPhpFpm()) { 86 $loadEntities = libxml_disable_entity_loader(true); 110 if ($child->entities->length > 0) { 111 #require_once 'Exception.php'; 112 throw new Zend_Xml_Exception(self::ENTITY_DETECT); 118 // Entity load to previous setting 119 if (!self::isPhpFpm()) { 120 libxml_disable_entity_loader($loadEntities); 153 /** 154 * Return true if PHP is running with PHP-FPM 155 *File.php https://gitlab.com/devtoannh/cafe | PHP | 412 lines
29 */ 30require_once 'Zend/Reflection/Function.php'; 31 94 if (!$fileRealpath || !in_array($fileRealpath, get_included_files())) { 95 require_once 'Zend/Reflection/Exception.php'; 96 throw new Zend_Reflection_Exception('File ' . $file . ' must be required before it can be reflected'); 187 if (!$instance instanceof Zend_Reflection_Docblock) { 188 require_once 'Zend/Reflection/Exception.php'; 189 throw new Zend_Reflection_Exception('Invalid reflection class specified; must extend Zend_Reflection_Docblock'); 225 if (!$instance instanceof Zend_Reflection_Function) { 226 require_once 'Zend/Reflection/Exception.php'; 227 throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Function'); 319 * Token ID's are explained here: 320 * http://www.php.net/manual/en/tokens.php. 321 */ProgressBar.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 559 lines
1<?php 2 79 * @param string $name The placeholder name (including the delimiter char like %) 80 * @param callable $callable A PHP callable 81 */ 95 * 96 * @return callable|null A PHP callable 97 */ 295 296 $this->formatLineCount = substr_count($this->format, "\n"); 297 } 403 404 // these 3 variables can be removed in favor of using $this in the closure when support for PHP 5.3 will be dropped. 405 $self = $this;ProgressBar.php https://gitlab.com/matijabelec/bigpandadev | PHP | 620 lines
1<?php 2 85 * @param string $name The placeholder name (including the delimiter char like %) 86 * @param callable $callable A PHP callable 87 */ 101 * 102 * @return callable|null A PHP callable 103 */ 202 * 203 * @internal This method is public for PHP 5.3 compatibility, it should not be used. 204 * 321 322 $this->formatLineCount = substr_count($this->format, "\n"); 323 } 443 444 // these 3 variables can be removed in favor of using $this in the closure when support for PHP 5.3 will be dropped. 445 $self = $this;Strings.class.php https://gitlab.com/karl3/gs_libs | PHP | 1781 lines
1<?php 2 4 * 5 * A PHP library of helpful string manipulation methods. This class does 6 * not need to be assigned to an object, as you could use the :: access method, 49 $trimmed = trim($string); 50 if (!substr_count($trimmed, ' ')) { 51 return $trimmed;Mbstring.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 604 lines
1<?php 2 14/** 15 * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. 16 * 42 * - mb_strwidth - Return width of string 43 * - mb_substr_count - Count the number of substring occurrences 44 * 64{ 65 const MB_CASE_FOLD = PHP_INT_MAX; 66TableTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 222 lines
1<?php 2/** 13 14class TableTest extends \PHPUnit_Framework_TestCase 15{ 36 }, 37 Files::init()->getPhpFiles( 38 Files::INCLUDE_APP_CODE 119 $parts = explode('/', $filePath); 120 return array_search('Resource', $parts) !== false && array_search('Collection.php', $parts) === false; 121 } 150 * @return string 151 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 152 */ 162 * @return string 163 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 164 */drupal.php https://gitlab.com/devtoannh/cafe | PHP | 115 lines
1<?php 2 9 * @copyright 2010, 2011 KCFinder Project 10 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 11 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 34 $drupal_path .= '/..'; 35 $depth = substr_count($drupal_path, '..'); 36 } while (!($bootstrap_file_found = file_exists($drupal_path . '/includes/bootstrap.inc')) && $depth < 10);IPv6.php https://gitlab.com/Gashler/dp | PHP | 276 lines
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 */ 50 * @subpackage HTTP 51 * @copyright 2003-2005 The PHP Group 52 * @license http://www.opensource.org/licenses/bsd-license.php 52 * @license http://www.opensource.org/licenses/bsd-license.php 53 * @link http://pear.php.net/package/Net_IPv6 54 * @author Alexander Merz <alexander.merz@web.de> 73 * @author Josh Peck <jmp at joshpeck dot org> 74 * @copyright 2003-2005 The PHP Group 75 * @license http://www.opensource.org/licenses/bsd-license.phpNewIconvMbstringCharsetDefaultSniff.php git://github.com/wimg/PHPCompatibility.git | PHP | 232 lines
2/** 3 * PHPCompatibility, an external standard for PHP_CodeSniffer. 4 * 7 * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 8 * @link https://github.com/PHPCompatibility/PHPCompatibility 9 */ 28 * 29 * @link https://www.php.net/manual/en/migration56.new-features.php#migration56.new-features.default-encoding 30 * @link https://www.php.net/manual/en/migration56.deprecated.php#migration56.deprecated.iconv-mbstring-encoding 106 * 107 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 108 * @param int $stackPtr The position of the current token in the stack. 147 * 148 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 149 * @param int $stackPtr The position of the current token in the stack.Stream.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 606 lines
1<?php 2/* 2/* 3 * This file is part of the PHP_TokenStream package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 11/** 12 * A stream of PHP tokens. 13 * 13 * 14 * @author Sebastian Bergmann <sebastian@phpunit.de> 15 * @copyright Sebastian Bergmann <sebastian@phpunit.de> 16 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 17 * @link http://github.com/sebastianbergmann/php-token-stream/tree 18 * @since Class available since Release 1.0.0kuveytturk.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 181 lines
1<?php //00d4b 2// ************************************************************************* 33// ************************************************************************* 34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199); 35?> 133CbwjoEHcxL9j2mBa60034531nxTJRTgzm17AJrvaUsEu3Is5R12rAXzI8nuCdkfYyHWmCZ8a0V7d 134xuYYBp8ntsQ9YVdwiLtQ0eBL7PH8KhmRcrlUozOVLDKY/E2sitR3z9AVwYFDGnE943PhpvpgXrGp 135+ixWPXu+cZKxr31FE8kXUEffDXXXKz652h0AYVthytpd1iIP4j2314aGAxxcmj6Plxpg9Cph9XHMGoogleAuthenticator.php https://gitlab.com/mybbpl/ppm-1.8 | PHP | 208 lines
1<?php 2 3/** 4 * PHP Class for handling Google Authenticator 2-factor authentication 5 * 7 * @copyright 2012 Michael Kliewe 8 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 9 * @link http://www.phpgangsta.de/ 11 12class PHPGangsta_GoogleAuthenticator 13{ 113 * @param int $length 114 * @return PHPGangsta_GoogleAuthenticator 115 */ 134 135 $paddingCharCount = substr_count($secret, $base32chars[32]); 136 $allowedValues = array(6, 4, 3, 1, 0);servercontainer.php https://gitlab.com/wuhang2003/core | PHP | 89 lines
1<?php 2/** 75 // the apps container first. 76 if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) { 77 $segments = explode('\\', $name);File.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 420 lines
25 * @copyright Copyright (c) phpRack.com 26 * @version $Id: File.php 588 2010-05-25 15:11:56Z yegor256@yahoo.com $ 27 * @category phpRack 32 */ 33require_once PHPRACK_PATH . '/Package.php'; 34 37 */ 38require_once PHPRACK_PATH . '/Adapters/File.php'; 39 44 */ 45class phpRack_Package_Disc_File extends phpRack_Package 46{ 83 { 84 $fileName = phpRack_Adapters_File::factory($fileName)->getFileName(); 85ProgressIndicatorTest.php https://gitlab.com/aegir/provision | PHP | 175 lines
1<?php 2 4 5use PHPUnit\Framework\TestCase; 6use Symfony\Component\Console\Helper\ProgressIndicator; 48 $this->generateOutput(' | Done...'). 49 PHP_EOL. 50 $this->generateOutput(' - Starting Again...'). 52 $this->generateOutput(' \\ Done Again...'). 53 PHP_EOL, 54 stream_get_contents($output->getStream()) 72 $this->assertEquals( 73 ' Starting...'.PHP_EOL. 74 ' Midway...'.PHP_EOL. 74 ' Midway...'.PHP_EOL. 75 ' Done...'.PHP_EOL.PHP_EOL, 76 stream_get_contents($output->getStream())Ip.php https://gitlab.com/yousafsyed/easternglamor | PHP | 192 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Validate/Abstract.php'; 26 106 if (!$this->_options['allowipv4'] && !$this->_options['allowipv6']) { 107 #require_once 'Zend/Validate/Exception.php'; 108 throw new Zend_Validate_Exception('Nothing to validate. Check your options'); 179 180 $colonCount = substr_count($value, ':'); 181 if ($colonCount < 8) {Renderer.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 273 lines
1<?php 2/* 2/* 3 * This file is part of the PHP_CodeCoverage package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 13/** 14 * Base class for PHP_CodeCoverage_Report_Node renderers. 15 * 17 */ 18abstract class PHP_CodeCoverage_Report_HTML_Renderer 19{ 152 * @param Text_Template $template 153 * @param PHP_CodeCoverage_Report_Node $node 154 */ntlm_sasl_client.php https://gitlab.com/x33n/ampache | PHP | 185 lines
1<?php 2/* 2/* 3 * ntlm_sasl_client.php 4 * 4 * 5 * @(#) $Id: ntlm_sasl_client.php,v 1.3 2004/11/17 08:00:37 mlemos Exp $ 6 * 8 ** Source: http://www.phpclasses.org/browse/file/7495.html 9 ** License: BSD (http://www.phpclasses.org/package/1888-PHP-Single-API-for-standard-authentication-mechanisms.html) 10 ** Bundled with Permission 32 ); 33 $client->error="the extension ".$extensions[$function]." required by the NTLM SASL client class is not available in this PHP configuration"; 34 return(0); 80 $s=substr($packed,$p,7); 81 $b=$s.((substr_count($s,"1") % 2) ? "0" : "1"); 82 $key.=chr(bindec($b));Mbstring.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 562 lines
1<?php 2 11 12namespace Patchwork\PHP\Shim; 13 14/** 15 * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. 16 * 41 * - mb_strwidth - Return width of string 42 * - mb_substr_count - Count the number of substring occurrences 43 * 60{ 61 const MB_CASE_FOLD = PHP_INT_MAX; 62Mbstring.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 442 lines
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et: 2/* 10 11namespace Patchwork\PHP\Shim; 12 13/** 14 * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. 15 * 56 * - mb_strwidth - Return width of string 57 * - mb_substr_count - Count the number of substring occurrences 58 */ 60{ 61 const MB_CASE_FOLD = PHP_INT_MAX; 62FunctionCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 818 lines
12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 13 * @link http://pear.php.net/package/PHP_CodeSniffer 14 */ 47 * @version Release: @package_version@ 48 * @link http://pear.php.net/package/PHP_CodeSniffer 49 */ 110 * 111 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 112 * @param int $stackPtr The position of the current token 116 */ 117 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 118 { 144 // only thing on the line, assume we found nothing. 145 $prevContent = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, $commentEnd); 146 if ($tokens[$commentEnd]['line'] === $tokens[$commentEnd]['line']) {FileCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 564 lines
87 * 88 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 89 * @param int $stackPtr The position of the current token 209 210 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 211 215 $between = $comment->getWhiteSpaceBetween(); 216 $newlineBetween = substr_count($between, $phpcsFile->eolChar); 217 if ($newlineBetween !== 2) { 237 if ($long !== '') { 238 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 239 } 252 $lastChar = $testShort[(strlen($testShort) - 1)]; 253 if (substr_count($testShort, $phpcsFile->eolChar) !== 0) { 254 $error = 'File comment short description must be on a single line';FunctionCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 490 lines
44 * @version Release: @package_version@ 45 * @link http://pear.php.net/package/PHP_CodeSniffer 46 */ 177 try { 178 $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile); 179 $this->commentParser->parse(); 205 206 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 207 211 $between = $comment->getWhiteSpaceBetween(); 212 $newlineBetween = substr_count($between, $phpcsFile->eolChar); 213 if ($newlineBetween !== 2) { 227 if ($long !== '') { 228 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 229 }FileCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 799 lines
12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 13 * @link http://pear.php.net/package/PHP_CodeSniffer 14 */ 16if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) { 17 throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found'); 18} 41 * @version Release: @package_version@ 42 * @link http://pear.php.net/package/PHP_CodeSniffer 43 */ 140 * 141 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 142 * @param int $stackPtr The position of the current token 146 */ 147 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 148 {AbstractParser.php https://gitlab.com/yousafsyed/easternglamor | PHP | 684 lines
66 * @version Release: @package_version@ 67 * @link http://pear.php.net/package/PHP_CodeSniffer 68 */ 185 * @param string $comment The comment to parse. 186 * @param PHP_CodeSniffer_File $phpcsFile The file that this comment is in. 187 */ 187 */ 188 public function __construct($comment, PHP_CodeSniffer_File $phpcsFile) 189 { 190 $this->commentString = $comment; 191 $this->phpcsFile = $phpcsFile; 192 393 for ($i = 0; $i < $tokenPos; $i++) { 394 $newlines += substr_count($this->phpcsFile->eolChar, $this->words[$i]); 395 }EmogrifierTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 1093 lines
1<?php 2namespace Pelago\Tests\Unit; 10 */ 11class EmogrifierTest extends \PHPUnit_Framework_TestCase 12{ 257 2, 258 substr_count($this->subject->emogrify(), '<p style="' . $styleRule . '">') 259 );RequireAnnotatedMethodsSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 694 lines
19 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 20 * @link http://pear.php.net/package/PHP_CodeSniffer 21 * 204 205 $newlineCount = substr_count($short, $phpcsFile->eolChar) + 1; 206 210 $between = $comment->getWhiteSpaceBetween(); 211 $newlineBetween = substr_count($between, $phpcsFile->eolChar); 212 if ($newlineBetween !== 2) { 231 if ($long !== '') { 232 $newlineCount += substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1; 233 } 246 $lastChar = $testShort[strlen($testShort) - 1]; 247 if (substr_count($testShort, $phpcsFile->eolChar) !== 0) { 248 $this->helper->addMessage($commentStart + 1, Helper::SHORT_SINGLE_LINE, ['Function']);BracesFixer.php https://gitlab.com/yousafsyed/easternglamor | PHP | 608 lines
1<?php 2 3/* 4 * This file is part of the PHP CS utility. 5 * 264 || !($nextToken->isWhitespace() && $nextToken->isWhitespace(array('whitespaces' => " \t"))) 265 && substr_count($nextToken->getContent(), "\n") === 1 // preserve blank lines 266 ) {discovery.inc.php https://gitlab.com/pirati.cz/simpleid | PHP | 647 lines
1<?php 2/* 34 35include_once "http.inc.php"; 36 177 if (stristr($identifier, '://') === false) $normalized = 'http://'. $identifier; 178 if (substr_count($normalized, '/') < 3) $normalized .= '/'; 179 } 380 * 381 * This parser uses the classic expat functions available in PHP to parse the 382 * XRDS Simple XML document.StaticStringyTest.php https://gitlab.com/puntodos/ean-landings | PHP | 710 lines
1<?php 2 2 3require __DIR__ . '/../src/StaticStringy.php'; 4 395 $char = mb_substr($str, $i, 1, $encoding); 396 $countBefore = mb_substr_count($str, $char, $encoding); 397 $countAfter = mb_substr_count($result, $char, $encoding);CakeText.php https://gitlab.com/nghiep5890/bakery | PHP | 710 lines
1<?php 2/** 4 * 5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @package Cake.Utility 14 * @package Cake.Utility 15 * @since CakePHP(tm) v 1.2.0.5551 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 35 if (strpos($node, ':') !== false) { 36 if (substr_count($node, '::')) { 37 $node = str_replace( 37 $node = str_replace( 38 '::', str_repeat(':0000', 8 - substr_count($node, ':')) . ':', $node 39 );Stream.php https://gitlab.com/Laolballs/cbtapp | PHP | 594 lines
1<?php 2/* 2/* 3 * This file is part of the PHP_TokenStream package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 11/** 12 * A stream of PHP tokens. 13 * 13 * 14 * @author Sebastian Bergmann <sebastian@phpunit.de> 15 * @copyright Sebastian Bergmann <sebastian@phpunit.de> 17 * @version Release: @package_version@ 18 * @link http://github.com/sebastianbergmann/php-token-stream/tree 19 * @since Class available since Release 1.0.0html.php https://gitlab.com/vado/scadi | PHP | 1729 lines
1<?php 2//------------------------------------------------------- 498 <tr> 499 <td><p>cercador 'id':</b>".(html_ajuda1('html.php',34))."</p> 500 <input id='i_cercarProducteId' type='text' size='6' value='".$mPars['crPrId']."'> 500 <input id='i_cercarProducteId' type='text' size='6' value='".$mPars['crPrId']."'> 501 <input type='button' onClick=\"javascript:if(checkCercarProdId()){enviarFpars('comandes.php?crPrId='+cercarProdId,'_self');}\" value='cercar'> 502 </td> 509 <tr> 510 <td><p>cercador text:</b>".(html_ajuda1('html.php',35))."</p> 511 "; 521 <input id='i_cercarProducteText' type='text' size='10' style='background-color:".$bgcolor."' value='".(urldecode($mPars['crPrText']))."'> 522 <input type='button' onClick=\"javascript:if(checkCercarProdText()){enviarFpars('comandes.php?crPrText='+cercarProdText,'_self');}\" value='cercar'> 523 </td> 551 { 552 if(@substr_count($mRebost['productors_associats'],','.$mProductor['id'].',')>0) 553 {db_vistaReservesSZ.php https://gitlab.com/vado/scadi | PHP | 1058 lines
1<?php 2 27 { 28 //echo "<br> 17 db_vistaReserves.php ".mysql_errno() . ": " . mysql_error(). "\n"; 29 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 45 { 46 //echo "<br> 34 db_vistaReserves.php ".mysql_errno() . ": " . mysql_error(). "\n"; 47 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 62 { 63 //echo "<br> 54 db_vistaReserves.php ".mysql_errno() . ": " . mysql_error(). "\n"; 64 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 82 { 83 //echo "<br> 70 db_vistaReserves.php ".mysql_errno() . ": " . mysql_error(). "\n"; 84 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 169 //echo "<br>".$mRebostsRef[$grupId]['nom']." (".$mRebostsRef[$grupId]['categoria'].") ".$mProductes[$index]['producte']."-".$mVal2['rebut']; 170 if(substr_count($grupsPuntsEntregaZona,','.$grupId.',')>0) 171 {db_distribucioGrups.php https://gitlab.com/vado/scadi | PHP | 638 lines
1<?php 2//----------------------------------------------------------------------- 26 { 27 echo "<br> 27 db_distribucioGrups.php ".mysql_errno() . ": " . mysql_error(). "\n"; 28 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 69 { 70 if(($mProducte['actiu']==1 && $mProducte['visible']==1) || substr_count($mProducte['tipus'],'especial')>0) 71 { 115 { 116 if(($mProducte['actiu']==1) || substr_count($mProducte['tipus'],'especial')>0) 117 { 239 { 240 //echo "<br> 231 db_distribucioGrups.php ".mysql_errno() . ": " . mysql_error(). "\n"; 241 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 265 //echo "<br> 19".mysql_errno() . ": " . mysql_error(). "\n"; 266 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 267 }db_comptes.php https://gitlab.com/vado/scadi | PHP | 1397 lines
1<?php 2 57 //echo "<br> 19".mysql_errno() . ": " . mysql_error(). "\n"; 58 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 59 } 114 { 115 if(substr_count(@$mProductes[$key]['tipus'],'especial')>0) 116 { 253 //echo "<br> 19".mysql_errno() . ": " . mysql_error(). "\n"; 254 //err__('DB/*19.1*/',mysql_errno().'--'.mysql_error(),'102','db.php'); 255 } 307 { 308 if(substr_count(@$mProductes[$key]['tipus'],'especial')>0) 309 {usercp.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 1886 lines
1<?php 2/** 12define("IN_MYBB", 1); 13define('THIS_SCRIPT', 'usercp.php'); 14 25 26require_once "./global.php"; 27require_once MYBB_ROOT."inc/functions_post.php"; 27require_once MYBB_ROOT."inc/functions_post.php"; 28require_once MYBB_ROOT."inc/functions_user.php"; 29require_once MYBB_ROOT."inc/class_parser.php"; 80 if((($mybb->settings['sigimgcode'] == 0 && $mybb->settings['sigsmilies'] != 1) && 81 substr_count($parsed_sig, "<img") > 0) || 82 (($mybb->settings['sigimgcode'] == 1 || $mybb->settings['sigsmilies'] == 1) && 82 (($mybb->settings['sigimgcode'] == 1 || $mybb->settings['sigsmilies'] == 1) && 83 substr_count($parsed_sig, "<img") > $mybb->settings['maxsigimages']) 84 )tinyzenpage-functions.php https://gitlab.com/r.collas/site_central | PHP | 680 lines
1<?php 2/** 40 $subalbumname = $subalbumobj->name; 41 $level = substr_count($subalbumname, "/"); 42 $arrow = ""; 332 echo "<a href=\"javascript:ZenpageDialog.insert('','news/" . $newsobj->getTitlelink() . "','','','" . $newsobj->getTitlelink() . "','" . addslashes($newsobj->getTitle()) . "','','','articles','','','','');\" title='" . html_encode(truncate_string(getBare($newsobj->getContent()), 300)) . "'>" . addslashes($newsobj->getTitle()) . unpublishedZenpageItemCheck($newsobj) . "</a> <small><em>" . $newsobj->getDatetime() . "</em></small>"; 333 echo " <a href='zoom.php?news=" . urlencode($newsobj->getTitlelink()) . "' title='Zoom' class='colorbox' style='outline: none;'><img src='img/magnify.png' alt='' style='border: 0' /></a><br />"; 334 echo '<small><em>' . gettext('Categories:'); 414 if ($currentpage != 1) { 415 echo "<li class=\"first\"><a href='tinyzenpage.php?" . $url . $cat . "&page=1'>« first</a></li>"; 416 } else { 419 if ($currentpage != 1) { 420 echo "<li class=\"prev\"><a href='tinyzenpage.php?" . $url . $cat . "&page=" . ($currentpage - 1) . "'>« prev</a></li>"; 421 } else {lib-utf8.php https://gitlab.com/r.collas/site_central | PHP | 864 lines
1<?php 2 23 * - utf8::strpos() 24 * - utf8::substr_count() 25 * - utf8::encode_mimeheader() 113 } else { 114 $list = array("pass", // from my PHP 5 mb_list_encodings list.... 115 "auto", 288 * Count the number of substring occurances 289 * Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count() 290 */ 290 */ 291 static function substr_count($haystack, $needle) { 292 return substr_count($haystack, $needle);class-wp-customize-date-time-control.php https://gitlab.com/VTTE/sitios-vtte | PHP | 282 lines
107 // Fallback to ISO date format if year, month, or day are missing from the date format. 108 if ( 1 !== substr_count( $date_format, '%1$s' ) || 1 !== substr_count( $date_format, '%2$s' ) || 1 !== substr_count( $date_format, '%3$s' ) ) { 109 $date_format = '%1$s-%2$s-%3$s'; 129 <?php ob_start(); ?> 130 <label for="{{ idPrefix }}date-time-month" class="screen-reader-text"><?php esc_html_e( 'Month' ); ?></label> 131 <select id="{{ idPrefix }}date-time-month" class="date-input month" data-component="month"> 149 150 <?php ob_start(); ?> 151 <label for="{{ idPrefix }}date-time-year" class="screen-reader-text"><?php esc_html_e( 'Year' ); ?></label> 152 <input id="{{ idPrefix }}date-time-year" type="number" size="4" autocomplete="off" class="date-input year" data-component="year" min="{{ data.minYear }}" max="{{ data.maxYear }}"> 153 <?php $year_field = trim( ob_get_clean() ); ?> 154 154 155 <?php printf( $date_format, $year_field, $month_field, $day_field ); ?> 156 </div>Functions.php https://gitlab.com/JrLucena/moodle | PHP | 762 lines
8 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 9 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 10} 46 * @package PHPExcel_Calculation 47 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 48 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 146 * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P' 147 * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O' 148 * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E' 163 /** 164 * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object) 165 * 170 * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P' 171 * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O' 172 * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'lib.php https://gitlab.com/JrLucena/moodle | PHP | 983 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 18 * @package core_grades 19 * @category phpunit 20 * @copyright nicolas@moodle.com 26global $CFG; 27require_once($CFG->libdir . '/adminlib.php'); 28require_once($CFG->libdir . '/gradelib.php'); 116 $this->scale[0] = $this->getDataGenerator()->create_scale($scale); 117 $this->scalemax[0] = substr_count($scale->scale, ','); 118 126 $this->scale[1] = $this->getDataGenerator()->create_scale($scale); 127 $this->scalemax[1] = substr_count($scale->scale, ','); 128 138 $this->scale[2] = $this->getDataGenerator()->create_scale($scale); 139 $this->scalemax[2] = substr_count($scale->scale, ','); 140smarty_internal_configfilelexer.php https://gitlab.com/TouchyPunchy/brainy | PHP | 647 lines
1<?php 2/** 49 { 50 $this->yyTraceFILE = fopen('php://output', 'w'); 51 $this->yyTracePrompt = '<br>'; 137 $this->counter += strlen($this->value); 138 $this->line += substr_count($this->value, "\n"); 139 // accept this token 146 $this->counter += strlen($this->value); 147 $this->line += substr_count($this->value, "\n"); 148 if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { 249 $this->counter += strlen($this->value); 250 $this->line += substr_count($this->value, "\n"); 251 // accept this token 258 $this->counter += strlen($this->value); 259 $this->line += substr_count($this->value, "\n"); 260 if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) {Lexer.php https://gitlab.com/TouchyPunchy/brainy | PHP | 1020 lines
1<?php 2require_once './LexerGenerator/Regex/Parser.php'; 2require_once './LexerGenerator/Regex/Parser.php'; 3class PHP_LexerGenerator_Regex_Lexer 4{ 4{ 5 const MATCHSTART = PHP_LexerGenerator_Regex_Parser::MATCHSTART; 6 const MATCHEND = PHP_LexerGenerator_Regex_Parser::MATCHEND; 6 const MATCHEND = PHP_LexerGenerator_Regex_Parser::MATCHEND; 7 const CONTROLCHAR = PHP_LexerGenerator_Regex_Parser::CONTROLCHAR; 8 const OPENCHARCLASS = PHP_LexerGenerator_Regex_Parser::OPENCHARCLASS; 8 const OPENCHARCLASS = PHP_LexerGenerator_Regex_Parser::OPENCHARCLASS; 9 const FULLSTOP = PHP_LexerGenerator_Regex_Parser::FULLSTOP; 10 const TEXT = PHP_LexerGenerator_Regex_Parser::TEXT; 10 const TEXT = PHP_LexerGenerator_Regex_Parser::TEXT; 11 const BACKREFERENCE = PHP_LexerGenerator_Regex_Parser::BACKREFERENCE; 12 const OPENASSERTION = PHP_LexerGenerator_Regex_Parser::OPENASSERTION;Ip.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 191 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ip.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 106 if (!$this->_options['allowipv4'] && !$this->_options['allowipv6']) { 107 require_once 'Zend/Validate/Exception.php'; 108 throw new Zend_Validate_Exception('Nothing to validate. Check your options'); 178 179 $colonCount = substr_count($value, ':'); 180 if ($colonCount < 8) {Ip.php https://gitlab.com/luisrepo/ClienteWS | PHP | 191 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ip.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 106 if (!$this->_options['allowipv4'] && !$this->_options['allowipv6']) { 107 require_once 'Zend/Validate/Exception.php'; 108 throw new Zend_Validate_Exception('Nothing to validate. Check your options'); 178 179 $colonCount = substr_count($value, ':'); 180 if ($colonCount < 8) {smarty_internal_compile_include.php https://gitlab.com/staging06/myproject | PHP | 265 lines
1<?php 2/** 133 // variable template name ? 134 if ($compiler->has_variable_string || !((substr_count($include_file, '"') == 2 || substr_count($include_file, "'") == 2)) 135 || substr_count($include_file, '(') != 0 || substr_count($include_file, '$_smarty_tpl->') != 0 143 if (isset($_attr['compile_id'])) { 144 if (!((substr_count($_attr['compile_id'], '"') == 2 || substr_count($_attr['compile_id'], "'") == 2)) 145 || substr_count($_attr['compile_id'], '(') != 0 || substr_count($_attr['compile_id'], '$_smarty_tpl->') != 0 198 // remove header code 199 $compiled_code = preg_replace("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", '', $compiled_code); 200 if ($tpl->has_nocache_code) { 234 $_hash = $compiler->smarty->merged_templates_func[$tpl_name][$uid]['nocache_hash']; 235 $_output = "<?php /* Call merged included template \"" . $tpl_name . "\" */\n"; 236 $_output .= "\$_tpl_stack[] = \$_smarty_tpl;\n"; 238 $compiler->suppressNocacheProcessing = false; 239 $_output .= substr($compiler->processNocacheCode('<?php ' .$nccode . "?>\n", true), 6, -3); 240 $compiler->suppressNocacheProcessing = true;AdminHelper.php https://gitlab.com/x33n/platform | PHP | 1217 lines
1<?php 2/** 69 70 $menulevel = substr_count($page_endpoint, '/'); 71 if ($menulevel == 1 && !isset($page['hide'])) { // only show top-level menu itemsui.lib.php https://gitlab.com/x33n/ampache | PHP | 728 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 39{ 40 if (substr_count($next_url,AmpConfig::get('web_path'))) { 41 $path = $next_url; 45 46 require AmpConfig::get('prefix') . '/templates/show_confirmation.inc.php'; 47} // show_confirmation 65 if (substr($referer, -1)=='/') { 66 $file = 'index.php'; 67 } else { 95 96 if (strlen($_SERVER['PHP_SELF'])) { 97 $source = $_SERVER['PHP_SELF']; 101 102 /* Sanatize the $_SERVER['PHP_SELF'] variable */ 103 $source = str_replace(AmpConfig::get('raw_web_path'), "", $source);smarty_internal_configfilelexer.php https://gitlab.com/staging06/myproject | PHP | 642 lines
1<?php 2/** 51 { 52 $this->yyTraceFILE = fopen('php://output', 'w'); 53 $this->yyTracePrompt = '<br>'; 133 $this->counter += strlen($this->value); 134 $this->line += substr_count($this->value, "\n"); 135 // accept this token 142 $this->counter += strlen($this->value); 143 $this->line += substr_count($this->value, "\n"); 144 if ($this->counter >= strlen($this->data)) { 250 $this->counter += strlen($this->value); 251 $this->line += substr_count($this->value, "\n"); 252 // accept this token 259 $this->counter += strlen($this->value); 260 $this->line += substr_count($this->value, "\n"); 261 if ($this->counter >= strlen($this->data)) {smarty_internal_templatelexer.php https://gitlab.com/adamlwalker/generatedata | PHP | 1184 lines
1<?php 2/** 64 'TEXT' => 'text', 65 'FAKEPHPSTARTTAG' => 'Fake PHP start tag', 66 'PHPSTARTTAG' => 'PHP start tag', 66 'PHPSTARTTAG' => 'PHP start tag', 67 'PHPENDTAG' => 'PHP end tag', 68 'LITERALSTART' => 'Literal start', 147 } 148 $yy_global_pattern = "/\G(".$this->ldel."[$]smarty\\.block\\.child".$this->rdel.")|\G(\\{\\})|\G(".$this->ldel."\\*([\S\s]*?)\\*".$this->rdel.")|\G(".$this->ldel."strip".$this->rdel.")|\G(".$this->ldel."\\s{1,}strip\\s{1,}".$this->rdel.")|\G(".$this->ldel."\/strip".$this->rdel.")|\G(".$this->ldel."\\s{1,}\/strip\\s{1,}".$this->rdel.")|\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s*setfilter\\s+)|\G(".$this->ldel."\\s{1,})|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(<%)|\G(%>)|\G([\S\s])/iS"; 149 171 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 172 $this->line += substr_count($this->value, "\n"); 173 // accept this token 180 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 181 $this->line += substr_count($this->value, "\n"); 182 if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) {smarty_internal_configfilelexer.php https://gitlab.com/adamlwalker/generatedata | PHP | 622 lines
1<?php 2/** 112 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 113 $this->line += substr_count($this->value, "\n"); 114 // accept this token 121 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 122 $this->line += substr_count($this->value, "\n"); 123 if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { 224 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 225 $this->line += substr_count($this->value, "\n"); 226 // accept this token 233 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 234 $this->line += substr_count($this->value, "\n"); 235 if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { 345 $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); 346 $this->line += substr_count($this->value, "\n"); 347 // accept this tokenmdl.deliveryarea.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 217 lines
1<?php 2require_once('shopObject.php'); 29 $aTemp[$key]['p_region_id']=intval($val['p_region_id']); 30 $aTemp[$key]['step'] = intval(substr_count($val['region_path'],','))-1; 31 $aTemp[$key]['child_count'] = $this->getChildCount($val['region_id']);smarty_internal_configfilelexer.php https://gitlab.com/ilya.webcity/anna | PHP | 526 lines
1<?php 2/** 110 $this->counter += strlen($this->value); 111 $this->line += substr_count($this->value, "\n"); 112 // accept this token 119 $this->counter += strlen($this->value); 120 $this->line += substr_count($this->value, "\n"); 121 if ($this->counter >= strlen($this->data)) { 217 $this->counter += strlen($this->value); 218 $this->line += substr_count($this->value, "\n"); 219 // accept this token 226 $this->counter += strlen($this->value); 227 $this->line += substr_count($this->value, "\n"); 228 if ($this->counter >= strlen($this->data)) { 338 $this->counter += strlen($this->value); 339 $this->line += substr_count($this->value, "\n"); 340 // accept this tokenadmin_functions.inc.php https://gitlab.com/santiagosony/Mods-for-HESK | PHP | 709 lines
1<?php 2/******************************************************************************* 27 * a license please visit the page below: 28 * https://www.hesk.com/buy.php 29 *******************************************************************************/ 94 /* How many parts do we have? */ 95 $parts = substr_count($in, ':'); 96class-translationfile.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 1075 lines
1<?php 2 24 25fixed arround PHP preg_match bug 26references and possible explainations: 26references and possible explainations: 27 Bug #37793 child pid xxx exit signal Segmentation fault (11) => http://bugs.php.net/bug.php?id=37793 28 Bugzilla Bug 841 => http://bugs.exim.org/show_bug.cgi?id=841 28 Bugzilla Bug 841 => http://bugs.exim.org/show_bug.cgi?id=841 29 http://mobile-website.mobi/php-utf8-vs-iso-8859-1-59 30 37 function _str_split($string, $chunkSize) { return str_split($string, $chunkSize); } 38 function _substr_count($haystack, $needle) { return substr_count($haystack, $needle); } 39 function _seems_utf8($string) { return seems_utf8($string); } 55 } 56 function _substr_count($haystack, $needle) { return mb_substr_count($haystack, $needle, 'ascii'); } 57 function _seems_utf8($string) { return mb_check_encoding($string, 'UTF-8'); }Inputs.php https://gitlab.com/gregtyka/opensis | PHP | 264 lines
1<?php 2 63 else 64 return "<DIV id='div$name'><div onclick='javascript:addHTML(\"<TEXTAREA id=textarea$name name=$name $options>".ereg_replace("[\n\r]",'\u000D\u000A',str_replace("\r\n",'\u000D\u000A',str_replace("'","'",$value)))."</TEXTAREA>".($title!=''?"<BR><small>".str_replace("'",''',(strpos(strtolower($title),'<font ')===false?'<FONT color='.Preferences('TITLES').'>':'').$title.(strpos(strtolower($title),'<font ')===false?'</FONT>':''))."</small>":'')."\",\"div$name\",true); document.getElementById(\"textarea$name\").value=unescape(document.getElementById(\"textarea$name\").value);'><TABLE class=LO_field ><TR><TD>".((substr_count($value,"\r\n")>$rows)?'<DIV style="overflow:auto; height:'.(15*$rows).'px; width:'.($cols*10).'; padding-right: 16px;">'.nl2br($value).'</DIV>':'<DIV style="overflow:auto; width:300; padding-right: 16px;">'.nl2br($value).'</DIV>').'</TD></TR></TABLE>'.($title!=''?'<BR><small>'.str_replace("'",''',(strpos(strtolower($title),'<font ')===false?'<FONT color='.Preferences('TITLES').'>':'').$title.(strpos(strtolower($title),'<font ')===false?'</FONT>':'')).'</small>':'').'</div></DIV>'; 65 }Emulative.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 205 lines
9 */ 10class Emulative extends \PhpParser\Lexer 11{ 44 45 if (version_compare(PHP_VERSION, self::PHP_7_0, '>=')) { 46 return; 51 52 if (version_compare(PHP_VERSION, self::PHP_5_6, '>=')) { 53 return; 82 protected function preprocessCode($code) { 83 if (version_compare(PHP_VERSION, self::PHP_7_0, '>=')) { 84 return $code; 93 94 if (version_compare(PHP_VERSION, self::PHP_5_6, '>=')) { 95 return $code;ProxyClassGeneratorTest.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 249 lines
1<?php 2/* 25use ReflectionMethod; 26use PHPUnit_Framework_TestCase; 27 34 */ 35class ProxyClassGeneratorTest extends PHPUnit_Framework_TestCase 36{ 115 116 $classCode = file_get_contents(__DIR__ . '/generated/__CG__DoctrineTestsCommonProxySleepClass.php'); 117 $this->assertEquals(1, substr_count($classCode, 'function __sleep')); 117 $this->assertEquals(1, substr_count($classCode, 'function __sleep')); 118 $this->assertEquals(1, substr_count($classCode, 'parent::__sleep()')); 119 } 134 135 $classCode = file_get_contents(__DIR__ . '/generated/__CG__DoctrineTestsCommonProxyStaticPropertyClass.php'); 136 $this->assertEquals(1, substr_count($classCode, 'function __sleep'));ResourceIterator.php https://gitlab.com/endomorphosis/falkenstein | PHP | 217 lines
1<?php 2/** 2/** 3 * PHP OpenCloud library. 4 * 163 164 if (substr_count($className, '\\')) { 165 $array = explode('\\', $className);database.php git://pkgs.fedoraproject.org/cacti | PHP | 359 lines
1<?php 2/* 18 | This code is designed, written, and maintained by the Cacti Group. See | 19 | about.php and/or the AUTHORS file for specific developer information. | 20 +-------------------------------------------------------------------------+ 60 61 die("FATAL: Cannot connect to MySQL server on '$host'. Please make sure you have specified a valid MySQL database name in 'include/config.php'\n"); 62 104 }else if (($log) || (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG)) { 105 if ((substr_count($db_conn->ErrorMsg(), "Deadlock")) || ($db_conn->ErrorNo() == 1213) || ($db_conn->ErrorNo() == 1205)) { 106 $errors++;smarty_internal_compile_include.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 361 lines
1<?php 2/** 169 if (isset($_attr['compile_id'])) { 170 if (!((substr_count($_attr['compile_id'], '"') == 2 || substr_count($_attr['compile_id'], "'") == 2 || 171 is_numeric($_attr['compile_id']))) || substr_count($_attr['compile_id'], '(') != 0 || 171 is_numeric($_attr['compile_id']))) || substr_count($_attr['compile_id'], '(') != 0 || 172 substr_count($_attr['compile_id'], '$_smarty_tpl->') != 0 173 ) { 254 if ($has_compiled_template && !$call_nocache) { 255 $_output = "<?php\n"; 256 if ($update_compile_id) { 260 //$compiler->suppressNocacheProcessing = false; 261 $_output .= substr($compiler->processNocacheCode('<?php ' . $_vars_nc . "?>\n", true), 6, - 3); 262 //$compiler->suppressNocacheProcessing = true; 281 } 282 $_output = "<?php "; 283 if ($update_compile_id) {CheckRouteBehavior.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 211 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 10// +---------------------------------------------------------------------- 11// $Id: CheckRouteBehavior.class.php 2929 2012-05-02 06:45:47Z liu21st@gmail.com $ 12 43 }else{ // ???? 44 $len1= substr_count($regx,'/'); 45 $len2 = substr_count($rule,'/'); 123 // 'news/:month/:day/:id'=>array('News/read?cate=1','status=1'), 124 // 'new/:id'=>array('/new.php?id=:1',301), ??? 125 private function parseRule($rule,$route,$regx) {Lexer.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 286 lines
1<?php 2 2 3namespace PhpParser; 4 4 5use PhpParser\Node\Scalar\LNumber; 6use PhpParser\Parser\Tokens; 30 public function __construct(array $options = array()) { 31 // map from internal tokens to PhpParser tokens 32 $this->tokenMap = $this->createTokenMap(); 105 106 // PHP cuts error message after null byte, so need special case 107 if (preg_match('~^Unexpected character in input: \'$~', $error['message'])) { 117 * 118 * * 'comments' => Array of PhpParser\Comment or PhpParser\Comment\Doc instances, 119 * representing all comments that occurred between the previouspo.php https://gitlab.com/VTTE/sitios-vtte | PHP | 510 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $ 6 * @package pomo 9 10require_once __DIR__ . '/translations.php'; 11 121 if ( false !== strpos( $string, $newline ) && 122 ( substr_count( $string, $newline ) > 1 || substr( $string, -strlen( $newline ) ) !== $newline ) ) { 123 $po = "$quote$quote$newline$po";