PageRenderTime 286ms queryTime 26ms sortTime 0ms getByIdsTime 33ms findMatchingLines 83ms

100+ results results for 'php trigger_error repo:openfarmtech/weblog-content' (286 ms)

Not the results you expected?
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				}
                    
                
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    }
                    
                
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> &nbsp; </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'];  ?> &nbsp;<?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>
                    
                
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_* constant
                    
                
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();
                    
                
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 $
                    
                
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);	
                    
375		
                    
                
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) . ' }';
                    
                
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_msg
                    
                
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 URI
                    
                
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 */
                    
                
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        }
                    
                
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        }
                    
                
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        }
                    
                
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');
                    
                
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>
                    
113
                    
                
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_msg
                    
                
croogo_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 */
                    
                
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  string
                    
                
Generator.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;
                    
                
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;
                    
                
Widget.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        }
                    
                
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');
                    
41                        
                    
                
function.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",
                    
                
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);
                    
                
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			}
                    
                
Pager.php https://code.google.com/p/s3db/ | PHP | 173 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
31// +-----------------------------------------------------------------------+
                    
32// | Authors: Richard Heyes <richard@phpguru.org>                          |
                    
33// |          Lorenzo Alberton <l.alberton at quipo.it>                    |
                    
35//
                    
36// $Id: Pager.php,v 1.15 2004/09/08 16:33:06 quipo Exp $
                    
37
                    
38/**
                    
39 * File Pager.php
                    
40 *
                    
47 *
                    
48 * @author  Richard Heyes <richard@phpguru.org>,
                    
49 * @author  Lorenzo Alberton <l.alberton at quipo.it>
                    
49 * @author  Lorenzo Alberton <l.alberton at quipo.it>
                    
50 * @version  $Id: Pager.php,v 1.15 2004/09/08 16:33:06 quipo Exp $
                    
51 * @package Pager
                    
                
swx.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 409 lines
                    
270			// Error: The requested method either does not exist or is private (PHP 4).
                    
271			trigger_error("Could not find a public method in $class called $method(). (Using PHP 4 rules.)", E_USER_ERROR);
                    
272		}		
                    
297	// way to do this?)
                    
298	$dataAsPhp = str_replace('\\t', '\t', $dataAsPhp);
                    
299	$dataAsPhp = str_replace('\\n', '\n', $dataAsPhp);
                    
299	$dataAsPhp = str_replace('\\n', '\n', $dataAsPhp);
                    
300	$dataAsPhp = str_replace("\\'", "'", $dataAsPhp);
                    
301
                    
336	//$dataAsPhp = str_replace('undefined', 'NULL', $dataAsPhp);
                    
337	$dataAsPhp = str_replace('null', 'NULL', $dataAsPhp);
                    
338	
                    
346	$j = new Services_JSON();
                    
347	$dataAsPhp = $j->decode($dataAsPhp);	
                    
348		
                    
                
class.dbcachedquery.php https://code.google.com/p/evedev-kb/ | PHP | 469 lines
                    
1<?php
                    
2/**
                    
244		{
                    
245			trigger_error('No suitable handler for query found. "'.$ta[0].'"',E_USER_NOTICE);
                    
246			return false;
                    
                
function.html_checkboxes.php git://github.com/modxcms/revolution.git | PHP | 286 lines
                    
1<?php
                    
2/**
                    
9 * Smarty {html_checkboxes} function plugin
                    
10 * File:       function.html_checkboxes.php
                    
11 * Type:       function
                    
31 *
                    
32 * @link    http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes}
                    
33 *             (Smarty online manual)
                    
50                'function' => 'smarty_function_escape_special_chars',
                    
51                'file'     => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'
                    
52            )
                    
91                            } else {
                    
92                                trigger_error(
                    
93                                    'html_checkboxes: selected attribute contains an object of class \'' .
                    
107                    } else {
                    
108                        trigger_error(
                    
109                            'html_checkboxes: selected attribute is an object of class \'' . get_class($_val) .
                    
                
function.fetch.php git://github.com/modxcms/revolution.git | PHP | 204 lines
                    
1<?php
                    
2/**
                    
13 *
                    
14 * @link   http://www.smarty.net/manual/en/language.function.fetch.php {fetch}
                    
15 *         (Smarty online manual)
                    
26    if (empty($params[ 'file' ])) {
                    
27        trigger_error('[plugin] fetch parameter \'file\' cannot be empty', E_USER_NOTICE);
                    
28        return;
                    
39        if ($protocol) {
                    
40            // remote resource (or php stream, …)
                    
41            if (!$template->smarty->security_policy->isTrustedUri($params[ 'file' ])) {
                    
99                            if (!preg_match('![\w\d-]+: .+!', $param_value)) {
                    
100                                trigger_error("[plugin] invalid header format '{$param_value}'", E_USER_NOTICE);
                    
101                                return;
                    
115                        } else {
                    
116                            trigger_error("[plugin] invalid value for attribute '{$param_key }'", E_USER_NOTICE);
                    
117                            return;
                    
                
Web.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 311 lines
                    
1<?php
                    
2
                    
102    
                    
103    #region - Helper methods to utilize PHP session
                    
104    //instead of providing a session key from each web instance, we wrap few
                    
127        if(!($context instanceof Gloo_Core_Context)) {
                    
128            trigger_error('wrong web context data type ',E_USER_ERROR);
                    
129        }
                    
175    
                    
176    //method to interact with PHP session
                    
177    function storeInSession($sessionKey,$dataKey,$data) {
                    
233    function loadCss($path) {
                    
234        $scheme = parse_url($path, PHP_URL_SCHEME);
                    
235        if(empty($scheme)) {
                    
247    function loadJS($path) {
                    
248        $scheme = parse_url($path, PHP_URL_SCHEME);
                    
249        if(empty($scheme)) {
                    
                
delete.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 158 lines
                    
1<?php 
                    
2include 'gloo.inc';
                    
9if(!$context->isAdminGUI()) {
                    
10    header('location: '.url::base().'/ca/login.php');
                    
11    exit ;
                    
15$context->addCrumb('Delete page', $_SERVER['REQUEST_URI']);
                    
16//ca/page/delete.php
                    
17$pageId = $_GET['page_id'];
                    
20if(empty($pageId)) {
                    
21    trigger_error('Wrong Navigation >> pageId not found',E_USER_ERROR);
                    
22}
                    
32<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                    
33<html><head><title> <?php echo url::organizationName() ; ?>  </title>
                    
34
                    
79                                        <form name="page_delete_form"
                    
80                                              action="<?php echo  url::base() ?>/ca/page/frm/delete.php" method="POST">
                    
81
                    
                
GroupedSelection.php git://github.com/nette/nette.git | PHP | 207 lines
                    
1<?php
                    
2
                    
53	{
                    
54		trigger_error(__METHOD__ . '() is deprecated; use ' . __CLASS__ . '::related("' . $this->name . '", "' . $column . '") instead.', E_USER_WARNING);
                    
55		$this->column = $column;
                    
                
ChainedBlockStream.php https://PHPExcel.svn.codeplex.com/svn | PHP | 235 lines
                    
21 * @category   PHPExcel
                    
22 * @package    PHPExcel_Shared_OLE
                    
23 * @copyright  Copyright (c) 2006 - 2007 Christian Schmidt
                    
27
                    
28/** PHPExcel root directory */
                    
