100+ results results for 'php substr_count repo:MilkZoft/zan' (1497 ms)
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) {ClassCommentSniff.php https://github.com/amumu/modev.git | PHP | 233 lines
47 * @version Release: 1.2.0a1 48 * @link http://pear.php.net/package/PHP_CodeSniffer 49 */ 144 try { 145 $this->commentParser = new PHP_CodeSniffer_CommentParser_ClassCommentParser($comment, $phpcsFile); 146 $this->commentParser->parse(); 169 170 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 171 175 $between = $comment->getWhiteSpaceBetween(); 176 $newlineBetween = substr_count($between, $phpcsFile->eolChar); 177 if ($newlineBetween !== 2) { 191 if ($long !== '') { 192 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 193 }Propel2Collector.php https://gitlab.com/heruujoko/ilearnman | PHP | 307 lines
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(),ClassCommentSniff.php https://github.com/limb-php-framework/limb-tools.git | PHP | 233 lines
47 * @version Release: 1.2.2 48 * @link http://pear.php.net/package/PHP_CodeSniffer 49 */ 144 try { 145 $this->commentParser = new PHP_CodeSniffer_CommentParser_ClassCommentParser($comment, $phpcsFile); 146 $this->commentParser->parse(); 169 170 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 171 175 $between = $comment->getWhiteSpaceBetween(); 176 $newlineBetween = substr_count($between, $phpcsFile->eolChar); 177 if ($newlineBetween !== 2) { 191 if ($long !== '') { 192 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 193 }ClassCommentSniff.php https://github.com/wrobel/horde-glue.git | PHP | 233 lines
47 * @version Release: 1.2.0 48 * @link http://pear.php.net/package/PHP_CodeSniffer 49 */ 144 try { 145 $this->commentParser = new PHP_CodeSniffer_CommentParser_ClassCommentParser($comment, $phpcsFile); 146 $this->commentParser->parse(); 169 170 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 171 175 $between = $comment->getWhiteSpaceBetween(); 176 $newlineBetween = substr_count($between, $phpcsFile->eolChar); 177 if ($newlineBetween !== 2) { 191 if ($long !== '') { 192 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 193 }Export.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | 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) 2014 Magento Inc. (http://www.magentocommerce.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) {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';SYLK.php https://gitlab.com/partha1227/NECI | 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/yousafsyed/easternglamor | 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);XMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
1<?php 2 3// Handle eval errors that cause the script to finish 4$wpaeErrorHandler = new WpaePhpInterpreterErrorHandler(); 5register_shutdown_function(array($wpaeErrorHandler, 'handle')); 216 if (strpos($line, $str) !== false) { 217 return substr_count($line, "\t"); 218 } 269 270 $numberOfSingleQuotes = substr_count($filtered, "'"); 271 $numberOfDoubleQuotes = substr_count($filtered, "\"");Lexer.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 379 lines
30 public function __construct(array $options = array()) { 31 // map from internal tokens to PhpParser tokens 32 $this->tokenMap = $this->createTokenMap(); 102 if ($chr === "\0") { 103 // PHP cuts error message after null byte, so need special case 104 $errorMsg = 'Unexpected null byte'; 171 'startLine' => $line, 172 'endLine' => $line + substr_count($comment, "\n"), 173 'startFilePos' => $filePos, 176 177 // Emulate the PHP behavior 178 $isDocComment = isset($comment[3]) && $comment[3] === '*'; 205 * 206 * * 'comments' => Array of PhpParser\Comment or PhpParser\Comment\Doc instances, 207 * representing all comments that occurred between the previouspo.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 aboveParser.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 520 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. 40 * @link http://simplepie.org/ SimplePie 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 */ 200 $this->position += 5 + $len; 201 if (substr_count($this->http_version, '.') <= 1) 202 {po.php https://bitbucket.org/moodsdesign-ondemand/reglot.git | PHP | 384 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 686 2012-04-16 16:33:30Z 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 abovestyles.php https://github.com/andyjdavis/moodle.git | PHP | 312 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 29define('ABORT_AFTER_CONFIG', true); 30require('../config.php'); 31require_once($CFG->dirroot.'/lib/csslib.php'); 34 $slashargument = ltrim($slashargument, '/'); 35 if (substr_count($slashargument, '/') < 2) { 36 css_send_css_not_found(); 73 74if (file_exists("$CFG->dirroot/theme/$themename/config.php")) { 75 // The theme exists in standard location - ok. 75 // The theme exists in standard location - ok. 76} else if (!empty($CFG->themedir) and file_exists("$CFG->themedir/$themename/config.php")) { 77 // Alternative theme location contains this theme - ok. 101 102require("$CFG->dirroot/lib/setup.php"); 103php.js https://gitlab.com/Blueprint-Marketing/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})();image.php https://bitbucket.org/ngmares/moodle.git | PHP | 243 lines
1<?php 2 30 31// we need just the values from config.php and minlib.php 32define('ABORT_AFTER_CONFIG', true); 32define('ABORT_AFTER_CONFIG', true); 33require('../config.php'); // this stops immediately at the beginning of lib/setup.php 34 36 $slashargument = ltrim($slashargument, '/'); 37 if (substr_count($slashargument, '/') < 3) { 38 image_not_found(); 61 62if (file_exists("$CFG->dirroot/theme/$themename/config.php")) { 63 // exists 63 // exists 64} else if (!empty($CFG->themedir) and file_exists("$CFG->themedir/$themename/config.php")) { 65 // existsLexer.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]);File.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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 */RouteBuilderTest.php https://gitlab.com/reasonat/test8 | PHP | 325 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 */po.php https://gitlab.com/morganestes/wordpress-develop | PHP | 508 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $ 6 * @package pomo 9 10require_once dirname( __FILE__ ) . '/translations.php'; 11 121 if ( false !== strpos( $string, $newline ) && 122 ( substr_count( $string, $newline ) > 1 || ! ( $newline === substr( $string, -strlen( $newline ) ) ) ) ) { 123 $po = "$quote$quote$newline$po";ProfilePicture.php https://gitlab.com/Afsana/Afsana_148423_B35_Session_30 | PHP | 308 lines
1<?php 2 62 63 Utility::redirect('create.php'); // redirect korte hobe create.php te tai utility.php use korechi // 64 72 $fetchMode = strtoupper($fetchMode); 73 if(substr_count($fetchMode,'OBJ') > 0) 74 $STH->setFetchMode(PDO::FETCH_OBJ); 89 $fetchMode = strtoupper($fetchMode); 90 if(substr_count($fetchMode,'OBJ') > 0) 91 $STH->setFetchMode(PDO::FETCH_OBJ); 125 126 Utility::redirect('index.php'); 127 138 139 Utility::redirect('index.php'); 140File.php https://bitbucket.org/acidel/buykoala.git | PHP | 412 lines
29 */ 30#require_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 */bans.php https://gitlab.com/potion/librechan | PHP | 366 lines
1<?php 2 2 3require 'inc/lib/IP/Lifo/IP/IP.php'; 4require 'inc/lib/IP/Lifo/IP/BC.php'; 4require 'inc/lib/IP/Lifo/IP/BC.php'; 5require 'inc/lib/IP/Lifo/IP/CIDR.php'; 6 83 84 if (preg_match('@^(\d{1,3}\.){1,3}([\d*]{1,3})?$@', $mask) && substr_count($mask, '*') == 1) { 85 // IPv4 wildcard mask 89 if ($part == '*') { 90 $ipstart = inet_pton($ipv4 . '0' . str_repeat('.0', 3 - substr_count($ipv4, '.'))); 91 $ipend = inet_pton($ipv4 . '255' . str_repeat('.255', 3 - substr_count($ipv4, '.'))); 93 } elseif(($wc = strpos($part, '*')) !== false) { 94 $ipstart = inet_pton($ipv4 . substr($part, 0, $wc) . '0' . str_repeat('.0', 3 - substr_count($ipv4, '.'))); 95 $ipend = inet_pton($ipv4 . substr($part, 0, $wc) . '9' . str_repeat('.255', 3 - substr_count($ipv4, '.')));DocBlockReflection.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;view.php https://github.com/sarriaroman/PuntoUBP.git | PHP | 153 lines
1<?php 2 26 27<?php 28 126 $urladdition = 'offset='.$newoffset; 127 if (substr_count($baseurl,'?')) $nexturl=$baseurl . '&' . $urladdition; else $nexturl=$baseurl . '?' . $urladdition; 128 135 $urladdition = 'offset='.$newoffset; 136 if (substr_count($baseurl,'?')) $prevurl=$baseurl . '&' . $urladdition; else $prevurl=$baseurl . '?' . $urladdition; 137Birthday.php https://gitlab.com/Soikot/AtomicProject_AmirulIslam_152207 | PHP | 400 lines
1<?php 2namespace App\BITM\SEIP152207\Birthday; 24 $sth->execute(); 25 if(substr_count($fetchMode,'OBJ') > 0) 26 $sth->setFetchMode(PDO::FETCH_OBJ); 71 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 72 Utility::redirect('index.php'); 73 87 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 88 Utility::redirect('index.php'); 89 120 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 121 Utility::redirect('create.php'); 122 144 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 145 Utility::redirect('index.php'); 146Birthday.php https://gitlab.com/Mishu_ctg69/Princy_143467_B37_Atomic_project | PHP | 399 lines
1<?php 2namespace App\BITM\SEIP143467\Birthday; 24 $sth->execute(); 25 if(substr_count($fetchMode,'OBJ') > 0) 26 $sth->setFetchMode(PDO::FETCH_OBJ); 71 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 72 Utility::redirect('index.php'); 73 87 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 88 Utility::redirect('index.php'); 89 120 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 121 Utility::redirect('index.php'); 122 143 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 144 Utility::redirect('index.php'); 145Gender.php https://gitlab.com/Princy008/Princy_143467_B_37_Atomic_project | PHP | 405 lines
1<?php 2namespace App\BITM\SEIP143467\Gender; 23 $sth->execute(); 24 if(substr_count($fetchMode,'OBJ') > 0) 25 $sth->setFetchMode(PDO::FETCH_OBJ); 79 80 Utility::redirect('create.php'); 81 108 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 109 Utility::redirect('index.php'); 110 124 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 125 Utility::redirect('index.php'); 126 146 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 147 Utility::redirect('index.php'); 148MethodScanner.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 537 lines
1<?php 2/** 389 $tokenContent = $token; 390 $tokenLine = $tokenLine + substr_count($lastTokenArray[1], 391 "\n"); // adjust token line by last known newline countSYLK.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 {FormSelectTest.php https://github.com/Exercise/zf2.git | PHP | 302 lines
1<?php 2/** 38 */ 39class FormSelectTest extends \PHPUnit_Framework_TestCase 40{ 80 $this->assertRegExp('#<option[^>]+value="baz".*?>Bazbat</option>#', $html); 81 $this->assertEquals(2, substr_count($html, '<option')); 82 }ControllerResolver.php https://github.com/brainfg/symfony.git | PHP | 216 lines
1<?php 2 54 * 55 * @return mixed A PHP callable 56 */ 59 if (false === strpos($controller, '::')) { 60 $count = substr_count($controller, ':'); 61 if (2 == $count) {File.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 432 lines
29 */ 30require_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 */bootstrap.php https://gitlab.com/remyvianne/krowkaramel | PHP | 244 lines
1<?php 2if (!defined('ABSPATH')) exit; 183} 184if (!\function_exists('mb_substr_count')) { 185 function mb_substr_count($haystack, $needle, $enc = null) 186 { 187 return p\Mbstring::mb_substr_count($haystack, $needle, $enc); 188 }user_group.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 496 lines
1<?php if (substr_count($_SERVER['PHP_SELF'],'/user_group.php')>0) die ("You can't access this file directly..."); ?> 2<?php 28 { 29 if (confirm('<?php echo $strDelete; ?> ?!!')) 30 { 30 { 31 if (confirm("<?php echo $strConfirm.' '.$strAgain; ?> !!!")) 32 { 66 <td height="40" colspan="3" align="center" valign="middle"> 67 <?php 68 //Get list of available user group 110 <form name="viewgroup" style="margin: 0;" method="post" action=""> 111 <p class="buttontext"><?php echo $strSelect.' '.$strGroup; ?> 112 <select name="group" style="margin: 0 0 0 0"> 112 <select name="group" style="margin: 0 0 0 0"> 113 <?php 114 $j=0;function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
1<?php //0046a 2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@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;}}}if(function_exists('dl')){@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 website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199); 3?> 42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d 43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m 44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9SxBaseChunk.php https://gitlab.com/koutyan777/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);Profile_Picture.php https://gitlab.com/rahad777/atomic_project_Rahad_143368_B36 | PHP | 273 lines
1<?php 2namespace App\Profile_Picture; 46 Message::message("Failed! DATA HAS not BEEN INSERTED SUCCESSFULLY"); 47 Utility::redirect('create.php'); 48 } 54 $fetchMode = strtoupper($fetchMode); 55 if(substr_count($fetchMode, "OBJ")>0) 56 $STH->setFetchMode(PDO::FETCH_OBJ); 68 $fetchMode = strtoupper($fetchMode); 69 if(substr_count($fetchMode, "OBJ")>0) 70 $STH->setFetchMode(PDO::FETCH_OBJ); 91 92 Utility::redirect('create.php'); 93 102 103 Utility::redirect('create.php'); 104Lexer.php https://github.com/chotchki/symfony-sandbox.git | PHP | 317 lines
1<?php 2 194 $result[] = new Twig_Token(Twig_Token::TEXT_TYPE, $text, $lineno); 195 $lineno += substr_count($text, "\n"); 196 } 308 { 309 $this->lineno += substr_count($text, "\n"); 310 }ReflectionFile.php https://github.com/Exercise/zf2.git | PHP | 486 lines
1<?php 2/** 315 * 316 * Uses PHP's tokenizer to perform file reflection. 317 * 345 * Token ID's are explained here: 346 * http://www.php.net/manual/en/tokens.php. 347 */ 477 $this->_docComment = $value; 478 $this->_startLine = $lineNum + substr_count($value, "\n") + 1; 479 return;LinkPreview.php https://gitlab.com/alidzapp/Link-Preview | PHP | 238 lines
1<?php 2/** 3 * Copyright (c) 2015 Leonardo Cardoso (http://leocardz.com) 4 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 5 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 9 10/** Important php5-curl must be installed and enabled */ 11 11 12include_once "Media.php"; 13include_once "Regex.php"; 13include_once "Regex.php"; 14include_once "SetUp.php"; 15include_once "Url.php"; 15include_once "Url.php"; 16include_once "Content.php"; 17include_once "Json.php";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"');baseufcomponent.php https://gitlab.com/neuser/bitrix-core | PHP | 541 lines
1<?php 2 434 435 if($this->userField['MULTIPLE'] === 'Y' && !mb_substr_count($fieldName, '[]')) 436 {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.0php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 132 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; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();class-wp-customize-date-time-control.php https://gitlab.com/campus-academy/krowkaramel | PHP | 289 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>tokenizer.php https://bitbucket.org/crevillo/enetcall.git | PHP | 293 lines
1<?php 2/** 238 // lead to a false position value. 239 if ( ( $newLines = substr_count( $match, "\n" ) ) > 0 ) 240 {IPv6.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 275 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. 40 * @link http://simplepie.org/ SimplePie 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 */ 49 * @subpackage HTTP 50 * @copyright 2003-2005 The PHP Group 51 * @license http://www.opensource.org/licenses/bsd-license.php 51 * @license http://www.opensource.org/licenses/bsd-license.php 52 * @link http://pear.php.net/package/Net_IPv6 53 * @author Alexander Merz <alexander.merz@web.de> 72 * @author Josh Peck <jmp at joshpeck dot org> 73 * @copyright 2003-2005 The PHP Group 74 * @license http://www.opensource.org/licenses/bsd-license.phpedit.php https://github.com/laanlabs/snackfeed.com.git | PHP | 192 lines
113 <? for ( $i = 0; $i <= 6; $i ++) { ?> 114 <input type="checkbox" name="_show_process_days[]" <? if (substr_count($_show_process_days, $i) > 0) echo 'CHECKED' ?> value="<?= $i ?>" ><?= $days[$i] ?> 115 <? } ?> 171 <select name="_status" > 172 <option value="1" <?php if ($_status==1) {echo 'SELECTED';} ?> >Active</option> 173 <option value="2" <?php if ($_status==2) {echo 'SELECTED';} ?>>Pending</option> 173 <option value="2" <?php if ($_status==2) {echo 'SELECTED';} ?>>Pending</option> 174 <option value="0" <?php if ($_status==0) {echo 'SELECTED';} ?>>Inactive</option> 175 </select>MockMethod.php https://gitlab.com/madwanz64/laravel | PHP | 434 lines
1<?php declare(strict_types=1); 2/* 2/* 3 * This file is part of PHPUnit. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 9 */ 10namespace PHPUnit\Framework\MockObject; 11 22use function substr; 23use function substr_count; 24use function trim; 37/** 38 * @internal This class is not covered by the backward compatibility promise for PHPUnit 39 */directw.php https://gitlab.com/B.D.B/Trabalho_PHP_ADSZoo_DJ | PHP | 412 lines
1<?php 2 93 $nb_carac = mb_strlen( $tmp , $this->mpdf->mb_enc ) ; 94 $nb_spaces = mb_substr_count( $tmp ,' ', $this->mpdf->mb_enc ) ; 95 $inclCursive=false; 175 $nb_carac = strlen( $tmp ) ; 176 $nb_spaces = substr_count( $tmp ,' ' ) ; 177 list($charspacing,$ws) = $this->mpdf->GetJspacing($nb_carac,$nb_spaces,((($w-2) - $len_ligne) * _MPDFK),$false);Docblock.php https://bitbucket.org/kdms/sh-magento.git | PHP | 294 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Docblock.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 24 */ 25#require_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"');Message.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 197 lines
1<?php 2 124 // If these aren't the same, then one line didn't match and there's an invalid header. 125 if ($count !== \substr_count($rawHeaders, "\n")) { 126 // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4file.php https://gitlab.com/ricardosanchez/prueba | PHP | 428 lines
1<?php 2/** 124 125 // Search for suffixed versions. Example: tags.j31.php 126 if (!empty($suffixes)) 131 { 132 $rawPath = str_replace('.', '/', $this->layoutId) . '.' . $suffix . '.php'; 133 $this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath); 144 // Standard version 145 $rawPath = str_replace('.', '/', $this->layoutId) . '.php'; 146 $this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath); 246 // Valid option format 247 if (substr_count($component, 'com_')) 248 {ParserState.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 310 lines
1<?php 2namespace Sabberworm\CSS\Parsing; 150 if (is_string($mValue)) { 151 $iLineCount = substr_count($mValue, "\n"); 152 $iLength = $this->strlen($mValue); 163 $sResult = $this->substr($this->iCurrentPosition, $mValue); 164 $iLineCount = substr_count($sResult, "\n"); 165 $this->iLineNo += $iLineCount;CustomLocaleHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 221 lines
1<?php 2 3/** 4 * @file CustomLocaleHandler.inc.php 5 * 17 18require_once('CustomLocalePlugin.inc.php'); 19require_once('CustomLocaleAction.inc.php'); 171 if (!FileManager::fileExists($customFilePath)) { 172 $numParentDirs = substr_count($customFilePath, DIRECTORY_SEPARATOR); 173 $parentDirs = '';Hobbies.php https://gitlab.com/sumonaliza12/ATOMIC_PROJECT_SEIP143203_SUMONA_SEIP143203 | PHP | 391 lines
1<?php 2namespace App\BITM\SEIP143203\Hobbies; 24 $sth->execute(); 25 if(substr_count($fetchMode,'OBJ') > 0) 26 $sth->setFetchMode(PDO::FETCH_OBJ); 77 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 78 Utility::redirect('index.php'); 79 93 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 94 Utility::redirect('index.php'); 95 127 128 Utility::redirect('create.php'); 129 152 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 153 Utility::redirect('index.php'); 154ContainerTest.php https://github.com/tanduy/zf.git | PHP | 455 lines
1<?php 2/** 28require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/TestHelper.php'; 29require_once "PHPUnit/Framework/TestCase.php"; 30require_once "PHPUnit/Framework/TestSuite.php"; 32/** Zend_View_Helper_Placeholder_Container */ 33require_once 'Zend/View/Helper/Placeholder/Container.php'; 34 45 */ 46class Zend_View_Helper_Placeholder_ContainerTest extends PHPUnit_Framework_TestCase 47{ 59 { 60 require_once "PHPUnit/TextUI/TestRunner.php"; 61 401 $value = $this->container->toString(); 402 $expectedValue = ' <ul><li>foo</li>' . PHP_EOL . ' <li>bar</li>' . PHP_EOL . ' <li>baz</li></ul>'; 403 $this->assertEquals($expectedValue, $value);BookTitle.php https://gitlab.com/naznin/NazninAkter_151485_B35_Session30 | PHP | 287 lines
1<?php 2namespace App\BookTitle; 49 50 Utility::redirect('create.php'); 51 61 $fetchMode = strtoupper($fetchMode); 62 if(substr_count($fetchMode,'OBJ') > 0) 63 $STH->setFetchMode(PDO::FETCH_OBJ); 83 $fetchMode = strtoupper($fetchMode); 84 if(substr_count($fetchMode,'OBJ') > 0) 85 $STH->setFetchMode(PDO::FETCH_OBJ); 103 104 Utility::redirect('index.php'); 105 116 117 Utility::redirect('index.php'); 118Docblock.php https://github.com/gryzz/crystal_magento.git | PHP | 294 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Docblock.php 18951 2009-11-12 16:26:19Z alexander $ 20 */ 24 */ 25#require_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"');BookTitle.php https://gitlab.com/Princy008/Princy_143467_B37_Atomic_project | PHP | 395 lines
1<?php 2namespace App\BITM\SEIP143467\BookTitle; 24 $sth->execute(); 25 if(substr_count($fetchMode,'OBJ') > 0) 26 $sth->setFetchMode(PDO::FETCH_OBJ); 74 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 75 Utility::redirect('index.php'); 76 97 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 98 Utility::redirect('index.php'); 99 113 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 114 Utility::redirect('index.php'); 115 136 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 137 Utility::redirect('index.php'); 138Compiler.php https://gitlab.com/ShizuoLamperouge/Dashboard | 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!Emulative.php https://gitlab.com/madwanz64/laravel | PHP | 248 lines
11use PhpParser\Lexer\TokenEmulator\ExplicitOctalEmulator; 12use PhpParser\Lexer\TokenEmulator\FlexibleDocStringEmulator; 13use PhpParser\Lexer\TokenEmulator\FnTokenEmulator; 43 { 44 $this->targetPhpVersion = $options['phpVersion'] ?? Emulative::PHP_8_1; 45 unset($options['phpVersion']); 64 foreach ($emulators as $emulator) { 65 $emulatorPhpVersion = $emulator->getPhpVersion(); 66 if ($this->isForwardEmulationNeeded($emulatorPhpVersion)) { 109 return version_compare(\PHP_VERSION, $emulatorPhpVersion, '<') 110 && version_compare($this->targetPhpVersion, $emulatorPhpVersion, '>='); 111 } 114 return version_compare(\PHP_VERSION, $emulatorPhpVersion, '>=') 115 && version_compare($this->targetPhpVersion, $emulatorPhpVersion, '<'); 116 }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 whitespacesmarty_internal_compile_section.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 87 lines
1<?php //0046a 2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@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;}}}if(function_exists('dl')){@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 website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199); 3?> 15PAh0J4pMB+k0mZj0ccTOrLuFTnzIDTgq4wxqoNYlBxEkBAbsHitMfUtY2IXjktgqR/bNeWQgeBCt 16ZakXT1sgJLsH2ovU4B156bCLwuPhPKJpkVsofOZj6tXYoRdB5c4liGtRaXs32femACRSN5i/r1W9 17aYSLiqMQNvrvZqWqIi+6kGZ82FIwpZAKVWiKZHOrgqYPFPMaYOpTb6dcx8enQXXSiYM/LlA9UuAeclass.dbquery.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 140 lines
1<?php //0046a 2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@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;}}}if(function_exists('dl')){@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 website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199); 3?> 16+sazcbalLRFTdLSCoS2ytfN4XPpJ4Bc6QrthyeE8TM4wm+JOQeN6KlmUBttUri3+BSAM324hrrd/ 17KGOOYBhHFNU2DgU2Z/rmlJvkw72GMI/F94Yh/A39Mvdddsz9/bi69gPhPhESZqPUUCqVu9db5UDi 180h45KP8dfjbWYWTfPJxTY9kEJv3fYdG+Vh+STekWyAMRR2wwL2akPUOZHIE5zFBMfdoK9Le1TmHy 125z/UTuSsvLf4QJgiAUQ1AJx1U3buUe5nJ9M4EHBoTKqvjCyp+SDqi+XLXYTwOduhsA52eC+19XFXR 126J3VZEnh8iVqJkv0FjR8EcIbYWZ4LKd1jD4ausggz8veotP9m+4LxdJOPHp6NtRFQgzJIJyqwApQ7 127Ps49LtJf/BQB7/dEZclNk8ZjOalBjMHNADau13dzGDss2cS5ZIgEt75PnwdGouJrAUy++BYqBfNQsearch.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 307 lines
1<?php if (substr_count($_SERVER['PHP_SELF'],'/search.php')>0) die ("You can't access this file directly..."); ?> 2<div class="bo"> 10 <table width="100%" border="0" cellpadding="0" cellspacing="0"> 11 <?php 12 if($_REQUEST['choice']=='news') 133 <tr><td colspan="3" height="20" align="right"> 134 <?php include ($module_dir.'navigator.php'); ?></td></tr> 135 <tr> 139 <tr> 140 <?php 141 //show_content(); 197 <!-- <tr><td colspan="<?php echo ($itemonrow+($itemonrow-1)); ?>" height="10"></td></tr> --> 198 <?php 199 } 206 </tr> 207 <tr><td align="left" colspan="<?php echo ($itemonrow+($itemonrow-1)); ?>"> 208 <p class="title4" style="font-weight: bold; text-align: right;">HTTP.php https://github.com/benbruscella/vpcounselling.com.git | PHP | 403 lines
1<?php 2/** 26 27 $urlBase = substr($_SERVER['PHP_SELF'], 0, -(strlen($_SERVER['SCRIPT_FILENAME']) - $commonLength)); 28 $url = $urlBase . substr($filename, $commonLength); 32 // Count the number of extra folders the script is in. 33 // $prefix = str_repeat("../", substr_count(substr($_SERVER[SCRIPT_FILENAME],$commonBaseLength))); 34 } 44 /* 45 * Rewrite all the URLs in the given content, evaluating the given string as PHP code 46 *Docblock.php https://github.com/skoop/Gesichtbuch.git | PHP | 294 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Docblock.php 6352 2010-08-16 15:02:45Z tpater $ 20 */ 24 */ 25// require_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"');InputStream.php https://gitlab.com/techniconline/kmc | PHP | 293 lines
1<?php 2 92 characters is a parse error. */ 93 for ($i = 0, $count = substr_count($data, "\0"); $i < $count; $i++) { 94 $this->errors[] = array( 155 } else { 156 // XXX: Need non-PCRE impl, probably using substr_count 157 } 172 // byte to be processed. 173 return substr_count($this->data, "\n", 0, min($this->char, $this->EOF)) + 1; 174 } else {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});BBParser.php https://github.com/albeneth/braldahim.git | PHP | 245 lines
1<?php 2 19// This code uses portions of the bbcode script from 20// phpBB (C) 2001 The phpBB Group 21// ******************************************************************* 51 52 while (substr_count($string,"<span") > substr_count($string,"</span>")) { 53 $string.="</span>"; 55 56 while (substr_count($string,"<span") < substr_count($string,"</span>")) { 57 $string="<span>".$string; 60 // http, https, ftp, mailto 61 $string = str_replace("[url=index.php", "#*#LINKINDEX=#*#", $string); 62 $string = str_replace("[url=http://", "#*#LINKHTTP=#*#", $string); 66 67 $string = str_replace("[url]index.php", "#*#LINKINDEX]#*#", $string); 68 $string = str_replace("[url]http://", "#*#LINKHTTP]#*#", $string);File.php https://github.com/nathanlon/twical.git | PHP | 364 lines
1<?php 2/** 2/** 3 * PHPUnit 4 * 37 * @category Testing 38 * @package PHPUnit 39 * @author Sebastian Bergmann <sb@sebastian-bergmann.de> 40 * @copyright 2002-2010 Sebastian Bergmann <sb@sebastian-bergmann.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 * @link http://www.phpunit.de/ 49 50require_once 'PHPUnit/Util/Filter.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53IpUtils.php https://gitlab.com/judielsm/Handora | 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 }adodb-mssql_n.inc.php https://github.com/umbecr/camilaframework.git | PHP | 171 lines
1<?php 2 8// // 9// ADOdb - Database Abstraction Library for PHP // 10// http://adodb.sourceforge.net/ // 50 51include_once(ADODB_DIR.'/drivers/adodb-mssql.inc.php'); 52 86 /// and should be considered one wrong SQL). Exit with debug info. 87 if ((substr_count($sql, SINGLEQUOTE) & 1)) { 88 if ($this->debug) {php.js https://gitlab.com/ptisky/API_prestashop | JavaScript | 75 lines
1editAreaLoader.load_syntax["php"] = { 2 'COMMENT_SINGLE' : {1 : '//', 2 : '#'} 15 'null', '__LINE__', '__FILE__', 16 'false', '<?php', '?>', '<?', 17 '<script language', '</script>', 19 'function', 'class', 'new', '&new', 'this', 20 '__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION', 21 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', 21 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', 22 'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR', 23 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', 23 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', 24 'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', 25 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', 32 'extension_loaded', 'get_extension_funcs', 'debug_backtrace', 33 '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', 34 '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',ContainerTest.php https://github.com/taste/zf2.git | PHP | 435 lines
1<?php 2/** 38 */ 39class ContainerTest extends \PHPUnit_Framework_TestCase 40{ 377 $this->container->setPrefix('<ul><li>') 378 ->setSeparator('</li>' . PHP_EOL . '<li>') 379 ->setPostfix('</li></ul>') 381 $value = $this->container->toString(); 382 $expectedValue = ' <ul><li>foo</li>' . PHP_EOL . ' <li>bar</li>' . PHP_EOL . ' <li>baz</li></ul>'; 383 $this->assertEquals($expectedValue, $value); 424 425 $lis = substr_count($string, "\n <li>"); 426 $this->assertEquals(3, $lis); 432// Call Zend_View_Helper_Placeholder_ContainerTest::main() if this source file is executed directly. 433if (PHPUnit_MAIN_METHOD == "Zend_View_Helper_Placeholder_ContainerTest::main") { 434 \Zend_View_Helper_Placeholder_ContainerTest::main();class.dbquery.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 171 lines
1<?php //003ab 2if(!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); 3?>not-gettexted.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 240 lines
1<?php 2/** 5 * 6 * @version $Id: not-gettexted.php 19275 2012-02-10 17:47:42Z nacin $ 7 * @package wordpress-i18n 10 11// see: http://php.net/tokenizer 12if ( ! defined('T_ML_COMMENT') ) 16 17require_once dirname( __FILE__ ) . '/pomo/po.php'; 18require_once dirname( __FILE__ ) . '/pomo/mo.php'; 208 function usage() { 209 $this->stderr('php i18n-comments.php COMMAND OUTPUTFILE INPUTFILES'); 210 $this->stderr('Extracts and replaces strings, which cannot be gettexted'); 212 $this->stderr(' extract POTFILE PHPFILES appends the strings to POTFILE'); 213 $this->stderr(' replace MOFILE PHPFILES replaces strings in PHPFILES with translations from MOFILE'); 214 }Security.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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 *smarty_internal_compile_private_php.php https://gitlab.com/Shenglian/SmartyProject | PHP | 220 lines
56 if ($_attr[ 'type' ] != 'tag') { 57 if ($compiler->php_handling == Smarty::PHP_REMOVE) { 58 return ''; 58 return ''; 59 } elseif ($compiler->php_handling == Smarty::PHP_QUOTE) { 60 $output = 157 if (($lex->phpType == 'php' || $lex->phpType == 'asp') && 158 ($lex->compiler->php_handling == Smarty::PHP_PASSTHRU || $lex->compiler->php_handling == Smarty::PHP_QUOTE) 159 ) { 194 } 195 if ($phpCommentStart && (!$phpCommentEnd || $pos2 > $close)) { 196 $lex->taglineno = $lex->line + substr_count(substr($lex->data, $lex->counter, $start), "\n"); 207 /* 208 * Call back function for $php_handling = PHP_QUOTE 209 *ViewScriptTest.php https://github.com/Exercise/zf2.git | PHP | 159 lines
1<?php 2/** 38 */ 39class ViewScriptTest extends \PHPUnit_Framework_TestCase 40{ 152 153 $count = substr_count($test, 'content to decorate'); 154 $this->assertEquals(1, $count);theme_functions_include.php https://github.com/frostzhenya/php.git | PHP | 246 lines
2/*-------------------------------------------------------+ 3| PHP-Fusion Content Management System 4| Copyright (C) 2002 - 2010 Nick Jones 44 if (is_array($exclude_list)) { 45 $script_url = explode("/", $_SERVER['PHP_SELF']); 46 $url_count = count($script_url); 124 if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." "; 125 if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") { $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." "; } 126 if ($info['news_ext'] == "y" || ($info['news_allow_comments'] && $settings['comments_enabled'] == "1")) { $res .= $info['news_reads'].$locale['global_074']."\n ".$sep; } 126 if ($info['news_ext'] == "y" || ($info['news_allow_comments'] && $settings['comments_enabled'] == "1")) { $res .= $info['news_reads'].$locale['global_074']."\n ".$sep; } 127 $res .= "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n"; 128 return "<!--news_opts-->".$res; 191 $link_class = $class ? " class='$class' " : ""; 192 $res = "Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.<br />\n"; 193 $res .= "Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'".$link_class.">GNU Affero GPL</a> v3.\n";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 }image.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 324 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 29 30// we need just the values from config.php and minlib.php 31define('ABORT_AFTER_CONFIG', true); 31define('ABORT_AFTER_CONFIG', true); 32require('../config.php'); // this stops immediately at the beginning of lib/setup.php 33 35 $slashargument = ltrim($slashargument, '/'); 36 if (substr_count($slashargument, '/') < 3) { 37 image_not_found(); 68 69if (file_exists("$CFG->dirroot/theme/$themename/config.php")) { 70 // exists 70 // exists 71} else if (!empty($CFG->themedir) and file_exists("$CFG->themedir/$themename/config.php")) { 72 // existsSQLQuery.php https://github.com/benbruscella/vpcounselling.com.git | PHP | 478 lines
1<?php 2/** 218 while(list($i,$sortPart) = each($sortParts)) { 219 while(substr_count($sortPart,'(') > substr_count($sortPart,')')) { 220 list($i,$nextSortPart) = each($sortParts);NodeFieldFilterTest.php https://gitlab.com/reasonat/test8 | PHP | 109 lines
1<?php 2 104 foreach ($counts as $langcode => $count) { 105 $this->assertEqual(substr_count($text, $this->nodeTitles[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message); 106 }BookTitle.php https://gitlab.com/ajit57/ajitdas_143229_b35_session30_search_3rdparty | PHP | 183 lines
1<?php 2 46 Message::setMessage("Failed ! Data has not been inserted Successfully ):"); 47 Utility::redirect('index.php'); 48 }//end of store 52 $fetchMode = strtoupper($fetchMode); 53 if(substr_count($fetchMode, 'OBJ') > 0) 54 $STH->setFetchMode(PDO::FETCH_OBJ); 62 $fetchMode = strtoupper($fetchMode); 63 if(substr_count($fetchMode,'OBJ') > 0) 64 $STH->setFetchMode(PDO::FETCH_OBJ); 75 $STH->execute($arrData); 76 Utility::redirect('index.php'); 77 } 84 85 Utility::redirect('index.php'); 86 }File.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 411 lines
24 */ 25require_once 'Zend/Reflection/Class.php'; 26 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'); 204 if (!$instance instanceof Zend_Reflection_Class) { 205 require_once 'Zend/Reflection/Exception.php'; 206 throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Class'); 318 * Token ID's are explained here: 319 * http://www.php.net/manual/en/tokens.php. 320 */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 .= ' | ';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 {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);start.php https://github.com/melvincarvalho/foafme.git | PHP | 480 lines
1<?php 2/** 16 global $CONFIG; 17 require_once 'search_hooks.php'; 18 72 73 include_once('index.php'); 74} 105 $word = elgg_strtolower($word); 106 $count = elgg_substr_count($haystack_lc, $word); 107 $word_len = elgg_strlen($word); 405 || (isset($params['advanced_search']) && $params['advanced_search']) 406 || elgg_substr_count($query, '"') >= 2 ) { 407 $options = 'IN BOOLEAN MODE';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 }refactor.php https://gitlab.com/frenlee710/sublime | PHP | 363 lines
1<?php 2//Copyright (c) 2014, Carlos C 160 list($id, $text) = $this->inspect_token(-1); 161 return T_WHITESPACE === $id && substr_count($text, $this->new_line) > 0; 162 } 164 list($id, $text) = $this->get_token($this->prev_token()); 165 return substr_count($text, $this->new_line) > 0; 166 } 166 } 167 protected function substr_count_trailing($haystack, $needle) { 168 $cnt = 0; 207 private function setFrom($from) { 208 $tkns = token_get_all('<?php ' . $from); 209 array_shift($tkns); 315 } 316 echo PHP_EOL, 'If <target> is blank, it reads from stdin', PHP_EOL; 317 die();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?>extprofile_mb.h https://github.com/tmjnaid/hiphop-php.git | C Header | 307 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010 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 +----------------------------------------------------------------------+List.php https://gitlab.com/ElvisAns/tiki | PHP | 194 lines
1<?php 2 61 } 62 if (substr_count($line, "\t") != 2) { 63 return false;Router.php https://gitlab.com/team_fsn/fsn-php | PHP | 272 lines
1<?php 2/** 148 149 if(preg_match_all('#\$[0-9]+#', $internal_params, $match) < substr_count($external, '*')) 150 throw new Yab_Exception('Wrong paramaeters count in this route'); 271 272// Do not clause PHP tags unless it is really necessaryBooktitle.php https://gitlab.com/sumonaliza12/ATOMIC_PROJECT_SEIP143203_SUMONA_SEIP143203 | PHP | 395 lines
1<?php 2namespace App\BITM\SEIP143203\BookTitle; 27 $sth->execute(); 28 if(substr_count($fetchMode,'OBJ') > 0) 29 $sth->setFetchMode(PDO::FETCH_OBJ); 86 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 87 Utility::redirect('create.php'); 88 112 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 113 Utility::redirect('index.php'); 114 131 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 132 Utility::redirect('index.php'); 133 157 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 158 Utility::redirect('index.php'); 159DirectoryListing.php https://github.com/kaartine/Rysty.git | PHP | 244 lines
1<?php 2######################################################## 8# Modified: 27/09/04 9# Website: http://evoluted.net/directorylisting.php 10# Requirements: PHP 39 40// name of folder, no starting / or ending / relative to index.php file 41$HOMEDIR="intranet"; 85 if ( substr_count($path_parts['dirname']."/",$HOMEDIR ) == 1 and 86 substr_count($path_parts['dirname']."/","../" ) == 0 // no path altering 87 and $path_parts['basename'] != ".." ) { // double check 91} 92$PHP_SELF = basename(__FILE__); 93if ($handle = opendir($curDir)) { 94 while (false !== ($file = readdir($handle))) { 95 if ($file != "." && $file != substr($PHP_SELF, -(strlen($PHP_SELF) - strrpos($PHP_SELF, "/") - 1))) { 96 if ( $file == ".." and $curDir == $HOMEDIR) {IpUtils.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 181 lines
1<?php 2 40 41 $method = substr_count($requestIp, ':') > 1 ? 'checkIp6' : 'checkIp4'; 42 96 * 97 * @author David Soria Parra <dsp at php dot net> 98 * 112 if (!((\extension_loaded('sockets') && \defined('AF_INET6')) || @inet_pton('::1'))) { 113 throw new \RuntimeException('Unable to check Ipv6. Check that PHP was not compiled with option "disable-ipv6".'); 114 }directw.php https://gitlab.com/cserobiul/Bitm-PHP-CRUD-Practice | 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);VTQL_Lexer.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 324 lines
1<?php 2/*+*********************************************************************************** 236 $this->index += strlen($this->value); 237 $this->linenum += substr_count("\n", $this->value); 238 // accept this token 245 $this->index += strlen($this->value); 246 $this->linenum += substr_count("\n", $this->value); 247 if ($this->index >= strlen($this->data)) { 267 $this->value = current($yymatches); // token value 268 $this->linenum = substr_count("\n", $this->value); 269 } 272 $this->index += strlen($this->value); 273 $this->linenum += substr_count("\n", $this->value); 274 return true;File.php https://bitbucket.org/simukti/zf1.git | 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 */smarty_internal_data.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 163 lines
1<?php //0046a 2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@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;}}}if(function_exists('dl')){@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 website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199); 3?> 887BOIGr8tNZVJMU5Ylw8/uV5gz3tEBqyot19y1gERe52ZCmRmC0QvapMPESjhy0QUVCRfgZ1/e3gg 89P7SE2PohYYcbEigqVebdGoKSjbm7hQ4NjkhBIwqUlCrOLEVvdX7UabV+0wwYTlpHpkd+kJLjZ72w 90BoqhlvbMe2imRDCzlf/sxViBuBNunwe78EZLUuBeVAfy3gSwyE5jFwIB7Avsvc0dyNUC3wpIzaOvopToolkit.class.php https://github.com/bb-dev/OpenPNE3.git | PHP | 594 lines
1<?php 2 146 $result = array('base' => $string, 'enclosed' => array()); 147 $enclosureCount = substr_count($string, $enclosure); 148 459 460 return $arrayDsn['phptype'].':'.implode(';', $result); 461 } 495 * 496 * @author Masaki Fujimoto <fujimoto@php.net> 497 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License