PageRenderTime 2594ms queryTime 500ms sortTime 192ms getByIdsTime 1141ms findMatchingLines 311ms

38+ results for 'php stristr repo:gartz/RapidLeetch' (2594 ms)

Not the results you expected?
Search.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 462 lines
                    
1<?php namespace Myth\Docs;
                    
2/**
                    
28 * @license     http://opensource.org/licenses/MIT  (MIT)
                    
29 * @link        http://sprintphp.com
                    
30 * @since       Version 1.0
                    
64     */
                    
65    protected $allowed_file_types = 'html|htm|php|php4|php5|txt|md';
                    
66
                    
182            // Do we have a match in here somewhere?
                    
183            $found = stristr($text, $term) || stristr($text, $term_html);
                    
184
                    
                
Posix.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
109        $this->write($text, $color, $bgColor);
                    
110        $this->write(PHP_EOL);
                    
111    }
                    
192        if (($lang = getenv('LANG')) !== false) {
                    
193            return stristr($lang, 'utf-8') || stristr($lang, 'utf8');
                    
194        }
                    
323
                    
324        $stream = fopen('php://stdin', 'rb');
                    
325        do {
                    
                
Util.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 303 lines
                    
1<?php
                    
2/**
                    
3 * Braintree Utility methods
                    
4 * PHP version 5
                    
5 *
                    
135    {
                    
136        // php doesn't garbage collect functions created by create_function()
                    
137        // so use a static variable to avoid adding a new function to memory
                    
168    {
                    
169        // php doesn't garbage collect functions created by create_function()
                    
170        // so use a static variable to avoid adding a new function to memory
                    
291        foreach($validKeys AS $key) {
                    
292            if (stristr($key, '[_anyKey_]')) {
                    
293                $wildcardKey = str_replace('[_anyKey_]', '', $key);
                    
294                foreach ($invalidKeys AS $index => $invalidKey) {
                    
295                    if (stristr($invalidKey, $wildcardKey)) {
                    
296                        unset($invalidKeys[$index]);
                    
                
util.php https://gitlab.com/imxieke/XCloud | PHP | 280 lines
                    
108    foreach ($ext_arr as $current) {
                    
109        if ($current !== '' && stristr($file,'.'.$current)){//含有扩展名
                    
110            return 0;
                    
133    $base_path = get_path_this(BASIC_PATH).'/'; 
                    
134    if(!function_exists('iconv')) $error.= '<li>'.$L['php_env_error_iconv'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
136    if(!version_compare(PHP_VERSION,'5.0','>=')) $error.= '<li>'.$L['php_env_error_version'].'</li>';
                    
137    if(!function_exists('file_get_contents')) $error.='<li>'.$L['php_env_error_file'].'</li>';
                    
138    if(!path_writable(BASIC_PATH)) $error.= '<li>'.$base_path.'	'.$L['php_env_error_path'].'</li>';
                    
139    if(!path_writable(BASIC_PATH.'data')) $error.= '<li>'.$base_path.'data	'.$L['php_env_error_path'].'</li>';
                    
140    if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system	'.$L['php_env_error_path'].'</li>';
                    
140    if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system	'.$L['php_env_error_path'].'</li>';
                    
141    if(!path_writable(BASIC_PATH.'data/User')) $error.= '<li>'.$base_path.'data/User	'.$L['php_env_error_path'].'</li>';
                    
142    if(!path_writable(BASIC_PATH.'data/thumb')) $error.= '<li>'.$base_path.'data/thumb	'.$L['php_env_error_path'].'</li>';
                    
                
social-media-icons.php https://gitlab.com/Gashler/sg | PHP | 207 lines
                    
129			<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'jetpack' ); ?></label>
                    
130			<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" />
                    
131		</p>
                    
141			<label for="<?php echo esc_attr( $this->get_field_id( 'instagram_username' ) ); ?>"><?php _e( 'Instagram username:', 'jetpack' ); ?></label>
                    
142			<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'instagram_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'instagram_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['instagram_username'] ); ?>" />
                    
143		</p>
                    
153			<label for="<?php echo esc_attr( $this->get_field_id( 'github_username' ) ); ?>"><?php _e( 'GitHub username:', 'jetpack' ); ?></label>
                    
154			<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'github_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'github_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['github_username'] ); ?>" />
                    
155		</p>
                    
157			<label for="<?php echo esc_attr( $this->get_field_id( 'youtube_username' ) ); ?>"><?php _e( 'YouTube channel ID:', 'jetpack' ); ?></label>
                    
158			<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'youtube_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'youtube_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['youtube_username'] ); ?>" />
                    
159		</p>
                    
161			<label for="<?php echo esc_attr( $this->get_field_id( 'vimeo_username' ) ); ?>"><?php _e( 'Vimeo username:', 'jetpack' ); ?></label>
                    
162			<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'vimeo_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'vimeo_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['vimeo_username'] ); ?>" />
                    
163		</p>
                    
                
Trackback.php https://gitlab.com/sittipongwork/impro_dashboard | PHP | 549 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
271
                    
272		if (stristr($this->response, '<error>0</error>') === FALSE)
                    
273		{
                    
547
                    
548/* End of file Trackback.php */
                    
549/* Location: ./system/libraries/Trackback.php */
                    
                
filepost.com_member.php https://gitlab.com/dkiller1/rapidleech | PHP | 112 lines
                    
1<?php
                    
2
                    
60			$try = $try-1;
                    
61			if (stristr($page, 'Upload will be available a bit later')) html_error("Error@$try: Upload will be available a bit later.");
                    
62			else html_error("Error: No useable upload server found in $try trys.");
                    
65
                    
66		if (stristr($page, 'Upload will be available a bit later')) {
                    
67			sleep(1); // Let's wait...
                    
                
class-wc-download-handler.php https://gitlab.com/webkod3r/tripolis | PHP | 426 lines
                    
1<?php
                    
2
                    
252			exit;
                    
253		} elseif ( stristr( getenv( 'SERVER_SOFTWARE' ), 'lighttpd' ) ) {
                    
254			self::download_headers( $parsed_file_path['file_path'], $filename );
                    
256			exit;
                    
257		} elseif ( stristr( getenv( 'SERVER_SOFTWARE' ), 'nginx' ) || stristr( getenv( 'SERVER_SOFTWARE' ), 'cherokee' ) ) {
                    
258			self::download_headers( $parsed_file_path['file_path'], $filename );
                    
338		}
                    
339		if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() && version_compare( phpversion(), '5.4', '<' ) ) {
                    
340			set_magic_quotes_runtime( 0 );
                    
369	 *
                    
370	 * Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/.
                    
371	 *
                    
                
shortcodes.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 375 lines
                    
1<?php
                    
2/**
                    
48    
                    
49        if ( stristr( $content, '[singlepic' )) {
                    
50            $search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]@i";
                    
64
                    
65        if ( stristr( $content, '[album' )) {
                    
66            $search = "@(?:<p>)*\s*\[album\s*=\s*(\w+|^\+)(|,extend|,compact)\]\s*(?:</p>)*@i"; 
                    
77
                    
78        if ( stristr( $content, '[gallery' )) {
                    
79            $search = "@(?:<p>)*\s*\[gallery\s*=\s*(\w+|^\+)\]\s*(?:</p>)*@i";
                    
88
                    
89        if ( stristr( $content, '[imagebrowser' )) {
                    
90            $search = "@(?:<p>)*\s*\[imagebrowser\s*=\s*(\w+|^\+)\]\s*(?:</p>)*@i";
                    
99
                    
100        if ( stristr( $content, '[slideshow' )) {
                    
101            $search = "@(?:<p>)*\s*\[slideshow\s*=\s*(\w+|^\+)(|,(\d+)|,)(|,(\d+))\]\s*(?:</p>)*@i";
                    
                
Standard.php https://gitlab.com/reasonat/test8 | PHP | 173 lines
                    
1<?php
                    
2
                    
101  protected static function filterXssDataAttributes($html) {
                    
102    if (stristr($html, 'data-') !== FALSE) {
                    
103      $dom = Html::load($html);
                    
                
php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 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;
                    
130  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
131  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
132})();
                    
                
Doctype.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 242 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Doctype.php 25101 2012-11-07 20:27:27Z rob $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Registry */
                    
24require_once 'Zend/Registry.php';
                    
25
                    
25
                    
26/** Zend_View_Helper_Abstract.php */
                    
27require_once 'Zend/View/Helper/Abstract.php';
                    
134                    if (substr($doctype, 0, 9) != '<!DOCTYPE') {
                    
135                        require_once 'Zend/View/Exception.php';
                    
136                        $e = new Zend_View_Exception('The specified doctype is malformed');
                    
139                    }
                    
140                    if (stristr($doctype, 'xhtml')) {
                    
141                        $type = self::CUSTOM_XHTML;
                    
                
lcfirst.php https://gitlab.com/iranjith4/hhvm | PHP | 158 lines
                    
1<?php
                    
2/* Make a string's first character uppercase */
                    
57    public function __call($m, $v) {
                    
58        if (stristr($m, 'set')) {
                    
59            $action = lcfirst(substr($m, 3));
                    
                
files.php https://gitlab.com/iamgraeme/royalmile | PHP | 137 lines
                    
1<?php
                    
2/**
                    
72
                    
73$action_url = network_admin_url( 'admin.php?page=wpseo_files' ); // auto-falls back on admin_url for non-multisite
                    
74
                    
110
                    
111if ( ( isset( $_SERVER['SERVER_SOFTWARE'] ) && stristr( $_SERVER['SERVER_SOFTWARE'], 'nginx' ) === false ) && file_exists( $ht_access_file ) ) {
                    
112	$f = fopen( $ht_access_file, 'r' );
                    
131	$wpseo_admin_pages->postbox( 'htaccess', __( '.htaccess file', 'wordpress-seo' ), $content );
                    
132} elseif ( ( isset( $_SERVER['SERVER_SOFTWARE'] ) && stristr( $_SERVER['SERVER_SOFTWARE'], 'nginx' ) === false ) && ! file_exists( $ht_access_file ) ) {
                    
133	$content = '<p>' . __( 'If you had a .htaccess file and it was editable, you could edit it from here.', 'wordpress-seo' );
                    
                
Intl.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 156 lines
                    
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et:
                    
2/*
                    
10
                    
11namespace Patchwork\PHP\Shim;
                    
12
                    
13/**
                    
14 * Partial intl implementation in pure PHP.
                    
15 *
                    
18 * - grapheme_stripos  - Find position (in grapheme units) of first occurrence of a case-insensitive string
                    
19 * - grapheme_stristr  - Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack
                    
20 * - grapheme_strlen   - Get string length in grapheme units
                    
108    {
                    
109        // Intl based http://bugs.php.net/62759 and 55562 workaround
                    
110
                    
134    static function grapheme_strripos($s, $needle, $offset = 0) {return self::grapheme_position($s, $needle, $offset, 3);}
                    
135    static function grapheme_stristr ($s, $needle, $before_needle = false) {return mb_stristr($s, $needle, $before_needle, 'UTF-8');}
                    
136    static function grapheme_strstr  ($s, $needle, $before_needle = false) {return mb_strstr ($s, $needle, $before_needle, 'UTF-8');}
                    
                
doarSangue.dp.php https://gitlab.com/jalon/doadoronline | PHP | 169 lines
                    
1<?php
                    
2#################################################################################
                    
5if (defined('DOC_ROOT')) {
                    
6	include_once(DOC_ROOT . 'include.php');
                    
7}else{
                    
7}else{
                    
8 	include_once('../include.php');
                    
9}
                    
98 	
                    
99 	if (stristr($oDoacao,'[ERR]')) throw new Exception();
                    
100 	/*if($db->commit()){
                    
                
dwpage.php https://gitlab.com/michield/dokuwiki | PHP | 378 lines
                    
1#!/usr/bin/php
                    
2<?php
                    
3#------------------------------------------------------------------------------
                    
4if ('cli' != php_sapi_name()) die();
                    
5
                    
7if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
                    
8require_once DOKU_INC.'inc/init.php';
                    
9require_once DOKU_INC.'inc/common.php';
                    
9require_once DOKU_INC.'inc/common.php';
                    
10require_once DOKU_INC.'inc/cliopts.php';
                    
11
                    
15        case 'checkout':
                    
16           print "Usage: dwpage.php [opts] checkout <wiki:page> [working_file]
                    
17
                    
24    EXAMPLE
                    
25    $ ./dwpage.php checkout wiki:syntax ./new_syntax.txt
                    
26
                    
                
Curl.php https://github.com/dmolsen/MIT-Mobile-Web.git | PHP | 392 lines
                    
27/** Zend_Http_Client_Adapter_Interface */
                    
28require_once 'Zend/Http/Client/Adapter/Interface.php';
                    
29
                    
31 * An adapter class for Zend_Http_Client based on the curl extension.
                    
32 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl
                    
33 *
                    
103        if (!extension_loaded('curl')) {
                    
104            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
105            throw new Zend_Http_Client_Adapter_Exception('cURL extension has to be loaded to use this Zend_Http_Client adapter.');
                    
185
                    
186            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
187            throw new Zend_Http_Client_Adapter_Exception('Unable to Connect to ' .  $host . ':' . $port);
                    
305         * Make sure POSTFIELDS is set after $curlMethod is set:
                    
306         * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161
                    
307         */
                    
                
Doctype.php https://gitlab.com/devtoannh/cafe | PHP | 239 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Doctype.php 24201 2011-07-05 16:22:04Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Registry */
                    
24require_once 'Zend/Registry.php';
                    
25
                    
25
                    
26/** Zend_View_Helper_Abstract.php */
                    
27require_once 'Zend/View/Helper/Abstract.php';
                    
131                    if (substr($doctype, 0, 9) != '<!DOCTYPE') {
                    
132                        require_once 'Zend/View/Exception.php';
                    
133                        $e = new Zend_View_Exception('The specified doctype is malformed');
                    
136                    }
                    
137                    if (stristr($doctype, 'xhtml')) {
                    
138                        $type = self::CUSTOM_XHTML;
                    
                
BrowserCache.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 332 lines
                    
1<?php
                    
2
                    
9
                    
10require_once W3TC_LIB_W3_DIR . '/Plugin.php';
                    
11
                    
115         */
                    
116        if (isset($_SERVER['HTTP_USER_AGENT']) && stristr($_SERVER['HTTP_USER_AGENT'], W3TC_POWERED_BY) !== false) {
                    
117            return false;
                    
260    function _get_cssjs_types() {
                    
261        $mime_types = include W3TC_INC_DIR . '/mime/cssjs.php';
                    
262
                    
271    function _get_html_types() {
                    
272        $mime_types = include W3TC_INC_DIR . '/mime/html.php';
                    
273
                    
282    function _get_other_types() {
                    
283        $mime_types = include W3TC_INC_DIR . '/mime/other.php';
                    
284
                    
                
ControllerManager.php https://gitlab.com/johanlindberg/irvato-crm | PHP | 130 lines
                    
1<?php
                    
2/************************************************************************
                    
74
                    
75        if ($data && stristr($request->getContentType(), 'application/json')) {
                    
76            $data = json_decode($data);
                    
                
bootstrap.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 440 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Basic CakePHP functionality.
                    
4 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake
                    
16 * @package       Cake
                    
17 * @since         CakePHP(tm) v 0.2.9
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
137
                    
138require CAKE . 'basics.php';
                    
139require CAKE . 'Core' . DS . 'App.php';
                    
                
pdo_driver.php https://gitlab.com/ablu/invertika-backup-web | PHP | 610 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4*
                    
5* An open source application development framework for PHP 4.3.2 or newer
                    
6*
                    
286    {
                    
287        if (stristr($table, '.'))
                    
288        {
                    
485
                    
486            if (stristr($item, " {$exception} ") !== FALSE)
                    
487            {
                    
                
server.php https://gitlab.com/sokeara/Tribal_Education | PHP | 185 lines
                    
25		$dup_tests['PHP']['SAFE_MODE'] = $safe_ini  != 'on' || $safe_ini != 'yes' || $safe_ini != 'true' || ini_get("safe_mode") != 1 ? 'Pass' : 'Fail';
                    
26		$dup_tests['PHP']['VERSION'] = DUP_Util::$on_php_529_plus				? 'Pass' : 'Fail';
                    
27		$dup_tests['PHP']['ZIP']	 = class_exists('ZipArchive')				? 'Pass' : 'Fail';
                    
74		$php_test1 = ini_get("open_basedir");
                    
75		$php_test1 = empty($php_test1) ? true : false;
                    
76		$php_test2 = ini_get("max_execution_time");
                    
76		$php_test2 = ini_get("max_execution_time");
                    
77		$php_test2 = ($php_test2 > DUPLICATOR_SCAN_TIMEOUT)  || (strcmp($php_test2 , 'Off') == 0 || $php_test2  == 0) ? true : false;                
                    
78		$php_test3	= function_exists('mysqli_connect');
                    
82		$checks['SRV']['PHP']['mysqli']   = $php_test3;
                    
83		$checks['SRV']['PHP']['ALL']      = ($php_test1 && $php_test2 && $php_test3) ? 'Good' : 'Warn';
                    
84		
                    
134		return array(
                    
135			DUPLICATOR_INSTALL_PHP => DUPLICATOR_WPROOTPATH . DUPLICATOR_INSTALL_PHP,  
                    
136			DUPLICATOR_INSTALL_BAK => DUPLICATOR_WPROOTPATH . DUPLICATOR_INSTALL_BAK, 
                    
                
Intl.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 221 lines
                    
1<?php
                    
2
                    
11
                    
12namespace Patchwork\PHP\Shim;
                    
13
                    
14/**
                    
15 * Partial intl implementation in pure PHP.
                    
16 *
                    
19 * - grapheme_stripos  - Find position (in grapheme units) of first occurrence of a case-insensitive string
                    
20 * - grapheme_stristr  - Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack
                    
21 * - grapheme_strlen   - Get string length in grapheme units
                    
134    {
                    
135        // Intl based http://bugs.php.net/62759 and 55562 workaround
                    
136
                    
188    }
                    
189    public static function grapheme_stristr($s, $needle, $before_needle = false)
                    
190    {
                    
                
SearchFilter.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
                    
1<?php
                    
2
                    
127        if (!preg_match('/([A-Za-z]+)\(\s*(?:([A-Za-z_*][A-Za-z0-9_]*))?\s*\)$/', $name, $matches)) {
                    
128            if (stristr($name, '(') !== false) {
                    
129                throw new InvalidArgumentException(sprintf(
                    
                
ViewHelper.php https://gitlab.com/luisrepo/ClienteWS | PHP | 256 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Form_Decorator_Abstract */
                    
22require_once 'Zend/Form/Decorator/Abstract.php';
                    
23
                    
41 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
42 * @version    $Id: ViewHelper.php 23775 2011-03-01 17:25:24Z ralph $
                    
43 */
                    
196            if ($element instanceof $type) {
                    
197                if (stristr($type, 'button')) {
                    
198                    $element->content = $element->getLabel();
                    
224        if (null === $view) {
                    
225            require_once 'Zend/Form/Decorator/Exception.php';
                    
226            throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object');
                    
                
bitshare_com.php https://gitlab.com/dkiller1/rapidleech | PHP | 144 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
49            $this->CountDown($wait[1]);
                    
50            if (!preg_match('@\/challenge\?k=([^"]+)"@', $this->page, $cap) && !stristr($this->page, "var captcha = 1;")) html_error("Error getting CAPTCHA Data!");
                    
51            $ch = cut_str($this->GetPage("http://www.google.com/recaptcha/api/challenge?k=$cap[1]"), "challenge : '", "'");
                    
76            $dlink = trim($dl[1]);
                    
77            $filename = basename(parse_url($dlink, PHP_URL_PATH));
                    
78            $this->RedirectDownload($dlink, $filename, $this->cookie, 0, $link);
                    
134        $dlink = trim($dl[1]);
                    
135        $filename = basename(parse_url($dlink, PHP_URL_PATH));
                    
136        $this->RedirectDownload($dlink, $filename, $this->cookie);
                    
                
func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
66			'stripos' => create_function('$haystack, $needle, $offset = 0', '
                    
67										 // This function doesn\'t exist until PHP 5.2.0 >=
                    
68										 if(function_exists(\'mb_stripos\'))
                    
72											 return mb_strpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);'),
                    
73			'stristr' => create_function('$haystack, $needle, $part = false', '
                    
74										 // Same as mb_stripos, this doesn\'t exist until 5.2.0 as well.
                    
74										 // Same as mb_stripos, this doesn\'t exist until 5.2.0 as well.
                    
75										 if(function_exists(\'mb_stristr\'))
                    
76											 return mb_stristr($haystack, $needle, $part);
                    
110			'stripos' => 'stripos',
                    
111			'stristr' => 'stristr',
                    
112			'strlen' => 'strlen',
                    
                
wp-cache-phase2.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 328 lines
                    
1<?php
                    
2
                    
2
                    
3/** Diable here because PHP4.3 does not make the global
                    
4 Serious bug?
                    
33		return;
                    
34	$script = basename($_SERVER['PHP_SELF']);
                    
35	if (!in_array($script, $cache_acceptable_files) && 
                    
77	foreach ($cache_rejected_user_agent as $expr) {
                    
78		if (strlen($expr) > 0 && stristr($headers["User-Agent"], $expr))
                    
79			return true;
                    
148			$store = preg_replace('|<!--mclude (.*?)-->(.*?)<!--/mclude-->|is', 
                    
149					"<!--mclude-->\n<?php include_once('" . ABSPATH . "$1'); ?>\n<!--/mclude-->", $buffer);
                    
150			$store = preg_replace('|<!--mfunc (.*?)-->(.*?)<!--/mfunc-->|is', 
                    
150			$store = preg_replace('|<!--mfunc (.*?)-->(.*?)<!--/mfunc-->|is', 
                    
151					"<!--mfunc-->\n<?php $1 ;?>\n<!--/mfunc-->", $store);
                    
152			$wp_cache_meta_object->dynamic = true;
                    
                
cat_categorypanel_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 212 lines
                    
1<?php

                    
2/**

                    
88	

                    
89	function getLevelFromDB_PHP($id_parent)

                    
90	{

                    
123					"<cell>3</cell>";

                    
124					getLevelFromDB_PHP($row['id_category']);

                    
125					echo '</row>'."\n";

                    
133	//include XML Header (as response will be in xml format)

                    
134	if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {

                    
135	 		header("Content-type: application/xhtml+xml"); } else {

                    
144</beforeInit>

                    
145<column id="id_category" width="40" type="ro" align="right" sort="int"><?php echo _l('ID')?></column>

                    
146<column id="used" width="50" type="ch" align="center" sort="str"><?php echo _l('Used')?></column>

                    
146<column id="used" width="50" type="ch" align="center" sort="str"><?php echo _l('Used')?></column>

                    
147<column id="name" width="250" type="tree" align="left" sort="str"><?php echo _l('Name')?></column>

                    
148<column id="default" width="50" type="ra" align="center" sort="str"><?php echo _l('Default')?></column>

                    
                
wimpy.customizer.php https://gitlab.com/gregtyka/wimppy1 | PHP | 76 lines
                    
1<?php
                    
2
                    
73$wimpyVersion="7.7.41";define("newline","\r\n");define("slash","/");function striphack($string){$retval=$string;$retval=strip_tags(rawurldecode(utf8_decode($retval)));$retval=str_replace("sscanf","x",$retval);$retval=str_replace("printf","x",$retval);$retval=str_replace("base64_decode","x",$retval);$retval=str_replace("rawurldecode","x",$retval);$retval=str_replace("urldecode","x",$retval);$retval=str_replace("0;","x",$retval);$retval=str_replace("%5C","x",$retval);$retval=str_replace("\n","x",$retval);$retval=str_replace("\r","x",$retval);$retval=str_replace("\t","x",$retval);$retval=str_replace("\\","x",$retval);$retval=str_replace("..","x",$retval);$retval=str_replace("./","x",$retval);
                    
74$retval=str_replace('$',"x",$retval);return $retval;}function secureArray($array_in){if(@is_array($array_in)){$Atemp=array();foreach ($array_in as $key=>$value){$Atemp[striphack($key)]=striphack($value);}}else{$Atemp=$array_in;}return $Atemp;}if ( @get_magic_quotes_gpc () ){function traverse ( &$arr ){if ( !is_array ( $arr ) ){return;}foreach ( $arr as $key=>$val ){is_array ( $arr[$key] ) ? traverse ( $arr[$key] ) : ( $arr[$key]=stripslashes ( $arr[$key] ) );}}$gpc=array (&$_REQUEST);traverse ( $gpc );}if(!isset($_SERVER['SCRIPT_NAME'])){$_REQUEST=get_defined_vars();$_SERVER=$HTTP_SERVER_VARS;}$_REQUEST=secureArray($_REQUEST);function serveMe($theString,$theFilename){$myFileSize=strlen($theString);if(!$theFilename){$theFilename="Undefined.txt";}$parts=pathinfo($theFilename);$mime="text/".$parts['extension'];header("Pragma: public");header("Expires: Thu,19 Nov 1981 08:52:00 GMT");header("Cache-Control: must-revalidate,post-check=0,pre-check=0");header("Cache-Control: no-store,no-cache,must-revalidate");header("Cache-Control: private");header("Content-Type: ".$mime);header("Content-Disposition: attachment; filename=".$theFilename.";" );header("Content-Transfer-Encoding: text");header("Content-Length: ".$myFileSize,false);print (stripslashes("$theString"));exit;}if(isset($_POST['data']) && isset($_POST['expecting'])){if($_POST['expecting']=="message"){print "php return this";}else{serveMe($_POST['data'],$_POST['filename']);}}if(!@getcwd ()){$wimpy_PATH['phys']=str_replace(slash,"/",dirname(__FILE__));}else{$wimpy_PATH['phys']=str_replace(slash,"/",getcwd ());}$Apathtome=explode("/",$_SERVER['PHP_SELF']);$wimpyPhp=array_pop($Apathtome);$wimpy_PATH['wwwroot']=$httpOption."://".$_SERVER['HTTP_HOST'];if($urlStyle==2){$wimpy_PATH['www']=$wimpy_PATH['wwwroot'].(implode("/",$Apathtome));$wimpy_PATH['wwwself']=$wimpy_PATH['wwwroot'].$_SERVER['PHP_SELF'];}else{$wimpy_PATH['www']=(implode("/",$Apathtome));$wimpy_PATH['wwwself']=$_SERVER['PHP_SELF'];}$wimpy_PATH['phys']=str_replace(slash,"/",$wimpy_PATH['phys']);$wimpy_PATH['phys']=str_replace("//","/",$wimpy_PATH['phys']);$tail=fromTheRoot($wimpy_PATH['wwwroot'].(implode("/",$Apathtome)));$wimpy_PATH['physroot']=substr($wimpy_PATH['phys'],0,strlen($wimpy_PATH['phys'])-strlen($tail));$Ahide_files=explode(",",$hide_files);$Ahide_folders=explode(",",$hide_folders);$Akeywords=explode(",",$hide_keywords);function checkKeyWords($Ahaystack,$needle){foreach($Ahaystack as $value){if(@stristr(strtolower($needle),strtolower($value))){return true;}}return false;}function GetDirArrayRecursive($dir,$filter=false) {global $Amedia_types,$Ahide_files,$Ahide_folders,$Akeywords;if($filter){$Afilter=$filter;}else{$Afilter=$Amedia_types;}$Afiles=array ();if(!$dir || $dir==""){$dir=".";}$handle=@opendir($dir);if($dir){if(is_dir($dir) ){while (false !==($entry=@readdir($handle))){if($entry!='.' && $entry!='..') {$entry=$dir.'/'.str_replace("\\","/",$entry);$pathinfo=path_parts($entry);if(is_dir($entry)) {if(!checkKeyWords($Ahide_folders,$pathinfo['filename']) && !checkKeyWords($Akeywords,$pathinfo['filename'])){$Afiles=array_merge($Afiles,GetDirArrayRecursive($entry,$Afilter));}}else{if(in_array(strtolower($pathinfo['ext']),$Afilter)){if(!checkKeyWords($Ahide_files,$pathinfo['filename']) && !checkKeyWords($Akeywords,$pathinfo['filename'])){$Afiles[]=$entry;}}}}}}}@closedir($handle);return $Afiles;}function printArray($theArray,$exit=false){print "<pre>";print_r($theArray);print "</pre>";if($exit){exit;}}function path_parts($thePath) {$thePath=stripslashes($thePath);$thePath=str_replace("\\","/",$thePath);$filepathA=explode("/",$thePath);$filename=array_pop($filepathA);$filepathB=explode(".",$filename);$extension=array_pop($filepathB);$basename=implode(".",$filepathB);$basePath=join("/",$filepathA);$Aret=array();$Aret['filename']=$filename;$Aret['ext']=$extension;$Aret['basename']=$basename;$Aret['basepath']=$basePath;return $Aret;}function fromTheRoot($theURL){global $wimpy_PATH;return substr( $theURL,strlen($wimpy_PATH['wwwroot']),strlen($theURL));}function printTEXT($theList){global $allowCrossDomainAccess;header("Pragma: public",false);header("Expires: Thu,19 Nov 1981 08:52:00 GMT",false);header("Cache-Control: must-revalidate,post-check=0,pre-check=0",false);header("Cache-Control: no-store,no-cache,must-revalidate",false);header("Content-Type: text/plain; charset=utf-8",false);print (utf8_encode($theList));exit;}function parseCSSforSelectors($file) {$text=file_get_contents($file);
                    
75$text=preg_replace('!/\*.*?\*/!s','',$text);$text=preg_replace('/{(.*?)}/si','',$text);$pattern='/([#|\.])([_a-z]+[_a-z0-9-]*)/mi';$arr=array();preg_match_all($pattern,$text,$arr);$unique=array_unique ( $arr[2] );$result=array();foreach($unique as $val){if( $val !="play" && $val !="pause" && $val !="loading" ){$result[]=$val;}}return $result;}if(@$_REQUEST["v"]){print "wimpy:".$wimpyVersion.";php:".phpversion();exit;} else if (@$_POST["o"]=="ok" || @$_REQUEST["o"]=="ok"){print "ok";exit;} else if (@$_POST["l"]=="buttons" || @$_REQUEST["l"]=="buttons"){$media_types="css";$Amedia_types=explode(",",$media_types);$fail=false;$Ahide_files=Array();$Ahide_folders=Array();$Akeywords=Array();$dir="./wimpy.buttons";$Afiles=GetDirArrayRecursive($dir);natcasesort($Afiles);$Aretval=Array();foreach($Afiles as $key=>$val){$parts=path_parts($val);$sels=parseCSSforSelectors($val);if(count($sels)>0){$item=Array();$item[]='"data":"'.$wimpy_PATH['www']."/".str_replace("./","",$val).'"';$item[]='"selectors":["'.implode('","',$sels).'"]';array_push( $Aretval,"{".implode(',',$item)."}" );}}$retval='['.implode(',',$Aretval).']';printTEXT($retval);exit;} else if (@$_POST["l"]=="skins" || @$_REQUEST["l"]=="skins"){$media_types="tsv";$Amedia_types=explode(",",$media_types);$fail=false;$Ahide_files=Array();$Ahide_folders=Array();$Akeywords=Array();$dir="";$Afiles=GetDirArrayRecursive($dir);natcasesort($Afiles);$Aretval=Array();foreach($Afiles as $key=>$val){$parts=path_parts($val);$item=Array();$item[]='"url":"'.$wimpy_PATH['www']."/".str_replace("./","",$val).'"';$jfile=file_get_contents($val);$Athumb=explode('"thumbnail"',$jfile);$thumbData="";if(@$Athumb[1]){$AthumbData=explode('"',$Athumb[1]);for($i=0;$i<count($AthumbData); $i++){$part=$AthumbData[$i];if(substr ($part,0,4)=="data"){$thumbData=$part;break;}}}if($thumbData){$item[]='"icon":"'.$thumbData.'"';}$item[]='"title":"'.str_replace("_"," ",$parts['basename']).'"';array_push( $Aretval,"{".implode(',',$item)."}" );}$retval='['.implode(',',$Aretval).']';printTEXT($retval);exit;}else{$redirectTo="wimpy.customizer.html";if (headers_sent()===false){header('Location: '.$redirectTo,true,302);}else{$page="";$page .='<!DOCTYPE html>'."\n";$page .='<html lang="en">'."\n";$page .='<head>'."\n";$page .='<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'."\n";$page .='<meta http-equiv="Location" content="'.$redirectTo.'">'."\n";$page .='<meta http-equiv="refresh" content="3;URL='.$redirectTo.'">'."\n";$page .='</head>'."\n";$page .='<body>'."\n";$page .='Redirecting to front end...<a href="'.$redirectTo.'">('.$redirectTo.')</a>'."\n";$page .='</body>'."\n";$page .='</html>'."\n";print ($page);}exit();}?>
                    
                
pdo_mysql_stmt_getcolumnmeta.php https://gitlab.com/iranjith4/hhvm | PHP | 295 lines
                    
1<?php
                    
2require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
                    
130	$row = $stmt->fetch(PDO::FETCH_ASSOC);
                    
131	$real_as_float = (false === stristr($row['_mode'], "REAL_AS_FLOAT")) ? false : true;
                    
132
                    
148
                    
149	test_meta($db, 120, 'BIGINT', -9223372036854775808, 'LONGLONG', ($is_mysqlnd) ? ((PHP_INT_SIZE == 4) ? PDO::PARAM_STR : PDO::PARAM_INT) : PDO::PARAM_STR);
                    
150	test_meta($db, 130, 'BIGINT UNSIGNED', 18446744073709551615, 'LONGLONG', ($is_mysqlnd) ? ((PHP_INT_SIZE == 4) ? PDO::PARAM_STR : PDO::PARAM_INT) : PDO::PARAM_STR);
                    
                
ViewHelper.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 256 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Form_Decorator_Abstract */
                    
22require_once 'Zend/Form/Decorator/Abstract.php';
                    
23
                    
41 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
42 * @version    $Id: ViewHelper.php 24594 2012-01-05 21:27:01Z matthew $
                    
43 */
                    
196            if ($element instanceof $type) {
                    
197                if (stristr($type, 'button')) {
                    
198                    $element->content = $element->getLabel();
                    
224        if (null === $view) {
                    
225            require_once 'Zend/Form/Decorator/Exception.php';
                    
226            throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object');
                    
                
php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
129  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
130  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
131})();
                    
                
misc.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 796 lines
                    
1<?php
                    
2/**
                    
38 function wpsc_add_new_user($user_login,$user_pass, $user_email) {
                    
39	require_once(ABSPATH . WPINC . '/registration.php');
                    
40	$errors = new WP_Error();
                    
125  // Only change the URL is we're viewing a WP e-Commerce page
                    
126  if(stristr($post->post_content,'[productspage]')) {
                    
127
                    
                
checkout.class.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1007 lines
                    
1<?php
                    
2/**
                    
73	global $wpsc_checkout;
                    
74	if(stristr($wpsc_checkout->checkout_item->unique_name, 'shipping') != false){
                    
75
                    
                
wp-shopping-cart.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 537 lines
                    
1<?php
                    
2/*
                    
46  $site_url_parts = parse_url($wpsc_siteurl);
                    
47  if(stristr($plugin_url_parts['host'], $site_url_parts['host']) && stristr($site_url_parts['host'], $plugin_url_parts['host'])) {
                    
48		$wpsc_plugin_url = str_replace("http://", "https://", $wpsc_plugin_url);
                    
64  load plugin text domain for get_text files. Plugin language will be the same 
                    
65  as wordpress language defined in wp-config.php line 67
                    
66*/
                    
110// start including the rest of the plugin here
                    
111require_once(WPSC_FILE_PATH.'/wpsc-includes/wpsc_query.php');
                    
112require_once(WPSC_FILE_PATH.'/wpsc-includes/variations.class.php');
                    
278foreach($nzshpcrt_merchant_list as $nzshpcrt_merchant) {
                    
279  if(stristr( $nzshpcrt_merchant , '.php' )) {
                    
280    //echo $nzshpcrt_merchant;
                    
292foreach($nzshpcrt_shipping_list as $nzshpcrt_shipping) {
                    
293	if(stristr( $nzshpcrt_shipping , '.php' )) {
                    
294		if($nzshpcrt_shipping == 'ups.php'){
                    
                
 

Source

Language