29if (!defined('PHPEXCEL_ROOT')) {
                    
35
                    
36require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/OLE.php';
                    
37
                    
41 * Stream wrapper for reading data stored in an OLE file. Implements methods
                    
42 * for PHP's stream_wrapper_register(). For creating streams using this
                    
43 * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream().
                    
171		$eof = $this->pos >= strlen($this->data);
                    
172		// Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508
                    
173		if (version_compare(PHP_VERSION, '5.0', '>=') &&
                    
                
class.dc.workspace.php https://bitbucket.org/dotclear/dotclear/ | PHP | 449 lines
                    
1<?php
                    
2# -- BEGIN LICENSE BLOCK ---------------------------------------
                    
49			if (version_compare($core->getVersion('core'),'2.3','>')) {
                    
50				trigger_error(__('Unable to retrieve prefs:').' '.$this->con->error(), E_USER_ERROR);
                    
51			}
                    
                
User.php git://github.com/nette/nette.git | PHP | 0 lines
                    
1<?php
                    
2
                    
413	{
                    
414		trigger_error(__METHOD__ . '() is deprecated; use setAuthenticator() instead.', E_USER_WARNING);
                    
415		return $this->setAuthenticator($v);
                    
420	{
                    
421		trigger_error(__METHOD__ . '() is deprecated; use setAuthorizator() instead.', E_USER_WARNING);
                    
422		return $this->setAuthorizator($v);
                    
                
class.dbobject.php git://github.com/tylerhall/simple-php-framework.git | PHP | 232 lines
                    
1<?PHP
                    
2    class DBObject
                    
39            $trace = debug_backtrace();
                    
40            trigger_error("Undefined property via DBObject::__get(): $key in {$trace[0]['file']} on line {$trace[0]['line']}", E_USER_NOTICE);
                    
41            return null;
                    
                
site.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 173 lines
                    
28<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                    
29<html><head><title> <?php echo $glooConfig->getFarmBuilderName(); ?> </title>
                    
30
                    
30
                    
31        <?php
                    
32        include($location->GLOO_META_TAGS);
                    
63                    <div id="header">
                    
64                        <a href="<?php echo $glooConfig->getFarmURI(); ?>"><img src="<?php echo $glooConfig->getFarmLogoPath(); ?>" alt="logo" /> </a>
                    
65                        <div id="description">
                    
65                        <div id="description">
                    
66                            <a href="<?php echo $glooConfig->getFarmURI(); ?>"> Back to <?php echo $glooConfig->getFarmName(); ?></a>
                    
67                            &nbsp;&gt;&nbsp;
                    
143                                        Need help?  Please contact
                    
144                                        <a HREF="mailto:<?php echo $glooConfig->getFarmAdminEmail(); ?>"> <?php echo $glooConfig->getFarmAdminEmail(); ?> </a>
                    
145                                    </p>
                    
                
Helper.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 158 lines
                    
1<?php
                    
2
                    
44            $errorMsg = "GD2 : Not able to create source image from supplied file data ";
                    
45            trigger_error($errorMsg, E_USER_ERROR);
                    
46        }
                    
111            $errorMsg = "GD2 : Not able to create source image from supplied file data ";
                    
112            trigger_error($errorMsg, E_USER_ERROR);
                    
113        }
                    
137        $oDestinationImage = imagecreatetruecolor($nDestinationWidth, $nDestinationHeight);
                    
138        //http://in2.php.net/manual/en/function.imagecopyresized.php
                    
139        // resize the image
                    
                
functions.php http://explay-cms.googlecode.com/svn/trunk/ | PHP | 447 lines
                    
1<?php
                    
2
                    
3function __autoload ($className) {
                    
4	$classFile      = ENGINE_ROOT . '/classes/' . $className . '/' . $className . '.php';
                    
5	$classInterface = ENGINE_ROOT . '/classes/' . $className . '/i' . $className . '.php';
                    
7	if (!file_exists ($classFile) || !file_exists ($classInterface)) {
                    
8		trigger_error ('Class ' . $className . ' or his interface not found!', E_USER_ERROR);
                    
9	}
                    
10	
                    
11	$langFile = ENGINE_ROOT . '/classes/' . $className . '/i18n.php';
                    
12	
                    
24function rewriteURI () {
                    
25	include ENGINE_ROOT . '/URIs.php';
                    
26	
                    
                
HTTPFetcher.php git://github.com/openid/php-openid.git | PHP | 189 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
18 */
                    
19require_once "Auth/OpenID.php";
                    
20
                    
22define('Auth_OpenID_USER_AGENT',
                    
23       'php-openid/'.Auth_OpenID_VERSION.' (php/'.phpversion().')');
                    
24
                    
101    {
                    
102        trigger_error("not implemented", E_USER_ERROR);
                    
103        return false;
                    
184    {
                    
185        trigger_error("not implemented", E_USER_ERROR);
                    
186        return null;
                    
                
Generator.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 291 lines
                    
1<?php
                    
2
                    
110            if ($nl === null)
                    
111                $nl = PHP_EOL;
                    
112            if ($nl !== "\n")
                    
126        {
                    
127            trigger_error('Cannot generate HTML from non-HTMLPurifier_Token object', E_USER_WARNING);
                    
128            return '';
                    
281        // Workaround for APC bug on Mac Leopard reported by sidepodcast
                    
282        // http://htmlpurifier.org/phorum/read.php?3,4823,4846
                    
283        if ($quote === null)
                    
                
Exception.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 405 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
                    
51 *
                    
52 * 4) Inherited methods from PHP Exception Class:
                    
53 *
                    
95 * @copyright  1997-2008 The PHP Group
                    
96 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
97 * @version    Release: 1.7.2
                    
160    /**
                    
161     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
162     * - A PEAR_Exception::OBSERVER_* constant
                    
                
redis.php http://redis.googlecode.com/svn/trunk/ | PHP | 331 lines
                    
1<?php
                    
2/*******************************************************************************
                    
2/*******************************************************************************
                    
3 * Redis PHP Bindings - http://code.google.com/p/redis/
                    
4 *
                    
36            $msg .= "," . ($errno ? " error $errno" : "") . ($errmsg ? " $errmsg" : "");
                    
37        trigger_error("$msg.", E_USER_ERROR);
                    
38    }
                    
258        $this->disconnect();
                    
259        trigger_error("Cannot read from socket.", E_USER_ERROR);
                    
260    }
                    
265        if (substr($s, 0, 4) == '-ERR')
                    
266            trigger_error("Redis error: " . trim(substr($s, 4)), E_USER_ERROR);
                    
267        trigger_error("Redis error: " . substr(trim($this->_read()), 5), E_USER_ERROR);
                    
275            return $err;
                    
276        trigger_error("Cannot parse first line '$s' for a simple response", E_USER_ERROR);
                    
277    }
                    
                
test_manager.php git://github.com/Datawalke/Coordino.git | PHP | 421 lines
                    
2/**
                    
3 * TestManager for CakePHP Test suite.
                    
4 *
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
17 * @since         CakePHP(tm) v 1.2.0.4433
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
19 */
                    
                
Lexer.php git://github.com/anantgarg/Qwench.git | PHP | 298 lines
                    
1<?php
                    
2
                    
71            $lexer = $config;
                    
72            trigger_error("Passing a prototype to
                    
73              HTMLPurifier_Lexer::create() is deprecated, please instead
                    
129
                    
130        // once PHP DOM implements native line numbers, or we
                    
131        // hack out something using XSLT, remove this stipulation
                    
204    public function tokenizeHTML($string, $config, $context) {
                    
205        trigger_error('Call to abstract class', E_USER_ERROR);
                    
206    }
                    
                
HTMLPurifier.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 251 lines
                    
1<?php
                    
2
                    
102    {
                    
103        trigger_error('HTMLPurifier->addFilter() is deprecated, use configuration directives in the Filter namespace or Filter.Custom', E_USER_WARNING);
                    
104        $this->filters[] = $filter;
                    
                
function.html_image.php git://github.com/modxcms/revolution.git | PHP | 158 lines
                    
1<?php
                    
2/**
                    
23 *
                    
24 * @link    http://www.smarty.net/manual/en/language.function.html.image.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            )
                    
93    if (empty($file)) {
                    
94        trigger_error('html_image: missing \'file\' parameter', E_USER_NOTICE);
                    
95        return;
                    
111        if ($protocol) {
                    
112            // remote resource (or php stream, …)
                    
113            if (!$template->smarty->security_policy->isTrustedUri($params[ 'file' ])) {
                    
126            if (!file_exists($_image_path)) {
                    
127                trigger_error("html_image: unable to find '{$_image_path}'", E_USER_NOTICE);
                    
128                return;
                    
                
ErrorHandler.php git://github.com/cakephp/cakephp.git | PHP | 227 lines
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Error
                    
73 *
                    
74 * ### PHP errors
                    
75 *
                    
75 *
                    
76 * Error handler also provides the built in features for handling php errors (trigger_error).
                    
77 * While in debug mode, errors will be output to the screen using debugger.  While in production mode,
                    
107 * @return void
                    
108 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
109 */
                    
                
errors_test.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
3require_once(dirname(__FILE__) . '/../errors.php');
                    
4require_once(dirname(__FILE__) . '/../expectation.php');
                    
5require_once(dirname(__FILE__) . '/../test_case.php');
                    
26        $queue = &$context->get('SimpleErrorQueue');
                    
27        $queue->add(1024, 'Ouch', 'here.php', 100);
                    
28        $queue->add(512, 'Yuk', 'there.php', 101);
                    
76                'B',
                    
77                'Expected PHP error [B] severity [E_USER_NOTICE] in [b.php] line [100]'));
                    
78        $test->setReturnValue('assert', false);
                    
169        error_reporting(E_ALL);
                    
170        trigger_error('Ouch!');
                    
171        $this->assertError('Ouch!');
                    
242                version_compare(phpversion(), '5.2', '>='),
                    
243                'E_USER_ERROR not tested for PHP 5.2 and above');
                    
244    }
                    
                
ContentSets.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 172 lines
                    
1<?php
                    
2
                    
123        {
                    
124            trigger_error('Literal object child definitions should be stored in ' . 'ElementDef->child not ElementDef->content_model', E_USER_NOTICE);
                    
125            return $value;
                    
147     // error-out
                    
148        trigger_error('Could not determine which ChildDef class to instantiate', E_USER_ERROR);
                    
149        return false;
                    
                
bpm-utils.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
156// Convert valid xml to an array tree structure
                    
157// kinda lame but it works with a default php 4 install
                    
158
                    
176       if (!$parse) {
                    
177           trigger_error(sprintf("XML error: %s at line %d",
                    
178               xml_error_string(xml_get_error_code($this->xml)),
                    
                
xajaxUserFunction.inc.php https://code.google.com/p/evedev-kb/ | PHP | 234 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3	File: xajaxUserFunction.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: xajaxUserFunction.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
                    
16	@copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
                    
98			
                    
99			$myUserFunction = new xajaxUserFunction($myFunction, 'myFile.inc.php', array(
                    
100				'method' => 'get',
                    
122		if (is_array($this->uf) && 2 != count($this->uf))
                    
123			trigger_error(
                    
124				'Invalid function declaration for xajaxUserFunction.',
                    
                
BehaviorCollection.php git://github.com/cakephp/cakephp.git | PHP | 276 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Model
                    
17 * @package       Cake.Model
                    
18 * @since         CakePHP(tm) v 1.2.0.0
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
223		if ($strict && empty($method)) {
                    
224			trigger_error(__d('cake_dev', "BehaviorCollection::dispatchMethod() - Method %s not found in any attached behavior", $method), E_USER_WARNING);
                    
225			return null;
                    
                
HTMLModuleManager.php git://github.com/gallery/gallery3-contrib.git | PHP | 403 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
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        }
                    
                
Php.php https://code.google.com/p/mwenhanced/ | PHP | 359 lines
                    
47    {
                    
48        // QUERY_STRING is in form: PHPSESSID=<sid>&a=aaa&b=bbb&<id>
                    
49        // where <id> is request ID, <sid> - session ID (if present), 
                    
49        // where <id> is request ID, <sid> - session ID (if present), 
                    
50        // PHPSESSID - session parameter name (by default = "PHPSESSID").
                    
51        
                    
76        if (headers_sent($file, $line)) {
                    
77            trigger_error(
                    
78                "HTTP headers are already sent" . ($line !== null? " in $file on line $line" : "") . ". "
                    
144     */
                    
145    function php2js($a)
                    
146    {
                    
164        } else {
                    
165            foreach ($a as $k=>$v) $result[] = JsHttpRequest::php2js($k) . ': ' . JsHttpRequest::php2js($v);
                    
166            return '{ ' . join(', ', $result) . ' }';
                    
                
DAO.php https://code.google.com/p/osclass/ | PHP | 0 lines
                    
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.');
                    
2
                    
204            if(defined('DEBUG')) {
                    
205                trigger_error($sql) ;
                    
206            }
                    
                
trendClass.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 113 lines
                    
1<?php
                    
2
                    
2
                    
3require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/linearBestFitClass.php';
                    
4require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/logarithmicBestFitClass.php';
                    
4require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/logarithmicBestFitClass.php';
                    
5require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/exponentialBestFitClass.php';
                    
6require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/powerBestFitClass.php';
                    
6require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/powerBestFitClass.php';
                    
7require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/polynomialBestFitClass.php';
                    
8
                    
44            //	Ensure both arrays of points are the same size
                    
45            trigger_error("trend(): Number of elements in coordinate arrays do not match.", E_USER_ERROR);
                    
46        }
                    
58                {
                    
59                    $className = 'PHPExcel_' . $trendType . '_Best_Fit';
                    
60                    self :: $_trendCache[$key] = new $className($yValues, $xValues, $const);
                    
                
Serializer.php git://github.com/anantgarg/Qwench.git | PHP | 172 lines
                    
1<?php
                    
2
                    
114            if (!is_dir($base)) {
                    
115                trigger_error('Base directory '.$base.' does not exist,
                    
116                    please create or change using %Cache.SerializerPath',
                    
140            // so a more specific error message can be given
                    
141            trigger_error('Directory '.$dir.' does not exist',
                    
142                E_USER_WARNING);
                    
153            } else {
                    
154                // PHP's probably running as nobody, so we'll
                    
155                // need to give global permissions
                    
157            }
                    
158            trigger_error('Directory '.$dir.' not writable, '.
                    
159                'please chmod to ' . $chmod,
                    
162            // generic error message
                    
163            trigger_error('Directory '.$dir.' not writable, '.
                    
164                'please alter file permissions',
                    
                
unicode.php git://github.com/joomla/joomla-platform.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
9* the Initial Developer. All Rights Reserved.
                    
10* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
                    
11* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
                    
13* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
                    
14* @see http://hsivonen.iki.fi/php-utf8/
                    
15* @package utf8
                    
25* Returns false if the input string isn't a valid UTF-8 octet sequence
                    
26* and raises a PHP error at level E_USER_WARNING
                    
27* Note: this function has been modified slightly in this library to
                    
32* @see utf8_from_unicode
                    
33* @see http://hsivonen.iki.fi/php-utf8/
                    
34* @package utf8
                    
105                 */
                    
106                trigger_error(
                    
107                        'utf8_to_unicode: Illegal sequence identifier '.
                    
                
Container.php git://github.com/nette/nette.git | PHP | 493 lines
                    
1<?php
                    
2
                    
487	{
                    
488		trigger_error(__METHOD__ . '() is deprecated; use addUpload() instead.', E_USER_WARNING);
                    
489		return $this->addUpload($name, $label);
                    
                
cake_log.php git://github.com/Datawalke/Coordino.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.libs
                    
19 * @since         CakePHP(tm) v 0.2.9
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
100		if (empty($config['engine'])) {
                    
101			trigger_error(__('Missing logger classname', true), E_USER_WARNING);
                    
102			return false;
                    
                
JsHelper.php git://github.com/cakephp/cakephp.git | PHP | 434 lines
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       Cake.View.Helper
                    
15 * @package       Cake.View.Helper
                    
16 * @since         CakePHP(tm) v 1.2
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
152		}
                    
153		trigger_error(__d('cake_dev', 'JsHelper:: Missing Method %s is undefined', $method), E_USER_WARNING);
                    
154	}
                    
                
URI.php git://github.com/anantgarg/Qwench.git | PHP | 173 lines
                    
1<?php
                    
2
                    
45                // something funky happened to the default scheme object
                    
46                trigger_error(
                    
47                    'Default scheme object "' . $def->defaultScheme . '" was not readable',
                    
                
LanguageFactory.php git://github.com/gallery/gallery3-contrib.git | PHP | 198 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
94
                    
95        $pcode = str_replace('-', '_', $code); // make valid PHP classname
                    
96        static $depth = 0; // recursion protection
                    
101            $class = 'HTMLPurifier_Language_' . $pcode;
                    
102            $file  = $this->dir . '/Language/classes/' . $code . '.php';
                    
103            if (file_exists($file) || class_exists($class, false)) {
                    
144        // generate filename
                    
145        $filename = $this->dir . '/Language/messages/' . $code . '.php';
                    
146
                    
152            // skip the include: will rely solely on fallback
                    
153            $filename = $this->dir . '/Language/messages/en.php';
                    
154            $cache = array();
                    
164            if (isset($languages_seen[$code])) {
                    
165                trigger_error('Circular fallback reference in language ' .
                    
166                    $code, E_USER_ERROR);
                    
                
xml.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: xml.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/scorer.php');
                    
13/**#@-*/
                    
505        if (! xml_parse($this->_expat, $chunk)) {
                    
506            trigger_error('XML parse error with ' .
                    
507                    xml_error_string(xml_get_error_code($this->_expat)));
                    
                
test_case.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
12 */
                    
13require_once(dirname(__FILE__) . '/invoker.php');
                    
14require_once(dirname(__FILE__) . '/errors.php');
                    
14require_once(dirname(__FILE__) . '/errors.php');
                    
15require_once(dirname(__FILE__) . '/compatibility.php');
                    
16require_once(dirname(__FILE__) . '/scorer.php');
                    
16require_once(dirname(__FILE__) . '/scorer.php');
                    
17require_once(dirname(__FILE__) . '/expectation.php');
                    
18require_once(dirname(__FILE__) . '/dumper.php');
                    
21    require_once(dirname(__FILE__) . '/exceptions.php');
                    
22    require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
23} else {
                    
23} else {
                    
24    require_once(dirname(__FILE__) . '/reflection_php4.php');
                    
25}
                    
                
SwxAssembler.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 789 lines
                    
1<?php
                    
2
                    
15
                    
16// PHP 5 compatibility layer for PHP 4
                    
17require_once('lib/str_split.php');
                    
33		// Determine endianness of the system that this is running under
                    
34		// Adapted from: http://phpfer.com/rn45re877.html
                    
35		$ab = 0x6162;
                    
61
                    
62	// From http://de.php.net/var_dump
                    
63	function getVarDump($mixed = null) 
                    
98	 *
                    
99	 * @param	any		A PHP data structure	
                    
100	 * @return 	string	Swf bytecode representation of the data structure.
                    
144			default:
                    
145				trigger_error('Unhandled data type ('.$type.')', E_USER_ERROR);
                    
146				//error_log('[SWX] ERROR dataToBytecode() Unhandled data type: ' . $type);
                    
                
SwxAS2Assembler.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 792 lines
                    
1<?php
                    
2
                    
30		// Determine endianness of the system that this is running under
                    
31		// Adapted from: http://phpfer.com/rn45re877.html
                    
32		$ab = 0x6162;
                    
58
                    
59	// From http://de.php.net/var_dump
                    
60	function getVarDump($mixed = null) 
                    
95	 *
                    
96	 * @param	any		A PHP data structure	
                    
97	 * @return 	string	Swf bytecode representation of the data structure.
                    
141			default:
                    
142				trigger_error('Unhandled data type ('.$type.')', E_USER_ERROR);
                    
143				//error_log('[SWX] ERROR dataToBytecode() Unhandled data type: ' . $type);
                    
385	 *
                    
386	 * @param 	double	A PHP double.
                    
387	 * @return 	string	Little-endian Flash double in hex (variation on IEEE 754).
                    
                
openid.class.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 618 lines
                    
1<?php
                    
2
                    
49 *
                    
50 * The library depends on curl, and requires PHP 5.
                    
51 * @author Mewp
                    
52 * @copyright Copyright (c) 2010, Mewp
                    
53 * @license http://www.opensource.org/licenses/mit-license.php MIT
                    
54 */
                    
85        {
                    
86            trigger_error( 'Curl extension is required.', 256 );
                    
87        }
                    
164        {
                    
165            trigger_error( 'Curl error: ' . curl_error( $curl ), 256 );
                    
166        }
                    
334            
                    
335            trigger_error( 'No servers found!', 256 );
                    
336        }
                    
                
mainfile.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 437 lines
                    
64    }
                    
65    Header( "Location: " . $base_siteurl . "/install/index.php" );
                    
66    die();
                    
81    $forum_files = @scandir( NV_ROOTDIR . '/' . DIR_FORUM . '/nukeviet' );
                    
82    if ( ! empty( $forum_files ) and in_array( 'is_user.php', $forum_files ) and in_array( 'changepass.php', $forum_files ) and in_array( 'editinfo.php', $forum_files ) and in_array( 'login.php', $forum_files ) and in_array( 'logout.php', $forum_files ) and in_array( 'lostpass.php', $forum_files ) and in_array( 'register.php', $forum_files ) )
                    
83    {
                    
140require_once ( NV_ROOTDIR . '/includes/core/theme_functions.php' );
                    
141require_once ( NV_ROOTDIR . "/includes/class/xtemplate.class.php" );
                    
142
                    
218define( 'NV_DOCUMENT_ROOT', $nv_Request->doc_root ); // D:/AppServ/www
                    
219define( 'NV_EOL', ( strtoupper( substr( PHP_OS, 0, 3 ) == 'WIN' ) ? "\r\n" : ( strtoupper( substr( PHP_OS, 0, 3 ) == 'MAC' ) ? "\r" : "\n" ) ) ); //Ngat dong
                    
220define( 'NV_UPLOAD_MAX_FILESIZE', min( nv_converttoBytes( ini_get( 'upload_max_filesize' ) ), nv_converttoBytes( ini_get( 'post_max_size' ) ), $global_config['nv_max_size'] ) );
                    
277{
                    
278    include_once ( NV_ROOTDIR . "/includes/core/captcha.php" );
                    
279}
                    
                
DbConnection.php http://zoop.googlecode.com/svn/trunk/ | PHP | 812 lines
                    
1<?php
                    
2abstract class DbConnection
                    
81	{
                    
82		trigger_error("escapeString must be defined in each individual database driver");
                    
83	}
                    
181		{
                    
182			if(php_sapi_name() == "cli")
                    
183				echo $sql . "\n";
                    
252			default:
                    
253				trigger_error("unknown param type: " . $type);
                    
254				break;
                    
281		if($num > 1)
                    
282			trigger_error("1 row expected: $num returned");
                    
283
                    
356			if(isset($cur) && !empty($lastKey))
                    
357				trigger_error("db::fetchSimpleMap : duplicate key in query: \n $sql \n");
                    
358
                    
                
DbObject.php http://zoop.googlecode.com/svn/trunk/ | PHP | 782 lines
                    
1<?php
                    
2class DbObject extends Object implements Iterator
                    
53		if($this->keyAssignedBy == self::keyAssignedBy_db && count($this->primaryKey) != 1)
                    
54			trigger_error("in order for 'keyAssignedBy_db' to work you must have a single primary key field");
                    
55
                    
268
                    
269				trigger_error("the field: $field is not present in memory and this object is not yet bound to a database row");
                    
270				*/
                    
278		if(!array_key_exists($field, $this->scalars))
                    
279			trigger_error("the field $field is present neither in memory nor in the cooresponding database table");
                    
280
                    
420			else
                    
421				trigger_error("you must define all foreign key fields in order by save this object");
                    
422		}
                    
                
Matrix.php https://PHPExcel.svn.codeplex.com/svn | PHP | 1333 lines
                    
8
                    
9require_once 'PHPExcel/Shared/JAMA/utils/Error.php';
                    
10require_once 'PHPExcel/Shared/JAMA/utils/Maths.php';
                    
10require_once 'PHPExcel/Shared/JAMA/utils/Maths.php';
                    
11require_once 'PHPExcel/Shared/JAMA/CholeskyDecomposition.php';
                    
12require_once 'PHPExcel/Shared/JAMA/LUDecomposition.php';
                    
12require_once 'PHPExcel/Shared/JAMA/LUDecomposition.php';
                    
13require_once 'PHPExcel/Shared/JAMA/QRDecomposition.php';
                    
14require_once 'PHPExcel/Shared/JAMA/EigenvalueDecomposition.php';
                    
14require_once 'PHPExcel/Shared/JAMA/EigenvalueDecomposition.php';
                    
15require_once 'PHPExcel/Shared/JAMA/SingularValueDecomposition.php';
                    
16
                    
278        list($RL, $CL) = $args;
                    
279        $m = count($RL) > 0 ? count($RL) : trigger_error(ArgumentBoundsException, ERROR);
                    
280        $n = count($CL) > 0 ? count($CL) : trigger_error(ArgumentBoundsException, ERROR);
                    
                
Query.php git://github.com/ruflin/Elastica.git | PHP | 472 lines
                    
1<?php
                    
2namespace Elastica;
                    
67            case $query instanceof AbstractFilter:
                    
68                trigger_error('Deprecated: Elastica\Query::create() passing filter is deprecated. Create query and use setPostFilter with AbstractQuery instead.', E_USER_DEPRECATED);
                    
69                $newQuery = new self();
                    
139        if ($filter instanceof AbstractFilter) {
                    
140            trigger_error('Deprecated: Elastica\Query::setFilter() passing filter as AbstractFilter is deprecated. Pass instance of AbstractQuery instead.', E_USER_DEPRECATED);
                    
141        } elseif (!($filter instanceof AbstractQuery)) {
                    
144
                    
145        trigger_error('Deprecated: Elastica\Query::setFilter() is deprecated and will be removed in further Elastica releases. Use Elastica\Query::setPostFilter() instead.', E_USER_DEPRECATED);
                    
146
                    
241    {
                    
242        trigger_error('Deprecated: Elastica\Query::setLimit() is deprecated. Use setSize method instead. This method will be removed in further Elastica releases.', E_USER_DEPRECATED);
                    
243
                    
276     * Sets the fields to be returned by the search
                    
277     * NOTICE php will encode modified(or named keys) array into object format in json format request
                    
278     * so the fields array must a sequence(list) type of array.
                    
                
connection_manager.php http://skygames.googlecode.com/svn/trunk/ | PHP | 261 lines
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
19 * @package       cake
                    
24 * @lastmodified  $Date: 2008-11-07 20:54:07 -0600 (Fri, 07 Nov 2008) $
                    
25 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
26 */
                    
176		} else {
                    
177			trigger_error(sprintf(__('Unable to load DataSource file %s.php', true), $conn['filename']), E_USER_ERROR);
                    
178			return null;
                    
                
AMFBaseDeserializer.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 421 lines
                    
15	 */
                    
16	require_once(AMFPHP_BASE . "shared/util/MessageBody.php");
                    
17	require_once(AMFPHP_BASE . "shared/util/MessageHeader.php");
                    
394					$include = FALSE;
                    
395					if(file_exists($GLOBALS['amfphp']['customMappingsPath'] . $mappedClass . '.php'))
                    
396					{
                    
396					{
                    
397						$include = $GLOBALS['amfphp']['customMappingsPath'] . $mappedClass . '.php';
                    
398					}
                    
398					}
                    
399					elseif(file_exists($GLOBALS['amfphp']['customMappingsPath'] . $mappedClass . '.class.php'))
                    
400					{
                    
400					{
                    
401						$include = $GLOBALS['amfphp']['customMappingsPath'] . $mappedClass . '.class.php';
                    
402					}
                    
                
function.input.php http://zoop.googlecode.com/svn/trunk/ | PHP | 92 lines
                    
1<?php
                    
2function smarty_function_input($params, &$smarty)
                    
10		if(!isset($params['data_field']))
                    
11			trigger_error("gui:input: if you specifiy a data object you must also specify a data field");
                    
12		
                    
17			if(!isset($smarty->zoop->form))
                    
18				trigger_error("gui:input: if you specifiy a data object you must first use the 'init_form' tag");
                    
19			$name = $smarty->zoop->form->addBinding(get_class($object), $object->getId(), $field);
                    
85		default:
                    
86			trigger_error("unknown input type: $type");
                    
87			break;
                    
                
WebErrorHandler.php http://zoop.googlecode.com/svn/trunk/ | PHP | 107 lines
                    
1<?php
                    
2class WebErrorHandler
                    
5	{
                    
6		// maybe we should use this here: http://us3.php.net/manual/en/class.errorexception.php
                    
7		$e = new Exception($errstr, $errno);
                    
29			case 'test':
                    
30				trigger_error('status not handled:' . app_status);
                    
31				break;
                    
33			case 'live':
                    
34				trigger_error('status not handled:' . app_status);
                    
35				break;
                    
37			default:
                    
38				trigger_error('status not handled:' . app_status);
                    
39				break;
                    
                
URI.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 241 lines
                    
1<?php
                    
2
                    
52                // something funky happened to the default scheme object
                    
53                trigger_error('Default scheme object "' . $def->defaultScheme . '" was not readable', E_USER_WARNING);
                    
54                return false;
                    
                
auth_ldap.php git://github.com/phpbb/phpbb3.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* LDAP auth plug-in for phpBB3
                    
5*
                    
8* @package login
                    
9* @copyright (c) 2005 phpBB Group
                    
10* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
16*/
                    
17if (!defined('IN_PHPBB'))
                    
18{
                    
221				{
                    
222					trigger_error('NO_GROUP');
                    
223				}
                    
227					'username'		=> $username,
                    
228					'user_password'	=> phpbb_hash($password),
                    
229					'user_email'	=> (!empty($config['ldap_email'])) ? utf8_htmlspecialchars($ldap_result[0][htmlspecialchars_decode($config['ldap_email'])][0]) : '',
                    
                
database.php http://wordcraft.googlecode.com/svn/trunk/ | PHP | 1281 lines
                    
1<?php
                    
2
                    
13
                    
14require_once dirname(__FILE__)."/config.php";
                    
15require_once dirname(__FILE__)."/WCDB.php";
                    
17// Check that this file is not loaded directly.
                    
18if ( basename( __FILE__ ) == basename( $_SERVER["PHP_SELF"] ) ) exit();
                    
19
                    
20// if init has not loaded, quit the file
                    
21if(!defined("WC")) exit("common.php not loaded");
                    
22
                    
140            default:
                    
141                trigger_error("Invalid field $name sent to ".__FUNCTION__.".", E_USER_WARNING);
                    
142                continue;
                    
254            default:
                    
255                trigger_error("Invalid field $field sent to ".__FUNCTION__.".", E_USER_WARNING);
                    
256                continue;
                    
                
Interface.php https://code.google.com/p/molinos-cms/ | PHP | 1308 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* $Id: S3.php 44 2008-12-23 15:38:38Z don.schonknecht $
                    
4*
                    
34/**
                    
35* Amazon S3 PHP class
                    
36*
                    
36*
                    
37* @link http://undesigned.org.za/2007/10/22/amazon-s3-php-class
                    
38* @version 0.3.9
                    
91		if ($rest->error !== false) {
                    
92			trigger_error(sprintf("Molinos_S3_Interface::listBuckets(): [%s] %s", $rest->error['code'], $rest->error['message']), E_USER_WARNING);
                    
93			return false;
                    
137		if ($response->error !== false) {
                    
138			trigger_error(sprintf("Molinos_S3_Interface::getBucket(): [%s] %s", $response->error['code'], $response->error['message']), E_USER_WARNING);
                    
139			return false;
                    
                
S3.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 1286 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* $Id: S3.php 39 2008-11-27 01:22:33Z don.schonknecht $
                    
4*
                    
31/**
                    
32* Amazon S3 PHP class
                    
33*
                    
33*
                    
34* @link http://undesigned.org.za/2007/10/22/amazon-s3-php-class
                    
35* @version 0.3.7
                    
88		if ($rest->error !== false) {
                    
89			trigger_error(sprintf("S3::listBuckets(): [%s] %s", $rest->error['code'], $rest->error['message']), E_USER_WARNING);
                    
90			return false;
                    
133		if ($response->error !== false) {
                    
134			trigger_error(sprintf("S3::getBucket(): [%s] %s", $response->error['code'], $response->error['message']), E_USER_WARNING);
                    
135			return false;
                    
                
plugins.php https://code.google.com/p/osclass/ | PHP | 479 lines
                    
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.');
                    
2
                    
95                if(preg_match('/^[a-zA-Z0-9_]+$/', $file, $matches)) {
                    
96                    // This has to change in order to catch any .php file
                    
97                    $pluginPath = $pluginsPath . "$file/index.php";
                    
98                    if(file_exists($pluginPath)) {
                    
99                        $plugins[] = $file."/index.php";
                    
100                    } else {
                    
100                    } else {
                    
101                        trigger_error(sprintf(__('Plugin %s is missing the index.php file %s'), $file, $pluginPath));
                    
102                    }
                    
374            $plugin = str_replace(osc_plugins_path(), '', $path);
                    
375            if(stripos($plugin, ".php")===FALSE) {
                    
376                $plugins_list = unserialize(osc_active_plugins());
                    
                
lib_misc.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 910 lines
                    
1<?php
                    
2if (!defined('DIRECT_ACCESS')) {
                    
48	/**
                    
49	 * Re-implementation of PHP 5's stripos()
                    
50	 *
                    
50	 *
                    
51	 * Borrowed from simplepie for php4 (admin/lib/lib_simplepie.php)
                    
52	 *
                    
75			else {
                    
76				trigger_error('needle is not a string or an integer', E_USER_WARNING);
                    
77				return false;
                    
237
                    
238/* A workaround for old versions of php */
                    
239// ------------------------------------------------------------------
                    
241{
                    
242	if ( phpversion() >= '4.3.0' ) {
                    
243		return doArray( $in, 'mysql_real_escape_string' );
                    
                
mysql.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 987 lines
                    
1<?php
                    
2
                    
173		{
                    
174			$this->trigger_error();
                    
175		}
                    
278		{
                    
279			$this->trigger_error();
                    
280		}
                    
306		{
                    
307			$this->trigger_error();
                    
308		}
                    
319		{
                    
320			$this->trigger_error();
                    
321		}
                    
363		// if $v has unsuitable type
                    
364		$this->trigger_error(__FUNCTION__ .' - wrong params');
                    
365	}
                    
                
usercp_register.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 791 lines
                    
1<?php
                    
2
                    
26
                    
27require(INC_DIR .'bbcode.php');
                    
28require(INC_DIR .'functions_validate.php');
                    
28require(INC_DIR .'functions_validate.php');
                    
29require(INC_DIR .'functions_selects.php');
                    
30
                    
43		{
                    
44			redirect('index.php');
                    
45		}
                    
151	default:
                    
152		trigger_error("invalid mode: $mode", E_USER_ERROR);
                    
153}
                    
417			{
                    
418				require(INC_DIR .'functions_upload.php');
                    
419				$upload = new upload_common();
                    
                
functions.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 2954 lines
                    
1<?php
                    
2
                    
45		default:
                    
46			trigger_error(__FUNCTION__ .": invalid type '$type'", E_USER_ERROR);
                    
47	}
                    
296	{
                    
297		trigger_error(__FUNCTION__ .": bitfield '$key' not found", E_USER_ERROR);
                    
298	}
                    
362	{
                    
363		trigger_error(__FUNCTION__ .'(): empty $auth_fields', E_USER_ERROR);
                    
364	}
                    
395	{
                    
396		trigger_error(__FUNCTION__ .'(): empty $f_access', E_USER_ERROR);
                    
397	}
                    
                
init_bb.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 593 lines
                    
1<?php
                    
2
                    
4if (!defined('BB_SCRIPT')) define('BB_SCRIPT', 'undefined');
                    
5if (!defined('BB_CFG_LOADED')) trigger_error('bb_cfg not loaded', E_USER_ERROR);
                    
6
                    
13		header('HTTP/1.0 503 Service Unavailable');
                    
14		require(TEMPLATES_DIR .'board_disabled_exit.php');
                    
15	}
                    
130{
                    
131	require(DEV_DIR .'init_debug.php');
                    
132}
                    
396
                    
397define('PAGE_HEADER', INC_DIR .'page_header.php');
                    
398define('PAGE_FOOTER', INC_DIR .'page_footer.php');
                    
399
                    
400define('CAT_URL',      'index.php?c=');
                    
401define('DOWNLOAD_URL', 'download.php?id=');
                    
                
DbStore.php https://code.google.com/p/s3db/ | PHP | 784 lines
                    
1<?php
                    
2require_once RDFAPI_INCLUDE_DIR . 'constants.php';
                    
2require_once RDFAPI_INCLUDE_DIR . 'constants.php';
                    
3require_once RDFAPI_INCLUDE_DIR . 'util/Object.php';
                    
4
                    
10 * DbStore is a persistent store of RDF data using relational database technology.
                    
11 * DbStore uses ADOdb Library for PHP V3.60 (http://php.weblogs.com/ADODB),
                    
12 * which allows to connect to multiple databases in a portable manner.
                    
19 *
                    
20 * @version  $Id: DbStore.php,v 1.29 2007/05/31 00:23:47 cweiske Exp $
                    
21 * @author   Radoslaw Oldakowski <radol@gmx.de>
                    
89 * @param   string  $databaseType
                    
90 * @throws	PhpError
                    
91 * @access	public
                    
103                                  Currently only MsAcces, MySQL and MSSQL supported.";
                    
104       trigger_error($errmsg, E_USER_ERROR);
                    
105   }
                    
                
MemModel.php https://code.google.com/p/s3db/ | PHP | 1471 lines
                    
1<?php
                    
2require_once RDFAPI_INCLUDE_DIR . 'model/Model.php';
                    
12*
                    
13* @version  $Id: MemModel.php,v 1.36 2007/05/01 12:59:18 cweiske Exp $
                    
14* @author Chris Bizer <chris@bizer.de>
                    
128	* @access	public
                    
129	* @throws	PhpError
                    
130	*/
                    
133			$errmsg = RDFAPI_ERROR . '(class: MemModel; method: add): Statement expected.';
                    
134			trigger_error($errmsg, E_USER_ERROR);
                    
135		}
                    
167	* @access	public
                    
168	* @throws	PhpError
                    
169	*/
                    
173			$errmsg = RDFAPI_ERROR . '(class: MemModel; method: addWithoutDuplicates): Statement expected.';
                    
174			trigger_error($errmsg, E_USER_ERROR);
                    
175		}
                    
                
Model.php https://code.google.com/p/s3db/ | PHP | 541 lines
                    
1<?php
                    
2
                    
13 *
                    
14 * @version  $Id: Model.php,v 1.48 2007/05/01 12:59:18 cweiske Exp $
                    
15 * @author Radoslaw Oldakowski <radol@gmx.de>
                    
50    *
                    
51    * @throws  PHPError
                    
52    * @access	public
                    
59
                    
60        trigger_error($errmsg, E_USER_ERROR);
                    
61    }
                    
188    * URIs are generated using the base_uri of the DbModel, the prefix and a unique number.
                    
189    * If no prefix is defined, the bNode prefix, defined in constants.php, is used.
                    
190    *
                    
262    * @access   public
                    
263    * @throws   PhpError
                    
264    */
                    
                
DbModel.php https://code.google.com/p/s3db/ | PHP | 1304 lines
                    
1<?php
                    
2require_once RDFAPI_INCLUDE_DIR . 'model/Model.php';
                    
2require_once RDFAPI_INCLUDE_DIR . 'model/Model.php';
                    
3require_once RDFAPI_INCLUDE_DIR . 'model/Blanknode.php';
                    
4require_once RDFAPI_INCLUDE_DIR . 'model/Statement.php';
                    
12* A DbModel is an RDF Model, which is persistently stored in a relational database.
                    
13* This Class uses the ADOdb Database Abstraction Library for PHP (http://adodb.sourceforge.net/).
                    
14*
                    
15*
                    
16* @version  $Id: DbModel.php,v 1.30 2007/05/29 16:51:52 cweiske Exp $
                    
17* @author   Radoslaw Oldakowski <radol@gmx.de>
                    
126	* @param	object Statement	&$statement
                    
127	* @throws	PhpError
                    
128	* @throws  SqlError
                    
136			$errmsg = RDFAPI_ERROR . '(class: DbModel; method: add): Statement expected.';
                    
137			trigger_error($errmsg, E_USER_ERROR);
                    
138		}
                    
                
RdqlParser.php https://code.google.com/p/s3db/ | PHP | 1063 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * This class contains methods for parsing an Rdql query string into PHP variables.
                    
9 * The output of the RdqlParser is an array with variables and constraints
                    
12 *
                    
13 * @version  $Id: RdqlParser.php,v 1.12 2006/06/08 06:25:14 tgauss Exp $
                    
14 * @author   Radoslaw Oldakowski <radol@gmx.de>
                    
97 *  @return string
                    
98 *  @throws PHPError
                    
99 *  @access private
                    
147            if ($i >= $last && ($query{$last-1} != '*' || $query{$last} != '/'))
                    
148               trigger_error(RDQL_SYN_ERR .": unterminated comment - '*/' missing", E_USER_ERROR);
                    
149            ++$i;
                    
203 *
                    
204 * @throws	PhpError
                    
205 * @access	private
                    
                
ResModel.php https://code.google.com/p/s3db/ | PHP | 873 lines
                    
1<?php
                    
2// ----------------------------------------------------------------------------------
                    
17*
                    
18* @version  $Id: ResModel.php,v 1.14 2006/06/12 13:06:14 tgauss Exp $
                    
19* @author Daniel Westphal <mail at d-westphal dot de>
                    
46		if (!is_a($model,'Model'))
                    
47			trigger_error(RDFAPI_ERROR . '(class: ResourceLayer; method: ResourceLayer): 
                    
48				$model has to be object of class Model', E_USER_ERROR);	
                    
130	* @access	public
                    
131	* @throws	PhpError
                    
132	*/
                    
194	* @access	public
                    
195	* @throws	PhpError 
                    
196	*/
                    
213	* @access	public
                    
214	* @throws	PhpError 
                    
215	*/
                    
                
PEAR.php https://code.google.com/p/s3db/ | PHP | 1056 lines
                    
1<?php
                    
2//
                    
3// +--------------------------------------------------------------------+
                    
4// | PEAR, the PHP Extension and Application Repository                 |
                    
5// +--------------------------------------------------------------------+
                    
5// +--------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2004 The PHP Group                              |
                    
7// +--------------------------------------------------------------------+
                    
7// +--------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,     |
                    
9// | that is bundled with this package in the file LICENSE, and is      |
                    
10// | available through the world-wide-web at the following url:         |
                    
11// | http://www.php.net/license/3_0.txt.                                |
                    
12// | If you did not receive a copy of the PHP license and are unable to |
                    
13// | obtain it through the world-wide-web, please send a note to        |
                    
14// | license@php.net so we can mail you a copy immediately.             |
                    
15// +--------------------------------------------------------------------+
                    
                
loader.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 806 lines
                    
1<?php
                    
2
                    
151
                    
152		$cls = new BPM_albumModule_install_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
153
                    
161			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
162			trigger_error($error_string);
                    
163		}
                    
172			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
173			trigger_error($error_string);
                    
174		}
                    
325			$error_string .= " Failed keys: " . implode(",", $result) . "\n";
                    
326			trigger_error($error_string);
                    
327		}
                    
358
                    
359		$cls = new BPM_albumModule_uninstall_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
360
                    
                
loader.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 806 lines
                    
1<?php
                    
2
                    
151		
                    
152		$cls = new BPM_albumModule_install_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
153
                    
161			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
162			trigger_error($error_string);
                    
163		}
                    
172			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
173			trigger_error($error_string);
                    
174		}
                    
325			$error_string .= " Failed keys: " . implode(",", $result) . "\n";
                    
326			trigger_error($error_string);
                    
327		}
                    
358
                    
359		$cls = new BPM_albumModule_uninstall_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
360
                    
                
loader.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 792 lines
                    
1<?php
                    
2
                    
150
                    
151		$cls = new BPM_mediaModule_install_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
152
                    
160			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
161			trigger_error($error_string);
                    
162		}
                    
171			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
172			trigger_error($error_string);
                    
173		}
                    
270			$error_string .= " Failed keys: " . implode(",", $result) . "\n";
                    
271			trigger_error($error_string);
                    
272		}
                    
303
                    
304		$cls = new BPM_mediaModule_uninstall_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
305
                    
                
loader.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 1039 lines
                    
1<?php
                    
2
                    
151
                    
152		$cls = new BPM_mediaModule_install_base( $slug=self::getSlug(), $name=self::getName(), $php_class=get_class($this) );
                    
153
                    
161			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
162			trigger_error($error_string);
                    
163		}
                    
172			$error_string .= " Failed keys: " . implode(",", $error) . "\n";
                    
173			trigger_error($error_string);
                    
174		}
                    
340
                    
341		$os_string = PHP_OS;
                    
342
                    
365
                    
366		$os_bits = (int)(PHP_INT_SIZE * 8);
                    
367
                    
                
class-mysql.php http://yourls.googlecode.com/svn/trunk/ | PHP | 926 lines
                    
1<?php
                    
2
                    
169		{
                    
170			$this->show_errors ? trigger_error(" \$db->get_row(string query, output type, int offset) -- Output type must be one of: OBJECT, ARRAY_A, ARRAY_N",E_USER_WARNING) : null;
                    
171		}
                    
294				$this->register_error("Could not open cache dir: $this->cache_dir");
                    
295				$this->show_errors ? trigger_error("Could not open cache dir: $this->cache_dir",E_USER_WARNING) : null;
                    
296			}
                    
                
test_case.php git://github.com/12meses12katas/Enero-String-Calculator.git | PHP | 657 lines
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: test_case.php 1968 2009-10-19 18:24:23Z maetl_ $
                    
7 */
                    
15require_once(dirname(__FILE__) . '/compatibility.php');
                    
16require_once(dirname(__FILE__) . '/scorer.php');
                    
17require_once(dirname(__FILE__) . '/expectation.php');
                    
18require_once(dirname(__FILE__) . '/dumper.php');
                    
19require_once(dirname(__FILE__) . '/simpletest.php');
                    
20require_once(dirname(__FILE__) . '/exceptions.php');
                    
20require_once(dirname(__FILE__) . '/exceptions.php');
                    
21require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
22/**#@-*/
                    
241        if (! isset($this->reporter)) {
                    
242            trigger_error('Can only make assertions within test methods');
                    
243        }
                    
                
utf8.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 743 lines
                    
2/**
                    
3 * A port of phputf8 to a unified file/class. Checks PHP status to ensure that
                    
4 * UTF-8 support is available and normalize global variables to UTF-8. It also
                    
11 * Support for Unicode properties is highly recommended (--enable-unicode-properties).
                    
12 * @see http://php.net/manual/reference.pcre.pattern.modifiers.php
                    
13 *
                    
34		'<a href="http://php.net/pcre">PCRE</a> has not been compiled with UTF-8 support. '.
                    
35		'See <a href="http://php.net/manual/reference.pcre.pattern.modifiers.php">PCRE Pattern Modifiers</a> '.
                    
36		'for more information. This application cannot be run without UTF-8 support.',
                    
55	(
                    
56		'The <a href="http://php.net/mbstring">mbstring</a> extension is overloading PHP\'s native string functions. '.
                    
57		'Disable this by setting mbstring.func_overload to 0, 1, 4 or 5 in php.ini or a .htaccess file.'.
                    
192	 * Returns the length of the given string.
                    
193	 * @see http://php.net/strlen
                    
194	 *
                    
                
ses.php git://github.com/facebook/phabricator.git | PHP | 722 lines
                    
1<?php
                    
2/**
                    
30* The BSD license may be found here:
                    
31* http://www.opensource.org/licenses/bsd-license.php
                    
32*
                    
34*
                    
35* SimpleEmailService is based on Donovan Schonknecht's Amazon S3 PHP class, found here:
                    
36* http://undesigned.org.za/2007/10/22/amazon-s3-php-class
                    
40/**
                    
41* Amazon SimpleEmailService PHP class
                    
42*
                    
42*
                    
43* @link http://sourceforge.net/projects/php-aws-ses/
                    
44* version 0.8.1
                    
69  // If you use exceptions, errors will be communicated by throwing a
                    
70  // SimpleEmailServiceException. By default, they will be trigger_error()'d.
                    
71  protected $__useExceptions = 0;
                    
                
S3.php git://github.com/facebook/phabricator.git | PHP | 1924 lines
                    
1<?php
                    
2/**
                    
31/**
                    
32* Amazon S3 PHP class
                    
33*
                    
33*
                    
34* @link http://undesigned.org.za/2007/10/22/amazon-s3-php-class
                    
35* @version 0.5.0-dev
                    
221		else
                    
222			trigger_error($message, E_USER_WARNING);
                    
223	}
                    
                
Association.php git://github.com/openid/php-openid.git | PHP | 631 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
19 */
                    
20require_once 'Auth/OpenID/CryptUtil.php';
                    
21
                    
24 */
                    
25require_once 'Auth/OpenID/KVForm.php';
                    
26
                    
29 */
                    
30require_once 'Auth/OpenID/HMAC.php';
                    
31
                    
135            $fmt = 'Unsupported association type (%s)';
                    
136            trigger_error(sprintf($fmt, $assoc_type), E_USER_ERROR);
                    
137        }
                    
                
SQLStore.php git://github.com/openid/php-openid.git | PHP | 595 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
18 */
                    
19require_once 'Auth/OpenID/Interface.php';
                    
20require_once 'Auth/OpenID/Nonce.php';
                    
24 */
                    
25require_once 'Auth/OpenID.php';
                    
26
                    
29 */
                    
30require_once 'Auth/OpenID/Nonce.php';
                    
31
                    
103                              'auth_openid_databaseconnection')))) {
                    
104            trigger_error("Auth_OpenID_SQLStore expected PEAR connection " .
                    
105                          "object (got ".get_class($connection).")",
                    
                
FileStore.php git://github.com/openid/php-openid.git | PHP | 671 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
19 */
                    
20require_once 'Auth/OpenID.php';
                    
21require_once 'Auth/OpenID/Interface.php';
                    
21require_once 'Auth/OpenID/Interface.php';
                    
22require_once 'Auth/OpenID/HMAC.php';
                    
23require_once 'Auth/OpenID/Nonce.php';
                    
58        if (!Auth_OpenID::ensureDir($directory)) {
                    
59            trigger_error('Not a directory and failed to create: '
                    
60                          . $directory, E_USER_ERROR);
                    
78        if (!$this->_setup()) {
                    
79            trigger_error('Failed to initialize OpenID file store in ' .
                    
80                          $directory, E_USER_ERROR);
                    
                
Format.php git://github.com/silverstripe/sapphire.git | PHP | 1314 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Locale/Data.php';
                    
27
                    
51     * The 'locale' option helps when parsing numbers and dates using separators and month names.
                    
52     * The date format 'format_type' option selects between CLDR/ISO date format specifier tokens and PHP's date() tokens.
                    
53     * The 'fix_date' option enables or disables heuristics that attempt to correct invalid dates.
                    
58     *
                    
59     * @param  array  $options  Array of options, keyed by option name: format_type = 'iso' | 'php', fix_date = true | false,
                    
60     *                          locale = Zend_Locale | locale string, precision = whole number between -1 and 30
                    
73     *
                    
74     * @param  array  $options  Array of options, keyed by option name: format_type = 'iso' | 'php', fix_date = true | false,
                    
75     *                          locale = Zend_Locale | locale string, precision = whole number between -1 and 30
                    
100                    } else if ((gettype($value) !== 'string') and ($value !== NULL)) {
                    
101                        require_once 'Zend/Locale/Exception.php';
                    
102                        $stringValue = (string)(is_array($value) ? implode(' ', $value) : $value);
                    
                
Diff.php git://github.com/silverstripe/sapphire.git | PHP | 879 lines
                    
1<?php
                    
2
                    
5 * @subpackage core
                    
6 * A PHP diff engine
                    
7 */
                    
8
                    
9// difflib.php
                    
10//
                    
10//
                    
11// A PHP diff engine for phpwiki.
                    
12//
                    
29	public function reverse() {
                    
30		trigger_error("pure virtual", E_USER_ERROR);
                    
31	}
                    
                
FileManagerPlugin.php git://github.com/forkcms/forkcms.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Id: FileManagerPlugin.php 751 2009-10-20 12:05:36Z spocke $
                    
4 *
                    
9
                    
10require_once(MCMANAGER_ABSPATH . "FileManager/FileSystems/ZipFileImpl.php");
                    
11
                    
109		if (!$man->isToolEnabled("zip", $config)) {
                    
110			trigger_error("{#error.no_access}", FATAL);
                    
111			die();
                    
115		if ($zipFile->exists()) {
                    
116			trigger_error("{#error.tofile_exists}", FATAL);
                    
117			die();
                    
172		if (!$man->isToolEnabled("copy", $config)) {
                    
173			trigger_error("{#error.no_access}", FATAL);
                    
174			die();
                    
                
CorePlugin.php git://github.com/forkcms/forkcms.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Id: CorePlugin.php 751 2009-10-20 12:05:36Z spocke $
                    
4 *
                    
10// Load local file system
                    
11require_once(MCMANAGER_ABSPATH . "FileSystems/LocalFileImpl.php");
                    
12require_once(MCMANAGER_ABSPATH . "FileSystems/RootFileImpl.php");
                    
134			if (!$man->verifyPath($input["path"]) < 0) {
                    
135				trigger_error("Path verification failed.", FATAL);
                    
136				die();
                    
142			if (!$file->exists()) {
                    
143				trigger_error("File not found.", FATAL);
                    
144				die();
                    
190
                    
191				phpinfo();
                    
192
                    
                
PEAR.php http://joostina.googlecode.com/svn/trunk/ | PHP | 587 lines
                    
8*
                    
9* LICENSE: This source file is subject to version 3.0 of the PHP license
                    
10* that is available through the world-wide-web at the following URI:
                    
11* http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
12* the PHP License and are unable to obtain it through the web, please
                    
13* send a note to license@php.net so we can mail you a copy immediately.
                    
21* @copyright  1997-2006 The PHP Group
                    
22* @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
23* @version    CVS: $Id: PEAR.php,v 1.98 2006/01/23 05:38:05 cellog Exp $
                    
33define('PEAR_ZE2',(function_exists('version_compare') && version_compare(zend_version(),"2-dev","ge")));
                    
34if(substr(PHP_OS,0,3) == 'WIN') {
                    
35	define('OS_WINDOWS',true);
                    
148				} else {
                    
149					trigger_error("invalid error callback",E_USER_WARNING);
                    
150				}
                    
                
adodb-mysqli.inc.php http://scriptz.googlecode.com/svn/trunk/ | PHP | 1131 lines
                    
1<?php
                    
2/*
                    
21 
                    
22 // PHP5 compat...
                    
23 if (! defined("MYSQLI_BINARY_FLAG"))  define("MYSQLI_BINARY_FLAG", 128); 
                    
57	 // if(!extension_loaded("mysqli"))
                    
58	      ;//trigger_error("You must have the mysqli extension installed.", E_USER_ERROR);
                    
59	    
                    
217		if (!$magic_quotes) {
                    
218	    	if (PHP_VERSION >= 5)
                    
219	      		return "'" . mysqli_real_escape_string($this->_connectionID, $s) . "'";   
                    
                
mainfile.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 170 lines
                    
51//Ket noi voi cac file constants, config, timezone
                    
52require_once ( NV_ROOTDIR . "/includes/constants.php" );
                    
53require_once ( NV_ROOTDIR . '/includes/timezone.php' );
                    
87require_once ( NV_ROOTDIR . '/includes/functions.php' );
                    
88require_once ( NV_ROOTDIR . '/includes/core/theme_functions.php' );
                    
89require_once ( NV_ROOTDIR . "/includes/class/xtemplate.class.php" );
                    
99//Ket noi voi file xac dinh IP
                    
100require_once ( NV_ROOTDIR . '/includes/class/ips.class.php' );
                    
101
                    
109$client_info['is_proxy'] = $ips->is_proxy;
                    
110if ( $client_info['ip'] == "none" ) trigger_error( 'Error: Your IP address is not correct', 256 ); //Neu khong co IP
                    
111//Ket noi voi class xu ly request
                    
150define( 'NV_DOCUMENT_ROOT', $nv_Request->doc_root ); // D:/AppServ/www
                    
151define( 'NV_EOL', ( strtoupper( substr( PHP_OS, 0, 3 ) == 'WIN' ) ? "\r\n" : ( strtoupper( substr( PHP_OS, 0, 3 ) == 'MAC' ) ? "\r" : "\n" ) ) ); //Ngat dong
                    
152define( 'NV_UPLOADS_REAL_DIR', NV_ROOTDIR . '/' . NV_UPLOADS_DIR ); //Xac dinh duong dan thuc den thu muc upload
                    
                
index.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 151 lines
                    
1<?php
                    
2
                    
18
                    
19	// Define E_STRICT if not defined so we don't get errors on PHP 4
                    
20	if (!defined('E_STRICT')) define('E_STRICT', 2048);
                    
27		
                    
28		// Display the error message in the PHP error log
                    
29		error_log($errorMsg);
                    
34		// Error num check replaced by code from http://drupal.org/node/11772#comment-18383.
                    
35		// This stops PHP5 strict errors from failing a call (e.g., deprecated calls, etc.)
                    
36		//if (($errorNum & (E_ALL & E_STRICT) ^ (E_NOTICE & E_STRICT)) || $errorNum = E_USER_ERROR)
                    
95
                    
96	// Error handling (unfortunately has to be global to support PHP 4)
                    
97	set_error_handler('errorHandler');
                    
102	// Use the phpFlickr library. 
                    
103	include('../../php/lib/phpFlickr/phpFlickr.php');
                    
104
                    
                
queryBuilder.php http://pos-tracker.googlecode.com/svn/trunk/ | PHP | 410 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * queryBuilder.php - Builds SQL queries. Modified from yapeal.
                    
7 *
                    
7 *
                    
8 * PHP version 5
                    
9 *
                    
43 */
                    
44if (basename(__FILE__) == basename($_SERVER['PHP_SELF'])) {
                    
45  exit();
                    
101      $mess = '$tableName must be a string in ' . __CLASS__;
                    
102      trigger_error($mess, E_USER_ERROR);
                    
103    };// if !is_string $params[$k] ...
                    
107      $mess = '$dsn must be a string in ' . __CLASS__;
                    
108      trigger_error($mess, E_USER_ERROR);
                    
109    };// if !is_string $params[$k] ...
                    
                
EntityParser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 137 lines
                    
1<?php
                    
2
                    
3// if want to implement error collecting here, we'll need to use some sort
                    
4// of global data (probably trigger_error) because it's impossible to pass
                    
5// $config or $context to the callback functions.
                    
                
MakeAbsolute.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 147 lines
                    
1<?php
                    
2
                    
17        {
                    
18            trigger_error('URI.MakeAbsolute is being ignored due to lack of value for URI.Base configuration', E_USER_WARNING);
                    
19            return false;
                    
                
uiorder-fix.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 124 lines
                    
1<?php
                    
2
                    
75    if($widgetId == 0 || $widgetId == '0')
                    
76        trigger_error("wrong - empty widgetId !");
                    
77        
                    
78    if(empty($oldPos))
                    
79        trigger_error("wrong - empty old position!");
                    
80        
                    
81    if(empty($newPos))
                    
82        trigger_error("wrong - empty new position !");
                    
83        
                    
                
MySQL.php http://festos.googlecode.com/svn/trunk/ | PHP | 209 lines
                    
1<?php
                    
2/**
                    
3* @package SPLIB
                    
4* @version $Id: MySQL.php,v 1.1 2003/12/12 08:06:07 kevin Exp $
                    
5*/
                    
119        if (!$queryResource=mysql_query($sql,$this->dbConn))
                    
120            trigger_error ('Query failed: '.mysql_error($this->dbConn).
                    
121                           ' SQL: '.$sql);
                    
                
admin_relogin.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 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        }
                    
                
Setup.php git://github.com/gabordemooij/redbean.git | PHP | 92 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * @file    RedBean/Setup.php
                    
7 * @desc    Helper class to quickly setup RedBean for you
                    
7 * @desc    Helper class to quickly setup RedBean for you
                    
8 * @author  Gabor de Mooij and the RedBeanPHP community
                    
9 * @license BSD/GPLv2
                    
10 *
                    
11 * copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community
                    
12 * This source file is subject to the BSD/GPLv2 License that is bundled
                    
30		if ( !preg_match( '/^(mysql|sqlite|pgsql|cubrid|oracle):/', strtolower( trim( $dsn ) ) ) ) {
                    
31			trigger_error( 'Unsupported DSN' );
                    
32		}
                    
41	 * The toolbox contains all the necessary core components for
                    
42	 * RedBeanPHP to start working with your database. Most RedBeanPHP
                    
43	 * components are stand-alone and require a toolbox to work.
                    
                
dbo_adodb.php https://code.google.com/p/mj-its/ | PHP | 0 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.cake.libs.model.datasources.dbo
                    
20 * @since         CakePHP(tm) v 0.2.9
                    
21 * @version       $Revision$
                    
23 * @lastmodified  $Date$
                    
24 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
25 */
                    
                
function.html_select_date.php git://github.com/openmelody/melody.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
26 *             dropdown to include given date unless explicitly set (Monte)
                    
27 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
                    
28 *      (Smarty online manual)
                    
56    $reverse_years   = false;
                    
57    /* Should the select boxes be part of an array when returned from PHP?
                    
58       e.g. setting it to "birthday", would create "birthday[Day]",
                    
127                } else {
                    
128                    $smarty->trigger_error("html_select_date: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
                    
129                }
                    
                
index.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
11
                    
12require (str_replace(DIRECTORY_SEPARATOR, '/', dirname(__file__)) . '/mainfile.php');
                    
13require (NV_ROOTDIR . "/includes/core/user_functions.php");
                    
23if (defined('NV_IS_USER'))
                    
24    trigger_error('Hacking attempt', 256);
                    
25require (NV_ROOTDIR . "/includes/core/is_user.php");
                    
29{
                    
30    require (NV_ROOTDIR . "/includes/core/online.php");
                    
31}
                    
37    {
                    
38        require (NV_ROOTDIR . "/includes/core/stat.php");
                    
39    }
                    
44{
                    
45    require (NV_ROOTDIR . "/includes/core/referer.php");
                    
46}
                    
                
chamilo_template.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 245 lines
                    
2namespace common\libraries;
                    
3require_once Path :: get_plugin_path() . 'phpbb3/phpbb3_template.php';
                    
4use \Phpbb3Template;
                    
4use \Phpbb3Template;
                    
5require_once Path :: get_library_path() . 'html/layout/chamilo_template_compiler.class.php';
                    
6
                    
9
                    
10class ChamiloTemplate extends Phpbb3Template
                    
11{
                    
127        {
                    
128            trigger_error('ChamiloTemplate->_tpl_load(): No file specified for handle' . $handle, E_USER_ERROR);
                    
129        }
                    
130
                    
131        $filename = $this->cachepath . str_replace('/', '.', $this->filename[$handle]) . '.php';
                    
132
                    
                
TrustRoot.php git://github.com/openid/php-openid.git | PHP | 175 lines
                    
1<?php
                    
2
                    
6
                    
7require_once "Auth/OpenID/TrustRoot.php";
                    
8require_once "Tests/Auth/OpenID/TestUtil.php";
                    
9
                    
10class Tests_Auth_OpenID_TRParseCase extends PHPUnit_Framework_TestCase {
                    
11    function __construct($desc, $case, $expected)
                    
37
                    
38class Tests_Auth_OpenID_TRMatchCase extends PHPUnit_Framework_TestCase {
                    
39    function __construct($desc, $tr, $rt, $matches)
                    
94        if (count($lines) != $numtests) {
                    
95            trigger_error('Parse failure: ' . var_export($secdata, true),
                    
96                          E_USER_ERROR);
                    
159
                    
160class Tests_Auth_OpenID_TrustRoot extends PHPUnit_Framework_TestSuite {
                    
161    function __construct($name)
                    
                
DBServerConnection.php http://festos.googlecode.com/svn/trunk/ | PHP | 83 lines
                    
1<?php
                    
2/* **************************************************
                    
8* @package SKYPANTHER
                    
9* @version $Id: DBServerConnection.php,v 1.0 2006/01/11 15:30:00 tim Exp $
                    
10* @author Tim Poulsen, Skypanther Studios
                    
77                                      $this->dbPass)) {
                    
78            trigger_error('Could not connect to server');
                    
79            $this->connectError=true;
                    
                
Rename.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Filter/Interface.php';
                    
26
                    
60        } elseif (!is_array($options)) {
                    
61            require_once 'Zend/Filter/Exception.php';
                    
62            throw new Zend_Filter_Exception('Invalid options argument provided to filter');
                    
65        if (1 < func_num_args()) {
                    
66            trigger_error('Support for multiple arguments is deprecated in favor of a single options array', E_USER_NOTICE);
                    
67            $argv = func_get_args();
                    
125        } elseif (!is_array($options)) {
                    
126            require_once 'Zend/Filter/Exception.php';
                    
127            throw new Zend_Filter_Exception ('Invalid options to rename filter provided');
                    
159        if (file_exists($file['target'])) {
                    
160            require_once 'Zend/Filter/Exception.php';
                    
161            throw new Zend_Filter_Exception(sprintf("File '%s' could not be renamed. It already exists.", $value));
                    
                
smarty_internal_wrapper.php http://xvweb.googlecode.com/svn/trunk/ | PHP | 131 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Project:     Smarty: the PHP compiling template engine
                    
5 * File:        smarty_internal_wrapper.php
                    
5 * File:        smarty_internal_wrapper.php
                    
6 * SVN:         $Id: smarty_internal_wrapper.php 190 2011-01-05 17:40:13Z KBordeux@gmail.com $
                    
7 * 
                    
56       if($this->smarty->deprecation_notices)
                    
57         trigger_error("function call '$name' is unknown or deprecated.",E_USER_NOTICE);
                    
58       // get first and last part of function name
                    
108              case 'error':
                    
109                 return call_user_func_array('trigger_error',$args);
                    
110           }
                    
125     */
                    
126    function trigger_error($error_msg, $error_type = E_USER_WARNING)
                    
127    {
                    
                
media.test.php git://github.com/davidpersson/media.git | PHP | 195 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * PHP version 5
                    
11 * CakePHP version 1.3
                    
15 * @copyright  2007-2013 David Persson <nperson@gmx.de>
                    
16 * @license    http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 * @link       http://github.com/davidpersson/media
                    
22} elseif (MEDIA != TMP . 'tests' . DS) {
                    
23	trigger_error('MEDIA constant already defined and not pointing to tests directory.', E_USER_ERROR);
                    
24}
                    
25
                    
26require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DS . 'config' . DS . 'media.php';
                    
27require_once dirname(dirname(dirname(dirname(__FILE__)))) . DS . 'fixtures' . DS . 'test_data.php';
                    
                
Url.php git://github.com/nette/nette.git | PHP | 527 lines
                    
1<?php
                    
2
                    
24 * /--\   /--\ /------\ /-------\ /--\/--\/----------------------------\
                    
25 * http://john:x0y17575@nette.org:8042/en/manual.php?name=param#fragment  <-- absoluteUrl
                    
26 *        \__________________________/\____________/^\________/^\______/
                    
34 * - baseUrl:     http://user:password@nette.org:8042/en/
                    
35 * - relativeUrl: manual.php
                    
36 *
                    
500	{
                    
501		trigger_error(__METHOD__ . '() is deprecated; use ' . __CLASS__ . '::getRelativeUrl() instead.', E_USER_WARNING);
                    
502		return $this->getRelativeUrl();
                    
507	{
                    
508		trigger_error(__METHOD__ . '() is deprecated; use ' . __CLASS__ . '::getAbsoluteUrl() instead.', E_USER_WARNING);
                    
509		return $this->getAbsoluteUrl();
                    
514	{
                    
515		trigger_error(__METHOD__ . '() is deprecated; use ' . __CLASS__ . '::getHostUrl() instead.', E_USER_WARNING);
                    
516		return $this->getHostUrl();
                    
                
db_acl.php git://github.com/Datawalke/Coordino.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.libs.model
                    
19 * @since         CakePHP(tm) v 0.2.9
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
138
                    
139			if (PHP5) {
                    
140				$model = ClassRegistry::init(array('class' => $name, 'alias' => $name));
                    
                
AkLogger.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
3
                    
4// WARNING. This is experimental. We might replace this by Logger4PHP
                    
5
                    
20
                    
21require_once(AK_LIB_DIR.DS.'Ak.php');
                    
22
                    
143            if(!is_writable($filename)){
                    
144                trigger_error($this->internalError($this->t('Error writing file: %filename Description:',array('%filename'=>$filename)).$error_message,__FILE__,__LINE__), E_USER_NOTICE);
                    
145                return ;
                    
                
cache.php http://noserub.googlecode.com/svn/trunk/ | PHP | 532 lines
                    
4/**
                    
5 * Caching for CakePHP.
                    
6 *
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
19 * @package       cake
                    
24 * @lastmodified  $Date: 2009-08-06 09:28:59 +0200 (Thu, 06 Aug 2009) $
                    
25 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
26 */
                    
                
Parse.php git://github.com/openid/php-openid.git | PHP | 185 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'Tests/Auth/OpenID/TestUtil.php';
                    
17require_once 'Auth/OpenID/Parse.php';
                    
18
                    
19class Tests_Auth_OpenID_Link extends PHPUnit_Framework_TestCase {
                    
20    function __construct($case)
                    
86
                    
87class NumTestCases extends PHPUnit_Framework_TestCase {
                    
88    function __construct($test_cases, $num_tests)
                    
100
                    
101class Tests_Auth_OpenID_Parse extends PHPUnit_Framework_TestSuite {
                    
102
                    
                
SonataAdminExtension.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 462 lines
                    
1<?php
                    
2
                    
322            if ($method) {
                    
323                @trigger_error(
                    
324                    'Option "associated_tostring" is deprecated since version 2.3. Use "associated_property" instead.',
                    
439        } catch (\Twig_Error_Loader $e) {
                    
440            @trigger_error(
                    
441                'Relying on default template loading on field template loading exception '.
                    
                
Reduce.php http://phc.googlecode.com/svn/trunk/ | PHP | 491 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * phc -- the open source PHP compiler
                    
4 * See doc/license/README.license for licensing information
                    
13 *
                    
14 * The reduce class automatically reduces PHP test cases quickly (using the
                    
15 * delta-debugging algorithm). Given an input program, it will remove as many
                    
22 *
                    
23 *		$filename = "test_case.php";
                    
24 *		$test_prog = file_get_contents ($filename);
                    
28 *			$reduce->set_checking_function ("my_checking_function");
                    
29 *			$reduced_prog = $reduce->run_on_php ($test_prog);
                    
30 *
                    
50 *				successful. Its parameters are:
                    
51 *					$program - the PHP program to check
                    
52 *				It returns true if the redcue step was successful (ie if the bug
                    
                
Zoop.php http://zoop.googlecode.com/svn/trunk/ | PHP | 255 lines
                    
1<?php
                    
2// do some bootstrapping
                    
12//	now we load the default config for zoop
                    
13// include(zoop_dir . '/config.php');	//	this file is now obsolete and depricated, in favor of the new config module
                    
14include(zoop_dir . '/ZoopLibrary.php');
                    
14include(zoop_dir . '/ZoopLibrary.php');
                    
15include(zoop_dir . '/ZoopModule.php');
                    
16include(zoop_dir . '/ZoopLoader.php');
                    
18//	we want to load this before we do anything else so that everything else is easier to debug
                    
19// include(zoop_dir . '/core/app/Error.php');
                    
20// include(zoop_dir . '/core/app/Globals.php');
                    
43		$libClassName = ucfirst($libName) . 'Library';
                    
44		include("$path/$libClassName.php");
                    
45		self::$libs[$libName] = new $libClassName($path);
                    
55		//	in the future we can depricate it and change the self::loadMod
                    
56		//	call to a trigger_error("lib '$libName' not found") call
                    
57		if(isset(self::$libs[$libName]))
                    
                
index.php git://github.com/Datawalke/Coordino.git | PHP | 87 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.app.webroot
                    
19 * @since         CakePHP(tm) v 0.2.9
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
79	if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
                    
80		trigger_error("CakePHP core could not be found.  Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
                    
81	}
                    
                
KVForm.php git://github.com/openid/php-openid.git | PHP | 290 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'Auth/OpenID/KVForm.php';
                    
17
                    
30
                    
31class Tests_Auth_OpenID_KVForm_TestCase extends PHPUnit_Framework_TestCase {
                    
32    var $errs;
                    
51    {
                    
52        trigger_error('Must be overridden', E_USER_ERROR);
                    
53    }
                    
113
                    
114class Tests_Auth_OpenID_KVForm extends PHPUnit_Framework_TestSuite {
                    
115    function __construct($name)
                    
                
DataValidator.class.php http://xvweb.googlecode.com/svn/trunk/ | PHP | 149 lines
                    
1<?php
                    
2/**
                    
64		{
                    
65			trigger_error('Empty string to check', E_USER_NOTICE);
                    
66		}
                    
110				// nie jest w podanych wartosciach
                    
111				trigger_error('The number is not in valid array', E_USER_NOTICE); 
                    
112			} 
                    
118			{
                    
119				trigger_error('Out of range (minimal)', E_USER_NOTICE); // wartosc za mala
                    
120			}
                    
126			{
                    
127				trigger_error('Out of range (maximal)', E_USER_NOTICE); // wartosc za duza
                    
128			}
                    
                
xajaxPluginManager.inc.php https://code.google.com/p/evedev-kb/ | PHP | 345 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3	File: xajaxPluginManager.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: xajaxPluginManager.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
                    
16	@copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
                    
21//SkipAIO
                    
22require(dirname(__FILE__) . '/xajaxPlugin.inc.php');
                    
23//EndSkipAIO
                    
113						$sExtension = substr($sName, $nLength - 8, 8);
                    
114						if ('.inc.php' == $sExtension) {
                    
115							require $sFolder . '/' . $sFileName . $sExtension;
                    
                
Config.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 217 lines
                    
1<?php
                    
2
                    
5 * configuration items for gloo v2
                    
6 * PHP  singleton implementation need not be thread safe!
                    
7 * I do not think there is even the concept of thread safe in PHP!
                    
41        if (empty($value)) {
                    
42            trigger_error("Default $name is empty in config", E_USER_ERROR);
                    
43        }
                    
125		$val = $this->ini_array['smtp.provider'];
                    
126		// php === operator does a type check as well
                    
127		// php == will convert type before check and we do not want that
                    
138		else
                    
139			trigger_error('smtp.server config flag is set to Off',E_USER_ERROR);
                    
140    }
                    
                
edit.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 205 lines
                    
6
                    
7	//sa/domain/edit.php
                    
8	$glooWeb = Gloo_Core_Web::getInstance();
                    
21	if(empty($_GET['org_id'])) {
                    
22		trigger_error('wrong navigation >> org_id is empty ',E_USER_ERROR);
                    
23	} else {
                    
71                                <li> <a href="<?php echo $glooBackURIDecoded; ?>">Home </a> </li>
                    
72                                <li class="last"> <a href="<?php echo $_SERVER['REQUEST_URI']; ?>">domains</a> </li>
                    
73
                    
110                                        <form class="sform" id="domain_edit_form" name="domain_edit_form"
                    
111                                              action="<?php echo  url::base() ?>/sa/domain/frm/edit.php" method="POST">
                    
112                                            <div class="error"> </div>
                    
116                                                    <td class="field"> Name<span class="red-label">*</span></td>
                    
117                                                    <td> <span style="font-size:14px;"> <?php echo $editOrg['name']; ?> </span> </td>
                    
118                                                </tr>
                    
                
ChainedBlockStream.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 238 lines
                    
1<?php
                    
2/**
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package    PHPExcel_Shared_OLE
                    
28/**
                    
29 * PHPExcel_Shared_OLE_ChainedBlockStream
                    
30 *
                    
31 * Stream wrapper for reading data stored in an OLE file. Implements methods
                    
32 * for PHP's stream_wrapper_register(). For creating streams using this
                    
33 * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream().
                    
34 *
                    
35 * @category   PHPExcel
                    
36 * @package    PHPExcel_Shared_OLE
                    
169        $eof = $this->pos >= strlen($this->data);
                    
170        // Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508
                    
171        if (version_compare(PHP_VERSION, '5.0', '>=') && version_compare(PHP_VERSION, '5.1', '<'))
                    
                
resend.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 189 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
66		$form->add('resend_form', array(
                    
67																'action' => baseurl('index.php?action=resend'),
                    
68																'method' => 'post',
                    
142		{
                    
143			$errors[] = l('That account is already activated and you can <a href="%s">log in</a> if it is your account.', baseurl('index.php?action=login'));
                    
144
                    
166		{
                    
167			require_once(coredir. '/register.php');
                    
168		}
                    
172			// We should tell the administrator that the message couldn't be sent.
                    
173			trigger_error(l('An error occurred while trying to resend the user their activation email. This could indicate that the SMTP settings are incorrect or the server does not have the mail() function enabled.'), E_USER_WARNING);
                    
174
                    
                
Template.php git://github.com/nette/nette.git | PHP | 457 lines
                    
1<?php
                    
2
                    
153			$code = $filter/*5.2*->invoke*/($code);
                    
154			$code = strtr($code, $blocks); // put PHP code back
                    
155		}
                    
156
                    
157		return Helpers::optimizePhp($code);
                    
158	}
                    
319	{
                    
320		trigger_error(__METHOD__ . '() is deprecated; use setParameters() instead.', E_USER_WARNING);
                    
321		return $this->setParameters($params);
                    
427	 */
                    
428	private static function extractPhp($source, & $blocks)
                    
429	{
                    
443				} elseif ($token[0] === T_OPEN_TAG || $token[0] === T_OPEN_TAG_WITH_ECHO) {
                    
444					$res .= $id = "<?php \x01@php:p" . count($blocks) . "@\x02";
                    
445					$php = & $blocks[$id];
                    
                
AkPhpTemplateHandler.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 167 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
20defined('AK_TEMPLATE_SECURITY_CHECK') ? null : define('AK_TEMPLATE_SECURITY_CHECK', true);
                    
21defined('AK_PHP_CODE_SANITIZER_FOR_TEMPLATE_HANDLER')? null : define('AK_PHP_CODE_SANITIZER_FOR_TEMPLATE_HANDLER', 'AkPhpCodeSanitizer');
                    
22
                    
22
                    
23class AkPhpTemplateHandler
                    
24{
                    
27    var $_templateEngine = AK_DEFAULT_TEMPLATE_ENGINE;
                    
28    var $_codeSanitizerClass = AK_PHP_CODE_SANITIZER_FOR_TEMPLATE_HANDLER;
                    
29
                    
29
                    
30    function AkPhpTemplateHandler(&$AkActionView)
                    
31    {
                    
83            if($this->_codeSanitizerClass == 'AkPhpCodeSanitizer'){
                    
84                require_once(AK_LIB_DIR.DS.'AkActionView'.DS.'AkPhpCodeSanitizer.php');
                    
85            }
                    
                
Statement.php https://code.google.com/p/s3db/ | PHP | 313 lines
                    
1<?php
                    
2
                    
13 * @author Chris Bizer <chris@bizer.de>
                    
14 * @version  $Id: Statement.php,v 1.16 2006/05/15 05:24:36 tgauss Exp $
                    
15 * @package model
                    
48   * @param	object	node $obj
                    
49	* @throws	PhpError
                    
50   */
                    
55		          '(class: Statement; method: new): Resource expected as subject.';
                    
56		trigger_error($errmsg, E_USER_ERROR); 
                    
57	}
                    
60		          '(class: Statement; method: new): Resource expected as predicate, no blank node allowed.';
                    
61		trigger_error($errmsg, E_USER_ERROR); 
                    
62	}
                    
65		          '(class: Statement; method: new): Resource or Literal expected as object.';
                    
66		trigger_error($errmsg, E_USER_ERROR); 
                    
67	}
                    
                
function.cycle.php git://github.com/ginatrapani/ThinkUp.git | PHP | 103 lines
                    
1<?php
                    
2/**
                    
32 * </pre>
                    
33 * @link http://smarty.php.net/manual/en/language.function.cycle.php {cycle}
                    
34 *       (Smarty online manual)
                    
37 * @author credit to Gerard <gerard@interfold.com>
                    
38 * @author credit to Jason Sweat <jsweat_php@yahoo.com>
                    
39 * @version  1.3
                    
54        if(!isset($cycle_vars[$name]['values'])) {
                    
55            $smarty->trigger_error("cycle: missing 'values' parameter");
                    
56            return;
                    
                
AclNode.php git://github.com/cakephp/cakephp.git | PHP | 181 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * PHP 5
                    
5 *
                    
5 *
                    
6 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
7 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.Model
                    
14 * @package       Cake.Model
                    
15 * @since         CakePHP(tm) v 0.2.9
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
129			if (empty($model)) {
                    
130				trigger_error(__d('cake_dev', "Model class '%s' not found in AclNode::node() when trying to bind %s object", $type, $this->alias), E_USER_WARNING);
                    
131				return null;
                    
                
db_acl.php https://code.google.com/p/mj-its/ | PHP | 0 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.cake.libs.model
                    
20 * @since         CakePHP(tm) v 0.2.9
                    
21 * @version       $Revision$
                    
23 * @lastmodified  $Date$
                    
24 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
25 */
                    
                
Interface.php git://github.com/openid/php-openid.git | PHP | 194 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * This file specifies the interface for PHP OpenID store implementations.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
45    {
                    
46        trigger_error("Auth_OpenID_OpenIDStore::storeAssociation not implemented", E_USER_ERROR);
                    
47    }
                    
62    {
                    
63        trigger_error("Auth_OpenID_OpenIDStore::cleanupNonces not implemented", E_USER_ERROR);
                    
64        return 0;
                    
77    {
                    
78        trigger_error("Auth_OpenID_OpenIDStore::cleanupAssociations not implemented", E_USER_ERROR);
                    
79        return 0;
                    
                
PDOStatement.php git://github.com/doctrine/dbal.git | PHP | 234 lines
                    
1<?php
                    
2
                    
12use function sprintf;
                    
13use function trigger_error;
                    
14use const E_USER_DEPRECATED;
                    
55        // of PDOStatement::setFetchMode(): even if the second and third
                    
56        // parameters are optional, PHP will not let us remove it from this
                    
57        // declaration.
                    
202            // TODO: next major: throw an exception
                    
203            @trigger_error(sprintf(
                    
204                'Using a PDO parameter type (%d given) is deprecated and will cause an error in Doctrine DBAL 3.0',
                    
222            // TODO: next major: throw an exception
                    
223            @trigger_error(sprintf(
                    
224                'Using a PDO fetch mode or their combination (%d given)' .
                    
                
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_* constant
                    
                
attachment.test.php git://github.com/davidpersson/media.git | PHP | 301 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * PHP version 5
                    
11 * CakePHP version 1.3
                    
15 * @copyright  2007-2013 David Persson <nperson@gmx.de>
                    
16 * @license    http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 * @link       http://github.com/davidpersson/media
                    
19App::import('Model', 'Media.Attachment');
                    
20require_once 'models.php';
                    
21require_once dirname(dirname(dirname(__FILE__))) . DS . 'fixtures' . DS . 'test_data.php';
                    
25} elseif (MEDIA != TMP . 'tests' . DS) {
                    
26	trigger_error('MEDIA constant already defined and not pointing to tests directory.', E_USER_ERROR);
                    
27}
                    
27}
                    
28require_once dirname(dirname(dirname(dirname(__FILE__)))) . DS . 'config' . DS . 'media.php';
                    
29require_once 'Media/Process.php';
                    
                
Util.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 117 lines
                    
1<?php
                    
2
                    
30        //lambda style function
                    
31        // Anonymous callback @see create_function() on php.net
                    
32        $str = array_reduce($arr, create_function('$a,$b', 'return $a."\n".$b ;'));
                    
64     * @see also http://in2.php.net/strftime
                    
65     * @see also http://in2.php.net/manual/en/function.strtotime.php
                    
66     * PHP string time functions
                    
92            $message = 'Bad input:: '.$name. ' is empty or null!';
                    
93            trigger_error($message,E_USER_ERROR);
                    
94        }
                    
                
CholeskyDecomposition.php https://PHPExcel.svn.codeplex.com/svn | PHP | 136 lines
                    
1<?php
                    
2/**
                    
70    } else {
                    
71      trigger_error(ArgumentTypeException, ERROR);
                    
72    }
                    
123        } else {
                    
124          trigger_error(MatrixSPDException, ERROR);
                    
125        }
                    
126      } else {
                    
127        trigger_error(MatrixDimensionException, ERROR);
                    
128      }
                    
129    } else {
                    
130      trigger_error(ArgumentTypeException, ERROR);
                    
131    }
                    
                
timeformatter.php http://bitcero-modules.googlecode.com/svn/ | PHP | 131 lines
                    
1<?php
                    
2// $Id: timeformatter.php 1056 2012-09-12 15:43:20Z i.bitcero $
                    
46        if ($format=='' || $time<0){
                    
47            trigger_error(__('You must provide a valid time and format value to use RMTimeFormatter::format() method','rmcommon'));
                    
48            return;
                    
                
Fuzzy.php git://github.com/ruflin/Elastica.git | PHP | 95 lines
                    
1<?php
                    
2namespace Elastica\Query;
                    
80    {
                    
81        trigger_error('Query\Fuzzy::addField is deprecated. Use setField and setFieldOption instead. This method will be removed in further Elastica releases', E_USER_DEPRECATED);
                    
82
                    
                
function.smarty.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 930 lines
                    
1<?php
                    
2/*
                    
3+-----------------------------------------------------------------------------+
                    
4| $Id: function.smarty.php 2009-10-12 11:21:29Z Bleakwind $
                    
5| Global Smarty function
                    
15 * -------------------------------------------------------------
                    
16 * File:     modifier.str_count.php
                    
17 * Type:     modifier
                    
30 * -------------------------------------------------------------
                    
31 * File:     modifier.str_cut.php
                    
32 * Type:     modifier
                    
51 * -------------------------------------------------------------
                    
52 * File:     modifier.print_format.php
                    
53 * Type:     modifier
                    
68 * -------------------------------------------------------------
                    
69 * File:     modifier.set_type.php
                    
70 * Type:     modifier
                    
                
function.smarty.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 597 lines
                    
1<?php
                    
2/*
                    
3+-----------------------------------------------------------------------------+
                    
4| $Id: function.smarty.php 2010-05-24 11:45:43Z Bleakwind $
                    
5| Private Smarty function
                    
15 * -------------------------------------------------------------
                    
16 * File:     function.return_article_info.php
                    
17 * Type:     function
                    
35            default:
                    
36                $smarty->trigger_error("return_article_info: unknown attribute '$_key'");
                    
37        }
                    
39    if (!preg_match("/^[0-9a-z_]{1,30}$/i", $item)) {
                    
40        $smarty->trigger_error("return_article_info: missing 'item' attribute");
                    
41    }
                    
42    if ( $article_id == "0") {
                    
43        $smarty->trigger_error("return_article_info: missing 'article_id' attribute");
                    
44    }
                    
                
 

Source

Language