PageRenderTime 302ms queryTime 58ms sortTime 11ms getByIdsTime 79ms findMatchingLines 86ms

100+ results results for 'php trigger_error repo:cope/Sortables-CAPTCHA-Plugin' (302 ms)

Not the results you expected?
media.php https://github.com/inast/media.git | PHP | 462 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * PHP version 5
                    
11 * CakePHP version 1.2
                    
15 * @copyright  2007-2010 David Persson <davidpersson@gmx.de>
                    
16 * @license    http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 * @link       http://github.com/davidpersson/media
                    
46 * 	false - Disable version generation
                    
47 * 	true  - Creates versions (configured in plugin's `core.php`) of files on create
                    
48 *
                    
87			$message .= "The `base` option has been deprecated in favour of `baseDirectory`.";
                    
88			trigger_error($message, E_USER_NOTICE);
                    
89
                    
278				$message .= "`" . $File->name() . "` in `" . $Folder->pwd() . "`.";
                    
279				trigger_error($message, E_USER_NOTICE);
                    
280				continue;
                    
                
cache.php https://github.com/jasoneh/SMS-Can-.git | PHP | 532 lines
                    
4/**
                    
5 * Caching for CakePHP.
                    
6 *
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
19 * @package       cake
                    
24 * @lastmodified  $Date$
                    
25 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
26 */
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
63			if (!is_file($path.$file)) {
                    
64				trigger_error(sprintf(self::TEXT_Minify,$file));
                    
65				return $echo?NULL:FALSE;
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
281			// Can't establish connection
                    
282			trigger_error($text);
                    
283			return FALSE;
                    
485			// Sockets extension required
                    
486			trigger_error(sprintf(self::TEXT_PHPExt,'sockets'));
                    
487		// Default translations
                    
                
php.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})();
                    
                
poll_simple.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 404 lines
                    
27*/
                    
28global $portal_config, $config, $phpbb_root_path, $db, $user, $template, $phpEx;
                    
29// include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
                    
139	{
                    
140		redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id"));
                    
141	}
                    
179// General Viewtopic URL for return links
                    
180$viewtopic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;start=$start&amp;$u_sort_param");
                    
181
                    
370	$phpbb_seo->set_url($topic_data['forum_name'], $topic_data['forum_id'], $phpbb_seo->seo_static['forum']);
                    
371	$phpbb_seo->prepare_iurl($topic_data, 'topic', $topic_data['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$topic_data['forum_id']]);
                    
372	$phpbb_seo->set_user_url( $topic_data['username'], $topic_data['user_id'] );
                    
375	$portalvote_url = append_sid("{$phpbb_root_path}portal.$phpEx", 'f=' . $forum_id . '&amp;t=' . $topic_id);
                    
376	// $portalvote_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&amp;t=' . $topic_id);
                    
377	$viewtopic_url  = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&amp;t=' . $topic_id);
                    
                
yaf_route_regex.c https://gitlab.com/oytunistrator/yaf | C | 411 lines
                    
4  +----------------------------------------------------------------------+
                    
5  | This source file is subject to version 3.01 of the PHP license,      |
                    
6  | that is bundled with this package in the file LICENSE, and is        |
                    
7  | available through the world-wide-web at the following url:           |
                    
8  | http://www.php.net/license/3_01.txt                                  |
                    
9  | If you did not receive a copy of the PHP license and are unable to   |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
21
                    
22#include "php.h"
                    
23#include "ext/pcre/php_pcre.h"
                    
                
ucp_prefs.php https://github.com/karthikprashanth/mayalabs.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
103						$message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
                    
104						trigger_error($message);
                    
105					}
                    
225						$message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
                    
226						trigger_error($message);
                    
227					}
                    
                
graphics.php https://gitlab.com/fbi/razyo-api-server | PHP | 450 lines
                    
