100+ results results for 'php trigger_error' (223 ms)
1<?php 2 75 if (is_dir($directory . '/migration_templates')) { 76 @trigger_error('Use of the /migration_templates directory to store migration configuration files is deprecated in Drupal 8.1.0 and will be removed before Drupal 9.0.0. See https://www.drupal.org/node/2920988.', E_USER_DEPRECATED); 77 }MethodTable.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 554 lines
1<?php 2/** 35 * this constructor should be made private. Unfortunately, this is not possible 36 * in PHP4. 37 * 61 $className = substr($className, strrpos($className, '/') + 1); 62 $className = str_replace('.php', '', $className); 63 } 65 { 66 $className = str_replace('.php', '', $className); 67 $fullPath = str_replace('.', '/', $className); 75 { 76 if(isset($GLOBALS['amfphp']['classPath'])) 77 { 77 { 78 $servicePath = $GLOBALS['amfphp']['classPath']; 79 }opcache.php https://bitbucket.org/daniellbraun/wildernessatthesmokies.git | PHP | 438 lines
1<?php 2/* 19if( version_compare( get_bloginfo('version'), '3.8', '<') ) { 20 require_once( ABSPATH . 'wp-admin/includes/plugin.php'); 21 deactivate_plugins( __FILE__ ); 30 31 const PHP_URL = 'http://php.shield-9.org'; 32 171 ); 172 if( version_compare( PHP_VERSION, '5.5.5') >= 0) 173 $this->hooks[] = add_submenu_page( 293 function render_widget_info_widget() { 294 $this->load_view('widgets/info.php'); 295 } 426 '<a href="%s">%s</a>', 427 ( is_network_admin() ? network_admin_url('admin.php?page=opcache') : admin_url('admin.php?page=opcache') ), 428 __('Dashboard', 'opcache')ucp_pm.php https://gitlab.com/perioner/mfhs.git | PHP | 424 lines
82 83 include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx); 84 142 143 include($phpbb_root_path . 'includes/ucp/ucp_pm_options.' . $phpEx); 144 message_options($id, $mode, $global_privmsgs_rules, $global_rule_conditions); 154 // Call another module... please do not try this at home... Hoochie Coochie Man 155 include($phpbb_root_path . 'includes/ucp/ucp_main.' . $phpEx); 156 382 { 383 include($phpbb_root_path . 'includes/ucp/ucp_pm_viewfolder.' . $phpEx); 384 view_folder($id, $mode, $folder_id, $folder); 399 400 include($phpbb_root_path . 'includes/ucp/ucp_pm_viewmessage.' . $phpEx); 401 view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row);DefaultFormRenderer.php git://github.com/nette/nette.git | PHP | 515 lines
1<?php 2 160 { 161 trigger_error(__METHOD__ . '() is deprecated; use unobstructive JavaScript instead.', E_USER_WARNING); 162 return $this;Lexer.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 345 lines
1<?php 2 74 $lexer = $config; 75 trigger_error("Passing a prototype to 76 HTMLPurifier_Lexer::create() is deprecated, please instead 144 145 // once PHP DOM implements native line numbers, or we 146 // hack out something using XSLT, remove this stipulation 217 { 218 trigger_error('Call to abstract class', E_USER_ERROR); 219 }password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 13 /** 14 * PHPUnit Process isolation caches constants, but not function declarations. 15 * So we need to check if the constants are defined separately from 36 if (!function_exists('crypt')) { 37 trigger_error("Crypt must be loaded for password_hash to function", E_USER_WARNING); 38 return null; 43 if (!is_string($password)) { 44 trigger_error("password_hash(): Password must be a string", E_USER_WARNING); 45 return null;posts_merging.php https://code.google.com/p/phpbbex/ | PHP | 321 lines
99 // Prepare message separator 100 require($phpbb_root_path . 'includes/time_delta.'.$phpEx); 101 $td = new timedelta(); 247 248 if (!file_exists($phpbb_root_path . 'includes/search/' . $search_type . '.' . $phpEx)) 249 { 252 253 require_once("{$phpbb_root_path}includes/search/$search_type.$phpEx"); 254 309 $add_anchor = '#p' . $merge_post_id; 310 $redirect_url = "{$phpbb_root_path}viewtopic.$phpEx"; 311 $redirect_url = append_sid($redirect_url, 'f=' . $forum_id . $params) . $add_anchor; 316 $message = $user->lang[$message] . (($auth->acl_get('f_noapprove', $merge_post_data['forum_id']) || $auth->acl_get('m_approve', $merge_post_data['forum_id'])) ? '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>') : ''); 317 $message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $merge_post_data['forum_id']) . '">', '</a>'); 318 trigger_error($message);list.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 253 lines
125 <form class="sform" id="admin_add_form" name="admin_add_form" 126 action="<?php echo url::base() ?>/sa/admin/frm/add.php" method="POST"> 127 <div class="error" > </div> 130 <td class="field">First name<span class="red-label">*</span> </td> 131 <td> <input type="text" name="first_name" maxlength="32" class="required" title="First Name is required" value="<?php echo $sticky->get('first_name'); ?>" /></td> 132 </tr> 208 <td> <?php echo $admin['first_name']; ?> <?php echo $admin['last_name']; ?> </td> 209 <td> <a href="mailto:<?php echo $admin['login'];?> "><?php echo $admin['login'];?></a> </td> 210 <td> 210 <td> 211 <a href="/sa/admin/reset.php?org_id=<?php echo $orgId ?>&admin_id=<?php echo $admin['id'] ?>&g_home_uri=<?php echo $glooBackURI;?>&g_admin_uri=<?php echo $glooAdminURI;?>"> reset password </a> 212 </td> 214 <td> 215 <a href="/sa/admin/delete.php?org_id=<?php echo $orgId ?>&admin_id=<?php echo $admin['id'] ?>&g_home_uri=<?php echo $glooBackURI;?>&g_admin_uri=<?php echo $glooAdminURI;?>"> delete </a> 216 </td>php.js git://github.com/claudehohl/Stikked.git | 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})();yaf_route_regex.c https://gitlab.com/lcp0578/yaf.git | 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"Exception.php https://bitbucket.org/chamilo/chamilo/ | 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 137 2009-11-09 13:24:37Z vanpouckesven $ 22 * @version CVS: $Id: Exception.php 137 2009-11-09 13:24:37Z vanpouckesven $ 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_* constantCore.php http://lightblog.googlecode.com/svn/trunk/ | PHP | 546 lines
21{ 22 // Is there an install.php file? 23 if(file_exists(dirname(__FILE__). '/../install.php')) 39 { 40 die('LightBlog Error: config.php file missing (no install.php).'); 41 } 44{ 45 // Include the config.php file, we need it! 46 require(dirname(__FILE__). '/../config.php'); 62{ 63 trigger_error($error_message, E_USER_ERROR); 64} 66// Include the extra user, database, and string functions 67require(ABSPATH. '/Sources/Errors.php'); 68require(ABSPATH. '/Sources/CleanRequest.php');viewonline.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 451 lines
14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 266 $location = $user->lang['SEARCHING_FORUMS']; 267 $location_url = append_sid("{$phpbb_root_path}search.$phpEx"); 268 break; 271 $location = $user->lang['VIEWING_FAQ']; 272 $location_url = append_sid("{$phpbb_root_path}faq.$phpEx"); 273 break; 340 'U_USER_IP' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'mode=lookup' . (($mode != 'lookup' || $row['session_id'] != $session_id) ? '&s=' . $row['session_id'] : '') . "&sg=$show_guests&start=$start&sk=$sort_key&sd=$sort_dir"), 341 'U_WHOIS' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'mode=whois&s=' . $row['session_id']), 342 'U_FORUM_LOCATION' => $location_url, 446); 447make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); 448LayoutHelper.php git://github.com/croogo/croogo.git | PHP | 575 lines
1<?php 2 11 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 12 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 13 * @link http://www.croogo.org 41 public $coreHelpers = array( 42 // CakePHP 43 'Ajax', 94 if (!isset($mapMethods[$method])) { 95 trigger_error(__d('croogo', 'Method %1$s::%2$s does not exist', get_class($this), $method), E_USER_WARNING); 96 return; 400 * 401 * Original post by Stefan Zollinger: http://bakery.cakephp.org/articles/view/element-helper 402 * [element:element_name] or [e:element_name]yaf_route_map.c https://gitlab.com/lcp0578/yaf.git | 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 */mysql.dbi.lib.php https://github.com/magwai/zkernel.git | PHP | 442 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package phpMyAdmin-DBI-MySQL 7 * @version $Id$ 8 */ 9if (! defined('PHPMYADMIN')) { 10 exit; 12 13require_once './libraries/logging.lib.php'; 14 53{ 54 global $cfg, $php_errormsg; 55 111 if ($is_controluser) { 112 trigger_error($GLOBALS['strControluserFailed'], E_USER_WARNING); 113 return false;pages_list.php git://github.com/klevo/wildflower.git | PHP | 303 lines
1<?php 2class PagesListHelper extends AppHelper { 232 if ($this->_childCount < 0) { 233 trigger_error(__('child count less than 0 in ' . __METHOD__, E_USER_WARNING)); 234 }ContextDefinition.php git://github.com/drupal/drupal.git | PHP | 453 lines
1<?php 2 144 if (strpos($data_type, 'entity:') === 0 && !($this instanceof EntityContextDefinition)) { 145 @trigger_error('Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use ' . __NAMESPACE__ . '\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.', E_USER_DEPRECATED); 146 $this->initializeEntityContextDefinition();SilvercartUpdate.php https://bitbucket.org/silvercart/silvercart/ | PHP | 410 lines
1<?php 2/** 119 * $classDefaults = $className::$defaults; 120 * was replaced with eval call to provide compatibility to PHP 5.2 121 */ 146 if (!empty($error)) { 147 trigger_error($error, E_USER_ERROR); 148 exit();Auto.php http://buscocarro.googlecode.com/svn/trunk/ | PHP | 265 lines
1<?php 2 71 } elseif ($tempImagen['error'] != 4) { 72 trigger_error("Error al cargar la foto. " . var_export($tempImagen, 1), E_USER_ERROR); 73 $mensaje_error = Misc::error_carga_imagen($tempImagen['error']); 79 } else { 80 trigger_error("no se gener? id del insert del carro:" . var_export($datos, 1) . "Resultado:" . var_export($resultado, 1), E_USER_ERROR); 81 } 130 if (!$result['suceed']) { 131 trigger_error("Fallo en actualizaci?n de auto:" . var_export($result, 1), E_USER_ERROR); 132 } 146 $mensaje_error = Misc::error_carga_imagen($update_imagen['error']); 147 trigger_error($mensaje_error . var_export($update_imagen, 1)); 148 } 209 $mensaje_error = Misc::error_carga_imagen($update_imagen['error']); 210 trigger_error("No se pudo mover la imagen. " . $mensaje_error); 211 }ctl.gtype.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 264 lines
1<?php 2/** 6 * @package 7 * @version $Id: ctl.gtype.php 1928 2008-04-25 02:13:05Z alex $ 8 * @copyright 2003-2007 ShopEx 11 */ 12include_once('objectPage.php'); 13class ctl_gtype extends objectPage{ 104 if (empty($_POST['name'])){ 105 $this->begin('index.php?ctl=goods/gtype&act=newType'); 106 trigger_error(__('????????'),E_USER_ERROR); 108 } 109 $this->begin('index.php?ctl=goods/gtype&act=index'); 110 $objGtype = &$this->system->loadModel('goods/gtype'); 188 function fetchSave(){ 189 $this->begin('index.php?ctl=goods/gtype&act=index',array(300001=>'index.php?ctl=goods/gtype&act=fetchProtoTypes&p[0]=gtype.php&p[1]=id='.$_POST['param_id'])); 190 $xml = &$this->system->loadModel('utility/xml');mysql.php https://code.google.com/p/prjtest00/ | PHP | 307 lines
1<?php 2############################################################################ 54 $this->logger->WriteLog(error,"SQLCore",$this->version,"E0001","No SiteID Specified."); 55 trigger_error("SQLCore, E0001: No SiteID Specified.",E_USER_ERROR); 56 } 63 $this->logger->WriteLog(trace,"SQLCore",$this->version,"I0003","Importing Configuration file..."); 64 require "config/config.inc.php"; 65 81 $this->logger->WriteLog(warning,"SQLCore",$this->version,"E0002","ERROR! Connection to SakuraDB failed.."); 82 trigger_error("SQLCore, E0002: Failed to connect to the Sakura DB.",E_USER_ERROR); 83 } 93 $this->logger->WriteLog(warning,"SQLCore",$this->version,"E0003","WARNING! Connection to ".$database["database"]."@".$database["host"]." failed.."); 94 trigger_error("SQLCore, E0002: Failed to connect to a specified Database.",E_USER_WARNING); 95// Purely for logging. 127 $this->logger->WriteLog(error,"SQLCore",$this->version,"E0004","ALL database connections failed, pool is empty. Aborting."); 128 trigger_error("SQLCore, E0003: All connections failed, Database pool is empty.",E_USER_ERROR); 129 }ctl.articles.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 273 lines
1<?php 2include_once('objectPage.php'); 27 28 $this->begin('index.php?ctl=content/articles&act=addnew'); 29 33 if (empty($_POST['title'])){ 34 trigger_error('??????',E_USER_ERROR); 35 $this->end(); 40 if ($_POST['member_lv']==''){ 41 trigger_error('????????',E_USER_ERROR); 42 exit(); 46 if ($_POST['memberid']==''){ 47 trigger_error('????????',E_USER_ERROR); 48 exit(); 55 if (!copy($_FILES['art_accessories']['tmp_name'][$i],$up_url)){ 56 trigger_error('???????',E_USER_ERROR); 57 $this->end();Exception.php http://syracava.googlecode.com/svn/trunk/ | 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 125 2009-08-21 01:35:18Z takuji.mezawa $ 22 * @version CVS: $Id: Exception.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 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_* constantdate.php git://github.com/joomla/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 */DataBaseHandler.php git://github.com/alombarte/SIFO.git | PHP | 300 lines
1<?php 2 47 { 48 trigger_error( "[sifo] [debug] Could not connect to the debug database using the following DSN: 'sqlite:" . $this->db_path . $this->db_name . "'.\n 49 Error message: " . $e->getMessage() ); 74 { 75 trigger_error( "[sifo] [debug] Could not create the Sifo debug database.\n 76 Error message: " . $e->getMessage() . "\n 111 { 112 trigger_error( "[sifo] [debug] Could not insert the execution debug record in the Sifo debug database.\n 113 Error message: " . $e->getMessage() . "\n 138 { 139 trigger_error( "[sifo] [debug] Could not delete the old execution debugs records from the Sifo debug database.\n 140 Error message: " . $e->getMessage() . "\n 187 { 188 trigger_error( "[sifo] [debug] Could not get the execution debug content from the Sifo debug database for the execution ID: $execution_key.\n 189 Error message: " . $e->getMessage() . "\nFunctionScore.php git://github.com/ruflin/Elastica.git | PHP | 371 lines
1<?php 2namespace Elastica\Query; 94 if ($filter instanceof AbstractFilter) { 95 trigger_error('Deprecated: Elastica\Query\FunctionScore::addFunction passing AbstractFilter is deprecated. Pass AbstractQuery instead.', E_USER_DEPRECATED); 96 } elseif (!($filter instanceof AbstractQuery)) { 124 if ($filter instanceof AbstractFilter) { 125 trigger_error('Deprecated: Elastica\Query\FunctionScore::addScriptScoreFunction passing AbstractFilter is deprecated. Pass AbstractQuery instead.', E_USER_DEPRECATED); 126 } elseif (!($filter instanceof AbstractQuery)) { 161 if ($filter instanceof AbstractFilter) { 162 trigger_error('Deprecated: Elastica\Query\FunctionScore::addDecayFunction passing AbstractFilter is deprecated. Pass AbstractQuery instead.', E_USER_DEPRECATED); 163 } elseif (!($filter instanceof AbstractQuery)) { 197 if ($filter instanceof AbstractFilter) { 198 trigger_error('Deprecated: Elastica\Query\FunctionScore::addFieldValueFactorFunction passing AbstractFilter is deprecated. Pass AbstractQuery instead.', E_USER_DEPRECATED); 199 } elseif (!($filter instanceof AbstractQuery)) { 234 if ($filter instanceof AbstractFilter) { 235 trigger_error('Deprecated: Elastica\Query\FunctionScore::addBoostFactorFunction passing AbstractFilter is deprecated. Pass AbstractQuery instead.', E_USER_DEPRECATED); 236 } elseif (!($filter instanceof AbstractQuery)) {cache.php http://skygames.googlecode.com/svn/trunk/ | PHP | 520 lines
3/** 4 * Caching for CakePHP. 5 * 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 18 * @package cake 19 * @subpackage cake.cake.libs 20 * @since CakePHP(tm) v 1.2.0.4933 21 * @version $Revision: 7847 $password.php git://github.com/ci-bonfire/Bonfire.git | PHP | 251 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 40/** 41 * PHP ext/standard/password compatibility package 42 * 47 * @link https://codeigniter.com/user_guide/ 48 * @link http://php.net/password 49 */ 52 53if (is_php('5.5') OR ! defined('CRYPT_BLOWFISH') OR CRYPT_BLOWFISH !== 1 OR defined('HHVM_VERSION')) 54{ 69 * 70 * @link http://php.net/password_get_info 71 * @param string $hashReCaptcha.php git://github.com/michael-romer/zf-boilerplate.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 }ez_sql_mysql.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 271 lines
1<?php 2 4 * Author: Justin Vincent (justin@visunet.ie) 5 * Web...: http://php.justinvincent.com 6 * Name..: ezSQL_mysql 27 28 if ( ! function_exists ('mysql_connect') ) die('<b>Fatal Error:</b> ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine'); 29 if ( ! class_exists ('ezSQLcore') ) die('<b>Fatal Error:</b> ezSQL_mysql requires ezSQLcore (ez_sql_core.php) to be included/loaded before it can be used'); 80 $this->register_error($ezsql_mysql_str[1].' in '.__FILE__.' on line '.__LINE__); 81 $this->show_errors ? trigger_error($ezsql_mysql_str[1],E_USER_WARNING) : null; 82 } 86 $this->register_error($ezsql_mysql_str[2].' in '.__FILE__.' on line '.__LINE__); 87 $this->show_errors ? trigger_error($ezsql_mysql_str[2],E_USER_WARNING) : null; 88 } 113 $this->register_error($ezsql_mysql_str[3].' in '.__FILE__.' on line '.__LINE__); 114 $this->show_errors ? trigger_error($ezsql_mysql_str[3],E_USER_WARNING) : null; 115 }class.cachehandler.php https://code.google.com/p/evedev-kb/ | PHP | 474 lines
1<?php 2/** 339 if ($newfilename == ".." || $newfilename == ".") { 340 trigger_error("Invalid cache filename. Name given was: ".htmlentities($newfilename), E_USER_ERROR); 341 die; 348 || substr($newlocation, 0, 1) == '\\') { 349 trigger_error("Invalid cache path. Path given was: ".htmlentities($newlocation), E_USER_ERROR); 350 die;swx.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 439 lines
84 85 // PHP 5 compatibility layer for PHP 4 86 include('lib/str_split.php'); 320 // array.) 321 if ($dataAsPhp === "undefined") $dataAsPhp = "[]"; 322 325 $dataAsPhp = str_replace('\\t', '\t', $dataAsPhp); 326 $dataAsPhp = str_replace('\\n', '\n', $dataAsPhp); 327 $dataAsPhp = str_replace("\\'", "'", $dataAsPhp); 363 //$dataAsPhp = str_replace('undefined', 'NULL', $dataAsPhp); 364 $dataAsPhp = str_replace('null', 'NULL', $dataAsPhp); 365 373 $j = new Services_JSON(); 374 $dataAsPhp = $j->decode($dataAsPhp); 375EntityFieldRenderer.php git://github.com/drupal/drupal.git | PHP | 307 lines
1<?php 2 82 if (!$entity_repository) { 83 @trigger_error('Calling EntityFieldRenderer::__construct() with the $entity_repository argument is supported in drupal:8.7.0 and will be required before drupal:9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 84 $entity_repository = \Drupal::service('entity.repository');DynamicRouter.php https://bitbucket.org/razum-io/ns-hub.git | 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); 219Exception.php https://github.com/poppen/p2.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.3 2008/09/28 16:11:28 akid Exp $ 22 * @version CVS: $Id: Exception.php,v 1.3 2008/09/28 16:11:28 akid 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_* constantStats.php git://github.com/basdenooijer/solarium.git | PHP | 361 lines
1<?php 2/** 171 //double add calls for the same field are ignored, but non-unique keys cause an exception 172 //@todo add trigger_error with a notice for double add calls? 173 if (array_key_exists($key, $this->fields) && $this->fields[$key] !== $field) {InfoParserDynamic.php git://github.com/drupal/drupal.git | PHP | 215 lines
1<?php 2 119 if (preg_match($pattern, $filename)) { 120 @trigger_error("The install profile $filename only implements a 'dependencies' key. As of Drupal 8.6.0 profile's support a new 'install' key for modules that should be installed but not depended on. See https://www.drupal.org/node/2952947.", E_USER_DEPRECATED); 121 }ucp_titania.php git://github.com/phpbb/customisation-db.git | PHP | 449 lines
1<?php 2/** 4* @package Titania 5* @copyright (c) 2008 phpBB Customisation Database Team 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2 9 10global $phpbb_root_path; 11 16*/ 17define('TITANIA_ROOT', $phpbb_root_path . '../customise/db/'); 18 21*/ 22if (!defined('IN_PHPBB')) 23{ 48 define('IN_TITANIA', true); 49 if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 50 require TITANIA_ROOT . 'common.' . PHP_EXT;Php.php https://code.google.com/p/mwenhanced/ | PHP | 374 lines
2/** 3 * Subsys_JsHttpRequest_Php: PHP backend for JavaScript DHTML loader. 4 * (C) 2005 Dmitry Koterov, http://forum.dklab.ru/users/DmitryKoterov/ 32 * 33 * Create new Subsys_JsHttpRequest_Php backend object and attach it 34 * to script output buffer. As a result - script will always return 40 // where <id> is request ID, <sid> - session ID (if present), 41 // PHPSESSID - session parameter name (by default = "PHPSESSID"). 42 161 foreach ($a as $v) 162 $result[] = Subsys_JsHttpRequest_Php::php2js($v); 163 return '[ ' . join(',', $result) . ' ]'; 167 foreach ($a as $k=>$v) 168 $result[] = Subsys_JsHttpRequest_Php::php2js($k) . ': ' . Subsys_JsHttpRequest_Php::php2js($v); 169 return '{ ' . join(',', $result) . ' }';mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2require_once('plugin.php'); 91 if(!$sType = $aData['passport_type']){ 92 trigger_error('????',E_USER_ERROR); 93 } 204 function setCookie($name,$value,$expire=false,$path=null){ 205 $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/'; 206 $cookieLife = 3600;create_app.task.php https://github.com/onivan/akelos.git | PHP | 430 lines
1<?php 2 19Example: 20 akelos ~/Code/PHP/weblog 21 21 22 This generates a skeletal Akelos installation in ~/Code/PHP/weblog. 23 See the README in the newly created application to get going. 67 if(empty($this->options['directory'])){ 68 trigger_error('You must supply a valid destination path', E_USER_ERROR); 69 } 226 $paths = array( 227 $this->options['directory'].DS.'config'.DS.'boot.php', 228 $this->options['directory'].DS.'makelos', 298 * 299 * Giving /path/to/the_framework/lib/Ak.php will rerturn /my/project/path/lib/Ak.php 300 */ContentEntityType.php git://github.com/drupal/drupal.git | PHP | 138 lines
1<?php 2 85 if ((isset($base_fields['revision_uid']) && $revision_user = 'revision_uid') || (isset($base_fields['revision_user']) && $revision_user = 'revision_user')) { 86 @trigger_error('The revision_user revision metadata key is not set for entity type: ' . $this->id . ' See: https://www.drupal.org/node/2831499', E_USER_DEPRECATED); 87 $this->revision_metadata_keys['revision_user'] = $revision_user; 89 if ((isset($base_fields['revision_timestamp']) && $revision_timestamp = 'revision_timestamp') || (isset($base_fields['revision_created'])) && $revision_timestamp = 'revision_created') { 90 @trigger_error('The revision_created revision metadata key is not set for entity type: ' . $this->id . ' See: https://www.drupal.org/node/2831499', E_USER_DEPRECATED); 91 $this->revision_metadata_keys['revision_created'] = $revision_timestamp; 93 if ((isset($base_fields['revision_log']) && $revision_log = 'revision_log') || (isset($base_fields['revision_log_message']) && $revision_log = 'revision_log_message')) { 94 @trigger_error('The revision_log_message revision metadata key is not set for entity type: ' . $this->id . ' See: https://www.drupal.org/node/2831499', E_USER_DEPRECATED); 95 $this->revision_metadata_keys['revision_log_message'] = $revision_log;function.html_select_date.php git://github.com/alombarte/SIFO.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 }Config_File.class.php git://github.com/openmelody/melody.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_msgweb.php https://gitlab.com/f3/f3-skeleton.git | PHP | 510 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 translationsacp_email.php git://github.com/phpbb/phpbb.git | PHP | 351 lines
5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 28 global $config, $db, $user, $template, $phpbb_log, $request; 29 global $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_dispatcher; 30 193 { 194 include($phpbb_root_path . 'includes/functions_messenger.' . $phpEx); 195 } 297 { 298 $message = sprintf($user->lang['EMAIL_SEND_ERROR'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=logs&mode=critical') . '">', '</a>'); 299 trigger_error($message . adm_back_link($this->u_action), E_USER_WARNING); 329 'USERNAMES' => implode("\n", $usernames), 330 'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&form=acp_email&field=usernames'), 331 'SUBJECT' => $subject,function.html_select_time.php git://github.com/jasonhinkle/phreeze.git | 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 }Method.php git://github.com/BraveSirRobin/amqphp.git | PHP | 2 lines
1<?php 2 namespace amqphp\wire; use amqphp\protocol as proto; use amqphp\protocol\abstrakt; class Method implements \Serializable { const ST_METH_READ = 1; const ST_CHEAD_READ = 2; const ST_BODY_READ = 4; const PARTIAL_FRAME = 7; private static $PlainPFields = array('rcState', 'mode', 'fields', 'classFields', 'content', 'frameSize', 'wireChannel', 'isHb', 'wireMethodId', 'wireClassId', 'contentSize'); private $rcState = 0; private $methProto; private $classProto; private $mode; private $fields = array(); private $classFields = array(); private $content; private $frameSize; private $wireChannel = null; private $wireMethodId; private $wireClassId; private $contentSize; private $isHb = false; private $protoLoader; public $amqpClass; function serialize () { if ($this->mode != 'read') { trigger_error("Only read mode methods should be serialised", E_USER_WARNING); return null; } $ret = array(); $ret['plainFields'] = array(); foreach (self::$PlainPFields as $k) { $ret['plainFields'][$k] = $this->$k; } if ($this->methProto && $this->classProto) { $ret['protos'] = array(get_class($this->methProto), get_class($this->classProto)); } return serialize($ret); } function unserialize ($s) { $state = unserialize($s); foreach (self::$PlainPFields as $k) { $this->$k = $state['plainFields'][$k]; } if (array_key_exists('protos', $state)) { list($mc, $cc) = $state['protos']; $this->methProto = new $mc; $this->classProto = new $cc; $this->amqpClass = sprintf('%s.%s', $this->classProto->getSpecName(), $this->methProto->getSpecName()); } } function setProtocolLoader ($l) { $this->protoLoader = $l; } function __construct (abstrakt\XmlSpecMethod $src = null, $chan = 0) { if ($src instanceof abstrakt\XmlSpecMethod) { $this->methProto = $src; $this->classProto = $this->methProto->getClass(); $this->mode = 'write'; $this->wireChannel = $chan; $this->amqpClass = sprintf('%s.%s', $this->classProto->getSpecName(), $this->methProto->getSpecName()); } else { $this->mode = 'read'; } } function canReadFrom (Reader $src) { if (is_null($this->wireChannel)) { return true; } if (true === ($_fh = $this->extractFrameHeader($src))) { return false; } list($wireType, $wireChannel, $wireSize) = $_fh; $ret = ($wireChannel == $this->wireChannel); $src->rewind(7); return $ret; } function readConstruct (Reader $src, \Closure $protoLoader) { if ($this->mode == 'write') { trigger_error('Invalid read construct operation on a read mode method', E_USER_WARNING); return false; } $FRME = 206; $break = false; $ret = true; $this->protoLoader = $protoLoader; while (! $src->isSpent()) { if (true === ($_fh = $this->extractFrameHeader($src))) { $ret = self::PARTIAL_FRAME; break; } else { list($wireType, $wireChannel, $wireSize) = $_fh; } if (! $this->wireChannel) { $this->wireChannel = $wireChannel; } else if ($this->wireChannel != $wireChannel) { $src->rewind(7); return true; } if ($src->isSpent($wireSize + 1)) { $src->rewind(7); $ret = self::PARTIAL_FRAME; break; } switch ($wireType) { case 1: $this->readMethodContent($src, $wireSize); if (! $this->methProto->getSpecHasContent()) { $break = true; } break; case 2: $this->readContentHeaderContent($src, $wireSize); break; case 3: $this->readBodyContent($src, $wireSize); if ($this->readConstructComplete()) { $break = true; } break; case 8: $break = $ret = $this->isHb = true; break; default: throw new \Exception(sprintf("Unsupported frame type %d", $wireType), 8674); } if ($src->read('octet') != $FRME) { throw new \Exception(sprintf("Framing exception - missed frame end (%s) - (%d,%d,%d,%d) [%d, %d]", $this->amqpClass, $this->rcState, $break, $src->isSpent(), $this->readConstructComplete(), strlen($this->content), $this->contentSize ), 8763); } if ($break) { break; } } return $ret; } private function extractFrameHeader(Reader $src) { if ($src->isSpent(7)) { return true; } if (null === ($wireType = $src->read('octet'))) { throw new \Exception('Failed to read type from frame', 875); } else if (null === ($wireChannel = $src->read('short'))) { throw new \Exception('Failed to read channel from frame', 9874); } else if (null === ($wireSize = $src->read('long'))) { throw new \Exception('Failed to read size from frame', 8715); } return array($wireType, $wireChannel, $wireSize); } private function readMethodContent (Reader $src, $wireSize) { $st = $src->p; $this->wireClassId = $src->read('short'); $this->wireMethodId = $src->read('short'); $protoLoader = $this->protoLoader; if (! ($this->classProto = $protoLoader('ClassFactory', 'GetClassByIndex', array($this->wireClassId)))) { throw new \Exception(sprintf("Failed to construct class prototype for class ID %s", $this->wireClassId), 9875); } else if (! ($this->methProto = $this->classProto->getMethodByIndex($this->wireMethodId))) { throw new \Exception("Failed to construct method prototype", 5645); } $this->amqpClass = sprintf('%s.%s', $this->classProto->getSpecName(), $this->methProto->getSpecName()); foreach ($this->methProto->getFields() as $f) { $this->fields[$f->getSpecFieldName()] = $src->read($f->getSpecDomainType()); } $en = $src->p; if ($wireSize != ($en - $st)) { throw new \Exception("Invalid method frame size", 9845); } $this->rcState = $this->rcState | self::ST_METH_READ; } private function readContentHeaderContent (Reader $src, $wireSize) { $st = $src->p; $wireClassId = $src->read('short'); $src->read('short'); $this->contentSize = $src->read('longlong'); if ($wireClassId != $this->wireClassId) { throw new \Exception(sprintf("Unexpected class in content header (%d, %d) - read state %d", $wireClassId, $this->wireClassId, $this->rcState), 5434); } $binFlags = ''; while (true) { if (null === ($fBlock = $src->read('short'))) { throw new \Exception("Failed to read property flag block", 4548); } $binFlags .= str_pad(decbin($fBlock), 16, '0', STR_PAD_LEFT); if (0 !== (strlen($binFlags) % 16)) { throw new \Exception("Unexpected message property flags", 8740); } if (substr($binFlags, -1) == '1') { $binFlags = substr($binFlags, 0, -1); } else { break; } } foreach ($this->classProto->getFields() as $i => $f) { if ($f->getSpecFieldDomain() == 'bit') { $this->classFields[$f->getSpecFieldName()] = (boolean) substr($binFlags, $i, 1); } else if (substr($binFlags, $i, 1) == '1') { $this->classFields[$f->getSpecFieldName()] = $src->read($f->getSpecFieldDomain()); } else { $this->classFields[$f->getSpecFieldName()] = null; } } $en = $src->p; if ($wireSize != ($en - $st)) { throw new \Exception("Invalid content header frame size", 2546); } $this->rcState = $this->rcState | self::ST_CHEAD_READ; } private function readBodyContent (Reader $src, $wireSize) { $this->content .= $src->readN($wireSize); $this->rcState = $this->rcState | self::ST_BODY_READ; } function readConstructComplete () { if ($this->isHb) { return true; } else if (! $this->methProto) { return false; } else if (! $this->methProto->getSpecHasContent()) { return (boolean) $this->rcState & self::ST_METH_READ; } else { return ($this->rcState & self::ST_CHEAD_READ) && (strlen($this->content) >= $this->contentSize); } } function setField ($name, $val) { if ($this->mode == 'read') { trigger_error('Setting field value for read constructed method', E_USER_WARNING); } else if (in_array($name, $this->methProto->getSpecFields())) { $this->fields[$name] = $val; } else if (in_array($name, $this->classProto->getSpecFields())) { $this->classFields[$name] = $val; } else { $warns = sprintf("Field %s is invalid for Amqp message type %s", $name, $this->amqpClass); trigger_error($warns, E_USER_WARNING); } } function getField ($name) { if (array_key_exists($name, $this->fields)) { return $this->fields[$name]; } else if (array_key_exists($name, $this->classFields)) { return $this->classFields[$name]; } else if (! in_array($name, array_merge($this->classProto->getSpecFields(), $this->methProto->getSpecFields()))) { $warns = sprintf("Field %s is invalid for Amqp message type %s", $name, $this->amqpClass); trigger_error($warns, E_USER_WARNING); } } function getFields () { return array_merge($this->classFields, $this->fields); } function setContent ($content) { if ($this->mode == 'read') { trigger_error('Setting content value for read constructed method', E_USER_WARNING); } else if (strlen($content)) { if (! $this->methProto->getSpecHasContent()) { trigger_error('Setting content value for a method which doesn\'t take content', E_USER_WARNING); } $this->content = $content; } } function getContent () { if (! $this->methProto->getSpecHasContent()) { trigger_error('Invalid serialize operation on a method which doesn\'t take content', E_USER_WARNING); return ''; } return $this->content; } function getMethodProto () { return $this->methProto; } function getClassProto () { return $this->classProto; } function getWireChannel () { return $this->wireChannel; } function getWireSize () { return $this->wireSize; } function getWireClassId () { return $this->wireClassId; } function getWireMethodId () { return $this->wireMethodId; } function setMaxFrameSize ($max) { $this->frameSize = $max; } function setWireChannel ($chan) { $this->wireChannel = $chan; } function isHeartbeat () { return $this->isHb; } function toBin (\Closure $protoLoader) { if ($this->mode == 'read') { trigger_error('Invalid serialize operation on a read mode method', E_USER_WARNING); return ''; } $frme = $protoLoader('ProtoConsts', 'GetConstant', array('FRAME_END')); $w = new Writer; $tmp = $this->getMethodBin(); $w->write(1, 'octet'); $w->write($this->wireChannel, 'short'); $w->write(strlen($tmp), 'long'); $buff = $w->getBuffer() . $tmp . $frme; $ret = array($buff); if ($this->methProto->getSpecHasContent()) { $w = new Writer; $tmp = $this->getContentHeaderBin(); $w->write(2, 'octet'); $w->write($this->wireChannel, 'short'); $w->write(strlen($tmp), 'long'); $ret[] = $w->getBuffer() . $tmp . $frme; $tmp = (string) $this->content; $i = 0; $frameSize = $this->frameSize - 8; while (true) { $chunk = substr($tmp, ($i * $frameSize), $frameSize); if (strlen($chunk) == 0) { break; } $w = new Writer; $w->write(3, 'octet'); $w->write($this->wireChannel, 'short'); $w->write(strlen($chunk), 'long'); $ret[] = $w->getBuffer() . $chunk . $frme; $i++; } } return $ret; } private function getMethodBin () { if ($this->mode == 'read') { trigger_error('Invalid serialize operation on a read mode method', E_USER_WARNING); return ''; } $src = new Writer; $src->write($this->classProto->getSpecIndex(), 'short'); $src->write($this->methProto->getSpecIndex(), 'short'); foreach ($this->methProto->getFields() as $f) { $name = $f->getSpecFieldName(); $type = $f->getSpecDomainType(); $val = ''; if (array_key_exists($name, $this->fields)) { $val = $this->fields[$name]; if (! $f->validate($val)) { $warns = sprintf("Field %s of method %s failed validation by protocol binding class %s", $name, $this->amqpClass, get_class($f)); trigger_error($warns, E_USER_WARNING); } } $src->write($val, $type); } return $src->getBuffer(); } private function getContentHeaderBin () { if ($this->mode == 'read') { trigger_error('Invalid serialize operation on a read mode method', E_USER_WARNING); return ''; } else if (! $this->methProto->getSpecHasContent()) { trigger_error('Invalid serialize operation on a method which doesn\'t take content', E_USER_WARNING); return ''; } $src = new Writer; $src->write($this->classProto->getSpecIndex(), 'short'); $src->write(0, 'short'); $src->write(strlen($this->content), 'longlong'); $pFlags = ''; $pChunks = 0; $pList = ''; $src2 = new Writer; foreach ($this->classProto->getFields() as $i => $f) { if (($i % 15) == 0) { if ($i > 0) { $pFlags .= '1'; } $pChunks++; } $fName = $f->getSpecFieldName(); $dName = $f->getSpecFieldDomain(); if (array_key_exists($fName, $this->classFields) && ! ($dName == 'bit' && ! $this->classFields[$fName])) { $pFlags .= '1'; } else { $pFlags .= '0'; } if (array_key_exists($fName, $this->classFields) && $dName != 'bit') { if (! $f->validate($this->classFields[$fName])) { trigger_error("Field {$fName} of method {$this->amqpClass} is not valid", E_USER_WARNING); } $src2->write($this->classFields[$fName], $f->getSpecDomainType()); } } if ($pFlags && (strlen($pFlags) % 16) !== 0) { $pFlags .= str_repeat('0', 16 - (strlen($pFlags) % 16)); } $pBuff = ''; for ($i = 0; $i < $pChunks; $i++) { $pBuff .= pack('n', bindec(substr($pFlags, $i*16, 16))); } return $src->getBuffer() . $pBuff . $src2->getBuffer(); } function isResponse (Method $other) { if ($exp = $this->methProto->getSpecResponseMethods()) { if ($this->classProto->getSpecName() != $other->classProto->getSpecName() || $this->wireChannel != $other->wireChannel) { return false; } else { return in_array($other->methProto->getSpecName(), $exp); } } else { trigger_error("Method does not expect a response", E_USER_WARNING); return false; } } }ModelFactory.php https://code.google.com/p/s3db/ | 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 URIDbiMysqli.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 513 lines
14use PhpMyAdmin\FieldMetadata; 15use PhpMyAdmin\Query\Utilities; 16use stdClass; 27use function stripos; 28use function trigger_error; 29 100 * disables SSL certificate validation on mysqlnd for MySQL 5.6 or later 101 * @link https://bugs.php.net/bug.php?id=68344 102 * @link https://github.com/phpmyadmin/phpmyadmin/pull/11838 134 */ 135 // phpcs:disable Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps 136 $error_number = $mysqli->connect_errno; 137 $error_message = $mysqli->connect_error; 138 // phpcs:enable 139 if (UserController.php git://github.com/drupal/drupal.git | PHP | 364 lines
1<?php 2 79 if (!$flood) { 80 @trigger_error('Calling ' . __METHOD__ . ' without the $flood parameter is deprecated in drupal:8.8.0 and is required in drupal:9.0.0. See https://www.drupal.org/node/1681832', E_USER_DEPRECATED); 81 $flood = \Drupal::service('flood');class_registry.php http://skygames.googlecode.com/svn/trunk/ | PHP | 347 lines
1<?php 2/* SVN FILE: $Id: class_registry.php 7805 2008-10-30 17:30:26Z AD7six $ */ 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 20 * @subpackage cake.cake.libs 21 * @since CakePHP(tm) v 0.9.2 22 * @version $Revision: 7805 $ 24 * @lastmodified $Date: 2008-10-30 12:30:26 -0500 (Thu, 30 Oct 2008) $ 25 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 26 */data.php https://github.com/jonphipps/Metadata-Registry.git | PHP | 207 lines
1<?php 2// Include the connect.php file 2// Include the connect.php file 3include ('connect.php'); 4// Connect to the database 13 if(!isset($_GET['usedwidget'])){ 14 trigger_error("Missing/Invalid widget", E_USER_ERROR); 15 } 202 default: 203 trigger_error("Missing/Invalid category", E_USER_ERROR); 204 }framework_helpers.php http://personal-home-page-framework.googlecode.com/svn/trunk/ | PHP | 403 lines
104 105 /* Fatal errors that occur during PHP's initial startup. 106 * This is like an E_ERROR, except it is generated by the core of PHP. 134 * This is like an E_ERROR, except it is generated in PHP code by 135 * using the PHP function trigger_error(). 136 */ 142 * This is like an E_WARNING, except it is generated in PHP code by 143 * using the PHP function trigger_error(). 144 */ 150 * This is like an E_NOTICE, except it is generated in PHP code by 151 * using the PHP function trigger_error(). 152 */ 180 /* User-generated warning message. This is like an E_DEPRECATED, except it 181 * is generated in PHP code by using the PHP function trigger_error(). 182 */mapfile.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 375 lines
1<?php 2define('DF_BEGIN',0); 223 }else{ 224 trigger_error($msg,$error_code); 225 }HTMLModuleManager.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 418 lines
1<?php 2 134 { 135 trigger_error($original_module . ' module does not exist', E_USER_ERROR); 136 return; 142 { 143 trigger_error('Module instance of ' . get_class($module) . ' must have name'); 144 return; 147 { 148 trigger_error('Overloading ' . $module->name . ' without explicit overload parameter', E_USER_WARNING); 149 }rating.php git://github.com/CakeDC/ratings.git | PHP | 186 lines
1<?php 2/** 8 * @copyright Copyright 2010, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 14/** 15 * CakePHP Ratings Plugin 16 * 156 if (empty($options['item'])) { 157 trigger_error(__d('ratings', 'You must set the id of the item you want to rate.', true), E_USER_NOTICE); 158 }UserHelper.php git://github.com/CakeDC/users.git | PHP | 268 lines
1<?php 2declare(strict_types=1); 10 * @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com) 11 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 */ 196 { 197 trigger_error( 198 'UserHelper::link() deprecated since 3.2.1. Use AuthLinkHelper::link() instead',CroogoTranslateBehavior.php git://github.com/croogo/croogo.git | PHP | 303 lines
1<?php 2 16 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 17 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 18 * @link http://www.croogo.org 54 if (!$db->connected) { 55 trigger_error( 56 __d('croogo', 'Datasource %s for CroogoTranslateBehavior of model %s is not connected', $model->useDbConfig, $model->alias), 284 285if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { 286/**acp_ranks.php git://github.com/phpbb/phpbb.git | PHP | 285 lines
5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 28 global $db, $user, $template, $cache, $request, $phpbb_dispatcher; 29 global $config, $phpbb_root_path, $phpbb_admin_path, $phpbb_log; 30 98 99 $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_RANK_ADDED', false, array($rank_title)); 100 } 112 { 113 trigger_error($user->lang['MUST_SELECT_RANK'] . adm_back_link($this->u_action), E_USER_WARNING); 114 } 223 'S_FILENAME_LIST' => $filename_list, 224 'RANK_IMAGE' => ($edit_img) ? $phpbb_root_path . $config['ranks_path'] . '/' . $edit_img : htmlspecialchars($phpbb_admin_path) . 'images/spacer.gif', 225 'S_SPECIAL_RANK' => (isset($ranks['rank_special']) && $ranks['rank_special']) ? true : false,fonctions.php https://code.google.com/p/ipsumframeworks/ | PHP | 443 lines
1<?php 2function nul(){} 139 $result = mail($to, $subject, $message, $headers) 140 or trigger_error('<<< Error Mail. The mail isn\'t successfully accepted for delivery >>>', E_USER_WARNING); 141 return $result; 143 else { 144 trigger_error('<<< Error Mail. The variable receivers of the mail is empty >>>', E_USER_WARNING); 145 return false; 416 <div class="confirmation"> 417 <p><?php echo $mess_confir ?></p> 418 </div> 418 </div> 419 <?php 420 unset($_REQUEST['CONFIRMATION']); 432 <ul> 433 <?php 434 foreach ($mess_erreur as $key => $value)Persistent.php http://shozu.googlecode.com/svn/trunk/ | PHP | 490 lines
1<?php 2/** 6namespace shozu; 7//trigger_error('"Persistent" is deprecated: use ActiveBean and RedBean.', E_USER_DEPRECATED); 8use \shozu\Record as Record; 25 { 26 // uid is returned by the PHP function uniqid(null, true) 27 $this->addColumn(array(yaf_route_simple.c https://gitlab.com/lcp0578/yaf.git | 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" 23ctl.sitemaps.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 210 lines
1<?php 2class ctl_sitemaps extends adminPage{ 26 function toRemove($node_id){ 27 $this->begin('index.php?ctl=content/sitemaps&act=index'); 28 $mdl = $this->system->loadModel('content/sitemap'); 30 $mdl->remove($node_id); 31 $this->splash('success', 'index.php?ctl=content/sitemaps&act=index', __('??????!')); 32 }else{ 32 }else{ 33 $this->splash('failed', 'index.php?ctl=content/sitemaps&act=index', __($string?$string:'???????????')); 34 } 42 if (empty($_POST['title'])){ 43 $this->splash('failed','index.php?ctl=content/sitemaps',__('??????')); 44 exit(); 46 47 $this->begin('index.php?ctl=content/sitemaps&act=index'); 48 $sitemap = $this->system->loadModel('content/sitemap');ReCaptcha.php http://grupal.googlecode.com/svn/trunk/ | PHP | 503 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 25295 2013-03-20 09:54:29Z frosch $ 40 */ 168 $return = ''; 169 trigger_error($e->getMessage(), E_USER_WARNING); 170 }PaypalHelper.php git://github.com/webtechnick/CakePHP-Paypal-IPN-Plugin.git | PHP | 337 lines
1<?php 2/** 19 * Setup the config based on either the Configure::read('debug') values 20 * or the PaypalIpnConfig in config/paypal_ipn_config.php 21 * 23 * Configure::read('PaypalIpn') 24 * App::import() of config/paypal_ipn_config.php 25 * App::import() of plugin's config/paypal_ipn_config.php 33 'name' => 'PaypalIpn.PaypalIpnConfig', 34 'file' => APP . 'Config' . DS . 'paypal_ipn_config.php' 35 ); 40 // Import from paypal plugin configuration 41 $importConfig['file'] = 'Config' . DS . 'paypal_ipn_config.php'; 42 App::import($importConfig); 44 if (!class_exists('PaypalIpnConfig')) { 45 trigger_error(__d('paypal_ipn', 'PaypalIpnConfig: The configuration could not be loaded.'), E_USER_ERROR); 46 }SoftDeleteBehavior.php git://github.com/CakeDC/utils.git | PHP | 369 lines
1<?php 2/** 8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 55 if ($date && !$model->hasField($date)) { 56 trigger_error($error . $date, E_USER_NOTICE); 57 return; 60 } 61 trigger_error($error . $flag, E_USER_NOTICE); 62 return;ez_sql_cubrid.php git://github.com/jv2222/ezSQL.git | PHP | 262 lines
1<?php 2 14 15 if ( ! function_exists ('cubrid_connect') ) die('<b>Fatal Error:</b> ezSQL_cubrid requires CUBRID PHP Driver to be compiled and or linked in to the PHP engine'); 16 if ( ! class_exists ('ezSQLcore') ) die('<b>Fatal Error:</b> ezSQL_cubrid requires ezSQLcore (ez_sql_core.php) to be included/loaded before it can be used'); 70 $this->register_error($ezSQL_cubrid_str[1].' in '.__FILE__.' on line '.__LINE__); 71 $this->show_errors ? trigger_error($ezSQL_cubrid_str[1],E_USER_WARNING) : null; 72 } 76 $this->register_error($ezSQL_cubrid_str[2].' in '.__FILE__.' on line '.__LINE__); 77 $this->show_errors ? trigger_error($ezSQL_cubrid_str[2],E_USER_WARNING) : null; 78 } 182 $this->register_error($str); 183 $this->show_errors ? trigger_error($str,E_USER_WARNING) : null; 184 return false;Cache.php git://github.com/drupal/drupal.git | PHP | 188 lines
1<?php 2 105 public static function validateTags(array $tags) { 106 @trigger_error(__NAMESPACE__ . '\Cache::validateTags() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use assert(\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)) instead.', E_USER_DEPRECATED); 107 if (empty($tags)) {Password.php https://gitlab.com/participatorio/estacaojuventude_php-angular.git | PHP | 282 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 5 * Include it via require: 6 * require CakePlugin::path('Tools') . 'Lib/Bootstrap/Password.php'; 7 * 7 * 8 * @author Anthony Ferrara <ircmaxell@php.net> 9 * @license http://www.opensource.org/licenses/mit-license.html MIT License 30 if (!function_exists('crypt')) { 31 trigger_error("Crypt must be loaded for password_hash to function", E_USER_WARNING); 32 return null; 34 if (!is_string($password)) { 35 trigger_error("password_hash(): Password must be a string", E_USER_WARNING); 36 return null;CommentDefaultFormatter.php git://github.com/drupal/drupal.git | PHP | 301 lines
1<?php 2 148 if (!$entity_display_repository) { 149 @trigger_error('Calling RssPluginBase::__construct() with the $entity_repository argument is supported in drupal:8.7.0 and will be required before drupal:9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 150 $entity_display_repository = \Drupal::service('entity_display.repository');class.curl.php https://bitbucket.org/chamilo/chamilo-ext-repo-box-dev/ | PHP | 361 lines
6 * The cURL class is a thin wrapper around the procedural interface 7 * to cURL provided by PHP. I use it mostly as a base class for 8 * web services whose low level interface is, literally, web pages. 32// Dick Munroe munroe@csworks.com 01-Dec-2004 33// Forgot to check for cURL actually being in this instance of PHP. 34// 105 * 106 * @link http://www.php.net/curl_getinfo 107 * @link http://www.php.net/curl_errno 107 * @link http://www.php.net/curl_errno 108 * @link http://www.php.net/curl_error 109 * @access private 132 { 133 trigger_error('PHP was not built with --with-curl, rebuild PHP to use the curl class.', E_USER_ERROR); 134 }LoggerConfigurationAdapterINI.php https://code.google.com/p/celebrio/ | PHP | 306 lines
17 * 18 * @package log4php 19 */ 38 /** Prefix used for defining logger additivity. */ 39 const ADDITIVITY_PREFIX = "log4php.additivity."; 40 65 * 66 * @see http://php.net/manual/en/function.parse-ini-file.php 67 * 139 * <pre> 140 * log4php.logger.<name> = [<level>], [<appender-ref>, <appender-ref>, ...] 141 * </pre> 275 276 trigger_error("log4php: Don't know how to parse the following line: \"$key = $value\". Skipping."); 277 }bug_revision_api.php git://pkgs.fedoraproject.org/mantis | PHP | 355 lines
1<?php 2# Mantis - a php based bugtracking system 114 if ( db_num_rows( $t_result ) < 1 ) { 115 trigger_error( ERROR_BUG_REVISION_NOT_FOUND, ERROR ); 116 } 122 * Get the name of the type of a bug revision. 123 * @param int $p_revision_id Revision type ID (see constant_inc.php for possible values) 124 * @return string Name of the type of the bug revision 319 if ( db_num_rows( $t_result ) < 1 ) { 320 trigger_error( ERROR_BUG_REVISION_NOT_FOUND, ERROR ); 321 }MenuLinkParent.php git://github.com/drupal/drupal.git | PHP | 177 lines
1<?php 2 85 if ($migrate_lookup instanceof MigrateProcessInterface) { 86 @trigger_error('Passing a migration process plugin as the fourth argument to ' . __METHOD__ . ' is deprecated in drupal:8.8.0 and will throw an error in drupal:9.0.0. Pass the migrate.lookup service instead. See https://www.drupal.org/node/3047268', E_USER_DEPRECATED); 87 $this->migrationPlugin = $migrate_lookup;PresenterComponent.php https://github.com/vojtech-dobes/nette.git | PHP | 398 lines
1<?php 2 220 { 221 //trigger_error(__METHOD__ . '() is deprecated; use getParameter() instead.', E_USER_DEPRECATED); 222 return func_num_args() ? $this->getParameter($name, $default) : $this->getParameter();mcp.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 326 lines
5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 17define('IN_PHPBB', true); 18$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 19$phpEx = substr(strrchr(__FILE__, '.'), 1); 314// Assign data to the template engine for the list of modules 315$module->assign_tpl_vars(append_sid("{$phpbb_root_path}mcp.$phpEx")); 316 319 'U_MCP' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main'), 320 'U_MCP_FORUM' => ($forum_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=forum_view&f=$forum_id") : '', 321 'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '', 321 'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '', 322 'U_MCP_POST' => ($forum_id && $topic_id && $post_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=post_details&t=$topic_id&p=$post_id") : '', 323));Node.php git://github.com/drupal/drupal.git | PHP | 320 lines
1<?php 2 68 if (!$entity_display_repository) { 69 @trigger_error('The entity_display.repository service must be passed to ' . __METHOD__ . ', it is required before Drupal 9.0.0. See https://www.drupal.org/node/2835616.', E_USER_DEPRECATED); 70 $entity_display_repository = \Drupal::service('entity_display.repository'); 73 if (!$entity_field_manager) { 74 @trigger_error('The entity_field.manager service must be passed to ' . __METHOD__ . ', it is required before Drupal 9.0.0. See https://www.drupal.org/node/2835616.', E_USER_DEPRECATED); 75 $entity_field_manager = \Drupal::service('entity_field.manager');visual_test.php git://pkgs.fedoraproject.org/pgfouine | PHP | 386 lines
1<?php 2 // $Id: visual_test.php,v 1.1 2005/11/09 23:41:18 gsmet Exp $ 12 // 13 // The proper tests start in all_tests.php 14 require_once('../unit_tester.php'); 14 require_once('../unit_tester.php'); 15 require_once('../shell_tester.php'); 16 require_once('../mock_objects.php'); 16 require_once('../mock_objects.php'); 17 require_once('../reporter.php'); 18 require_once('../xml.php'); 161 function testErrorDisplay() { 162 trigger_error('Default'); // Exception. 163 trigger_error('Error', E_USER_ERROR); // Exception. 163 trigger_error('Error', E_USER_ERROR); // Exception. 164 trigger_error('Warning', E_USER_WARNING); // Exception. 165 trigger_error('Notice', E_USER_NOTICE); // Exception.Theme_Manager.class.php git://github.com/jyr/MNPP.git | PHP | 382 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);TestCase.php git://github.com/phergie/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 ' . $typeEsmtpTransport.php git://github.com/snytkine/LampCMS.git | PHP | 395 lines
1<?php 2 249 } 250 trigger_error('Call to undefined method ' . $method, E_USER_ERROR); 251 }ajax.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 408 lines
1<?php 2 7 8require('./common.php'); 9 21 case 'view_post': 22 require(INC_DIR . 'bbcode.php'); 23 break; 26 case 'post_mod_comment': 27 require(INC_DIR . 'bbcode.php'); 28 require(INC_DIR . 'functions_post.php'); 28 require(INC_DIR . 'functions_post.php'); 29 require(INC_DIR . 'functions_admin.php'); 30 break; 35 case 'gen_passkey': 36 require(BB_ROOT . 'attach_mod/attachment_mod.php'); 37 require(INC_DIR . 'functions_torrent.php');sponsorship_api.php git://pkgs.fedoraproject.org/mantis | PHP | 427 lines
1<?php 2# MantisBT - a php based bugtracking system 28 */ 29require_once( 'email_api.php' ); 30/** 32 */ 33require_once( 'bug_api.php' ); 34/** 36 */ 37require_once( 'history_api.php' ); 38 68 * @param int $p_sponsorship_id 69 * @param bool $p_trigger_errors 70 * @return array 71 */ 72function sponsorship_cache_row( $p_sponsorship_id, $p_trigger_errors = true ) { 73 global $g_cache_sponsorships;edit.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 204 lines
46 47 <head><title> <?php echo url::organizationName() ; ?> </title> 48 48 49 <?php 50 include($location->GLOO_META_TAGS); 91 92 <?php 93 $sticky = $glooWeb->getStickyMap('page_edit_section'); 109 110 <div id="tabs-1"> <?php include('inc/rename.php'); ?> </div> 111 <div id="tabs-2"> <?php include('inc/lock.php'); ?></div> 111 <div id="tabs-2"> <?php include('inc/lock.php'); ?></div> 112 <div id="tabs-3"> <?php include('inc/seo.php'); ?> </div> 113collapse_api.php git://pkgs.fedoraproject.org/mantis | PHP | 247 lines
1<?php 2# MantisBT - a php based bugtracking system 35 * 36 * @uses tokens_api.php 37 * @uses utility_api.php 37 * @uses utility_api.php 38 * @uses config_api.php 39 * @uses authentiction_api.php 39 * @uses authentiction_api.php 40 * @uses current_user_api.php 41 * @uses gpc_api.php 46 */ 47require_once( 'tokens_api.php' ); 48 81 if( $g_current_collapse_section !== null ) { 82 trigger_error( ERROR_GENERIC, ERROR ); 83 }php.js git://github.com/simogeo/Filemanager.git | JavaScript | 140 lines
32 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 33 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 34 multiLineStrings: true, 63 var htmlMode = CodeMirror.getMode(config, "text/html"); 64 var phpMode = CodeMirror.getMode(config, phpConfig); 65 91 return style; 92 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 93 state.curMode = htmlMode; 112 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 113 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 114 if (state.curMode == htmlMode) cur = htmlNew; 138 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 139 CodeMirror.defineMIME("text/x-php", phpConfig); 140});HTMLModuleManager.php git://github.com/anantgarg/Qwench.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 }Config_File.class.php git://github.com/modxcms/revolution.git | PHP | 390 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_msgutf8.php https://github.com/Xeoncross/php_utf8.git | PHP | 441 lines
1<?php 2/** 2/** 3 * php_utf8 4 * 9 * @author David Pennington <xeoncross.com> 10 * @link http://sourceforge.net/projects/phputf8/ 11 * @link http://github.com/Xeoncross/php_utf8 11 * @link http://github.com/Xeoncross/php_utf8 12 * @license http://opensource.org/licenses/mit-license.php MIT License 13 */ 24 { 25 trigger_error 26 ( 47 'Neither the <a href="http://php.net/iconv">iconv</a> nor <a href="http://'. 48 'php.net/mbstring">mbstring</a> PHP extensions are loaded. Without one of '. 49 'these, UTF-8 strings cannot be properly handled.',DiscussionSearchType.php https://github.com/vanilla/vanilla.git | PHP | 483 lines
1<?php 2/** 145 } catch (HttpException $exception) { 146 trigger_error($exception->getMessage(), E_USER_WARNING); 147 return [];errors.inc git://github.com/drupal/drupal.git | Pascal | 327 lines
18 * The error constants are documented at 19 * http://php.net/manual/errorfunc.constants.php 20 * 45/** 46 * Provides custom PHP error handling. 47 * 69 // As __toString() methods must not throw exceptions (recoverable errors) 70 // in PHP, we allow them to trigger a fatal error by emitting a user error 71 // using trigger_error(). 121 * are plain-text, with the exception of @message, which needs to be an HTML 122 * string, and backtrace, which is a standard PHP backtrace. 123 * @param bool $fatal 139 // $number does not use drupal_static as it should not be reset 140 // as it uniquely identifies each PHP error. 141 static $number = 0;services9.php https://bitbucket.org/zima2219981998/blogweb1.2.git | PHP | 411 lines
1<?php 2 166 { 167 @trigger_error('The "deprecated_service" service is deprecated. You should stop using it, as it will soon be removed.', E_USER_DEPRECATED); 168 293 { 294 require_once '%path%foo.php'; 295document.inc.php http://prosporous.googlecode.com/svn/trunk/ | PHP | 324 lines
1<?php 2/* 2/* 3 File: document.inc.php 4 8 9 Please see <copyright.inc.php> for a detailed description, copyright 10 and license information. 14 @package xajax 15 @version $Id: document.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $ 16 @copyright Copyright (c) 2005-2006 by Jared White & J. Max Wilson 40 if (isset($aConfiguration['attributes'])) 41 trigger_error( 42 'clsDocument objects cannot have attributes.' 77 if (null === $sFormat && false == defined('XAJAX_HTML_CONTROL_DOCTYPE_FORMAT')) 78 trigger_error('You must specify a doctype format.', E_USER_ERROR); 79 if (null === $sVersion && false == defined('XAJAX_HTML_CONTROL_DOCTYPE_VERSION'))Translator.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 476 lines
1<?php 2 156 { 157 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the setFallbackLocales() method instead.', E_USER_DEPRECATED); 158 265 { 266 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use TranslatorBagInterface::getCatalogue() method instead.', E_USER_DEPRECATED); 267 316 $this->assertValidLocale($locale); 317 $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0. 318 $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale), 333 /** 334 * This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0. 335 * 343 $content = sprintf(<<<EOF 344<?php 345ctl.gtype.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 298 lines
1<?php 2/** 90 if (empty($_POST['name'])){ 91 $this->begin('index.php?ctl=goods/gtype&act=newType'); 92 trigger_error('????????',E_USER_ERROR); 96 $this->begin('index.php?ctl=goods/gtype&act=newType'); 97 trigger_error('????????30?',E_USER_ERROR); 98 $this->end(); 99 } 100 $this->begin('index.php?ctl=goods/gtype&act=index'); 101 $objGtype = $this->system->loadModel('goods/gtype'); 156 function delete(){ 157 $this->begin('index.php?ctl=goods/gtype&act=index'); 158 $objType = $this->system->loadModel('goods/gtype'); 240 function fetchSave(){ 241 $this->begin('index.php?ctl=goods/gtype&act=index',array(300001=>'index.php?ctl=goods/gtype&act=fetchProtoTypes&p[0]=gtype.php&p[1]=id='.$_POST['param_id'])); 242 $xml = $this->system->loadModel('utility/xml');recalc.php git://github.com/q2a/question2answer.git | PHP | 809 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 51 ================================= 52 ^sharedevents (all): per-entity event streams (see big comment in /qa-include/db/favorites.php) 53 ^userevents (all): per-subscriber event streams 63if (defined('QA_DEBUG_PERFORMANCE') && QA_DEBUG_PERFORMANCE) { 64 trigger_error('Included file ' . basename(__FILE__) . ' is deprecated'); 65} 66 67require_once QA_INCLUDE_DIR . 'db/recalc.php'; 68require_once QA_INCLUDE_DIR . 'db/post-create.php'; 68require_once QA_INCLUDE_DIR . 'db/post-create.php'; 69require_once QA_INCLUDE_DIR . 'db/points.php'; 70require_once QA_INCLUDE_DIR . 'db/selects.php';ez_sql_oracleTNS.php git://github.com/jv2222/ezSQL.git | PHP | 472 lines
87 * Default is false 88 * @throws Exception Requires Orcle OCI Lib and ez_sql_core.php 89 */ 198 $this->register_error($php_errormsg); 199 $this->show_errors ? trigger_error($php_errormsg,E_USER_WARNING) : null; 200 } else { 207 $this->register_error($php_errormsg); 208 $this->show_errors ? trigger_error($php_errormsg,E_USER_WARNING) : null; 209 } else { 228 $this->register_error($php_errormsg); 229 $this->show_errors ? trigger_error($php_errormsg,E_USER_WARNING) : null; 230 } else { 237 $this->register_error($php_errormsg); 238 $this->show_errors ? trigger_error($php_errormsg,E_USER_WARNING) : null; 239 } else {ezsqlModel.php git://github.com/jv2222/ezSQL.git | PHP | 903 lines
1<?php 2 440 if ($this->showErrors && $displayError) 441 \trigger_error(\htmlentities($err_str), \E_USER_WARNING); 442HTMLPurifier.standalone.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 21873 lines
1<?php 2 4 * @file 5 * This file was auto-generated by generate-includes.php and includes all of 6 * the core files required by HTML Purifier. Use this if performance is a 146 { 147 trigger_error( 148 'HTMLPurifier->addFilter() is deprecated, use configuration directives' .ExportSql.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 2859 lines
1<?php 2/** 7 8namespace PhpMyAdmin\Plugins\Export; 9 9 10use PhpMyAdmin\Charsets; 11use PhpMyAdmin\DatabaseInterface; 11use PhpMyAdmin\DatabaseInterface; 12use PhpMyAdmin\FieldMetadata; 13use PhpMyAdmin\Plugins\ExportPlugin; 13use PhpMyAdmin\Plugins\ExportPlugin; 14use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup; 15use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup; 15use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup; 16use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup; 17use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;Mail.php git://github.com/Znarkus/postmark-php.git | PHP | 638 lines
1<?php 2 7/** 8 * Postmark PHP class 9 * 16 * @version 0.5 17 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 18 */ 59 if (!$reflection->implementsInterface('MailAdapterInterface')) { 60 trigger_error('Mail_Postmark_Adapter must implement interface MailAdapterInterface', E_USER_ERROR); 61 }NavigationTree.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1467 lines
1<?php 2/** 7 8namespace PhpMyAdmin\Navigation; 9 9 10use PhpMyAdmin\CheckUserPrivileges; 11use PhpMyAdmin\DatabaseInterface; 11use PhpMyAdmin\DatabaseInterface; 12use PhpMyAdmin\Html\Generator; 13use PhpMyAdmin\Navigation\Nodes\Node; 13use PhpMyAdmin\Navigation\Nodes\Node; 14use PhpMyAdmin\Navigation\Nodes\NodeDatabase; 15use PhpMyAdmin\Navigation\Nodes\NodeTable; 15use PhpMyAdmin\Navigation\Nodes\NodeTable; 16use PhpMyAdmin\Navigation\Nodes\NodeTableContainer; 17use PhpMyAdmin\Navigation\Nodes\NodeViewContainer;HomeController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 457 lines
16use PhpMyAdmin\Message; 17use PhpMyAdmin\RecentFavoriteTable; 18use PhpMyAdmin\Relation; 75 // This is for $cfg['ShowDatabasesNavigationAsTree'] = false; 76 // See: https://github.com/phpmyadmin/phpmyadmin/issues/16520 77 // The DB is defined here and sent to the JS front-end to refresh the DB tree 189 $webServer['php_extensions'] = Util::listPHPExtensions(); 190 $webServer['php_version'] = PHP_VERSION; 191 } 243 'web_server' => $webServer, 244 'show_php_info' => $cfg['ShowPhpInfo'], 245 'is_version_checked' => $cfg['VersionCheck'], 267 __( 268 'Your PHP parameter [a@https://www.php.net/manual/en/session.' . 269 'configuration.php#ini.session.gc-maxlifetime@_blank]session.' .FormDisplay.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 892 lines
1<?php 2/** 14 15namespace PhpMyAdmin\Config; 16 16 17use PhpMyAdmin\Config\Forms\User\UserFormList; 18use PhpMyAdmin\Html\MySQLDocumentation; 18use PhpMyAdmin\Html\MySQLDocumentation; 19use PhpMyAdmin\Sanitize; 20use PhpMyAdmin\Util; 38use function str_replace; 39use function trigger_error; 40use function trim; 411 case 'NULL': 412 trigger_error('Field ' . $systemPath . ' has no type', E_USER_WARNING); 413Table.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 2713 lines
1<?php 2 4 5namespace PhpMyAdmin; 6 6 7use PhpMyAdmin\Html\Generator; 8use PhpMyAdmin\Html\MySQLDocumentation; 8use PhpMyAdmin\Html\MySQLDocumentation; 9use PhpMyAdmin\Plugins\Export\ExportSql; 10use PhpMyAdmin\Query\Compatibility; 10use PhpMyAdmin\Query\Compatibility; 11use PhpMyAdmin\Query\Generator as QueryGenerator; 12use PhpMyAdmin\SqlParser\Components\Expression; 12use PhpMyAdmin\SqlParser\Components\Expression; 13use PhpMyAdmin\SqlParser\Components\OptionsArray; 14use PhpMyAdmin\SqlParser\Context;LanguageManager.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 975 lines
1<?php 2 4 5namespace PhpMyAdmin; 6 16use function strtolower; 17use function trigger_error; 18use function uasort;ErrorHandler.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 614 lines
1<?php 2 4 5namespace PhpMyAdmin; 6 16use function set_error_handler; 17use function trigger_error; 18 33use const E_WARNING; 34use const PHP_VERSION_ID; 35 67 * This behavior is not tested there and breaks other tests as they 68 * rely on PHPUnit doing it's own error handling which we break here. 69 */ 199 * user errors even in this case. 200 * See: https://github.com/phpmyadmin/phpmyadmin/issues/16729 201 */DatabaseInterface.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 2436 lines
1<?php 2/** 7 8namespace PhpMyAdmin; 9 10use mysqli_result; 11use PhpMyAdmin\Database\DatabaseList; 12use PhpMyAdmin\Dbal\DatabaseName; 12use PhpMyAdmin\Dbal\DatabaseName; 13use PhpMyAdmin\Dbal\DbalInterface; 14use PhpMyAdmin\Dbal\DbiExtension; 14use PhpMyAdmin\Dbal\DbiExtension; 15use PhpMyAdmin\Dbal\DbiMysqli; 16use PhpMyAdmin\Dbal\Warning; 16use PhpMyAdmin\Dbal\Warning; 17use PhpMyAdmin\Html\Generator; 18use PhpMyAdmin\Query\Cache;Core.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 998 lines
77 /** 78 * displays the given error message on phpMyAdmin error page in foreign language, 79 * ends script execution and closes session 161 /* List of PHP documentation translations */ 162 $php_doc_languages = [ 163 'pt_BR', 175 $lang = 'en'; 176 if (isset($GLOBALS['lang']) && in_array($GLOBALS['lang'], $php_doc_languages)) { 177 $lang = $GLOBALS['lang']; 203 204 $doclink = self::getPHPDocLink('book.' . $extension . '.php'); 205 $message = sprintf($message, '[a@' . $doclink . '@Documentation][em]' . $extension . '[/em][/a]'); 372 * Avoid relative path redirect problems in case user entered URL 373 * like /phpmyadmin/index.php/ which some web servers happily accept. 374 */Config.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1384 lines
179 * Determines platform (OS), browser and version of the user 180 * Based on a phpBuilder article: 181 * 181 * 182 * @see http://www.phpbuilder.net/columns/tim20000821.php 183 */ 282 /** 283 * Whether the Web server php is running on is IIS 284 */ 313 314 if (stripos(PHP_OS, 'win') !== false && stripos(PHP_OS, 'darwin') === false) { 315 // Is it some version of Windows 436 $userPreferences = new UserPreferences(); 437 // index.php should load these settings, so that phpmyadmin.css.php 438 // will have everything available in session cacheCommon.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 620 lines
299 */ 300 private static function checkRequiredPhpExtensions(): void 301 { 373 374 $PMA_PHP_SELF = Core::getenv('PHP_SELF'); 375 if (empty($PMA_PHP_SELF)) { 382 if ($question_pos != false) { 383 $PMA_PHP_SELF = mb_substr($PMA_PHP_SELF, 0, $question_pos); 384 } 389 if ($path_info_part == $_PATH_INFO) { 390 $PMA_PHP_SELF = mb_substr($PMA_PHP_SELF, 0, $path_info_pos); 391 } 395 $path = []; 396 foreach (explode('/', $PMA_PHP_SELF) as $part) { 397 // ignore parts that have no valueFacetSet.php git://github.com/basdenooijer/solarium.git | PHP | 547 lines
1<?php 2/** 332 //double add calls for the same facet are ignored, but non-unique keys cause an exception 333 //@todo add trigger_error with a notice for double add calls? 334 if (array_key_exists($key, $this->facets) && $this->facets[$key] !== $facet) {MongodbSourceTest.php git://github.com/ichikaway/cakephp-mongodb.git | PHP | 1956 lines
1<?php 2/** 2/** 3 * Test cases for the Cakephp mongoDB datasource. 4 * 4 * 5 * This datasource uses Pecl Mongo (http://php.net/mongo) 6 * and is thus dependent on PHP 5.0 and greater. 15 * @subpackage mongodb.tests.cases.datasources 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 */ 228 } catch (MongoException $e) { 229 trigger_error($e->getMessage()); 230 } 248 } catch (MongoException $e) { 249 trigger_error($e->getMessage()); 250 }MongodbSource.php git://github.com/ichikaway/cakephp-mongodb.git | PHP | 1615 lines
1<?php 2/** 2/** 3 * A CakePHP datasource for the mongoDB (http://www.mongodb.org/) document-oriented database. 4 * 4 * 5 * This datasource uses Pecl Mongo (http://php.net/mongo) 6 * and is thus dependent on PHP 5.0 and greater. 23 * @subpackage mongodb.models.datasources 24 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 25 */ 217 if (!$return || !$return['ok']) { 218 trigger_error('MongodbSource::connect ' . $return['errmsg']); 219 return false; 226 $this->error = $e->getMessage(); 227 trigger_error($this->error); 228 }SectionStorageManager.php git://github.com/drupal/drupal.git | PHP | 132 lines
1<?php 2 48 if (!$context_handler) { 49 @trigger_error('The context.handler service must be passed to \Drupal\layout_builder\SectionStorage\SectionStorageManager::__construct(); it was added in Drupal 8.7.0 and will be required before Drupal 9.0.0.', E_USER_DEPRECATED); 50 $context_handler = \Drupal::service('context.handler'); 117 public function loadFromStorageId($type, $id) { 118 @trigger_error('\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadFromStorageId() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load() should be used instead. See https://www.drupal.org/node/3012353.', E_USER_DEPRECATED); 119 $contexts = $this->loadEmpty($type)->deriveContextsFromRoute($id, [], '', []); 126 public function loadFromRoute($type, $value, $definition, $name, array $defaults) { 127 @trigger_error('\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::loadFromRoute() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. \Drupal\layout_builder\SectionStorageInterface::deriveContextsFromRoute() and \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load() should be used instead. See https://www.drupal.org/node/3012353.', E_USER_DEPRECATED); 128 $contexts = $this->loadEmpty($type)->deriveContextsFromRoute($value, $definition, $name, $defaults);FieldableEntityNormalizerTrait.php git://github.com/drupal/drupal.git | PHP | 265 lines
1<?php 2 163 if (!$this->entityTypeRepository) { 164 @trigger_error('The entityTypeRepository property must be set on the FieldEntityNormalizerTrait, it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 165 $this->entityTypeRepository = \Drupal::service('entity_type.repository'); 177 if (!$this->entityFieldManager) { 178 @trigger_error('The entityFieldManager property must be set on the FieldEntityNormalizerTrait, it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 179 $this->entityFieldManager = \Drupal::service('entity_field.manager'); 191 if (!$this->entityTypeManager) { 192 @trigger_error('The entityTypeManager property must be set on the FieldEntityNormalizerTrait, it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 193 $this->entityTypeManager = \Drupal::service('entity_type.manager');FormTypeCsrfExtension.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 172 lines
1<?php 2 123 if (null !== $options['intention']) { 124 @trigger_error('The form option "intention" is deprecated since version 2.8 and will be removed in 3.0. Use "csrf_token_id" instead.', E_USER_DEPRECATED); 125 } 143 if (null !== $csrfProvider) { 144 @trigger_error('The form option "csrf_provider" is deprecated since version 2.8 and will be removed in 3.0. Use "csrf_token_manager" instead.', E_USER_DEPRECATED); 145resizeimage.php git://github.com/plusglobal/BrowniePHP.git | PHP | 244 lines
1<?php 2/** 2/** 3* helped by http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/ 4*/ 200 if (!$type) { 201 trigger_error( '...come up with an error here...', E_USER_NOTICE ); 202 return null; 205 if ( !isset($e[$type]) ) { 206 trigger_error( '...come up with an error here...', E_USER_NOTICE ); 207 return null; 227 if (!$type) { 228 trigger_error( '...come up with an error here...', E_USER_NOTICE ); 229 return null; 232 if ( !isset($m[$type]) ) { 233 trigger_error( '...come up with an error here...', E_USER_NOTICE ); 234 return null;roadmap_page.php git://pkgs.fedoraproject.org/mantis | PHP | 317 lines
1<?php 2# MantisBT - a php based bugtracking system 25 */ 26 require_once( 'core.php' ); 27 27 28 require_once( 'bug_api.php' ); 29 36 37 $t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line( $t_project_name ) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line( $t_version_name ) . '</a>'; 38 47 echo '<tt>'; 48 echo '<br />', $t_release_title, $t_scheduled_release_date, lang_get( 'word_separator' ), print_bracket_link( 'view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value( FILTER_PROPERTY_TARGET_VERSION, $t_version_name ), lang_get( 'view_bugs_link' ) ), '<br />'; 49 67 if ( $f_project_id === 0 ) { 68 trigger_error( ERROR_PROJECT_NOT_FOUND, ERROR ); 69 }EntityRepository.php git://github.com/drupal/drupal.git | PHP | 306 lines
1<?php 2 53 else { 54 @trigger_error('The context.repository service must be passed to EntityRepository::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/2938929.', E_USER_DEPRECATED); 55 $this->contextRepository = \Drupal::service('context.repository');csrest_events.php git://github.com/campaignmonitor/createsend-php.git | PHP | 332 lines
1<?php 2require_once dirname(__FILE__).'/class/base_classes.php'; 95 if (!isset($event_type)) { 96 trigger_error('$event_type should be one of \'custom\', \'identify\' or \'shopify\''); 97 } 107 if (!isset($client_id)) { 108 trigger_error('$client_id needs to be set'); 109 } 120 if (!isset($event_type)) { 121 trigger_error('$event_type needs to be set'); 122 return new CS_REST_Wrapper_Result(null, 400); 127 strcmp($event_type,"shopify") !== 0) { 128 trigger_error('$event_type needs to be one of \'custom\', \'identify\' or \'shopify\''); 129 $this->_invalid_event = true; 142 if (!isset($email)) { 143 trigger_error('$email needs to be set'); 144 return new CS_REST_Wrapper_Result(null, 400);Config_File.class.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 390 lines
22 * @copyright Copyright: 2001-2004 ispi of Lincoln, Inc. 23 * @author Andrei Zmievski <andrei@php.net> 24 * @access public 27 28/* $Id: Config_File.class.php,v 1.72 2004/09/07 14:48:55 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_msgcroogo_translate.php http://croogo.googlecode.com/svn/trunk/ | PHP | 295 lines
1<?php 2/* SVN FILE: $Id$ */ 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 20 * @subpackage cake.cake.libs.model.behaviors 21 * @since CakePHP(tm) v 1.2.0.4525 22 * @version $Revision$ 24 * @lastmodified $Date$ 25 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 26 */ChainedBlockStream.php git://github.com/moodle/moodle.git | PHP | 207 lines
1<?php 2 3/** 4 * PHPExcel_Shared_OLE_ChainedBlockStream 5 * 5 * 6 * Copyright (c) 2006 - 2015 PHPExcel 7 * 21 * 22 * @category PHPExcel 23 * @package PHPExcel_Shared_OLE 27 */ 28class PHPExcel_Shared_OLE_ChainedBlockStream 29{ 68 if ($options & STREAM_REPORT_ERRORS) { 69 trigger_error('Only reading is supported', E_USER_WARNING); 70 }Settings.php git://github.com/drupal/drupal.git | PHP | 194 lines
1<?php 2 73 * 74 * Settings can be set in settings.php in the $settings array and requested 75 * by this function. Settings should be used over configuration for read-only, 87 if ($name === 'install_profile' && isset(self::$instance->storage[$name])) { 88 @trigger_error('To access the install profile in Drupal 8 use \Drupal::installProfile() or inject the install_profile container parameter into your service. See https://www.drupal.org/node/2538996', E_USER_DEPRECATED); 89 } 103 /** 104 * Bootstraps settings.php and the Settings singleton. 105 * 111 * The class loader that is used for this request. Passed by reference and 112 * exposed to the local scope of settings.php, so as to allow it to be 113 * decorated with Symfony's ApcClassLoader, for example. 114 * 115 * @see default.settings.php 116 */function_8html__table_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 134 lines
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<title>openbiz: E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_table.php Source File</title> 6<link href="tabs.css" rel="stylesheet" type="text/css"/> 28 <div class="headertitle"> 29<h1>E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_table.php</h1> </div> 30</div> 31<div class="contents"> 32<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 33<a name="l00044"></a>00044 function smarty_function_html_table($params, &$smarty) 45<a name="l00056"></a>00056 <span class="keywordflow">if</span> (!isset($params[<span class="stringliteral">'loop'</span>])) { 46<a name="l00057"></a>00057 $smarty->trigger_error(<span class="stringliteral">"html_table: missing 'loop' parameter"</span>); 47<a name="l00058"></a>00058 <span class="keywordflow">return</span>;AnnotationsParser.php git://github.com/nette/nette.git | PHP | 358 lines
1<?php 2 19/** 20 * Annotations support for PHP. 21 * 26{ 27 /** @internal single & double quoted PHP string */ 28 const RE_STRING = '\'(?:\\\\.|[^\'\\\\])*\'|"(?:\\\\.|[^"\\\\])*"'; 100 if (!self::$cacheStorage) { 101 // trigger_error('Set a cache storage for annotations parser via Nette\Reflection\AnnotationParser::setCacheStorage().', E_USER_WARNING); 102 self::$cacheStorage = new Nette\Caching\Storages\DevNullStorage; 144 /** 145 * Parses phpDoc comment. 146 * @param string 232 /** 233 * Parses PHP file. 234 * @param stringGenerator.php git://github.com/gallery/gallery3-contrib.git | PHP | 229 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 102 $nl = $this->config->get('Output.Newline'); 103 if ($nl === null) $nl = PHP_EOL; 104 if ($nl !== "\n") $html = str_replace("\n", $nl, $html); 115 if (!$token instanceof HTMLPurifier_Token) { 116 trigger_error('Cannot generate HTML from non-HTMLPurifier_Token object', E_USER_WARNING); 117 return ''; 221 // Workaround for APC bug on Mac Leopard reported by sidepodcast 222 // http://htmlpurifier.org/phorum/read.php?3,4823,4846 223 if ($quote === null) $quote = ENT_COMPAT;CakeValidationRule.php git://github.com/yandod/candycane.git | PHP | 350 lines
1<?php 2/** 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.Model.Validator 16 * @package Cake.Model.Validator 17 * @since CakePHP(tm) v 2.2.0 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 27 * @package Cake.Model.Validator 28 * @link http://book.cakephp.org/2.0/en/data-validation.html 29 */ 280 } else { 281 trigger_error(__d('cake_dev', 'Could not find validation handler %s for %s', $this->_rule, $field), E_USER_WARNING); 282 return false;acp_reasons.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 394 lines
3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 16*/ 17if (!defined('IN_PHPBB')) 18{ 28 global $db, $user, $template; 29 global $request, $phpbb_log; 30 141 $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_REASON_' . $log, false, array($reason_row['reason_title'])); 142 trigger_error($user->lang['REASON_' . $log] . adm_back_link($this->u_action)); 143 }AloneDB.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 269 lines
1<?php 2class AloneDB{ 57 }else{ 58 trigger_error($sql.':'.mysql_error($db_lnk),E_USER_WARNING); 59 return false; 136 if(!$lnk){ 137 trigger_error(__('???????:').mysql_error().E_USER_ERROR); 138 } 173 if(!function_exists('db_get_update_sql')){ 174 require('core/db.tools.php'); 175 // require(CORE_INCLUDE_DIR.'/core/db.tools.php'); 181 if(!function_exists('db_get_insert_sql')){ 182 require(CORE_INCLUDE_DIR.'/core/db.tools.php'); 183 } 252 if(!function_exists('database_split_sql')){ 253 require(CORE_INCLUDE_DIR.'/core/db.split_sql.php'); 254 }ftp.php https://bitbucket.org/Noelfhim/no_ftp | PHP | 446 lines
1<?php 2 183 { 184 trigger_error("Can't connect to host `" . $host . "` by FTP", E_USER_WARNING); 185 return false; 265 { 266 trigger_error("Can't create dir by FTP `" . $dirPath . "`", E_USER_WARNING); 267 } 275 { 276 trigger_error("Can't set passive mode for FTP connection", E_USER_WARNING); 277 } 283 { 284 trigger_error("Can't get dir contents `" . $dirPath . "`", E_USER_WARNING); 285 return array(); 364 { 365 trigger_error("Can't upload file by FTP `" . $localFile . "`", E_USER_WARNING); 366 }LoggerAppender.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 288 lines
1<?php 2/** 17 * 18 * @package log4php 19 */ 24 * @version $Revision: 31 $ 25 * @package log4php 26 */ 283 $id = get_class($this) . (empty($this->name) ? '' : ":{$this->name}"); 284 trigger_error("log4php: [$id]: $message", E_USER_WARNING); 285 }function.mailto.php git://github.com/modxcms/revolution.git | PHP | 137 lines
1<?php 2/** 38 * 39 * @link http://www.smarty.net/manual/en/language.function.mailto.php {mailto} 40 * (Smarty online manual) 54 if (empty($params[ 'address' ])) { 55 trigger_error("mailto: missing 'address' parameter", E_USER_WARNING); 56 return; 90 if (!isset($_allowed_encoding[ $encode ])) { 91 trigger_error( 92 "mailto: 'encode' parameter must be none, javascript, javascript_charcode or hex", 115 if (!empty($match[ 2 ])) { 116 trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript.", E_USER_WARNING); 117 return;points_robbery.php https://gitlab.com/perioner/mfhs.git | PHP | 406 lines
25 { 26 global $template, $user, $db, $config, $phpEx, $phpbb_root_path, $ultimate_points, $points_config, $points_values, $auth, $checked_user, $check_auth; 27 73 { 74 $message = $user->lang['ROBBERY_NO_ID_SPECIFIED'] . '<br /><br /><a href="' . append_sid("{$phpbb_root_path}points.$phpEx", "mode=robbery") . '">« ' . $user->lang['BACK_TO_PREV'] . '</a>'; 75 trigger_error($message); 358 meta_refresh(5, $redirect_url); 359 $message = $user->lang['ROBBERY_PM_CHANGE'] . '<br /><br /><a href="' . append_sid("{$phpbb_root_path}points.$phpEx", "mode=robbery") . '">« ' . $user->lang['BACK_TO_PREV'] . '</a>'; 360 trigger_error($message); 379 380 'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=searchuser&form=post&field=username&select_single=true"), 381 'U_TRANSFER_USER' => append_sid("{$phpbb_root_path}points.$phpEx", "mode=transfer_user"), 384 'U_BANK' => append_sid("{$phpbb_root_path}points.$phpEx", "mode=bank"), 385 'U_ROBBERY' => append_sid("{$phpbb_root_path}points.$phpEx", "mode=robbery"), 386 'U_INFO' => append_sid("{$phpbb_root_path}points.$phpEx", "mode=info"),DocBlockAnalyzer.php git://github.com/cakephp/api_generator.git | PHP | 430 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 8 * 9 * CakePHP : Rapid Development Framework <http://www.cakephp.org/> 10 * Copyright 2006-2008, Cake Software Foundation, Inc. 18 * @copyright Copyright 2006-2008, Cake Software Foundation, Inc. 19 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project 20 * @package api_generator 21 * @subpackage api_generator.vendors 22 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 23 */ 96 if (!class_exists($className, false)) { 97 trigger_error('Missing Rule Class ' . $className, E_USER_WARNING); 98 continue;LoggerAppenderSyslog.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 323 lines
65 * 66 * {@example ../../examples/php/appender_syslog.php 19} 67 * 254 * 255 * @see http://www.php.net/manual/en/function.syslog.php#97843 256 */ 291 } else { 292 trigger_error("log4php: Invalid syslog option provided: $option. Whole option string: {$this->option}.", E_USER_WARNING); 293 } 305 } else { 306 trigger_error("log4php: Invalid syslog facility provided: {$this->facility}.", E_USER_WARNING); 307 } 317 } else { 318 trigger_error("log4php: Invalid syslog priority provided: {$this->priority}.", E_USER_WARNING); 319 }function_8html__radios_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 156 lines
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<title>openbiz: E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_radios.php Source File</title> 6<link href="tabs.css" rel="stylesheet" type="text/css"/> 28 <div class="headertitle"> 29<h1>E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_radios.php</h1> </div> 30</div> 31<div class="contents"> 32<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 33<a name="l00041"></a>00041 function smarty_function_html_radios($params, &$smarty) 56<a name="l00064"></a>00064 <span class="keywordflow">if</span>(is_array($_val)) { 57<a name="l00065"></a>00065 $smarty->trigger_error(<span class="stringliteral">'html_radios: the "'</span> . $_key . <span class="stringliteral">'" attribute cannot be an array'</span>, E_USER_WARNING); 58<a name="l00066"></a>00066 } <span class="keywordflow">else</span> { 77<a name="l00085"></a>00085 <span class="keywordflow">case</span> <span class="stringliteral">'radios'</span>: 78<a name="l00086"></a>00086 $smarty->trigger_error(<span class="stringliteral">'html_radios: the use of the "radios" attribute is deprecated, use "options" instead'</span>, E_USER_WARNING); 79<a name="l00087"></a>00087 $options = (array)$_val;CommentTestBase.php git://github.com/drupal/drupal.git | PHP | 418 lines
1<?php 2 4 5@trigger_error(__NAMESPACE__ . '\CommentTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\comment\Functional\CommentTestBase instead. See http://www.drupal.org/node/2908490', E_USER_DEPRECATED); 6function.pp_pimage.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 227 lines
1<?php 2/** 25 * Output: <img src="/images/masthead.gif" width=400 height=23> 26 * @link http://smarty.php.net/manual/en/language.function.html.image.php {pp_pimage} 27 * (Smarty online manual) 88 } else { 89 $smarty->trigger_error("pp_pimage: extra attribute '$_key' cannot be an array", E_USER_NOTICE); 90 } 107 if(!file_exists($_image_path)) { 108 $smarty->trigger_error("pp_pimage: unable to find '$_image_path'", E_USER_NOTICE); 109 return; 110 } else if(!is_readable($_image_path)) { 111 $smarty->trigger_error("pp_pimage: unable to read '$_image_path'", E_USER_NOTICE); 112 return; 113 } else { 114 $smarty->trigger_error("pp_pimage: '$_image_path' is not a valid image file", E_USER_NOTICE); 115 return;EntityResolverManager.php git://github.com/drupal/drupal.git | PHP | 242 lines
1<?php 2 46 if ($entity_type_manager instanceof EntityManagerInterface) { 47 @trigger_error('Passing the entity.manager service to EntityResolverManager::__construct() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Pass the new dependencies instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 48 $this->entityTypeManager = \Drupal::entityTypeManager(); 120 * @param string|array $controller 121 * A PHP callable representing the controller. 122 * @param \Symfony\Component\Routing\Route $routeWidget.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 287 lines
1<?php 2 227 228 trigger_error('mysql error >> '. $mysqli->errno.'::'.$mysqli->error,E_USER_ERROR); 229 }admin_relogin.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 127 lines
1<?php 2 26 { 27 if ( $client_info['is_myreferer'] != 1 ) trigger_error( "Wrong URL", 256 ); 28 $nv_password = filter_text_input( 'nv_password', 'post', '', '', 50 ); 39 nv_insert_logs( NV_LANG_DATA, "login", "[" . $nv_username . "] " . strtolower( $lang_global['loginsubmit'] ), " Client IP:" . NV_CLIENT_IP, 0 ); 40 require_once ( NV_ROOTDIR . '/' . DIR_FORUM . '/nukeviet/login.php' ); 41 } 119 $xtpl->parse( 'main' ); 120 include ( NV_ROOTDIR . "/includes/header.php" ); 121 $xtpl->out( 'main' ); 121 $xtpl->out( 'main' ); 122 include ( NV_ROOTDIR . "/includes/footer.php" ); 123 }ucp_activate.php git://github.com/phpbb/phpbb.git | PHP | 170 lines
5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 32 global $config, $phpbb_root_path, $phpEx, $request; 33 global $db, $user, $auth, $phpbb_container, $phpbb_log, $phpbb_dispatcher; 34 121 { 122 /* @var $phpbb_notifications \phpbb\notification\manager */ 123 $phpbb_notifications = $phpbb_container->get('notification_manager'); 125 126 include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx); 127 166 167 meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx")); 168 trigger_error($user->lang[$message]);function.pp_inputcheckboxall.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 152 lines
1<?php 2/** 11 * 12 * File: function.pp_inputcheckboxall.php<br> 13 * Type: function<br> 30 * </pre> 31 * @link http://smarty.php.net/manual/en/language.function.html.inputcheckbox.php {pp_inputcheckboxall} 32 * (Smarty online manual) 97 case 'inputcheckbox': 98 $smarty->trigger_error('pp_inputcheckboxall: the use of the "inputcheckbox" attribute is deprecated, use "options" instead', E_USER_WARNING); 99 $options = (array)$_val; 108 } else { 109 $smarty->trigger_error("pp_inputcheckboxall: extra attribute '$_key' cannot be an array", E_USER_NOTICE); 110 }ctl.brand.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 127 lines
1<?php 2class ctl_brand extends shopPage{ 24 if($page > $this->pagedata['pager']['total']){ 25 trigger_error('?????',E_USER_NOTICE); 26 } 93 if($page > $this->pagedata['pager']['total']){ 94 trigger_error(__('?????'),E_USER_NOTICE); 95 }postgresql.class.php http://xe8tmw7c.googlecode.com/svn/ | PHP | 169 lines
1<?php 2 35 36 if(!ctype_alnum($profile)) trigger_error('Le nom du profil contient des caracteres illegaux',E_USER_ERROR); 37 39 { 40 require(ONYX.'db/'.$profile.'.profile.php'); 41function.html_options.php git://github.com/modxcms/revolution.git | PHP | 230 lines
1<?php 2/** 23 * 24 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image} 25 * (Smarty online manual) 42 'function' => 'smarty_function_escape_special_chars', 43 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' 44 ) 76 } else { 77 trigger_error( 78 'html_options: selected attribute contains an object of class \'' . 92 } else { 93 trigger_error( 94 'html_options: selected attribute is an object of class \'' . get_class($_val) . 108 if (!is_scalar($_val)) { 109 trigger_error( 110 "html_options: {$_key} attribute must be a scalar, only boolean true or string '{$_key}' will actually add the attribute",RelationshipHandler.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 435 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 96 /** 97 * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead 98 */ 99 function RelationshipHandler(& $db, $base_module=""){ 100 $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code'; 101 if(isset($GLOBALS['log'])) { 104 else { 105 trigger_error($deprecatedMessage, E_USER_DEPRECATED); 106 }message.php git://github.com/phpbb/phpbb.git | PHP | 282 lines
1<?php 2/** 3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 13 14namespace phpbb\message; 15 108 /** 109 * Add a recipient from \phpbb\user 110 * 150 /** 151 * Set the senders data from \phpbb\user object 152 *notify.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 325 lines
1<?php 2/** 7 * @version $Id$ 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2 9 */ 108 { 109 trigger_error('Le template ' . $template . ' n\'existe pas', FSB_ERROR); 110 } 177 178 // Envoie par Email via la classe PHPmailer ... 179 if ($this->method == NOTIFY_MAIL)acp_language.php git://github.com/phpbb/phpbb.git | PHP | 461 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, $phpbb_log, $phpbb_container; 35 global $phpbb_root_path, $phpEx, $request, $phpbb_dispatcher; 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 }AdminObjectAclData.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 320 lines
1<?php 2 178 { 179 trigger_error('setForm() is deprecated since version 3.0. Use setAclUsersForm() instead.', E_USER_DEPRECATED); 180 192 { 193 trigger_error('getForm() is deprecated since version 3.0. Use getAclUsersForm() instead.', E_USER_DEPRECATED); 194ctl.editor.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 177 lines
1<?php 2class ctl_editor extends adminPage{ 78 $storager = &$this->system->loadModel('system/storager'); 79 set_error_handler(array(&$this,'_eH')); //?????????trigger_error?????????_eH 80 header('Content-Type: text/html; charset=utf-8');ucp.php https://code.google.com/p/phpbbex/ | PHP | 361 lines
14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 111 { 112 redirect(append_sid("{$phpbb_root_path}index.$phpEx")); 113 } 232 233 $message = $user->lang['PERMISSIONS_RESTORED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>'); 234 trigger_error($message); 253 { 254 redirect(append_sid("{$phpbb_root_path}index.$phpEx")); 255 } 258 { 259 $redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0)); 260 login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);Post.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 151 lines
1<?php 2 21 if (!array_key_exists("token", $params)) { 22 trigger_error(":token parameter not found in Request", E_USER_ERROR); 23 } 84 } else { 85 trigger_error($this->name . " can not process " . $command->getName(), E_USER_ERROR); 86 } 91 /* 92 * command specific content processing. $controller is set inside $web inside index.php 93 * after URL routing is done. This callback is used by INCLUDE command via 99 if (empty($this->pageObj)) { 100 trigger_error('Page object can not be null', E_USER_ERROR); 101 exit(1); 138 139 $location = url::link('/ca/page/keyin.php',$params); 140 header('Location: '.$location);FileUploadForm.php git://github.com/drupal/drupal.git | PHP | 380 lines
1<?php 2 85 if (!$file_usage) { 86 @trigger_error('Calling FileUploadForm::__construct() without the `file.usage` service is deprecated in drupal:8.8.0 and is removed in drupal:9.0.0. Pass the `file.usage` service to the constructor. See https://www.drupal.org/node/3075165', E_USER_DEPRECATED); 87 $file_usage = \Drupal::service('file.usage');Configure.php git://github.com/cakephp/cakephp.git | PHP | 388 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.Core 29 * @package Cake.Core 30 * @link http://book.cakephp.org/2.0/en/development/configuration.html#configure-class 31 */ 75 if (!include(APP . 'Config' . DS . 'core.php')) { 76 trigger_error(__d('cake_dev', "Can't find application core file. Please create %score.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR); 77 } 81 if (!include(APP . 'Config' . DS . 'bootstrap.php')) { 82 trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR); 83 }compile.section_start.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 129 lines
1<?php 2/** 13 14 $output = '<?php '; 15 $section_name = $attrs['name']; 17 { 18 $object->trigger_error("missing section name", E_USER_ERROR, __FILE__, __LINE__); 19 } 57 default: 58 $object->trigger_error("unknown section attribute - '$attr_name'", E_USER_ERROR, __FILE__, __LINE__); 59 break;mysql.php https://github.com/openaustralia/twfy.git | PHP | 364 lines
1<?php 2 7 8Somewhere (probably in includes/easyparliament/init.php) there should be something like: 9 295 296 trigger_error($errormsg, E_USER_ERROR); 297 309 global $global_connection; 310 // These vars come from config.php. 311 345 // We could also output $q->mysql_info() here, but that's for 346 // PHP >= 4.3.0. 347SA-CORE-2018-004-D8.patch git://github.com/omega8cc/nginx-for-drupal.git | Patch | 160 lines
12 13diff --git a/core/lib/Drupal/Core/Security/RequestSanitizer.php b/core/lib/Drupal/Core/Security/RequestSanitizer.php 14index 8ba17b95cf..44815f68cd 100644 14index 8ba17b95cf..44815f68cd 100644 15--- a/core/lib/Drupal/Core/Security/RequestSanitizer.php 16+++ b/core/lib/Drupal/Core/Security/RequestSanitizer.php 33- if ($log_sanitized_keys && !empty($get_sanitized_keys)) { 34- trigger_error(sprintf('Potentially unsafe keys removed from query string parameters (GET): %s', implode(', ', $get_sanitized_keys))); 35+ $update_globals = FALSE; 50- if ($log_sanitized_keys && !empty($post_sanitized_keys)) { 51- trigger_error(sprintf('Potentially unsafe keys removed from request body parameters (POST): %s', implode(', ', $post_sanitized_keys))); 52+ if ($update_globals) { 135 /** 136diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php 137index ca4e887a1b..6f01ee552e 100644txplib_db.php https://github.com/nope/Tipattern.git | PHP | 501 lines
1<?php 2 84 $caller = ($production_status == 'debug') ? n . join("\n", get_caller()) : ''; 85 trigger_error(mysql_error() . n . $q . $caller, E_USER_WARNING); 86 }account_sponsor_page.php git://pkgs.fedoraproject.org/mantis | PHP | 318 lines
42 */ 43 require_once( 'core.php' ); 44 69 <td class="right"> 70 <?php print_account_menu( 'account_sponsor_page.php' ) ?> 71 </td> 184 <td><?php echo lang_get( 'total_paid' ) ?></td> 185 <td class="right"><?php echo sponsorship_format_amount( $t_total_paid ) ?></td> 186 <td colspan="2"></td> 189</div> 190<?php } # end sponsored issues 191 309<?php 310 html_button ( 'account_sponsor_page.php', 311 lang_get( ( $t_show_all ? 'sponsor_hide' : 'sponsor_show' ) ),ext_hh_client.php git://github.com/facebook/hiphop-php.git | PHP | 251 lines
21 22 $base = \dirname(\PHP_BINARY); 23 61 // isn't ready on the first CLI script execution in a repo. 62 $timeout = \php_sapi_name() === 'cli' ? 5 : 0; 63 96 97 $passed = ($ret === 0) && \hphp_array_idx($json, 'passed', false); 98 101 } else { 102 $errors = \hphp_array_idx($json, 'errors', null); 103 if ($errors) { 159 case TypecheckStatus::TYPE_ERROR: 160 \trigger_error($this->error, $type_error_level); 161 break;Config_File.class.php git://pkgs.fedoraproject.org/ser | PHP | 390 lines
22 * @copyright Copyright: 2001-2004 ispi of Lincoln, Inc. 23 * @author Andrei Zmievski <andrei@php.net> 24 * @access public 27 28/* $Id: Config_File.class.php,v 1.1 2004/08/09 12:50:07 kozlik 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_msgregistrar.php http://buscocarro.googlecode.com/svn/trunk/ | PHP | 203 lines
85 <div id="header"> 86 <?php include_once '../templates/header.php'; ?> 87 </div> 94 <div id="teaser"> 95 <?php //include_once '../templates/teaser3.php'; ?> 96 </div> 99 <div id="col1_content" class="clearfix"> 100 <?php //include_once '../templates/fom1.php'; ?> 101 </div> 139 <?php foreach ($tipospublicacion['data'] as $tipo): ?> 140 <option value="<?php echo $tipo['id'] ?>"><?php echo $tipo['nombre'] ?></option> 141 <?php endforeach; ?> 183 <div id="col3_content" class="clearfix"> 184 <?php //include_once '../templates/ads.php'; ?> 185 </div>SmartyBC.class.php git://github.com/modxcms/revolution.git | PHP | 477 lines
1<?php 2/** 2/** 3 * Project: Smarty: the PHP compiling template engine 4 * File: SmartyBC.class.php 30 */ 31require_once dirname(__FILE__) . '/Smarty.class.php'; 32 47 /** 48 * This is an array of directories where trusted php scripts reside. 49 * 98 * @param string $function the name of the template function 99 * @param string $function_impl the name of the PHP function to register 100 * @param bool $cacheable 123 * @param string $object name of template object 124 * @param object $object_impl the referenced PHP object to register 125 * @param array $allowed list of allowed methods (empty = all)QuickEditController.php git://github.com/drupal/drupal.git | PHP | 337 lines
1<?php 2 90 if (!$entity_display_repository) { 91 @trigger_error('The entity_display.repository service must be passed to QuickEditController::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 92 $entity_display_repository = \Drupal::service('entity_display.repository'); 95 if (!$entity_repository) { 96 @trigger_error('The entity.repository service must be passed to QuickEditController::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); 97 $entity_repository = \Drupal::service('entity.repository');Config_File.class.php http://pos-tracker-temar.googlecode.com/svn/trunk/ | PHP | 390 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 131 2008-07-21 06:18:41Z stephenmg $ */ 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_msgfunction_8html__checkboxes_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 143 lines
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<title>openbiz: E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_checkboxes.php Source File</title> 6<link href="tabs.css" rel="stylesheet" type="text/css"/> 28 <div class="headertitle"> 29<h1>E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_checkboxes.php</h1> </div> 30</div> 31<div class="contents"> 32<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 33<a name="l00041"></a>00041 function smarty_function_html_checkboxes($params, &$smarty) 72<a name="l00080"></a>00080 <span class="keywordflow">case</span> <span class="stringliteral">'checkboxes'</span>: 73<a name="l00081"></a>00081 $smarty->trigger_error(<span class="stringliteral">'html_checkboxes: the use of the "checkboxes" attribute is deprecated, use "options" instead'</span>, E_USER_WARNING); 74<a name="l00082"></a>00082 $options = (array)$_val; 83<a name="l00091"></a>00091 } <span class="keywordflow">else</span> { 84<a name="l00092"></a>00092 $smarty->trigger_error(<span class="stringliteral">"html_checkboxes: extra attribute '$_key' cannot be an array"</span>, E_USER_NOTICE); 85<a name="l00093"></a>00093 }class.I18NtranslatorXML.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 235 lines
1<?php 2/** 4*/ 5require_once 'interface.I18NtranslatorInterface.inc.php'; 6/** 8*/ 9require_once 'class.I18Nbase.inc.php'; 10 13* @author Michael Wimmer <flaimo@gmail.com> 14* @category flaimo-php 15* @example ../www_root/i18n_example_script.php i18n example script 16* @license GNU General Public License v3 17* @link http://code.google.com/p/flaimo-php/ 18* @package i18n 222 if (parent::getI18Nsetting('show_errormessages')) { 223 trigger_error('TRANSLATION ERROR: String "' . $string . '" not found in translation table', E_USER_WARNING); 224 } // end ifmcp_logs.php git://github.com/phpbb/phpbb.git | PHP | 231 lines
1<?php 2/** 3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 16*/ 17if (!defined('IN_PHPBB')) 18{ 38 global $auth, $db, $user, $template, $request; 39 global $config, $phpbb_container, $phpbb_log; 40 68 69 /* @var $pagination \phpbb\pagination */ 70 $pagination = $phpbb_container->get('pagination');manage_user_edit_page.php git://pkgs.fedoraproject.org/mantis | PHP | 280 lines
1<?php 2# MantisBT - a php based bugtracking system 25 */ 26 require_once( 'core.php' ); 27 39 error_parameters( $f_username ); 40 trigger_error( ERROR_USER_BY_NAME_NOT_FOUND, ERROR ); 41 } 61<div align="center"> 62<form method="post" action="manage_user_update.php"> 63<?php echo form_security_field( 'manage_user_update' ) ?> 78 <td width="70%"> 79 <input type="text" size="32" maxlength="<?php echo DB_FIELD_SIZE_USERNAME;?>" name="username" value="<?php echo string_attribute( $t_user['username'] ) ?>" /> 80 </td> 96 ?> 97 <input type="text" size="32" maxlength="<?php echo DB_FIELD_SIZE_REALNAME;?>" name="realname" value="<?php echo string_attribute( $t_user['realname'] ) ?>" /> 98 <?php