48		if ($len>6) {
                    
49			trigger_error(self::TEXT_Color);
                    
50			return FALSE;
                    
121		// Send output as PNG image
                    
122		if (PHP_SAPI!='cli' && !headers_sent()) {
                    
123			header(self::HTTP_Content.': image/png');
                    
143		imagefilter($img,IMG_FILTER_NEGATE);
                    
144		if (PHP_SAPI!='cli' && !headers_sent())
                    
145			header(self::HTTP_Content.': image/'.$ext[1]);
                    
210			imagecolortransparent($tmp,$bg);
                    
211			if (PHP_SAPI!='cli' && !headers_sent()) {
                    
212				header(self::HTTP_Content.': image/'.$ext[1]);
                    
433			// GD extension required
                    
434			trigger_error(sprintf(self::TEXT_PHPExt,'gd'));
                    
435		}
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
144			if ( empty( $attributes['name'] ) ) {
                    
145				trigger_error( sprintf( __( "Wrong name for shortcode:%s. Name required", "js_composer" ), $tag ) );
                    
146			} elseif ( empty( $attributes['base'] ) ) {
                    
146			} elseif ( empty( $attributes['base'] ) ) {
                    
147				trigger_error( sprintf( __( "Wrong base for shortcode:%s. Base required", "js_composer" ), $tag ) );
                    
148			} else {
                    
                
MDB2Store.php https://gitlab.com/ahsanullah716/auth_master | PHP | 413 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'MDB2.php';
                    
17
                    
20 */
                    
21require_once 'Auth/OpenID/Interface.php';
                    
22
                    
25 */
                    
26require_once 'Auth/OpenID.php';
                    
27
                    
30 */
                    
31require_once 'Auth/OpenID/Nonce.php';
                    
32
                    
                
DynamicRouter.php https://gitlab.com/guillaumev/alkarama | PHP | 387 lines
                    
1<?php
                    
2
                    
217    {
                    
218        @trigger_error(__METHOD__.'() is deprecated since version 1.3 and will be removed in 2.0. Use matchRequest() instead.', E_USER_DEPRECATED);
                    
219
                    
                
Error.php https://github.com/Rem122/Uthando-CMS.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
31 *
                    
32 * PHP versions 4 and 5
                    
33 *
                    
37 * @copyright 2005-2008 Laurent Laville
                    
38 * @license   http://www.opensource.org/licenses/bsd-license.php  New BSD License
                    
39 * @version   CVS: $Id: Error.php,v 1.11 2008/03/20 21:27:55 farell Exp $
                    
39 * @version   CVS: $Id: Error.php,v 1.11 2008/03/20 21:27:55 farell Exp $
                    
40 * @link      http://pear.php.net/package/HTML_Progress2
                    
41 * @since     File available since Release 2.0.0RC1
                    
43
                    
44require_once 'PEAR.php';
                    
45
                    
52 * @copyright 2005-2008 Laurent Laville
                    
53 * @license   http://www.opensource.org/licenses/bsd-license.php  New BSD License
                    
54 * @version   Release: 2.4.1
                    
                
function.html_select_date.php https://gitlab.com/ElvisAns/tiki | PHP | 360 lines
                    
1<?php
                    
2
                    
34 * Returning to the upstream version would not be too hard, but https://github.com/smarty-php/smarty/issues/384 needs solving first. Chealer 2017-08-14
                    
35 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
36 *      (Smarty online manual)
                    
71
                    
72    /* Should the select boxes be part of an array when returned from PHP?
                    
73         e.g. setting it to "birthday", would create "birthday[Day]",
                    
147                } else {
                    
148                    trigger_error("html_select_date: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
                    
149                }
                    
                
Emailer.php https://github.com/nopticon/hyd.git | PHP | 354 lines
                    
1<?php namespace App;
                    
2
                    
82        if (trim($template_file) == '') {
                    
83            trigger_error('No template file set');
                    
84        }
                    
96                if (!@file_exists(@realpath($tpl_file))) {
                    
97                    trigger_error('Could not find email template file :: ' . $template_file);
                    
98                }
                    
101            if (!($fd = @fopen($tpl_file, 'r'))) {
                    
102                trigger_error('Failed opening template file :: ' . $tpl_file);
                    
103            }
                    
233    // Encodes the given string for proper display for this encoding ... nabbed
                    
234    // from php.net and modified. There is an alternative encoding method which
                    
235    // may produce lesd output but it's questionable as to its worth in this
                    
                
ValidatorBuilder.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 387 lines
                    
1<?php
                    
2
                    
302    {
                    
303        @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. The validator will function without a property accessor.', E_USER_DEPRECATED);
                    
304
                    
320    {
                    
321        @trigger_error('The '.__METHOD__.' method is deprecated in version 2.7 and will be removed in version 3.0.', E_USER_DEPRECATED);
                    
322
                    
                
function.html_select_date.php https://github.com/jlesueur/zinc.git | PHP | 390 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
13/**
                    
15 */
                    
16require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
                    
17
                    
43 * 
                    
44 * @link http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
45 *      (Smarty online manual)
                    
82    $reverse_years = false;
                    
83    /* Should the select boxes be part of an array when returned from PHP?
                    
84       e.g. setting it to "birthday", would create "birthday[Day]",
                    
127                } else {
                    
128                    trigger_error("html_select_date: month_names must be an array of 12 strings", E_USER_NOTICE);
                    
129                }
                    
                
page.php https://github.com/luthercollege/reason_package.git | PHP | 359 lines
                    
1<?php
                    
2/**
                    
12 */
                    
13include_once('reason_header.php');
                    
14reason_include_once('classes/url/abstract.php');
                    
14reason_include_once('classes/url/abstract.php');
                    
15include_once(CARL_UTIL_INC . 'basic/url_funcs.php');
                    
16
                    
255						{
                    
256							trigger_error('a live owner site (should have id ' . $site_id . ') could not be found for page_id ' . $page_id);
                    
257							return false;
                    
261					{
                    
262						trigger_error('an owner site could not be found for page_id ' . $page_id);
                    
263						return false;
                    
277					{
                    
278						trigger_error('a live parent entity (should have id ' . $parent_id . ') could not be found for page_id ' . $page_id);
                    
279						return false;
                    
                
ReviewForm.php https://gitlab.com/mohamed_hussein/prodt | PHP | 323 lines
                    
1<?php
                    
2
                    
83    if (!$module_handler) {
                    
84      @trigger_error('Calling ' . __METHOD__ . ' without the $module_handler argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3136769', E_USER_DEPRECATED);
                    
85      $module_handler = \Drupal::service('module_handler');
                    
                
yaf_route_map.c https://gitlab.com/oytunistrator/yaf | C | 323 lines
                    
4  +----------------------------------------------------------------------+
                    
5  | This source file is subject to version 3.01 of the PHP license,      |
                    
6  | that is bundled with this package in the file LICENSE, and is        |
                    
7  | available through the world-wide-web at the following url:           |
                    
8  | http://www.php.net/license/3_01.txt                                  |
                    
9  | If you did not receive a copy of the PHP license and are unable to   |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
21
                    
22#include "php.h"
                    
23#include "ext/standard/php_smart_str.h" /* for smart_str */
                    
                
DebugClassLoader.php https://gitlab.com/puntodos/ean-landings | PHP | 318 lines
                    
1<?php
                    
2
                    
31    private static $deprecated = array();
                    
32    private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null');
                    
33    private static $darwinCache = array('/' => array('/', array()));
                    
44        if ($this->wasFinder) {
                    
45            @trigger_error('The '.__METHOD__.' method will no longer support receiving an object into its $classLoader argument in 3.0.', E_USER_DEPRECATED);
                    
46            $this->classLoader = array($classLoader, 'loadClass');
                    
81    {
                    
82        // Ensures we don't hit https://bugs.php.net/42098
                    
83        class_exists('Symfony\Component\Debug\ErrorHandler');
                    
135    {
                    
136        @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
                    
137
                    
187            if (in_array(strtolower($refl->getShortName()), self::$php7Reserved)) {
                    
188                @trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED);
                    
189            } elseif (preg_match('#\n \* @deprecated (.*?)\r?\n \*(?: @|/$)#s', $refl->getDocComment(), $notice)) {
                    
                
ReCaptcha.php https://bitbucket.org/juan_sanchez/aiyellow.git | PHP | 498 lines
                    
1<?php
                    
2/**
                    
168            $return = '';
                    
169            trigger_error($e->getMessage(), E_USER_WARNING);
                    
170        }
                    
                
ucp_pm.php https://github.com/naderman/phpbb-orchestra.git | PHP | 416 lines
                    
105					'S_NOT_LOGGED_IN'	=> ($user->data['user_id'] == ANONYMOUS) ? true : false,
                    
106					'CLICK_TO_VIEW'		=> sprintf($user->lang['CLICK_VIEW_PRIVMSG'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox') . '" onclick="jump_to_inbox(this.href); return false;">', '</a>'),
                    
107					'U_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox'),
                    
107					'U_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox'),
                    
108					'UA_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox', false))
                    
109				);
                    
131
                    
132				include($phpbb_root_path . 'includes/ucp/ucp_pm_compose.' . $phpEx);
                    
133				compose_pm($id, $mode, $action, $user_folders);
                    
374				{
                    
375					include($phpbb_root_path . 'includes/ucp/ucp_pm_viewfolder.' . $phpEx);
                    
376					view_folder($id, $mode, $folder_id, $folder);
                    
391
                    
392					include($phpbb_root_path . 'includes/ucp/ucp_pm_viewmessage.' . $phpEx);
                    
393					view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row);
                    
                
atomlib.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
101	/**
                    
102	 * PHP4 constructor.
                    
103	 */
                    
                
mysql.dbi.lib.php https://github.com/drbowen/openemr.git | PHP | 552 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package    PhpMyAdmin-DBI
                    
7 * @subpackage MySQL
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
12
                    
13require_once './libraries/logging.lib.php';
                    
14
                    
73{
                    
74    // N.B.: PHP's 'mysql' extension does not support
                    
75    // multi_queries so this function will always
                    
156        if ($is_controluser) {
                    
157            trigger_error(
                    
158                __(
                    
                
manager.php https://github.com/Marshalrusty/phpbb.git | PHP | 480 lines
                    
5* @copyright (c) 2014 phpBB Group
                    
6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
7*
                    
9
                    
10namespace phpbb\profilefields;
                    
11
                    
43	* Template object
                    
44	* @var \phpbb\template\template
                    
45	*/
                    
55	* User object
                    
56	* @var \phpbb\user
                    
57	*/
                    
81	*/
                    
82	public function __construct(\phpbb\auth\auth $auth, \phpbb\db\driver\driver_interface $db, \phpbb\event\dispatcher $dispatcher, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\di\service_collection $type_collection, \phpbb\user $user, $fields_table, $fields_language_table, $fields_data_table)
                    
83	{
                    
                
Exception.php https://github.com/pdclark/dropbox-404.git | PHP | 359 lines
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/3_0.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 <at> php <dot> net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
18// |          Bertrand Mansion <bmansion <at> mamasam <dot> com>                     |
                    
19// |          Greg Beaver <cellog <at> php <dot> net>                                |
                    
20// +----------------------------------------------------------------------+
                    
21//
                    
22// $Id: Exception.php, v 1.4.2.2 2004/12/31 19:01:52 cellog Exp $
                    
23
                    
138    /**
                    
139     * @param mixed $callback  - A valid php callback,  see php func is_callable()
                    
140     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
DibiFluent.php https://github.com/premiumcombination/nts.git | PHP | 502 lines
                    
1<?php
                    
2
                    
214		if ($remove) { // deprecated, use removeClause
                    
215			trigger_error(__METHOD__ . '(..., TRUE) is deprecated; use removeClause() instead.', E_USER_NOTICE);
                    
216			$this->cursor = NULL;
                    
484			$s .= 'By';
                    
485			trigger_error("Did you mean '$s'?", E_USER_NOTICE);
                    
486		}
                    
                
FileUploadForm.php https://gitlab.com/mohamed_hussein/prodt | PHP | 392 lines
                    
1<?php
                    
2
                    
96    if (!$file_repository) {
                    
97      @trigger_error('Calling ' . __METHOD__ . ' without the $file_repository argument is deprecated in drupal:9.3.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3223520', E_USER_DEPRECATED);
                    
98      $file_repository = \Drupal::service('file.repository');
                    
                
BigMath.php https://gitlab.com/x33n/ampache | PHP | 451 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
20 */
                    
21require_once 'Auth/OpenID/CryptUtil.php';
                    
22
                    
25 */
                    
26require_once 'Auth/OpenID.php';
                    
27
                    
39     *
                    
40     * @param integer $long The long number (can be a normal PHP
                    
41     * integer or a number created by one of the available long number
                    
49            $msg = __FUNCTION__ . " takes only positive integers.";
                    
50            trigger_error($msg, E_USER_ERROR);
                    
51            return null;
                    
                
Theme_Manager.class.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 380 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
4 *
                    
5 * @package PhpMyAdmin
                    
6 */
                    
9 *
                    
10 * @package PhpMyAdmin
                    
11 */
                    
107        if (! $this->checkTheme($GLOBALS['cfg']['ThemeDefault'])) {
                    
108            trigger_error(
                    
109                sprintf(
                    
148        if (! $this->checkTheme($theme)) {
                    
149            trigger_error(
                    
150                sprintf(
                    
202        // force a change of a dummy session variable to avoid problems
                    
203        // with the caching of phpmyadmin.css.php
                    
204        $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id);
                    
                
Esi.php https://gitlab.com/judielsm/Handora | PHP | 296 lines
                    
1<?php
                    
2
                    
31    private $contentTypes;
                    
32    private $phpEscapeMap = array(
                    
33        array('<?', '<%', '<s', '<S'),
                    
33        array('<?', '<%', '<s', '<S'),
                    
34        array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>', '<?php echo "<s"; ?>', '<?php echo "<S"; ?>'),
                    
35    );
                    
89    {
                    
90        @trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the hasSurrogateCapability() method instead.', E_USER_DEPRECATED);
                    
91
                    
219        $chunks = preg_split('#<esi\:include\s+(.*?)\s*(?:/|</esi\:include)>#', $content, -1, PREG_SPLIT_DELIM_CAPTURE);
                    
220        $chunks[0] = str_replace($this->phpEscapeMap[0], $this->phpEscapeMap[1], $chunks[0]);
                    
221
                    
239            ++$i;
                    
240            $chunks[$i] = str_replace($this->phpEscapeMap[0], $this->phpEscapeMap[1], $chunks[$i]);
                    
241            ++$i;
                    
                
acp_language.php https://github.com/VSEphpbb/phpbb.git | PHP | 466 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
34		global $config, $db, $user, $template;
                    
35		global $phpbb_root_path, $phpEx, $request;
                    
36
                    
38		{
                    
39			include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
                    
40		}
                    
164						{
                    
165							if (substr($relative_path, 0 - strlen($phpEx)) === $phpEx)
                    
166							{
                    
198				{
                    
199					trigger_error($user->lang['NO_LANG_ID'] . adm_back_link($this->u_action), E_USER_WARNING);
                    
200				}
                    
                
function.html_select_time.php https://gitlab.com/garabedian.kevin/web2TB | PHP | 364 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
13/**
                    
15 */
                    
16require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
                    
17
                    
24 *
                    
25 * @link http://www.smarty.net/manual/en/language.function.html.select.time.php {html_select_time}
                    
26 *          (Smarty online manual)
                    
144                } else {
                    
145                    trigger_error("html_select_date: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
                    
146                }
                    
                
class.pluggable.php https://github.com/Emaratilicious/Garden.git | PHP | 212 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
18 * @copyright 2009 Mark O'Sullivan
                    
19 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL
                    
20 * @package Garden
                    
171         if (!Gdn::PluginManager()->HasNewMethod($this->ClassName, $ReferenceMethodName))
                    
172            trigger_error(ErrorMessage('The "' . $this->ClassName . '" object does not have a "' . $ActualMethodName . '" method.', $this->ClassName, $ActualMethodName), E_USER_ERROR);
                    
173      }
                    
                
unicode.php https://github.com/fusenigk/mantisbt-1.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: unicode.php,v 1.2 2006/02/26 13:20:44 harryf Exp $
                    
4* Tools for conversion between UTF-8 and unicode
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
25* Returns false if the input string isn't a valid UTF-8 octet sequence
                    
26* and raises a PHP error at level E_USER_WARNING
                    
27* Note: this function has been modified slightly in this library to
                    
32* @see utf8_from_unicode
                    
33* @see http://hsivonen.iki.fi/php-utf8/
                    
34* @package utf8
                    
                
ReCaptcha.php https://github.com/StefanRHRO/SCRM.git | PHP | 513 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_Abstract */
                    
23require_once 'Zend/Service/Abstract.php';
                    
24
                    
25/** @see Zend_Json */
                    
26require_once 'Zend/Json.php';
                    
27
                    
28/** @see Zend_Service_ReCaptcha_Response */
                    
29require_once 'Zend/Service/ReCaptcha/Response.php';
                    
30
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
39 * @version    $Id: ReCaptcha.php 24224 2011-07-12 17:45:49Z matthew $
                    
40 */
                    
167            $return = '';
                    
168            trigger_error($e->getMessage(), E_USER_WARNING);
                    
169        }
                    
                
MailHide.php https://github.com/grjones/qframe.git | PHP | 351 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_ReCaptcha */
                    
23require_once 'Zend/Service/ReCaptcha.php';
                    
24
                    
32 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
33 * @version    $Id: MailHide.php 20108 2010-01-06 22:05:31Z matthew $
                    
34 */
                    
126        if (null === $this->_emailValidator) {
                    
127            require_once 'Zend/Validate/EmailAddress.php';
                    
128            $this->setEmailValidator(new Zend_Validate_EmailAddress());
                    
154            /** @see Zend_Service_ReCaptcha_MailHide_Exception */
                    
155            require_once 'Zend/Service/ReCaptcha/MailHide/Exception.php';
                    
156
                    
156
                    
157            throw new Zend_Service_ReCaptcha_MailHide_Exception('Use of the Zend_Service_ReCaptcha_MailHide component requires the mcrypt extension to be enabled in PHP');
                    
158        }
                    
                
HTMLPurifier.php https://gitlab.com/rsilveira1987/Expresso | PHP | 292 lines
                    
1<?php
                    
2
                    
126    {
                    
127        trigger_error(
                    
128            'HTMLPurifier->addFilter() is deprecated, use configuration directives' .
                    
                
ErrorHandler.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 301 lines
                    
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.Error
                    
68 * Using the built-in exception handling, you can log all the exceptions
                    
69 * that are dealt with by ErrorHandler by setting `Exception.log` to true in your core.php.
                    
70 * Enabling this will log every exception to CakeLog and the configured loggers.
                    
73 *
                    
74 * Error handler also provides the built in features for handling php errors (trigger_error).
                    
75 * While in debug mode, errors will be output to the screen using debugger. While in production mode,
                    
105 * @return void
                    
106 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
107 */
                    
                
Theme_Manager.class.php https://gitlab.com/albert925/lading-ach | PHP | 381 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 */
                    
12require_once './libraries/Theme.class.php';
                    
13
                    
15 *
                    
16 * @package phpMyAdmin
                    
17 */
                    
113        if (! $this->checkTheme($GLOBALS['cfg']['ThemeDefault'])) {
                    
114            trigger_error(
                    
115                sprintf($GLOBALS['strThemeDefaultNotFound'],
                    
151        if (! $this->checkTheme($theme)) {
                    
152            trigger_error(
                    
153                sprintf($GLOBALS['strThemeNotFound'], htmlspecialchars($theme)),
                    
206        // force a change of a dummy session variable to avoid problems
                    
207        // with the caching of phpmyadmin.css.php
                    
208        $_SESSION['PMA_Config']->set('theme-update', $this->theme->id);
                    
                
realplexor.php https://github.com/vinks/kohana-realplexor.git | PHP | 358 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
2/**
                    
3 * Dklab_Realplexor PHP API for Kohana.
                    
4 *
                    
226			{
                    
227				trigger_error("Cannot parse the event: \"$line\"");
                    
228				continue;
                    
296			if (@fwrite($fs, $data) === false)
                    
297				throw new Exception($php_errormsg);
                    
298				
                    
300			{
                    
301				throw new Exception($php_errormsg);
                    
302				break;
                    
307			if ($result === false)
                    
308				throw new Exception($php_errormsg);
                    
309				
                    
                
Exception.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 389 lines
                    
14 * @copyright  1997-2009 The Authors
                    
15 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
16 * @version    CVS: $Id: Exception.php 309057 2011-03-09 23:34:29Z dufuz $
                    
16 * @version    CVS: $Id: Exception.php 309057 2011-03-09 23:34:29Z dufuz $
                    
17 * @link       http://pear.php.net/package/PEAR_Exception
                    
18 * @since      File available since Release 1.0.0
                    
38 *
                    
39 * 3) Inherited properties from PHP Exception Class:
                    
40 *
                    
61 * <code>
                    
62 *  require_once 'PEAR/Exception.php';
                    
63 *
                    
148    /**
                    
149     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
150     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
LoggerOptionConverter.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 322 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * @package log4php
                    
19 */
                    
24 * @version $Revision: 822464 $ 
                    
25 * @package log4php
                    
26 * @subpackage helpers
                    
94		
                    
95		trigger_error("Could not convert ".var_export($value,1)." to boolean!", E_USER_WARNING);
                    
96		return $default;
                    
119	 * where <i>full_file_classname</i> means the class filename with path
                    
120	 * but without php extension, then the specified class' <i>toLevel()</i> method
                    
121	 * is called to process the specified level string; if no '#'
                    
                
EsmtpTransport.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 483 lines
                    
1<?php
                    
2
                    
336<<<<<<< HEAD
                    
337        trigger_error('Call to undefined method ' . $method, E_USER_ERROR);
                    
338    }
                    
342=======
                    
343        trigger_error('Call to undefined method '.$method, E_USER_ERROR);
                    
344    }
                    
                
UrlGenerator.php https://gitlab.com/reasonat/test8 | PHP | 341 lines
                    
1<?php
                    
2
                    
52     *
                    
53     * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars
                    
54     * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g.
                    
146        if (is_bool($referenceType) || is_string($referenceType)) {
                    
147            @trigger_error('The hardcoded value you are using for the $referenceType argument of the '.__CLASS__.'::generate method is deprecated since version 2.8 and will not be supported anymore in 3.0. Use the constants defined in the UrlGeneratorInterface instead.', E_USER_DEPRECATED);
                    
148
                    
                
php.js https://gitlab.com/adamlwalker/generatedata | 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})();
                    
                
function.html_select_date.php https://gitlab.com/staging06/myproject | PHP | 387 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
13/**
                    
15 */
                    
16require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
                    
17
                    
41 *
                    
42 * @link     http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
43 *           (Smarty online manual)
                    
81    $reverse_years = false;
                    
82    /* Should the select boxes be part of an array when returned from PHP?
                    
83       e.g. setting it to "birthday", would create "birthday[Day]",
                    
126                } else {
                    
127                    trigger_error("html_select_date: month_names must be an array of 12 strings", E_USER_NOTICE);
                    
128                }
                    
                
ImageSize.php https://github.com/grandison/budo16.git | PHP | 370 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: ImageSize.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
20 */
                    
24 */
                    
25// require_once 'Zend/Validate/Abstract.php';
                    
26
                    
134        } elseif (1 < func_num_args()) {
                    
135            trigger_error('Multiple constructor options are deprecated in favor of a single options array', E_USER_NOTICE);
                    
136            if (!is_array($options)) {
                    
148        } else if (!is_array($options)) {
                    
149            // require_once 'Zend/Validate/Exception.php';
                    
150            throw new Zend_Validate_Exception ('Invalid options to validator provided');
                    
213            if (($this->_maxwidth !== null) and ($options['minwidth'] > $this->_maxwidth)) {
                    
214                // require_once 'Zend/Validate/Exception.php';
                    
215                throw new Zend_Validate_Exception("The minimum image width must be less than or equal to the "
                    
                
InstalledVersions.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 337 lines
                    
1<?php
                    
2
                    
240    /**
                    
241     * Returns the raw installed.php data for custom implementations
                    
242     *
                    
248    {
                    
249        @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
                    
250
                    
251        if (null === self::$installed) {
                    
252            // only require the installed.php file if this file is loaded from its dumped location,
                    
253            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
                    
254            if (substr(__DIR__, -8, 1) !== 'C') {
                    
255                self::$installed = include __DIR__ . '/installed.php';
                    
256            } else {
                    
264    /**
                    
265     * Returns the raw data of all installed.php which are currently loaded for custom implementations
                    
266     *
                    
                
ReCaptcha.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 513 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_Abstract */
                    
23require_once 'Zend/Service/Abstract.php';
                    
24
                    
25/** @see Zend_Json */
                    
26require_once 'Zend/Json.php';
                    
27
                    
28/** @see Zend_Service_ReCaptcha_Response */
                    
29require_once 'Zend/Service/ReCaptcha/Response.php';
                    
30
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
39 * @version    $Id: ReCaptcha.php 24594 2012-01-05 21:27:01Z matthew $
                    
40 */
                    
167            $return = '';
                    
168            trigger_error($e->getMessage(), E_USER_WARNING);
                    
169        }
                    
                
ThemeManager.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 528 lines
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
12/**
                    
13 * phpMyAdmin theme manager
                    
14 *
                    
14 *
                    
15 * @package PhpMyAdmin
                    
16 */
                    
201        if (! $this->checkTheme($theme)) {
                    
202            trigger_error(
                    
203                sprintf(
                    
265        // force a change of a dummy session variable to avoid problems
                    
266        // with the caching of phpmyadmin.css.php
                    
267        $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id);
                    
                
yaf_route_simple.c https://gitlab.com/oytunistrator/yaf | C | 257 lines
                    
4  +----------------------------------------------------------------------+
                    
5  | This source file is subject to version 3.01 of the PHP license,      |
                    
6  | that is bundled with this package in the file LICENSE, and is        |
                    
7  | available through the world-wide-web at the following url:           |
                    
8  | http://www.php.net/license/3_01.txt                                  |
                    
9  | If you did not receive a copy of the PHP license and are unable to   |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
21
                    
22#include "php.h"
                    
23
                    
                
Mail.php https://github.com/taste/zf2.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
263            } catch (\Exception $e) {
                    
264                trigger_error(
                    
265                    "exception occurred when rendering layout; " .
                    
279        } catch (\Exception $e) {
                    
280            trigger_error(
                    
281                "unable to send log entries via email; " .
                    
                
Lexer.php https://gitlab.com/rsilveira1987/Expresso | PHP | 357 lines
                    
1<?php
                    
2
                    
72            $lexer = $config;
                    
73            trigger_error(
                    
74                "Passing a prototype to
                    
136
                    
137        // once PHP DOM implements native line numbers, or we
                    
138        // hack out something using XSLT, remove this stipulation
                    
224    {
                    
225        trigger_error('Call to abstract class', E_USER_ERROR);
                    
226    }
                    
                
ReCaptcha.php https://bitbucket.org/yeahyahoo/yeahyahoo.bitbucket.org.git | PHP | 513 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_Abstract */
                    
23require_once 'Zend/Service/Abstract.php';
                    
24
                    
25/** @see Zend_Json */
                    
26require_once 'Zend/Json.php';
                    
27
                    
28/** @see Zend_Service_ReCaptcha_Response */
                    
29require_once 'Zend/Service/ReCaptcha/Response.php';
                    
30
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
39 * @version    $Id: ReCaptcha.php 24593 2012-01-05 20:35:02Z matthew $
                    
40 */
                    
167            $return = '';
                    
168            trigger_error($e->getMessage(), E_USER_WARNING);
                    
169        }
                    
                
favicon.php https://github.com/RomanSixty/Feed-on-Feeds.git | PHP | 337 lines
                    
1<?php
                    
2/**	Locate a suitable favicon for a site.
                    
97			$status = (integer)$status;
                    
98			trigger_error('site \'' . $this->site_url . '\' returned ' . $status, E_USER_NOTICE);
                    
99			return false;
                    
192		if ($icon['data'] === false) {
                    
193			trigger_error('failed to get icon resource \'' . $url .'\'', E_USER_NOTICE);
                    
194			return null;
                    
201		if ($status !== 200) {
                    
202			trigger_error('icon resource \'' . $url . '\' returned ' . $status, E_USER_NOTICE);
                    
203			return null;
                    
206		if (empty($icon['data'])) {
                    
207			trigger_error('icon resource \'' . $url . '\' is empty', E_USER_NOTICE);
                    
208			return null;
                    
226					/* really not an image */
                    
227					trigger_error('icon resource \'' . $url . '\' is not an image', E_USER_NOTICE);
                    
228					return null;
                    
                
ClassRegistry.php https://github.com/gustavor/lore.git | PHP | 341 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Utility
                    
17 * @package       Cake.Utility
                    
18 * @since         CakePHP(tm) v 0.9.2
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
154					if (!isset(${$class})) {
                    
155						trigger_error(__d('cake_dev', '(ClassRegistry::init() could not create instance of %1$s class %2$s ', $class, $type), E_USER_WARNING);
                    
156						return $false;
                    
                
php-brief.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 162 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * php-brief.php
                    
4 * -------------
                    
11 *
                    
12 * PHP language file for GeSHi (brief version).
                    
13 *
                    
50$language_data = array (
                    
51	'LANG_NAME' => 'PHP',
                    
52	'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
                    
64			'null', '__LINE__', '__FILE__',
                    
65			'false', '&lt;?php', '?&gt;',
                    
66			'true', 'var', 'default',
                    
72			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
                    
73			'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',
                    
74			'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',
                    
                
MailHide.php https://bitbucket.org/haichau59/manga.git | PHP | 351 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_ReCaptcha */
                    
23//require_once 'Zend/Service/ReCaptcha.php';
                    
24
                    
32 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
33 * @version    $Id: MailHide.php 24594 2012-01-05 21:27:01Z matthew $
                    
34 */
                    
126        if (null === $this->_emailValidator) {
                    
127            //require_once 'Zend/Validate/EmailAddress.php';
                    
128            $this->setEmailValidator(new Zend_Validate_EmailAddress());
                    
154            /** @see Zend_Service_ReCaptcha_MailHide_Exception */
                    
155            //require_once 'Zend/Service/ReCaptcha/MailHide/Exception.php';
                    
156
                    
156
                    
157            throw new Zend_Service_ReCaptcha_MailHide_Exception('Use of the Zend_Service_ReCaptcha_MailHide component requires the mcrypt extension to be enabled in PHP');
                    
158        }
                    
                
Config_File.class.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 389 lines
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php,v 1.88 2007/03/06 10:40:06 messju Exp $ */
                    
29
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
88                $this->_trigger_error_msg("Bad config file path '$config_path'");
                    
89                return;
                    
175        if (!isset($this->_config_data[$file_name])) {
                    
176            $this->_trigger_error_msg("Unknown config file '$file_name'");
                    
177            return;
                    
377    /**
                    
378     * @uses trigger_error() creates a PHP warning/error
                    
379     * @param string $error_msg
                    
                
Config_File.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 389 lines
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php 2702 2007-03-08 19:11:22Z mohrt $ */
                    
29
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
88                $this->_trigger_error_msg("Bad config file path '$config_path'");
                    
89                return;
                    
175        if (!isset($this->_config_data[$file_name])) {
                    
176            $this->_trigger_error_msg("Unknown config file '$file_name'");
                    
177            return;
                    
377    /**
                    
378     * @uses trigger_error() creates a PHP warning/error
                    
379     * @param string $error_msg
                    
                
ReCaptcha.php https://bitbucket.org/haichau59/manga.git | PHP | 513 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_Abstract */
                    
23//require_once 'Zend/Service/Abstract.php';
                    
24
                    
25/** @see Zend_Json */
                    
26//require_once 'Zend/Json.php';
                    
27
                    
28/** @see Zend_Service_ReCaptcha_Response */
                    
29//require_once 'Zend/Service/ReCaptcha/Response.php';
                    
30
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
39 * @version    $Id: ReCaptcha.php 24594 2012-01-05 21:27:01Z matthew $
                    
40 */
                    
167            $return = '';
                    
168            trigger_error($e->getMessage(), E_USER_WARNING);
                    
169        }
                    
                
date.php https://github.com/Hackwar/joomla-platform.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
181				$trace = debug_backtrace();
                    
182				trigger_error(
                    
183					'Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'],
                    
252	 *
                    
253	 * @param   string   $format     The date format specification string (see {@link PHP_MANUAL#date})
                    
254	 * @param   boolean  $local      True to return the date string in the local time zone, false to return it in GMT.
                    
268	 *
                    
269	 * @param   string   $format     The date format specification string (see {@link PHP_MANUAL#date})
                    
270	 * @param   boolean  $local      True to return the date string in the local time zone, false to return it in GMT.
                    
391	 * @since   11.1
                    
392	 * @note    This method can't be type hinted due to a PHP bug: https://bugs.php.net/bug.php?id=61483
                    
393	 */
                    
                
ErrorHandler.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 282 lines
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 0.10.5.1732
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
75 *
                    
76 * Error handler also provides the built in features for handling php errors (trigger_error).
                    
77 * While in debug mode, errors will be output to the screen using debugger. While in production mode,
                    
107 * @return void
                    
108 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
109 */
                    
                
utils.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 506 lines
                    
18	foreach ( get_vendor_paths() as $vendor_path ) {
                    
19		if ( file_exists( $vendor_path . '/autoload.php' ) ) {
                    
20			require $vendor_path . '/autoload.php';
                    
44function load_command( $name ) {
                    
45	$path = WP_CLI_ROOT . "/php/commands/$name.php";
                    
46
                    
52function load_all_commands() {
                    
53	$cmd_dir = WP_CLI_ROOT . '/php/commands';
                    
54
                    
189	if ( null === $path ) {
                    
190		if ( file_exists( ABSPATH . 'wp-config.php' ) )
                    
191			$path = ABSPATH . 'wp-config.php';
                    
191			$path = ABSPATH . 'wp-config.php';
                    
192		elseif ( file_exists( ABSPATH . '../wp-config.php' ) && ! file_exists( ABSPATH . '/../wp-settings.php' ) )
                    
193			$path = ABSPATH . '../wp-config.php';
                    
                
HeadMeta.php https://gitlab.com/jalon/doadoronline | PHP | 456 lines
                    
1<?php
                    
2/**
                    
67     *
                    
68     * Set separator to PHP_EOL
                    
69     *
                    
74
                    
75        $this->setSeparator(PHP_EOL);
                    
76    }
                    
178        } catch (Exception\InvalidArgumentException $e) {
                    
179            trigger_error($e->getMessage(), E_USER_WARNING);
                    
180            return '';
                    
                
Exception.php https://github.com/axxtel/agilebill.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
LanguageFactory.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 198 lines
                    
1<?php
                    
2
                    
94
                    
95        $pcode = str_replace('-', '_', $code); // make valid PHP classname
                    
96        static $depth = 0; // recursion protection
                    
101            $class = 'HTMLPurifier_Language_' . $pcode;
                    
102            $file  = $this->dir . '/Language/classes/' . $code . '.php';
                    
103            if (file_exists($file) || class_exists($class, false)) {
                    
144        // generate filename
                    
145        $filename = $this->dir . '/Language/messages/' . $code . '.php';
                    
146
                    
152            // skip the include: will rely solely on fallback
                    
153            $filename = $this->dir . '/Language/messages/en.php';
                    
154            $cache = array();
                    
164            if (isset($languages_seen[$code])) {
                    
165                trigger_error('Circular fallback reference in language ' .
                    
166                    $code, E_USER_ERROR);
                    
                
base.php https://github.com/bermi/sintags.git | PHP | 367 lines
                    
1<?php
                    
2
                    
77 *
                    
78 * The AkConfig class caches php representations of the yaml files inside:
                    
79 *
                    
133            if($fail_if_not_found){
                    
134                trigger_error(Ak::t('Can\'t find path for directory %dir', array('%dir'=>$type)).' '.Ak::getFileAndNumberTextForError(1), E_USER_ERROR);
                    
135            }else{
                    
211            if($raise_error_if_config_file_not_found){
                    
212                trigger_error(Ak::t('Could not find %namespace settings file in %path.', array('%namespace'=>$namespace, '%path'=>$yaml_file_name)).' '.Ak::getFileAndNumberTextForError(1)."\n", E_USER_ERROR);
                    
213            }
                    
219    public function readConfigYaml($namespace, $yaml_string, $environment = AK_ENVIRONMENT){
                    
220        require_once(AK_CONTRIB_DIR.DS.'TextParsers'.DS.'spyc.php');
                    
221        $content = self::parseSettingsConstants($yaml_string);
                    
245    static function getCacheFileName($namespace, $environment = AK_ENVIRONMENT) {
                    
246        return AkConfig::getCacheBasePath($environment).DS.'ak_config'.DS.'cache'.DS.$environment.DS.Ak::sanitize_include($namespace, 'high').'.php';
                    
247    }
                    
                
HTMLModuleManager.php https://github.com/rtdean93/tbytam.git | PHP | 403 lines
                    
1<?php
                    
2
                    
159                if (!class_exists($module)) {
                    
160                    trigger_error($original_module . ' module does not exist',
                    
161                        E_USER_ERROR);
                    
167        if (empty($module->name)) {
                    
168            trigger_error('Module instance of ' . get_class($module) . ' must have name');
                    
169            return;
                    
171        if (!$overload && isset($this->registeredModules[$module->name])) {
                    
172            trigger_error('Overloading ' . $module->name . ' without explicit overload parameter', E_USER_WARNING);
                    
173        }
                    
                
categories.php https://github.com/Lurttinen/customisation-db.git | PHP | 357 lines
                    
183			'CATEGORY_VISIBLE' 				=> $category_object->category_visible,
                    
184			'SECTION_NAME'					=> ($action == 'add') ? phpbb::$user->lang['CREATE_CATEGORY'] : phpbb::$user->lang['EDIT_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$old_category_name])) ? phpbb::$user->lang[$old_category_name] : $old_category_name),
                    
185
                    
272			'CATEGORY_NAME'					=> (isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name,
                    
273			'SECTION_NAME'					=> phpbb::$user->lang['DELETE_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name),
                    
274			'S_HAS_SUBCATS'					=> ($category_object->right_id - $category_object->left_id > 1) ? true : false,
                    
312				titania::generate_breadcrumbs(array(
                    
313					((isset(phpbb::$user->lang[$categories_ary[$row['category_id']]['category_name']])) ? phpbb::$user->lang[$categories_ary[$row['category_id']]['category_name']] : $categories_ary[$row['category_id']]['category_name'])	=> titania_url::build_url('manage/categories', array('c' => $row['category_id'])),
                    
314				), $block = 'nav_categories');
                    
326		phpbb::$template->assign_vars(array(
                    
327			'ICON_MOVE_UP'			=> '<img src="' . titania::$images_path . 'icon_up.gif" alt="' . phpbb::$user->lang['MOVE_UP'] . '" title="' . phpbb::$user->lang['MOVE_UP'] . '" />',
                    
328			'ICON_MOVE_UP_DISABLED'		=> '<img src="' . titania::$images_path . 'icon_up_disabled.gif" alt="' . phpbb::$user->lang['MOVE_UP'] . '" title="' . phpbb::$user->lang['MOVE_UP'] . '" />',
                    
346{
                    
347	$message = (isset(phpbb::$user->lang[$message])) ? phpbb::$user->lang[$message] : $message;
                    
348
                    
                
ThemeInitialization.php https://gitlab.com/mohamed_hussein/prodt | PHP | 365 lines
                    
1<?php
                    
2
                    
118          // some people might experience slight visual regressions on
                    
119          // update.php.
                    
120          continue;
                    
142      if (function_exists($theme_engine . '_init')) {
                    
143        @trigger_error('THEME_ENGINE_init() is deprecated in drupal:9.3.0 and removed in drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3246978', E_USER_DEPRECATED);
                    
144        foreach ($active_theme->getBaseThemeExtensions() as $base) {
                    
345      if (!empty($base->info['stylesheets-remove'])) {
                    
346        @trigger_error('The theme info key stylesheets-remove implemented by theme ' . $base->getName() . ' is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/2497313', E_USER_DEPRECATED);
                    
347        foreach ($base->info['stylesheets-remove'] as $css_file) {
                    
355    if (!empty($theme->info['stylesheets-remove'])) {
                    
356      @trigger_error('The theme info key stylesheets-remove implemented by theme ' . $theme->getName() . ' is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/2497313', E_USER_DEPRECATED);
                    
357      foreach ($theme->info['stylesheets-remove'] as $css_file) {
                    
                
changelog_page.php https://github.com/fusenigk/mantisbt-1.git | PHP | 357 lines
                    
23 * @uses core.php
                    
24 * @uses access_api.php
                    
25 * @uses authentication_api.php
                    
25 * @uses authentication_api.php
                    
26 * @uses bug_api.php
                    
27 * @uses category_api.php
                    
49require_once( 'core.php' );
                    
50require_api( 'access_api.php' );
                    
51require_api( 'authentication_api.php' );
                    
67require_api( 'user_api.php' );
                    
68require_api( 'utility_api.php' );
                    
69require_api( 'version_api.php' );
                    
80
                    
81	$t_release_title = '<a href="changelog_page.php?project_id=' . $t_project_id . '">' . string_display_line( $t_project_name ) . '</a> - <a href="changelog_page.php?version_id=' . $p_version_id . '">' . string_display_line( $t_version_name ) . '</a>';
                    
82
                    
                
BlockMacros.php https://gitlab.com/adam.kvita/MI-VMM-SIFT | PHP | 407 lines
                    
75				$functions[$name] = $this->generateMethodName($name),
                    
76				'?>' . $compiler->expandTokens($code) . '<?php',
                    
77				'$_args'
                    
156	 */
                    
157	public function macroImport(MacroNode $node, PhpWriter $writer)
                    
158	{
                    
239				$this->checkExtraArgs($node);
                    
240				return $writer->write("?>\n<$tag id=\"<?php echo htmlSpecialChars(\$this->global->snippetDriver->getHtmlId({$writer->formatWord($name)})) ?>\"><?php " . $enterCode);
                    
241
                    
295			$this->checkExtraArgs($node);
                    
296			return $writer->write("?>\n<$tag id=\"<?php echo htmlSpecialChars(\$this->global->snippetDriver->getHtmlId(%var)) ?>\"><?php $include ?>\n</$tag><?php ",
                    
297				(string) substr($name, 1), $name
                    
376	 */
                    
377	public function macroIfset(MacroNode $node, PhpWriter $writer)
                    
378	{
                    
                
YamlFileLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 236 lines
                    
1<?php
                    
2
                    
84
                    
85                @trigger_error(sprintf('The "pattern" option in file "%s" is deprecated since version 2.2 and will be removed in 3.0. Use the "path" option in the route definition instead.', $path), E_USER_DEPRECATED);
                    
86
                    
134            unset($requirements['_method']);
                    
135            @trigger_error(sprintf('The "_method" requirement of route "%s" in file "%s" is deprecated since version 2.2 and will be removed in 3.0. Use the "methods" option instead.', $name, $path), E_USER_DEPRECATED);
                    
136        }
                    
143            unset($requirements['_scheme']);
                    
144            @trigger_error(sprintf('The "_scheme" requirement of route "%s" in file "%s" is deprecated since version 2.2 and will be removed in 3.0. Use the "schemes" option instead.', $name, $path), E_USER_DEPRECATED);
                    
145        }
                    
                
Config_File.class.php https://github.com/usagi-project/mynets1.git | PHP | 389 lines
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php,v 1.84 2006/01/18 19:02:52 mohrt Exp $ */
                    
29
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
88                $this->_trigger_error_msg("Bad config file path '$config_path'");
                    
89                return;
                    
175        if (!isset($this->_config_data[$file_name])) {
                    
176            $this->_trigger_error_msg("Unknown config file '$file_name'");
                    
177            return;
                    
377    /**
                    
378     * @uses trigger_error() creates a PHP warning/error
                    
379     * @param string $error_msg
                    
                
class.database.php https://github.com/abhishekmica/Garden.git | PHP | 357 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
16 * @copyright 2003 Mark O'Sullivan
                    
17 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL
                    
18 * @version @@GARDEN-VERSION@@
                    
60         } catch (Exception $ex) {
                    
61            trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
                    
62         }
                    
209      if ($Sql == '')
                    
210         trigger_error(ErrorMessage('Database was queried with an empty string.', $this->ClassName, 'Query'), E_USER_ERROR);
                    
211
                    
277         if (!is_object($PDOStatement)) {
                    
278            trigger_error(ErrorMessage('PDO Statement failed to prepare', $this->ClassName, 'Query', $this->GetPDOErrorMessage($this->Connection()->errorInfo())), E_USER_ERROR);
                    
279         } else if ($PDOStatement->execute($InputParameters) === FALSE) {
                    
279         } else if ($PDOStatement->execute($InputParameters) === FALSE) {
                    
280            trigger_error(ErrorMessage($this->GetPDOErrorMessage($PDOStatement->errorInfo()), $this->ClassName, 'Query', $Sql), E_USER_ERROR);
                    
281         }
                    
                
YamlFileLoader.php https://gitlab.com/reasonat/test8 | PHP | 407 lines
                    
1<?php
                    
2// @codingStandardsIgnoreFile
                    
163            if ('request' !== $id) {
                    
164                @trigger_error(sprintf('The "scope" key of service "%s" in file "%s" is deprecated since version 2.8 and will be removed in 3.0.', $id, $file), E_USER_DEPRECATED);
                    
165            }
                    
                
diff.inc.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 298 lines
                    
1<?php // $Id: lib.diff.php,v 1.12 2005/11/18 20:25:11 zefredz Exp $
                    
2    // vim: expandtab sw=4 ts=4 sts=4:
                    
245        *
                    
246        * @link        http://php.net/function.array_diff_assoc
                    
247        * @author      Aidan Lister <aidan@php.net>
                    
247        * @author      Aidan Lister <aidan@php.net>
                    
248        * @since       PHP 4.3.0
                    
249        * @require     PHP 4.0.0 (user_error)
                    
257            {
                    
258                trigger_error('Wrong parameter count for array_diff_assoc()', E_USER_WARNING );
                    
259                return;
                    
266                {
                    
267                    trigger_error('array_diff_assoc() Argument #' . ($i + 1) . ' is not an array', E_USER_WARNING );
                    
268                    return;
                    
                
assets.php https://github.com/luthercollege/reason_package.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
9  */
                    
10	reason_include_once( 'minisite_templates/modules/default.php' );
                    
11	reason_include_once( 'function_libraries/asset_functions.php' );
                    
11	reason_include_once( 'function_libraries/asset_functions.php' );
                    
12	reason_include_once('classes/group_helper.php');
                    
13
                    
16	 */
                    
17	$GLOBALS[ '_module_class_names' ][ basename( __FILE__, '.php' ) ] = 'AssetsModule';
                    
18	
                    
51			{
                    
52				trigger_error('limit_by_page_categories is a deprecated parameter. Use organize_by_page_categories instead.' );
                    
53				$this->params['organize_by_page_categories'] = $this->params['limit_by_page_categories'];
                    
186				
                    
187				include_once(CARL_UTIL_INC.'pdf/pdf_utils.php');
                    
188				$merged = carl_merge_pdfs($pdf_files, $titles);
                    
                
YamlFileLoader.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 421 lines
                    
1<?php
                    
2
                    
174        if (isset($service['synchronized'])) {
                    
175            trigger_error(sprintf('The "synchronized" key in file "%s" is deprecated since version 2.7 and will be removed in 3.0.', $file), E_USER_DEPRECATED);
                    
176            $definition->setSynchronized($service['synchronized'], 'request' !== $id);
                    
204        if (isset($service['factory_class'])) {
                    
205            trigger_error(sprintf('The "factory_class" key in file "%s" is deprecated since version 2.6 and will be removed in 3.0. Use "factory" instead.', $file), E_USER_DEPRECATED);
                    
206            $definition->setFactoryClass($service['factory_class']);
                    
209        if (isset($service['factory_method'])) {
                    
210            trigger_error(sprintf('The "factory_method" key in file "%s" is deprecated since version 2.6 and will be removed in 3.0. Use "factory" instead.', $file), E_USER_DEPRECATED);
                    
211            $definition->setFactoryMethod($service['factory_method']);
                    
214        if (isset($service['factory_service'])) {
                    
215            trigger_error(sprintf('The "factory_service" key in file "%s" is deprecated since version 2.6 and will be removed in 3.0. Use "factory" instead.', $file), E_USER_DEPRECATED);
                    
216            $definition->setFactoryService($service['factory_service']);
                    
                
ModelFactory.php https://github.com/drobbins/s3db.git | PHP | 288 lines
                    
1<?php
                    
2require_once RDFAPI_INCLUDE_DIR . 'model/DbStore.php';
                    
47	{
                    
48        require_once RDFAPI_INCLUDE_DIR . 'dataset/DatasetMem.php';
                    
49		$m = new DatasetMem($graphSetId);
                    
62	{
                    
63        require_once RDFAPI_INCLUDE_DIR . 'model/MemModel.php';
                    
64		$m = new MemModel($baseURI);
                    
69	* Returns a DbModel with the database connection
                    
70	* defined in constants.php.
                    
71	* You can supply a base URI. If a model with the given base
                    
108	* Returns a database connection with the given parameters.
                    
109	* Paramters, which are not defined are taken from the constants.php
                    
110	*
                    
128	* (MemModel with forward chaining inference engine)
                    
129	* Configurations can be done in constants.php
                    
130	* You can supply a base URI
                    
                
plugin.php https://github.com/laposa/onxshop.git | PHP | 365 lines
                    
1<?php
                    
2
                    
12	
                    
13	function _findRootClass($class) { // is_subclass_of(string, string) is available since PHP 5.0.3
                    
14		do {
                    
50					case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break;
                    
51					default: trigger_error('Too many parameters.', E_USER_WARNING);
                    
52				}
                    
                
shadow_plugin_framework.php https://github.com/ChildsD/Chemistry.git | PHP | 356 lines
                    
1<?php
                    
2
                    
18
                    
19//Load JSON functions for PHP < 5.2
                    
20if ( !(function_exists('json_encode') && function_exists('json_decode')) && !(class_exists('Services_JSON') || class_exists('Moxiecode_JSON')) ){
                    
20if ( !(function_exists('json_encode') && function_exists('json_decode')) && !(class_exists('Services_JSON') || class_exists('Moxiecode_JSON')) ){
                    
21	$class_json_path = ABSPATH.WPINC.'/class-json.php';
                    
22	$class_moxiecode_json_path = ABSPATH.WPINC.'/js/tinymce/plugins/spellchecker/classes/utils/JSON.php';
                    
195    	} else {
                    
196    		trigger_error('No JSON parser available', E_USER_ERROR);
                    
197    	}    
                    
216    	} else {
                    
217    		trigger_error('No JSON parser available', E_USER_ERROR);
                    
218   		}        
                    
                
Config_File.class.php https://github.com/ECP-Black/ECP.git | PHP | 389 lines
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php,v 1.87 2006/12/01 15:40:05 mohrt Exp $ */
                    
29
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
88                $this->_trigger_error_msg("Bad config file path '$config_path'");
                    
89                return;
                    
175        if (!isset($this->_config_data[$file_name])) {
                    
176            $this->_trigger_error_msg("Unknown config file '$file_name'");
                    
177            return;
                    
377    /**
                    
378     * @uses trigger_error() creates a PHP warning/error
                    
379     * @param string $error_msg
                    
                
KVForm.php https://github.com/Mercedes/openid-server.git | PHP | 259 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'PHPUnit.php';
                    
17require_once 'Auth/OpenID/KVForm.php';
                    
29
                    
30class Tests_Auth_OpenID_KVForm_TestCase extends PHPUnit_TestCase {
                    
31    var $errs;
                    
50    {
                    
51        trigger_error('Must be overridden', E_USER_ERROR);
                    
52    }
                    
112
                    
113class Tests_Auth_OpenID_KVForm extends PHPUnit_TestSuite {
                    
114    function Tests_Auth_OpenID_KVForm($name)
                    
                
AclComponent.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 179 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @package       Cake.Controller.Component
                    
12 * @package       Cake.Controller.Component
                    
13 * @since         CakePHP(tm) v 0.10.0.1076
                    
14 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
22 * Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
                    
23 * You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. Concrete ACL
                    
24 * implementations should extend `AclBase` and implement the methods it defines.
                    
26 * @package       Cake.Controller.Component
                    
27 * @link http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html
                    
28 */
                    
                
class.jetpack-options.php https://gitlab.com/hunt9310/ras | PHP | 256 lines
                    
1<?php
                    
2
                    
115
                    
116		trigger_error( sprintf( 'Invalid Jetpack option name: %s', $name ), E_USER_WARNING );
                    
117
                    
177
                    
178		trigger_error( sprintf( 'Invalid Jetpack option name: %s', $name ), E_USER_WARNING );
                    
179
                    
191		foreach ( array_diff( $names, self::get_option_names(), self::get_option_names( 'non_compact' ), self::get_option_names( 'private' ) ) as $unknown_name ) {
                    
192			trigger_error( sprintf( 'Invalid Jetpack option name: %s', $unknown_name ), E_USER_WARNING );
                    
193			unset( $array[ $unknown_name ] );
                    
211		if ( ! self::is_valid( $names ) ) {
                    
212			trigger_error( sprintf( 'Invalid Jetpack option names: %s', print_r( $names, 1 ) ), E_USER_WARNING );
                    
213
                    
                
ReCaptcha.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 501 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_Abstract */
                    
23require_once 'Zend/Service/Abstract.php';
                    
24
                    
25/** @see Zend_Json */
                    
26require_once 'Zend/Json.php';
                    
27
                    
28/** @see Zend_Service_ReCaptcha_Response */
                    
29require_once 'Zend/Service/ReCaptcha/Response.php';
                    
30
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
39 * @version    $Id: ReCaptcha.php 25153 2012-11-28 11:56:23Z cogo $
                    
40 */
                    
167            $return = '';
                    
168            trigger_error($e->getMessage(), E_USER_WARNING);
                    
169        }
                    
                
feature.php https://github.com/luthercollege/reason_package.git | PHP | 514 lines
                    
1<?php
                    
2/**
                    
9 */
                    
10reason_include_once( 'minisite_templates/modules/default.php' );
                    
11reason_include_once('function_libraries/image_tools.php');
                    
11reason_include_once('function_libraries/image_tools.php');
                    
12reason_include_once( 'classes/sized_image.php' );
                    
13reason_include_once( 'classes/av_display.php' );
                    
13reason_include_once( 'classes/av_display.php' );
                    
14reason_include_once( 'classes/feature_helper.php' );
                    
15reason_include_once( 'minisite_templates/modules/feature/views/default_feature_view.php' );
                    
16
                    
17include_once(CARL_UTIL_INC . 'basic/image_funcs.php');
                    
18include_once(CARL_UTIL_INC . 'basic/url_funcs.php');
                    
40 * - max - default 0 (no max). If positive, designates a maximum number of features to select
                    
41 * - width - default 400. We use this value as the image width for images set to "crop to fill" and also send it into the feature_image.php script.
                    
42 * - height - default 300.  We use this value as the image height for images set to "crop to fill" and also send it into the feature_image.php script.
                    
                
JsHelper.php https://github.com/Nervie/Beta.git | PHP | 427 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc.
                    
14 * @link          http://cakephp.org CakePHP Project
                    
15 * @package       Cake.View.Helper
                    
15 * @package       Cake.View.Helper
                    
16 * @since         CakePHP v 1.2
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
155		}
                    
156		trigger_error(__d('cake_dev', 'JsHelper:: Missing Method %s is undefined', $method), E_USER_WARNING);
                    
157	}
                    
                
Cloud.php https://gitlab.com/rsilveira1987/Expresso | PHP | 410 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cloud.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tag/Item.php';
                    
27
                    
152            } else {
                    
153                require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
module.php https://github.com/carleton/reason_package.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
9 */
                    
10	reason_include_once( 'minisite_templates/modules/gallery.php' );
                    
11	reason_include_once( 'minisite_templates/modules/gallery_vote/vote_form.php' );
                    
11	reason_include_once( 'minisite_templates/modules/gallery_vote/vote_form.php' );
                    
12	reason_include_once( 'function_libraries/admin_actions.php');
                    
13	reason_include_once( 'classes/csv.php');
                    
55		{
                    
56			trigger_error('REASON_CSV_DIR path is not defined in settings.php');
                    
57		}
                    
139			{	
                    
140				trigger_error('error saving vote for user ' . $this->user_netID . ' - gallery_vote module at URL ' . get_current_url());
                    
141				return 'error';
                    
372		{
                    
373			trigger_error('REASON_CSV_DIR must be defined for image voting to work');
                    
374			echo '<h3>Sorry; Voting is not available.</h3><p>The administrator of this web server needs to turn it on -- please contact the administrator of the web site and tell them the information below:</p>
                    
                
loader.php https://github.com/karpenoktem/punbb.git | PHP | 532 lines
                    
1<?php
                    
2/**
                    
55	public function __clone() {
                    
56		trigger_error('Clone is forbiden.', E_USER_ERROR);
                    
57	}
                    
                
function.html_select_date.php https://github.com/kiang/olc_baker.git | PHP | 328 lines
                    
1<?php
                    
2/**
                    
30 *
                    
31 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
32 *      (Smarty online manual)
                    
41{
                    
42    require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
43    require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
                    
43    require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
                    
44    require_once(SMARTY_PLUGINS_DIR . 'function.html_options.php');
                    
45
                    
61    $reverse_years = false;
                    
62    /* Should the select boxes be part of an array when returned from PHP?
                    
63       e.g. setting it to "birthday", would create "birthday[Day]",
                    
132                } else {
                    
133                    trigger_error("html_select_date: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
                    
134                }
                    
                
mahara_login.php https://github.com/atutor/mahara.git | PHP | 199 lines
                    
1<?php
                    
2
                    
4    This belongs to the ATutor Mahara module page. It is called within an iframe or 
                    
5    a new window from index.php and allows a user to access
                    
6    his/her ePortfolio account on Mahara through their account on ATutor.
                    
19
                    
20/*~~~~~~~~~~~~~few essentials copied from ATutor's vitals.inc.php~~~~~~~~~~~~*/
                    
21
                    
24    if (!defined(AT_REDIRECT_LOADED)){
                    
25        include_once(AT_INCLUDE_PATH.'config.inc.php');
                    
26    }
                    
33        $relative_path = substr(AT_INCLUDE_PATH, 0, -strlen('include/'));
                    
34        header('Location: ' . $relative_path . 'install/not_installed.php');
                    
35        exit;
                    
39    if (!defined(AT_REDIRECT_LOADED)){
                    
40        require_once(AT_INCLUDE_PATH.'lib/constants.inc.php');
                    
41    }
                    
                
Config_File.class.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 389 lines
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php,v 1.1 2008/06/19 14:32:40 chienkv Exp $ */
                    
29
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
88                $this->_trigger_error_msg("Bad config file path '$config_path'");
                    
89                return;
                    
175        if (!isset($this->_config_data[$file_name])) {
                    
176            $this->_trigger_error_msg("Unknown config file '$file_name'");
                    
177            return;
                    
377    /**
                    
378     * @uses trigger_error() creates a PHP warning/error
                    
379     * @param string $error_msg
                    
                
EsmtpTransport.php https://gitlab.com/judielsm/Handora | PHP | 386 lines
                    
1<?php
                    
2
                    
263        }
                    
264        trigger_error('Call to undefined method '.$method, E_USER_ERROR);
                    
265    }
                    
                
AdminPage.php https://bitbucket.org/gfelizola/pacaembu-institucional.git | PHP | 439 lines
                    
1<?php
                    
2
                    
7	 * $page_title string (mandatory)
                    
8	 * $parent (string)  (default: options-general.php)
                    
9	 * $capability (string)  (default: 'manage_options')
                    
153		if ( !isset($this->options) ) {
                    
154			trigger_error('options handler not set', E_USER_WARNING);
                    
155			return false;
                    
333		if ( empty( $this->args['page_title'] ) )
                    
334			trigger_error( 'Page title cannot be empty', E_USER_WARNING );
                    
335
                    
340			'screen_icon' => '',
                    
341			'parent' => 'options-general.php',
                    
342			'capability' => 'manage_options',
                    
385jQuery( document ).ready( function( $ ){
                    
386	var $spinner = $( new Image() ).attr( 'src', '<?php echo admin_url( "images/wpspin_light.gif" ); ?>' );
                    
387
                    
                
URI.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 316 lines
                    
1<?php
                    
2
                    
89                    // something funky happened to the default scheme object
                    
90                    trigger_error(
                    
91                        'Default scheme object "' . $def->defaultScheme . '" was not readable',
                    
                
TestCase.php https://github.com/pavlakis/phergie.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
199    {
                    
200        // Ugly hack to get around an issue in PHPUnit
                    
201        // @link http://github.com/sebastianbergmann/phpunit-mock-objects/issues/issue/5#issue/5/comment/343524
                    
206            && $args == "' . var_export($args, true) . '") {
                    
207                trigger_error("Instance of ' . $this->pluginClass
                    
208            . ' unexpectedly emitted event of type ' . $type
                    
                
Variables.php https://github.com/mrbanzai/zf2.git | PHP | 337 lines
                    
1<?php
                    
2/**
                    
283            if ($this->isStrict()) {
                    
284                trigger_error(sprintf(
                    
285                    'View variable "%s" does not exist', $key
                    
306            if ($this->isStrict()) {
                    
307                trigger_error(sprintf(
                    
308                    'View variable "%s" does not exist', $key
                    
                
mysqli.php https://github.com/premiumcombination/nts.git | PHP | 487 lines
                    
1<?php
                    
2
                    
14
                    
15require_once dirname(__FILE__) . '/mysql.reflector.php';
                    
16
                    
62		if (!extension_loaded('mysqli')) {
                    
63			throw new DibiNotSupportedException("PHP extension 'mysqli' is not loaded.");
                    
64		}
                    
104					$config['flags'] = $config['options']; // back compatibility
                    
105					trigger_error(__CLASS__ . ": configuration item 'options' must be array; for constants MYSQLI_CLIENT_* use 'flags'.", E_USER_NOTICE);
                    
106				} else {
                    
121			if (version_compare(PHP_VERSION , '5.1.5', '>=')) {
                    
122				// affects the character set used by mysql_real_escape_string() (was added in MySQL 5.0.7 and PHP 5.0.5, fixed in PHP 5.1.5)
                    
123				$ok = @mysqli_set_charset($this->connection, $config['charset']); // intentionally @
                    
                
EslManager.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 259 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
2/**
                    
3 * EslManager.php - This wraps the two types of ESLconnection and provides additional
                    
4 *      convience functions
                    
29
                    
30	if (!extension_loaded("ESL"))   // Is the PHP ESL extension loaded? If not, failback to socket
                    
31	{
                    
34        } else {
                    
35            include_once(MODPATH .'esl-1.0/assets/ESL.php');
                    
36            $this->esl = new ESLconnection($host, $port, $password); // FreeSWITCH ESL Swigged class
                    
256    {
                    
257        trigger_error('Clone is not allowed.', E_USER_ERROR);
                    
258    }
                    
                
OpenID.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 412 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * This is the PHP OpenID library by JanRain, Inc.
                    
5 *
                    
6 * This module contains core utility functionality used by the
                    
7 * library.  See Consumer.php and Server.php for the consumer and
                    
8 * server implementations.
                    
9 *
                    
10 * PHP versions 4 and 5
                    
11 *
                    
22 */
                    
23require_once "Services/Yadis/PlainHTTPFetcher.php";
                    
24require_once "Services/Yadis/ParanoidHTTPFetcher.php";
                    
24require_once "Services/Yadis/ParanoidHTTPFetcher.php";
                    
25require_once "Auth/OpenID/BigMath.php";
                    
26
                    
                
Exception.php https://github.com/Getty/historical-php-rapidev.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
acp_email.php https://github.com/naderman/phpbb-orchestra.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
28		global $config, $db, $user, $auth, $template, $cache;
                    
29		global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
                    
30
                    
175				// Send the messages
                    
176				include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
                    
177				include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);
                    
245				{
                    
246					$message = sprintf($user->lang['EMAIL_SEND_ERROR'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=logs&amp;mode=critical') . '">', '</a>');
                    
247					trigger_error($message . adm_back_link($this->u_action), E_USER_WARNING);
                    
277			'USERNAMES'				=> $usernames,
                    
278			'U_FIND_USERNAME'		=> append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&amp;form=acp_email&amp;field=usernames'),
                    
279			'SUBJECT'				=> $subject,
                    
                
Cloud.php https://github.com/grandison/budo16.git | PHP | 410 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cloud.php 16209 2009-06-21 19:20:34Z thomas $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Tag/Item.php';
                    
27
                    
152            } else {
                    
153                // require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            // require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            // require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
jDbConnection.class.php https://github.com/foxmask/Booster.git | PHP | 386 lines
                    
1<?php
                    
2/**
                    
153        if ($parameter_type === false || $parameter_type === true)
                    
154            trigger_error("signature of jDbConnection::quote has changed, you should use quote2()", E_USER_WARNING);
                    
155        return "'".$this->_quote($text, false)."'";
                    
355            global $gJConfig;
                    
356            require_once($gJConfig->_pluginsPathList_db[$this->dbms].$this->dbms.'.dbtools.php');
                    
357            $class = $this->dbms.'DbTools';
                    
377            global $gJConfig;
                    
378            require_once($gJConfig->_pluginsPathList_db[$this->dbms].$this->dbms.'.dbschema.php');
                    
379            $class = $this->dbms.'DbSchema';
                    
                
 

Source

Language