PageRenderTime 205ms queryTime 51ms sortTime 5ms getByIdsTime 40ms findMatchingLines 49ms

100+ results results for 'php htmlentities repo:imaweda/jelly2' (205 ms)

Not the results you expected?
index.php https://bitbucket.org/gvandenelzen/filmstudio.git | PHP | 384 lines
                    
1<?php
                    
2/*
                    
5* To change the template for this generated file go to
                    
6* Window - Preferences - PHPeclipse - PHP - Code Templates
                    
7
                    
15define ('CNET','193.228.149');
                    
16require_once ('dbinclude.php');
                    
17$domain=CNET;
                    
118	}
                    
119	$record['lastname']=htmlentities($record['lastname']);
                    
120	$record['firstname']=htmlentities($record['firstname']);
                    
120	$record['firstname']=htmlentities($record['firstname']);
                    
121	$record['category']=htmlentities($record['category']);
                    
122	$record['theme']=htmlentities($record['theme']);	
                    
122	$record['theme']=htmlentities($record['theme']);	
                    
123	$record['detail']=htmlentities($record['detail']);
                    
124	if($record['detail']=="0")
                    
                
Error.php https://gitlab.com/jatasya/testSlimfrmwk | PHP | 239 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @link      https://github.com/slimphp/Slim
                    
6 * @copyright Copyright (c) 2011-2015 Josh Lockhart
                    
6 * @copyright Copyright (c) 2011-2015 Josh Lockhart
                    
7 * @license   https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
                    
8 */
                    
74
                    
75        $body = new Body(fopen('php://temp', 'r+'));
                    
76        $body->write($output);
                    
135        if (($message = $exception->getMessage())) {
                    
136            $html .= sprintf('<div><strong>Message:</strong> %s</div>', htmlentities($message));
                    
137        }
                    
148            $html .= '<h2>Trace</h2>';
                    
149            $html .= sprintf('<pre>%s</pre>', htmlentities($trace));
                    
150        }
                    
                
class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
                    
1<?php
                    
2// Exit if accessed directly
                    
35    static public function esc_html_attr($string = '', $echo = false) {
                    
36        $output = htmlentities($string, ENT_QUOTES, 'UTF-8');
                    
37        if ($echo)
                    
95    /** 
                    
96     *  PHP_SAPI for fcgi requires a data flush of at least 256
                    
97     *  bytes every 40 seconds or else it forces a script hault
                    
327		//FALL BACK: Windows XP has bug with glob, 
                    
328		//add secondary check for PHP lameness
                    
329		if ($dh = opendir('.')) 
                    
                
upnpplayer.class.php https://gitlab.com/x33n/ampache | PHP | 384 lines
                    
1<?php 
                    
2/**
                    
69    {
                    
70        require_once AmpConfig::get('prefix') . '/modules/upnp/upnpdevice.php';
                    
71        require_once AmpConfig::get('prefix') . '/modules/upnp/upnpplaylist.php';
                    
191            $prefix . 'URI' => $songUrl,
                    
192            $prefix . 'URIMetaData' => htmlentities($xmlDIDL)
                    
193        );
                    
226        // launch special page in background for periodically check play status
                    
227        $url = AmpConfig::get('local_web_path') . "/upnp/playstatus.php";
                    
228        $this->CallAsyncURL($url);
                    
                
course.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 244 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
15
                    
16require_once '../inc/global.inc.php';
                    
17require_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
                    
17require_once api_get_path(LIBRARY_PATH).'export.lib.inc.php';
                    
18require_once api_get_path(LIBRARY_PATH).'thematic.lib.php';
                    
19
                    
23api_block_anonymous_users();
                    
24$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('MySpace'));
                    
25
                    
26if (isset($_GET["id_session"]) && $_GET["id_session"] != "") {
                    
27	$interbreadcrumb[] = array ("url" => "session.php", "name" => get_lang('Sessions'));
                    
28}
                    
30if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") {
                    
31	 $interbreadcrumb[] = array ("url" => "coaches.php", "name" => get_lang('Tutors'));
                    
32}
                    
                
utilities.php https://gitlab.com/ppapadatis/Videolearn | PHP | 307 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version    SVN $Id: utilities.php 709 2012-10-26 09:07:01Z dhorsfall $
                    
4 * @package    hwdMediaShare
                    
85	 *
                    
86	 * If escaping mechanism is either htmlspecialchars or htmlentities, uses
                    
87	 * {@link $_encoding} setting.
                    
96	{
                    
97		if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities')))
                    
98		{
                    
165                {
                    
166                        include_once(JPATH_ROOT.'/components/com_community/libraries/core.php');
                    
167                        $JSUser = CFactory::getUser($user->id);
                    
175                {
                    
176                        include_once (JPATH_ROOT.DS.'components'.DS .'com_awdwall' .DS . 'helpers' . DS . 'user.php');
                    
177                        return AwdwallHelperUser::getBigAvatar51($user->id);	
                    
                
_includeexclude.php https://gitlab.com/mattswann/launch-housing | PHP | 227 lines
                    
37				}
                    
38				if ( jQuery( '#pb_backupbuddy_profiles__<?php echo $profile; ?>__mysqldump_additional_excludes' ).val() == '-1' ) {
                    
39					jQuery( '#pb_backupbuddy_profiles__<?php echo $profile; ?>__mysqldump_additional_excludes' ).val( '' );
                    
63		jQuery( '#pb_backupbuddy_profiles__<?php echo $profile; ?>__profile_globalexcludes' ).closest('tr').next('tr').hide();
                    
64		//jQuery( '#pb_backupbuddy_profiles__<?php echo $profile; ?>__profile_globalexcludes' ).closest('tr').next('tr').next('tr').hide();
                    
65	}
                    
69
                    
70<?php
                    
71
                    
188				var win = window.dialogArguments || opener || parent || top;
                    
189				win.pb_backupbuddy_profile_updated( '<?php echo $profile; ?>', '<?php echo htmlentities( pb_backupbuddy::$options['profiles'][$profile]['title'] ); ?>' );
                    
190				win.tb_remove();
                    
206?>
                    
207<a style="float: right; margin-top: -35px; margin-right: 10px;" class="button secondary-button" title="Delete this Profile" href="admin.php?page=pb_backupbuddy_backup&delete_profile=<?php echo $profile; ?>" target="_blank" onclick="
                    
208	if ( !confirm( 'Are you sure you want to delete this profile?' ) ) {
                    
                
fckconfig.js https://github.com/rvma07/siga.git | JavaScript | 335 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
64
                    
65FCKConfig.ProcessHTMLEntities	= true ;
                    
66FCKConfig.IncludeLatinEntities	= true ;
                    
174FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
175FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
176FCKConfig.FirefoxSpellChecker	= false ;
                    
285// Custom implementations should just ignore it.
                    
286var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
287var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
                
ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
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   +----------------------------------------------------------------------+
                    
22#include "hphp/runtime/ext/extension.h"
                    
23#include "hphp/runtime/base/zend-string.h"
                    
24#include "hphp/runtime/base/zend-printf.h"
                    
31
                    
32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST;
                    
33extern const int64_t k_STR_PAD_RIGHT;
                    
133                     const String& charset = "UTF-8");
                    
134String HHVM_FUNCTION(htmlentities,
                    
135                     const String& str,
                    
                
ManageController.php https://gitlab.com/wuhang2003/phpwind | PHP | 432 lines
                    
1<?php
                    
2
                    
9 * @author peihong <jhqblxt@gmail.com> Dec 2, 2011
                    
10 * @copyright ©2003-2103 phpwind.com
                    
11 * @license http://www.phpwind.com
                    
11 * @license http://www.phpwind.com
                    
12 * @version $Id: ManageController.php 24747 2013-02-20 03:13:43Z jieyin $
                    
13 * @package src.applications.bbs.controller
                    
182			$do->setDigest($digest);
                    
183			$do->setReason(htmlentities($this->getInput('reason', 'post')));
                    
184			!$digest && $this->doCancel[] = 'dodigest';
                    
213			$do->setOvertime($toppedOvertime);
                    
214			$do->setReason(htmlentities($this->getInput('reason', 'post')));
                    
215			!$topped && $this->doCancel[] = 'dotopped';
                    
227			$do->setUptime($uptime);
                    
228			$do->setReason(htmlentities($this->getInput('reason', 'post')));
                    
229		}
                    
                
php.js https://github.com/KenBoyer/CompactCMS.git | JavaScript | 155 lines
                    
1editAreaLoader.load_syntax["php"] = {
                    
2	'DISPLAY_NAME' : 'Php'
                    
16			'null', '__LINE__', '__FILE__',
                    
17			'false', '&lt;?php', '?&gt;', '&lt;?',
                    
18			'&lt;script language', '&lt;/script&gt;',
                    
20			'function', 'class', 'new', '&amp;new', 'this',
                    
21			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',
                    
22			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
22			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
23			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',
                    
24			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
24			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
25			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',
                    
26			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',
                    
32			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
                    
33			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',
                    
34			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',
                    
                
ExportToHtmlTemplate.php https://gitlab.com/mattswann/launch-housing | PHP | 232 lines
                    
1<?php

                    
2/*

                    
21

                    
22require_once('ExportBase.php');

                    
23require_once('CFDBExport.php');

                    
23require_once('CFDBExport.php');

                    
24require_once('CFDBShortCodeContentParser.php');

                    
25

                    
106        if (!$wpautop) {

                    
107            //echo 'Initial: \'' . htmlentities($options['content']) . '\'';

                    
108            if (substr($options['content'], 0, 6) == '<br />' &&

                    
115            }

                    
116            //echo '<br/>Stripped: \'' . htmlentities($options['content']) . '\'';

                    
117        }

                    
164                                            '">' .

                    
165                                            htmlentities($this->dataIterator->row[$aCol], null, 'UTF-8') .

                    
166                                            '</a>';

                    
                
display_variations.php https://github.com/evadne/wp-e-commerce.git | PHP | 292 lines
                    
167	<div class="alignleft" style='width: 500px;'>
                    
168		<a href='' onclick='return showaddform()' class='add_item_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADDVARIATION;?></span></a>
                    
169		<span id='loadingindicator_span'><img id='loadingimage' src='<?php echo WPSC_URL; ?>/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
                    
237<div id='additem'>
                    
238	<?php if (IS_WP27) {?>
                    
239   	<div class='postbox'>
                    
243	<div class="categorisation_title">
                    
244		<strong class="form_group"><?php echo TXT_WPSC_ADDVARIATION;?></strong>
                    
245	</div>
                    
263        <input type='text' class="text" name='variation_values[]' value='' />
                    
264        <a class='image_link' href='#' onclick='remove_variation_value_field("variation_value_1")'><img src='<?php echo WPSC_URL; ?>/images/trash.gif' alt='<?php echo TXT_WPSC_DELETE; ?>' title='<?php echo TXT_WPSC_DELETE; ?>' /></a><br />
                    
265        </span><span id='variation_value_2'>
                    
266        <input type='text' class="text" name='variation_values[]' value='' />
                    
267        <a class='image_link' href='#' onclick='remove_variation_value_field("variation_value_2")'><img src='<?php echo WPSC_URL; ?>/images/trash.gif' alt='<?php echo TXT_WPSC_DELETE; ?>' title='<?php echo TXT_WPSC_DELETE; ?>' /></a><br />
                    
268        </span></div>
                    
                
bbparser.php https://github.com/akash6190/pragyan.git | PHP | 188 lines
                    
1<?php
                    
2if(!defined('__PRAGYAN_CMS'))
                    
15
                    
16// htmlentities is too agressive so we use this function
                    
17function phpentities($text) {
                    
85	$text = preg_replace('#\[flash width=([0-9]*?) height=([0-9]*?)\]([^\s\'\";:\+]*?)(\.swf)\[/flash\]#si', '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://active.macromedia.com/flash6/cabs/swflash.cab#version=6,0,0,0\' id=\'\3\4\' width=\'\1\' height=\'\2\'><param name=movie value=\'\3\4\'><param name=\'quality\' value=\'high\'><param name=\'bgcolor\' value=\'#ffffff\'><embed src=\'\3\4\' quality=\'high\' bgcolor=\'#ffffff\' width=\'\1\' height=\'\2\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\'></embed></object>', $text);
                    
86	$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<img src=\'\\1'.str_replace(array('.php','?','&','='),'','\\3').'\\4\' style=\'border:0px\'>'",$text);
                    
87
                    
                
view.php https://github.com/joshuarubin/fuel_core.git | PHP | 423 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright  2010 - 2011 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
18 *
                    
19 * Acts as an object wrapper for HTML pages with embedded PHP, called "views".
                    
20 * Variables can be assigned with the view object and referenced locally within
                    
31 * @license		http://kohanaframework.org/license
                    
32 * @link		http://fuelphp.com/docs/classes/view.html
                    
33 */
                    
51	// File extension used for views
                    
52	protected $extension = 'php';
                    
53
                    
                
Search.php https://gitlab.com/Illprotectyew/xlt | PHP | 462 lines
                    
1<?php namespace Myth\Docs;
                    
2/**
                    
28 * @license     http://opensource.org/licenses/MIT  (MIT)
                    
29 * @link        http://sprintphp.com
                    
30 * @since       Version 1.0
                    
64     */
                    
65    protected $allowed_file_types = 'html|htm|php|php4|php5|txt|md';
                    
66
                    
175            $path = is_string($dir) ? $folder . '/' . $dir . '/' . $file : $folder . '/' . $file;
                    
176            $term_html = htmlentities($term);
                    
177
                    
                
HtmlBuilder.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 414 lines
                    
1<?php namespace Illuminate\Html;
                    
2
                    
51	{
                    
52		return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
                    
53	}
                    
77
                    
78		return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL;
                    
79	}
                    
96
                    
97		return '<link'.$this->attributes($attributes).'>'.PHP_EOL;
                    
98	}
                    
                
string function.php https://gitlab.com/MHManik/MosharafHossain_SEIP136261_B34_Session4 | PHP | 248 lines
                    
1<?php
                    
2//explode ফাংশানের test
                    
2//explode ফাংশানের test
                    
3$str="php,Mysql,.net";
                    
4echo '<pre>';
                    
51echo '</br>';
                    
52echo htmlentities($str);
                    
53echo '</br>';
                    
58
                    
59$a = htmlentities($orig);
                    
60
                    
67//=======================================================================================================
                    
68//htmlentities এর উদাহারণ
                    
69echo '</br>';
                    
74echo '</br>';
                    
75$b= htmlentities($a);
                    
76var_dump($b);
                    
                
limsadmin.container_types.php https://bitbucket.org/unixcrab/colab-lims.git | PHP | 220 lines
                    
4<div id="containerTypeList">
                    
5<h4><?php print $_SESSION['lims']['langdata']['limsadmin_container_types']; ?></h4>
                    
6<hr>
                    
9<tr>
                    
10<th><?php print $_SESSION['lims']['langdata']['name']; ?></th>
                    
11<th><?php print $_SESSION['lims']['langdata']['rows']; ?></th>
                    
11<th><?php print $_SESSION['lims']['langdata']['rows']; ?></th>
                    
12<th><?php print $_SESSION['lims']['langdata']['columns']; ?></th>
                    
13<th><?php print $_SESSION['lims']['langdata']['capacity']; ?></th>
                    
17<tbody>
                    
18<?php
                    
19include "functions.lims.php";
                    
28	if( containerTypeInUse($ct->id) ) $ctype_del_link = "<i class='icon-trash' title='".$_SESSION['lims']['langdata']['cannot_delete'].": ".$_SESSION['lims']['langdata']['err_in_use']."' rel='tooltip' data-placement='right'></i>";
                    
29  print "<tr><td id='containerTypeName-".$ct->id."'>".myhtmlentities($ct->container_type)."</td><td id='containerTypeRows-".$ct->id."'>".$ct->number_of_rows."</td><td id='containerTypeColumns-".$ct->id."'>".$ct->number_of_columns."</td><td id='containerTypeCapacity-".$ct->id."'>".$ct->capacity."</td><td><a href='#' id='containerTypeEdit-".$ct->id."'>".$icon_edit."</a>&nbsp;&nbsp;&nbsp;".$ctype_del_link."</td></tr>\n";
                    
30	//print "<tr><td id='containerTypeName-".$ct->id."'>".$ct->container_type."</td><td id='containerTypeRows-".$ct->id."'>".$ct->number_of_rows."</td><td id='containerTypeColumns-".$ct->id."'>".$ct->number_of_columns."</td><td id='containerTypeCapacity-".$ct->id."'>".$ct->capacity."</td><td><a href='#' id='containerTypeEdit-".$ct->id."'><i class='icon-edit' title='".$_SESSION['lims']['langdata']['edit']."' data-placement='right' rel='tooltip'></i></a>&nbsp;&nbsp;&nbsp;<a href='#'><i class='icon-trash' id='containerTypeDel-".$ct->id."' title='".$_SESSION['lims']['langdata']['delete']."' data-placement='right'></i></a></td></tr>\n";
                    
                
reporter.php https://github.com/cgajardo/repositorium.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reporter.php 1702 2008-03-25 00:08:04Z lastcraft $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/scorer.php');
                    
13/**#@-*/
                    
116        print implode(" -&gt; ", $breadcrumb);
                    
117        print " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
                    
118    }
                    
120    /**
                    
121     *    Paints a PHP error.
                    
122     *    @param string $message        Message is ignored.
                    
130        print implode(" -&gt; ", $breadcrumb);
                    
131        print " -&gt; <strong>" . $this->_htmlEntities($message) . "</strong><br />\n";
                    
132    }
                    
                
MetatagStringTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 322 lines
                    
1<?php
                    
2
                    
121    // The strings after they're encoded, but quotes will not be encoded.
                    
122    $title_encoded = htmlentities($title_original, ENT_QUOTES);
                    
123    $desc_encoded = htmlentities($desc_original, ENT_QUOTES);
                    
125    // The strings double-encoded, to make sure the tags aren't broken.
                    
126    $title_encodeded = htmlentities($title_encoded, ENT_QUOTES);
                    
127    $desc_encodeded = htmlentities($desc_encoded, ENT_QUOTES);
                    
200    // The strings after they're encoded, but quotes will not be encoded.
                    
201    $title_encoded = htmlentities($title_original, ENT_QUOTES);
                    
202    $desc_encoded = htmlentities($desc_original, ENT_QUOTES);
                    
204    // The strings double-encoded, to make sure the tags aren't broken.
                    
205    $title_encodeded = htmlentities($title_encoded, ENT_QUOTES);
                    
206    $desc_encodeded = htmlentities($desc_encoded, ENT_QUOTES);
                    
270    // The strings after they're encoded, but quotes will not be encoded.
                    
271    $desc_encoded = htmlentities($desc_original, ENT_QUOTES);
                    
272
                    
                
properties.php https://github.com/markdev/markandkitty.git | PHP | 460 lines
                    
178<?php  if (!$previewMode) { ?>
                    
179	<li><a href="javascript:void(0)" id="ccm-file-properties-versions-<?php echo $f->getFileID()?>-<?php echo $fv->getFileVersionID()?>"><?php echo t('Versions')?></a></li>
                    
180<?php  } ?>
                    
180<?php  } ?>
                    
181<li><a href="javascript:void(0)" id="ccm-file-properties-statistics-<?php echo $f->getFileID()?>-<?php echo $fv->getFileVersionID()?>"><?php echo t('Statistics')?></a></li>
                    
182</ul>
                    
246	<th><?php echo t('Size')?></th>
                    
247	<td colspan="2"><?php echo $fv->getSize()?> (<?php echo number_format($fv->getFullSize())?> <?php echo t('bytes')?>)</td>
                    
248</tr>
                    
356		foreach($versions as $fvv) { ?>
                    
357			<tr fID="<?php echo $f->getFileID()?>" fvID="<?php echo $fvv->getFileVersionID()?>" <?php  if ($fvv->getFileVersionID() == $fv->getFileVersionID()) { ?> class="ccm-file-versions-grid-active" <?php  } ?>>
                    
358				<td style="text-align: center">
                    
362					<div style="width: 150px; word-wrap: break-word">
                    
363					<a href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/files/properties?fID=<?php echo $f->getFileID()?>&fvID=<?php echo $fvv->getFileVersionID()?>&task=preview_version" dialog-modal="false" dialog-width="630" dialog-height="450" dialog-title="<?php echo t('Preview File')?>" class="dialog-launch">
                    
364						<?php echo $fvv->getFilename()?>
                    
                
index.php https://github.com/lucasgoicoechea/prolab.git | PHP | 265 lines
                    
84		$time = explode(" ", $time);
                    
85		$actions = "<a href=\"modules.php?name=News&amp;file=print&amp;sid=$sid\"><img src=\"images/print.gif\" border=0 alt=\""._PRINTER."\" title=\""._PRINTER."\" width=\"16\" height=\"11\"></a>&nbsp;<a href=\"modules.php?name=News&amp;file=friend&amp;op=FriendSend&amp;sid=$sid\"><img src=\"images/friend.gif\" border=0 alt=\""._FRIEND."\" title=\""._FRIEND."\" width=\"16\" height=\"11\"></a>";
                    
86		if ($score != 0) {
                    
137	."</form>"
                    
138	."[ <a href=\"modules.php?name=$module_name\">"._ARCHIVESINDEX."</a> | <a href=\"modules.php?name=$module_name&amp;sa=show_all\">"._SHOWALLSTORIES."</a> ]</center>";
                    
139	CloseTable();
                    
176		$time = explode(" ", $time);
                    
177		$actions = "<a href=\"modules.php?name=News&amp;file=print&amp;sid=$sid\"><img src=\"images/print.gif\" border=0 alt=\""._PRINTER."\" title=\""._PRINTER."\" width=\"15\" height=\"11\"></a>&nbsp;<a href=\"modules.php?name=News&amp;file=friend&amp;op=FriendSend&amp;sid=$sid\"><img src=\"images/friend.gif\" border=0 alt=\""._FRIEND."\" title=\""._FRIEND."\" width=\"15\" height=\"11\"></a>";
                    
178		if ($score != 0) {
                    
187			$cat_title = stripslashes($row_res['title']);
                    
188			$title = "<a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><i>$cat_title</i></a>: <a href=\"modules.php?name=News&amp;file=article&amp;sid=$sid$r_options\">$title</a>";
                    
189		}
                    
217		$a++;
                    
218		echo "<center>[ <a href=\"modules.php?name=$module_name&amp;sa=show_all&amp;min=$pmin\">"._PREVIOUSPAGE."</a> | <a href=\"modules.php?name=$module_name&amp;sa=show_all&amp;min=$min\">"._NEXTPAGE."</a> ]</center><br>";
                    
219	}
                    
                
class.datagrid_filters.php https://bitbucket.org/briancastellanos/cse360.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
125    foreach($attributes as $att=>$value){
                    
126      $strAttributes .=htmlentities($att,ENT_QUOTES).'="'.htmlentities($value,ENT_QUOTES).'" ';
                    
127    }
                    
142    $strAttributes=$this->concat_attributes($attributes);
                    
143    $txtarea='<input type="text" name="dgfilter['.htmlentities($this->db_hash,ENT_QUOTES).']" value="'.htmlentities($this->value,ENT_QUOTES).'" '.$strAttributes.' />';
                    
144    return $txtarea;
                    
172    if($isNodeList){
                    
173      $cbo = $form->type_select('dgfilter['.htmlentities($this->db_hash,ENT_QUOTES).']',$this->value,$options,$attributes);
                    
174    }else{
                    
174    }else{
                    
175      $cbo = $form->select('dgfilter['.htmlentities($this->db_hash,ENT_QUOTES).']',$this->value,$options,$attributes);
                    
176    }
                    
180    foreach($options as $val=>$dsp){
                    
181    $cbo.='<option value="'.htmlentities($val,ENT_QUOTES).'"'.($val==$this->value?' selected="selected"':null).'>'.htmlentities($dsp,ENT_QUOTES).'</option>';
                    
182    }
                    
                
category.php https://gitlab.com/ptisky/API_prestashop | PHP | 248 lines
                    
1<?php
                    
2/**
                    
12
                    
13include_once(_PS_MODULE_DIR_.'leoblog/loader.php');
                    
14
                    
16{
                    
17	public $php_self;
                    
18	protected $template_path = '';
                    
36
                    
37		$this->php_self = 'category';
                    
38
                    
158					# validate module
                    
159					$path .= '<a href="'.$helper->getFontBlogLink().'">'.htmlentities($config->get('blog_link_title_'.$this->context->language->id, 'Blog'), ENT_NOQUOTES, 'UTF-8').'</a><span class="navigation-pipe">'.Configuration::get('PS_NAVIGATION_PIPE').'</span>';
                    
160				}
                    
171					);
                    
172					$path .= '<a href="'.$helper->getBlogCatLink($params).'">'.htmlentities($cat->title, ENT_NOQUOTES, 'UTF-8').'</a><span class="navigation-pipe">'.Configuration::get('PS_NAVIGATION_PIPE').'</span>';
                    
173				}
                    
                
logins.php https://github.com/damanlovett/SEAHO.git | PHP | 213 lines
                    
7// technocurve arc 3 php mv block1/3 end
                    
8?><?php require_once('../../../Connections/Programming.php'); ?>
                    
9<?php
                    
112<body>
                    
113<div id="header"><?php require_once('../../includefiles/userInfo.php'); ?></div>
                    
114<div id="sidebar"><?php require_once('../../includefiles/navPage.php'); ?></div>
                    
180?> class="tableRowColor">
                    
181          <td nowrap="nowrap"><a href="#" onclick="MM_openBrWindow('details.php?recordID=<?php echo $row_rsUserInfo['username']; ?>','logindetails','scrollbars=yes,width=240,height=275')">
                    
182            <?php $TFM_nest = $row_rsUserInfo['first_name'];
                    
184	$lastTFM_nest = $TFM_nest; ?>
                    
185          </a><a href="#" onclick="MM_openBrWindow('details.php?recordID=<?php echo $row_rsUserInfo['username']; ?>','logindetails','scrollbars=yes,width=240,height=275')"><?php echo strtoupper($row_rsUserInfo['last_name']); ?>, </a><a href="#" onclick="MM_openBrWindow('details.php?recordID=<?php echo $row_rsUserInfo['username']; ?>','logindetails','scrollbars=yes,width=240,height=275')"><?php echo strtoupper($row_rsUserInfo['first_name']); ?><?php } //End of Basic-UltraDev Simulated Nested Repeat?>
                    
186          </a></td>
                    
206</div>
                    
207<div id="footer"><?php require_once('../../includefiles/footer.php'); ?>
                    
208</div>
                    
                
wps-exclusions.php https://gitlab.com/hop23typhu/faci-times | PHP | 234 lines
                    
51			<td>
                    
52				<input id="wps-exclusions" type="checkbox" value="1" name="wps_record_exclusions" <?php echo $WP_Statistics->get_option('record_exclusions')==true? "checked='checked'":'';?>><label for="wps-exclusions"><?php _e('Enable', 'wp_statistics'); ?></label>
                    
53				<p class="description"><?php _e('This will record all the excluded hits in a separate table with the reasons why it was excluded but no other information.  This will generate a lot of data but is useful if you want to see the total number of hits your site gets, not just actual user visits.', 'wp_statistics'); ?></p>
                    
71		<tr valign="top">
                    
72			<th scope="row"><label for="<?php echo $option_name;?>"><?php echo $translated_role_name; ?>:</label></th>
                    
73			<td>
                    
73			<td>
                    
74				<input id="<?php echo $option_name;?>" type="checkbox" value="1" name="<?php echo $option_name;?>" <?php echo $WP_Statistics->get_option($store_name)==true? "checked='checked'":'';?>><label for="<?php echo $option_name;?>"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
75				<p class="description"><?php echo sprintf(__('Exclude %s role from data collection.', 'wp_statistics'), $translated_role_name); ?></p>
                    
98				<p class="description"><?php echo __('A list of words (one per line) to match against to detect robots.  Entries must be at least 4 characters long or they will be ignored.', 'wp_statistics'); ?></p>
                    
99				<a onclick="var wps_robotlist = getElementById('wps_robotlist'); wps_robotlist.value = '<?php echo implode('\n', $wps_robotarray);?>';" class="button"><?php _e('Reset to Default', 'wp_statistics');?></a>
                    
100			</td>
                    
209			<td>
                    
210				<input id="wps-exclude-feeds" type="checkbox" value="1" name="wps_exclude_feeds" <?php echo $WP_Statistics->get_option('exclude_feeds')==true? "checked='checked'":'';?>><label for="wps-exclude-feeds"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
211				<p class="description"><?php _e('Exclude the RSS feeds for registering as a hit.', 'wp_statistics'); ?></p>
                    
                
inc.tickets.home.php https://bitbucket.org/elulice/gestionar.git | PHP | 203 lines
                    
31            <div class = "form-administrar" style = "margin-top:10px;"><span class = "form-label"><img src="images/icons/pixel.png" class="icons_new_tickets int_origen"/>Nro Ticket:</span>
                    
32                <input type = "text" name = "nombres" id = "nro_ticket_new" class = "form-contacto-text smallInput disabledNew" disabled="disabled" value="<?php echo zerofill($newID, 5) ?>" style = "width:150px; float:right;"/>
                    
33            </div>
                    
35            <div class = "form-administrar" style = "margin-top:10px;"><span class = "form-label"><img src="images/icons/pixel.png" class="icons_new_tickets int_fecha"/>Fecha:</span>
                    
36                <input type = "text" name = "apellido" id = "p_fecha_new" class = "form-contacto-text smallInput disabledNew"  disabled="disabled" value="<?php echo date('d/m/Y'); ?>" style = "width:150px; float:right;"/>
                    
37            </div>
                    
50                <select name = "id_compania" id = "p_cliente_new" size = "1" class = "form-contacto-text smallInput" style = "width:157px; float:right;">
                    
51            <?php
                    
52//                    $query = "SELECT CliNro, CliRsocial FROM cliente ORDER BY CliRsocial";
                    
59                <select name="id_compania" id="p_origen_new" size="1" class="form-contacto-text smallInput " style="width:157px; float:right;">
                    
60                    <?php
                    
61                    $query = "SELECT id, nombre_origen FROM origen_tickets 
                    
71<!--                        <select name="id_plan" id="p_sucursal_new" size="1" onchange="fill_responsable_select($(this).val(), 'p_responsable_new'), fill_mail_sucursal($(this).val(), 'p_email_sucursal')" class="form-contacto-text smallInput " style="width:157px; float:right;">-->
                    
72                        <?php
                    
73                        $query = "SELECT UniNro, UniNombre FROM unidadorg";
                    
                
imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
                    
1<?php
                    
2
                    
68
                    
69    include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php';
                    
70
                    
81    if (!function_exists('includeFile')) {
                    
82        function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') {
                    
83            $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/';
                    
93                } else {
                    
94                    $modx->messageQuit('Default AjaxImageUpload ' . $type . ' file "' . AIU_BASE_PATH . $folder . $defaultName . '.' . $type . '.inc.php" not found. Did you upload all snippet files?');
                    
95                }
                    
106
                    
107    include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php';
                    
108    // delete uploaded images
                    
110        $result = array();
                    
111        $formUid = (isset($_GET['uid'])) ? htmlentities(trim($_GET['uid']), ENT_NOQUOTES) : $formUid;
                    
112        if (strtolower($_GET['delete']) == 'all') {
                    
                
Translate.php https://gitlab.com/jslee1/PrestaShop | PHP | 347 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
31{
                    
32    public static function getFrontTranslation($string, $class, $addslashes = false, $htmlentities = true, $sprintf = null)
                    
33    {
                    
49
                    
50        if ($htmlentities) {
                    
51            $str = htmlspecialchars($str, ENT_QUOTES, 'utf-8');
                    
66     * @param bool $addslashes
                    
67     * @param bool $htmlentities
                    
68     * @return string
                    
                
DB-Func.php https://gitlab.com/florianocomercial/centreon | PHP | 263 lines
                    
1<?php
                    
2/*
                    
50			$id = $form->getSubmitValue('dep_id');
                    
51		$DBRESULT = $pearDB->query("SELECT dep_name, dep_id FROM dependency WHERE dep_name = '".htmlentities($name, ENT_QUOTES, "UTF-8")."'");
                    
52		$dep = $DBRESULT->fetchRow();
                    
158		$rq .= "VALUES (";
                    
159		isset($ret["dep_name"]) && $ret["dep_name"] != NULL ? $rq .= "'".htmlentities($ret["dep_name"], ENT_QUOTES, "UTF-8")."', " : $rq .= "NULL, ";
                    
160		isset($ret["dep_description"]) && $ret["dep_description"] != NULL ? $rq .= "'".htmlentities($ret["dep_description"], ENT_QUOTES, "UTF-8")."', " : $rq .= "NULL, ";
                    
163		isset($ret["notification_failure_criteria"]) && $ret["notification_failure_criteria"] != NULL ? $rq .= "'".implode(",", array_keys($ret["notification_failure_criteria"]))."', " : $rq .= "NULL, ";
                    
164		isset($ret["dep_comment"]) && $ret["dep_comment"] != NULL ? $rq .= "'".htmlentities($ret["dep_comment"], ENT_QUOTES, "UTF-8")."' " : $rq .= "NULL ";
                    
165		$rq .= ")";
                    
169
                    
170		$fields["dep_name"] = htmlentities($ret["dep_name"], ENT_QUOTES, "UTF-8");
                    
171		$fields["dep_description"] = htmlentities($ret["dep_description"], ENT_QUOTES, "UTF-8");
                    
174		$fields["notification_failure_criteria"] = implode(",", array_keys($ret["notification_failure_criteria"]));
                    
175		$fields["dep_comment"] = htmlentities($ret["dep_comment"], ENT_QUOTES, "UTF-8");
                    
176		$fields["dep_sgParents"] = "";
                    
                
escape.html https://github.com/yiminghe/kissyteam.github.com.git | HTML | 286 lines
                    
34        HEX_BASE = 16,
                    
35    // http://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet
                    
36    // http://wonko.com/post/html-escaping
                    
36    // http://wonko.com/post/html-escaping
                    
37        htmlEntities = {
                    
38            '&amp;amp;': '&amp;',
                    
51    (function () {
                    
52        for (var k in htmlEntities) {
                    
53            reverseEntities[htmlEntities[k]] = k;
                    
67        var str = EMPTY;
                    
68        S.each(htmlEntities, function (entity) {
                    
69            str += entity + '|';
                    
158            return str.replace(getUnEscapeReg(), function (m, n) {
                    
159                return htmlEntities[m] || String.fromCharCode(+n);
                    
160            });
                    
                
polls.php https://github.com/Bigjoos/U-232-V1.git | PHP | 391 lines
                    
1<?php
                    
2/**
                    
103        	
                    
104        	$htmlout = poll_header( $poll_data['pid'], htmlentities($poll_data['poll_question'], ENT_QUOTES) );
                    
105        	$poll_answers = unserialize(stripslashes($poll_data['choices']));
                    
111        		//subtitle question
                    
112        		$question    = htmlentities($data['question'], ENT_QUOTES);
                    
113        		$choice_html = "";
                    
125        		{
                    
126        			$choice  = htmlentities($text, ENT_QUOTES);
                    
127        			
                    
155	        // only for guests when view before vote is off
                    
156	        $htmlout  = poll_header($poll_data['pid'], htmlentities($poll_data['poll_question'], ENT_QUOTES));
                    
157	        $htmlout .= poll_show_no_guest_view( );
                    
166        	//output poll form
                    
167        	$htmlout = poll_header($poll_data['pid'], htmlentities($poll_data['poll_question'], ENT_QUOTES));
                    
168        	
                    
                
init.php https://github.com/damanlovett/SEAHO.git | PHP | 567 lines
                    
1<?php
                    
2ob_start();
                    
6
                    
7# FileName="Connection_php_mysql.htm"
                    
8# Type="MYSQL"
                    
56		session_destroy();
                    
57		header ("Location: /programs/admin/login.php");
                    
58		exit;
                    
323   'Reply-To: webmaster@seaho.org' . "\r\n" .
                    
324   'X-Mailer: PHP/' . phpversion();
                    
325   
                    
375   'Reply-To: webmaster@seaho.org' . "\r\n" .
                    
376   'X-Mailer: PHP/' . phpversion();
                    
377   
                    
428   'Reply-To: webmaster@seaho.org' . "\r\n" .
                    
429   'X-Mailer: PHP/' . phpversion();
                    
430   
                    
                
TwoColumnLetter6.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 270 lines
                    
1<?php
                    
2
                    
55
                    
56		// Xml::element seems to convert html to htmlentities
                    
57		$form .= "<p class='creditcard-error-msg'>" . $this->form_errors['retryMsg'] . "</p>";
                    
                
openoffice_text.class.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 327 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
15 */
                    
16require_once 'openoffice_document.class.php';
                    
17if (api_get_setting('search_enabled') == 'true') {
                    
17if (api_get_setting('search_enabled') == 'true') {
                    
18    require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
                    
19    require_once api_get_path(LIBRARY_PATH).'search/ChamiloIndexer.class.php';
                    
19    require_once api_get_path(LIBRARY_PATH).'search/ChamiloIndexer.class.php';
                    
20    require_once api_get_path(LIBRARY_PATH).'search/IndexableChunk.class.php';
                    
21}
                    
57        // The file is utf8 encoded and it seems to make problems with special quotes.
                    
58        // Then we htmlentities that, we replace these quotes and html_entity_decode that in good charset.
                    
59        $charset = api_get_system_encoding();
                    
59        $charset = api_get_system_encoding();
                    
60        $content = api_htmlentities($content, ENT_COMPAT, $this->original_charset);
                    
61        $content = str_replace('&rsquo;', '\'', $content);
                    
                
custom_style.php https://github.com/ayamyau/concrete5.git | PHP | 376 lines
                    
75		<div>
                    
76		<h2><?php echo t('Fonts')?></h2> 
                    
77			<table class="ccm-style-property-table" border="0" cellspacing="0" cellpadding="0">
                    
96					<td>
                    
97						<input name="font_size" type="text" value="<?=htmlentities( $cssData['font_size'], ENT_COMPAT, APP_CHARSET) ?>" size=2 />	
                    
98					</td>
                    
104					<td>
                    
105						<input name="line_height" type="text" value="<?=htmlentities( $cssData['line_height'], ENT_COMPAT, APP_CHARSET) ?>" size=2 />	
                    
106					</td>
                    
135		<div>
                    
136		<h2><?php echo t('Background')?></h2> 
                    
137		  <table border="0" cellspacing="0" cellpadding="0" class="ccm-style-property-table">
                    
164		<div>
                    
165		  <h2><?php echo t('Border')?></h2>  
                    
166			<table class="ccm-style-property-table" border="0" cellspacing="0" cellpadding="0">
                    
                
userdata.php https://bitbucket.org/marsl/marsl.git | PHP | 397 lines
                    
1<?php
                    
2include_once(dirname(__FILE__)."/../includes/errorHandler.php");
                    
2include_once(dirname(__FILE__)."/../includes/errorHandler.php");
                    
3include_once(dirname(__FILE__)."/../user/user.php");
                    
4include_once(dirname(__FILE__)."/../user/role.php");
                    
4include_once(dirname(__FILE__)."/../user/role.php");
                    
5include_once(dirname(__FILE__)."/../user/auth.php");
                    
6include_once(dirname(__FILE__)."/../includes/dbsocket.php");
                    
6include_once(dirname(__FILE__)."/../includes/dbsocket.php");
                    
7include_once(dirname(__FILE__)."/../includes/basic.php");
                    
8include_once(dirname(__FILE__)."/../includes/mailer.php");
                    
8include_once(dirname(__FILE__)."/../includes/mailer.php");
                    
9include_once(dirname(__FILE__)."/module.php");
                    
10
                    
24			if ($auth->moduleAdminAllowed("userdata", $role->getRole())) {
                    
25				require_once("template/userdata.alphabet.tpl.php");
                    
26			}
                    
                
_configure.php https://gitlab.com/mattswann/launch-housing | PHP | 304 lines
                    
1<?php // Settings to display in a form for a user to configure.
                    
2/*
                    
21	
                    
22	$credentials_form = new pb_backupbuddy_settings( 'pre_settings', false, 'action=pb_backupbuddy_backupbuddy&function=destination_picker&quickstart=' . htmlentities( pb_backupbuddy::_GET( 'quickstart' ) ) . '&add=' . htmlentities( pb_backupbuddy::_GET( 'add' ) ) . '&callback_data=' . htmlentities( pb_backupbuddy::_GET( 'callback_data' ) ) . '&sending=' . pb_backupbuddy::_GET( 'sending' ) . '&selecting=' . pb_backupbuddy::_GET( 'selecting' ) ); // name, savepoint|false, additional querystring
                    
23	
                    
63			
                    
64			require_once( dirname( __FILE__ ) . '/class.itx_helper2.php' );
                    
65			global $wp_version;
                    
222		'title'		=>		__( 'Send per burst', 'it-l10n-backupbuddy' ),
                    
223		'tip'		=>		__( '[Example: 10] - This is the amount of data that will be sent per burst within a single PHP page load/chunk. Bursts happen within a single page load. Chunks occur when broken up between page loads/PHP instances. Reduce if hitting PHP memory limits. Chunking time limits will only be checked between bursts. Lower burst size if timeouts occur before chunking checks trigger.', 'it-l10n-backupbuddy' ),
                    
224		'rules'		=>		'required|int[0-9999999]',
                    
                
HtmlBuilder.php https://gitlab.com/techniconline/kmc | PHP | 430 lines
                    
1<?php namespace Collective\Html;
                    
2
                    
36    {
                    
37        return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
                    
38    }
                    
62
                    
63        return '<script' . $this->attributes($attributes) . '></script>' . PHP_EOL;
                    
64    }
                    
81
                    
82        return '<link' . $this->attributes($attributes) . '>' . PHP_EOL;
                    
83    }
                    
116
                    
117        return '<link' . $this->attributes($attributes) . '>' . PHP_EOL;
                    
118    }
                    
426
                    
427        return '<meta' . $this->attributes($attributes) . '>' . PHP_EOL;
                    
428    }
                    
                
openoffice_text_document.class.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 372 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
13 */
                    
14require_once 'openoffice_document.class.php';
                    
15require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
                    
15require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
                    
16require_once api_get_path(LIBRARY_PATH).'search/ChamiloIndexer.class.php';
                    
17require_once api_get_path(LIBRARY_PATH).'search/IndexableChunk.class.php';
                    
57        // The file is utf8 encoded and it seems to make problems with special quotes.
                    
58        // then we htmlentities that, we replace these quotes and html_entity_decode that in good charset.
                    
59        $charset = api_get_system_encoding();
                    
59        $charset = api_get_system_encoding();
                    
60        $content = api_htmlentities($content, ENT_COMPAT, $this->original_charset);
                    
61        $content = str_replace('&rsquo;', '\'', $content);
                    
                
storage.php https://github.com/bermi/akelos.git | PHP | 445 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 4.0                                                      |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2001 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.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// +----------------------------------------------------------------------+
                    
                
sitemaps.php https://github.com/chemicaloliver/codeigniter-sitemaps.git | PHP | 453 lines
                    
1<?php
                    
2
                    
119
                    
120            //ignore all files that don't end .php
                    
121            if ($ext != 'php' || in_array($class, $this->ignore)) continue;
                    
168        {
                    
169            $item['loc'] = htmlentities($item['loc'], ENT_QUOTES);
                    
170            $map .= "\t<url>\n\t\t<loc>" . $item['loc'] . "</loc>\n";
                    
266        {
                    
267            $url['loc'] = htmlentities($url['loc'], ENT_QUOTES);
                    
268            $index .= "\t<sitemap>\n\t\t<loc>" . $url['loc'] . "</loc>\n";
                    
                
product_main.php https://bitbucket.org/seyar/kinda.local.git | PHP | 203 lines
                    
1<?php
                    
2defined('SYSPATH') or die('No direct script access.');
                    
6 * Project:     Chimera2.local
                    
7 * File:        settings_common.php *
                    
8 *
                    
21        <tr >
                    
22            <td style="width: 49%;vertical-align:top;"><?php echo I18n::get('Product Name') . ':' ?> <br />
                    
23                <div class="winput seo_padding_top" style="padding-bottom: 16px">
                    
23                <div class="winput seo_padding_top" style="padding-bottom: 16px">
                    
24                    <input type="text" name="name" value="<?= htmlentities(Model_Content::arrGet( $obj, 'name', Model_Content::arrGet($_POST, 'name', $obj['alter_name']) ), ENT_COMPAT, 'utf-8');?>" style="padding-right: 0px;"/>
                    
25                </div>
                    
26
                    
27                <?php echo I18n::get('Category') . ':' ?> <br />
                    
28
                    
51            </td>
                    
52            <td style="width: 49%;vertical-align:top;"><?php echo I18n::get('Alternative name') . ':' ?> <br />
                    
53                <div class="winput seo_padding_top" style="padding-bottom: 16px">
                    
                
Imap.php https://github.com/ushahidi/Ushahidi_Election.git | PHP | 417 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
34		More Info about above options at:
                    
35		http://php.net/manual/en/function.imap-open.php
                    
36		*/
                    
168			// Convert to valid UTF8
                    
169			$body = htmlentities($body,NULL,mb_detect_encoding($body, "auto"));
                    
170			$subject = htmlentities(strip_tags($subject),NULL,'UTF-8');
                    
402		// but AOL uses type 1 (multipart), which is not handled here.
                    
403		// There are no PHP functions to parse embedded messages,
                    
404		// so this just appends the raw source to the main message.
                    
                
Feed.php https://gitlab.com/pomirleanu.florentin/laravel-feed | PHP | 489 lines
                    
1<?php namespace Roumen\Feed;
                    
2
                    
8 * @link https://roumen.it/projects/laravel-feed
                    
9 * @license http://opensource.org/licenses/mit-license.php MIT License
                    
10 */
                    
225        {
                    
226            $this->items[$k]['title'] = htmlentities(strip_tags($this->items[$k]['title']));
                    
227            $this->items[$k]['pubdate'] = $this->formatDate($this->items[$k]['pubdate'], $format);
                    
230        $channel = [
                    
231            'title'         =>  htmlentities(strip_tags($this->title)),
                    
232            'description'   =>  $this->description,
                    
                
allagendas.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 393 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
17// setting the global file that gets the general configuration, the databases, the languages, ...
                    
18require_once '../inc/global.inc.php';
                    
19$this_section = SECTION_MYAGENDA;
                    
20
                    
21require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
                    
22
                    
22
                    
23require_once 'agenda.inc.php';
                    
24require_once 'myagenda.inc.php';
                    
45/*if(!empty($_GET['coursePath'])) {
                    
46	$course_path = api_htmlentities(strip_tags($_GET['coursePath']),ENT_QUOTES,$charset);
                    
47	$course_path = str_replace(array('../','..\\'),array('',''),$course_path);
                    
50if (!empty ($course_path)) {
                    
51	$interbreadcrumb[] = array ('url' => api_get_path(WEB_COURSE_PATH).urlencode($course_path).'/index.php', 'name' => Security::remove_XSS($_GET['courseCode']));
                    
52}
                    
                
Logger.php https://github.com/cheungyang/Utopia3.git | PHP | 265 lines
                    
1<?php
                    
2namespace Utopia\Components\Logger;
                    
167                }
                    
168                $this->_data->push('response_data', htmlentities("$pdate{$pconf['text']}[$pclass]$string"));
                    
169            }
                    
                
Couch.php https://bitbucket.org/luismayta/zrt.git | PHP | 505 lines
                    
1<?php
                    
2
                    
81            throw new Zrt_Exception( sprintf( 'Invalid database specified: "%s"' ,
                    
82                                              htmlentities( $db ) ) );
                    
83            }
                    
                
php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 140 lines
                    
32    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
33    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
34    multiLineStrings: true,
                    
63    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
64    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
65
                    
91        return style;
                    
92      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
93        state.curMode = htmlMode;
                    
112        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
113            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
114        if (state.curMode == htmlMode) cur = htmlNew;
                    
138  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
139  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
140});
                    
                
index.php https://github.com/Doap/FrogCMS.git | PHP | 202 lines
                    
85      <td class="latest"><?php echo Plugin::checkLatest($plugin); ?></td>
                    
86      <td class="enabled"><input type="checkbox" name="enabled_<?php echo $plugin->id; ?>" value="<?php echo $plugin->id; ?>"<?php if (isset($loaded_plugins[$plugin->id])) echo ' checked="checked"'; if ($disabled) echo ' disabled="disabled"'; ?> onclick="new Ajax.Request('<?php echo get_url('setting'); ?>'+(this.checked ? '/activate_plugin/':'/deactivate_plugin/')+this.value, {method: 'get'});" /></td>
                    
87    </tr>
                    
122<?php foreach (Setting::getThemes() as $code => $label): ?>
                    
123            <option value="<?php echo $code; ?>"<?php if ($code == $current_theme) echo ' selected="selected"'; ?>><?php echo __($label); ?></option>
                    
124<?php endforeach; ?>
                    
140        <?php if ($controller->show_tab === true) { ?>
                    
141            <option value="plugin/<?php echo $key; ?>"<?php if ('plugin/'.$key == $current_default_tab) echo ' selected="selected"'; ?>><?php echo $controller->label; ?></option>
                    
142        <?php } ?>
                    
161          <input class="radio" id="setting_default_status_id-draft" name="setting[default_status_id]" size="10" type="radio" value="<?php echo Page::STATUS_DRAFT; ?>"<?php if (Setting::get('default_status_id') == Page::STATUS_DRAFT) echo ' checked="checked"'; ?> /><label for="setting_default_status_id-draft"> <?php echo __('Draft'); ?> </label> &nbsp; 
                    
162          <input class="radio" id="setting_default_status_id-published" name="setting[default_status_id]" size="10" type="radio" value="<?php echo Page::STATUS_PUBLISHED; ?>"<?php if (Setting::get('default_status_id') == Page::STATUS_PUBLISHED) echo ' checked="checked"'; ?> /><label for="setting_default_status_id-published"> <?php echo __('Published'); ?> </label>
                    
163        </td>
                    
173<?php if (isset($loaded_filters[$filter_id])): ?>
                    
174            <option value="<?php echo $filter_id; ?>"<?php if ($filter_id == $current_default_filter_id) echo ' selected="selected"'; ?>><?php echo Inflector::humanize($filter_id); ?></option>
                    
175<?php endif; ?>
                    
                
DB-Func.php https://gitlab.com/florianocomercial/centreon | PHP | 268 lines
                    
1<?php
                    
2/*
                    
50
                    
51		$DBRESULT = $pearDB->query("SELECT sg_name, sg_id FROM servicegroup WHERE sg_name = '".htmlentities($oreon->checkIllegalChar($name), ENT_QUOTES, "UTF-8")."'");
                    
52		$sg = $DBRESULT->fetchRow();
                    
168		$rq .= "VALUES (";
                    
169		isset($ret["sg_name"]) && $ret["sg_name"] != NULL ? $rq .= "'".htmlentities($ret["sg_name"], ENT_QUOTES, "UTF-8")."', " : $rq .= "NULL, ";
                    
170		isset($ret["sg_alias"]) && $ret["sg_alias"] != NULL ? $rq .= "'".htmlentities($ret["sg_alias"], ENT_QUOTES, "UTF-8")."', " : $rq .= "NULL, ";
                    
170		isset($ret["sg_alias"]) && $ret["sg_alias"] != NULL ? $rq .= "'".htmlentities($ret["sg_alias"], ENT_QUOTES, "UTF-8")."', " : $rq .= "NULL, ";
                    
171		isset($ret["sg_comment"]) && $ret["sg_comment"] != NULL ? $rq .= "'".htmlentities($ret["sg_comment"], ENT_QUOTES, "UTF-8")."', " : $rq .= "NULL, ";
                    
172		isset($ret["sg_activate"]["sg_activate"]) && $ret["sg_activate"]["sg_activate"] != NULL ? $rq .= "'".$ret["sg_activate"]["sg_activate"]."'" : $rq .= "'0'";
                    
178
                    
179		$fields["sg_name"] = htmlentities($ret["sg_name"], ENT_QUOTES, "UTF-8");
                    
180		$fields["sg_alias"] = htmlentities($ret["sg_alias"], ENT_QUOTES, "UTF-8");
                    
180		$fields["sg_alias"] = htmlentities($ret["sg_alias"], ENT_QUOTES, "UTF-8");
                    
181		$fields["sg_comment"] = htmlentities($ret["sg_comment"], ENT_QUOTES, "UTF-8");
                    
182		$fields["sg_activate"] = $ret["sg_activate"]["sg_activate"];
                    
                
html.php https://bitbucket.org/Maron1/taqman.git | PHP | 481 lines
                    
1<?php namespace Laravel;
                    
2
                    
40	{
                    
41		return htmlentities($value, ENT_QUOTES, static::encoding(), false);
                    
42	}
                    
86
                    
87		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
88	}
                    
114
                    
115		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
116	}
                    
                
calendar.php https://gitlab.com/ricardosanchez/prueba | PHP | 346 lines
                    
1<?php
                    
2
                    
14 */
                    
15include_once (JPATH_SITE . "/modules/mod_jevents_cal/tmpl/default/calendar.php");
                    
16
                    
120		$viewimages = $viewpath . "/images";
                    
121		$linkpref = "index.php?option=$compname&Itemid=" . $this->myItemid . $this->cat . "&task=";
                    
122
                    
128		{
                    
129			$linkprevious = htmlentities(JURI::base() . "index.php?option=$jev_component_name&task=modcal.ajax&day=1&month=$base_prev_month&year=$base_prev_month_year&modid=$this->_modid&tmpl=component" . $this->cat);
                    
130			$scriptlinks .= "linkprevious = '".$linkprevious."';\n";
                    
159		{
                    
160			$linknext = htmlentities(JURI::base() . "index.php?option=$jev_component_name&task=modcal.ajax&day=1&month=$base_next_month&year=$base_next_month_year&modid=$this->_modid&tmpl=component" . $this->cat);
                    
161			$scriptlinks .= "linknext = '".$linknext."';\n";
                    
238						$content .= "<td class='" . $class . "'>\n";
                    
239						// To make sure there are no strict php error messages when currentDay is changed we add second method
                    
240						if (method_exists($this, "getTooltipReference")){
                    
                
php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
130  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
131  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
132})();
                    
                
html.php https://github.com/popovag/kohana_core.git | PHP | 367 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
9 * @copyright  (c) 2007-2010 Kohana Team
                    
10 * @license    http://kohanaphp.com/license
                    
11 */
                    
81	{
                    
82		return htmlentities((string) $value, ENT_QUOTES, Kohana::$charset, $double_encode);
                    
83	}
                    
                
listCommand.php https://gitlab.com/florianocomercial/centreon | PHP | 232 lines
                    
1<?php
                    
2/*
                    
39
                    
40include_once("./class/centreonUtils.class.php");
                    
41
                    
41
                    
42include_once "./include/common/autoNumLimit.php";
                    
43
                    
56    }
                    
57    $req = "SELECT COUNT(*) FROM `command` WHERE `command_name` LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%' $type_str";
                    
58} else {
                    
62    if (isset($search) && $search) {
                    
63        $req = "SELECT COUNT(*) FROM `command` WHERE `command_name` LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%'";
                    
64    } else if ($type) {
                    
78
                    
79include_once "./include/common/checkPagination.php";
                    
80
                    
                
FactoryTest.php https://github.com/necrogami/zf2.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
23
                    
24use PHPUnit_Framework_TestCase as TestCase;
                    
25use Zend\Filter;
                    
122        $factory      = new Factory();
                    
123        $htmlEntities = new Filter\HtmlEntities();
                    
124        $input = $factory->createInput(array(
                    
129                ),
                    
130                $htmlEntities,
                    
131                array(
                    
148                case 1:
                    
149                    $this->assertSame($htmlEntities, $filter);
                    
150                    break;
                    
                
ext_string.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 447 lines
                    
1<?php
                    
2
                    
165  $vowels[] = "U";
                    
166  var_dump(str_replace($vowels, "", "Hello World of PHP"));
                    
167}
                    
226$orig = "I'll \"walk\" the <b>dog</b> now";
                    
227$a = htmlentities($orig);
                    
228var_dump($a);
                    
244$str = "A 'quote' is <b>bold</b>";
                    
245var_dump(htmlentities($str));
                    
246var_dump(htmlentities($str, ENT_QUOTES));
                    
247
                    
248var_dump(htmlentities("\xA0", ENT_COMPAT));
                    
249var_dump(htmlentities("\xc2\xA0", ENT_COMPAT, ""));
                    
249var_dump(htmlentities("\xc2\xA0", ENT_COMPAT, ""));
                    
250var_dump(htmlentities("\xc2\xA0", ENT_COMPAT, "UTF-8"));
                    
251
                    
                
fckconfig.js https://github.com/alex-lambert/FTP-CMS.git | JavaScript | 328 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58FCKConfig.ProtectedSource.Add( /<\?php[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
64
                    
65FCKConfig.ProcessHTMLEntities	= true ;
                    
66FCKConfig.IncludeLatinEntities	= true ;
                    
164FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
165FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
166FCKConfig.FirefoxSpellChecker	= false ;
                    
275// Custom implementations should just ignore it.
                    
276var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
277var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
326
                    
327// Allow PHP to be protected
                    
328//FCKConfig.ProtectedSource.Add (/<\?[\s\S]*?\?>/g);
                    
                
Api.php https://github.com/andyburton/Sonic-Framework.git | PHP | 864 lines
                    
1<?php
                    
2
                    
665				
                    
666				header ('Content-Type: application/vnd.php.serialized');
                    
667				echo $this->outputSerialized ();
                    
835			{
                    
836				$element->nodeValue	= htmlentities ($val);
                    
837			}
                    
                
html.php https://github.com/misa/core.git | PHP | 374 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
81	{
                    
82		return htmlentities( (string) $value, ENT_QUOTES, Kohana::$charset, $double_encode);
                    
83	}
                    
                
user.php https://bitbucket.org/jonarano/joneame.git | PHP | 283 lines
                    
26
                    
27		require_once(mnminclude.'avatars.php');
                    
28		require_once(mnminclude.'geo.php');
                    
75		$user_sex = $db->escape($this->sex);
                    
76		$user_public_info = $db->escape(htmlentities($this->public_info));
                    
77		$user_url = $db->escape(htmlspecialchars($this->url));
                    
129
                    
130        include_once mnminclude.'annotation.php';
                    
131
                    
194	function get_latlng() {
                    
195		require_once(mnminclude.'geo.php');
                    
196
                    
                
basic.php https://github.com/ciudadanointeligente/legacy-legislativo.git | PHP | 247 lines
                    
1<?php
                    
2require('simple_html_dom.php');
                    
2require('simple_html_dom.php');
                    
3require("class/cnx.php");
                    
4require("class/controlador.php");
                    
25    $html = file_get_html($proyectos_url.$nro_boletin);
                    
26    $value=htmlentities($html->find('tr', 1)->plaintext);
                    
27    $value=str_replace("&amp;", "&", $value);
                    
38    foreach($array as $a){
                    
39        $v[$i]=strrpos($value, htmlentities(utf8_decode($a)));
                    
40        $i++;
                    
                
groups.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 286 lines
                    
1<?php 
                    
2defined('C5_EXECUTE') or die("Access Denied.");
                    
55
                    
56<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Groups'), false, 'span12 offset2', false)?>
                    
57<?php 
                    
62<div class="ccm-pane-options-permanent-search">
                    
63<form method="get" action="<?php echo $this->url('/dashboard/users/groups')?>">
                    
64<div class="span7">
                    
67<div class="input">
                    
68	<input type="text" name="gKeywords" value="<?php echo htmlentities($_REQUEST['gKeywords'])?>"  />
                    
69	<input class="btn" type="submit" value="<?php echo t('Search')?>" />
                    
75</div>
                    
76<div class="ccm-pane-body <?php  if (!$gl->requiresPaging()) { ?> ccm-pane-body-footer <?php  } ?>">
                    
77
                    
83	<div class="ccm-group">
                    
84		<a class="ccm-group-inner" href="<?php echo $this->url('/dashboard/users/groups?task=edit&gID=' . $g['gID'])?>" style="background-image: url(<?php echo ASSETS_URL_IMAGES?>/icons/group.png)"><?php echo t($g['gName'])?></a>
                    
85		<?php  if ($g['gDescription']) { ?>
                    
                
HtmlBuilder.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 542 lines
                    
1<?php
                    
2
                    
53    {
                    
54        return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
                    
55    }
                    
81
                    
82        return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL);
                    
83    }
                    
101
                    
102        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
103    }
                    
139
                    
140        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
141    }
                    
500        $content = is_array($content) ? implode(PHP_EOL, $content) : $content;
                    
501        return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . PHP_EOL . $this->toHtmlString($content) . PHP_EOL . '</' . $tag . '>' . PHP_EOL);
                    
502    }
                    
                
i18n.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
78	if (!$substitution) {
                    
79		$msgstr = replace_html(htmlentities($msgstr, ENT_COMPAT, 'UTF-8'));
                    
80	}
                    
                
reporter.php https://gitlab.com/x33n/platform | PHP | 445 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reporter.php 1995 2010-04-06 12:57:40Z lastcraft $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/scorer.php');
                    
13//require_once(dirname(__FILE__) . '/arguments.php');
                    
115        print implode(" -&gt; ", $breadcrumb);
                    
116        print " -&gt; " . $this->htmlEntities($message) . "<br />\n";
                    
117    }
                    
119    /**
                    
120     *    Paints a PHP error.
                    
121     *    @param string $message        Message is ignored.
                    
129        print implode(" -&gt; ", $breadcrumb);
                    
130        print " -&gt; <strong>" . $this->htmlEntities($message) . "</strong><br />\n";
                    
131    }
                    
                
html.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 376 lines
                    
1<?php
                    
2namespace Aurora;
                    
15	{
                    
16		return htmlentities($value, ENT_QUOTES, Config::$items['application']['encoding'], false);
                    
17	}
                    
37
                    
38		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
39	}
                    
69
                    
70		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
71	}
                    
                
psdContentClassDefinition.php https://gitlab.com/codinger/psdcontentclassimport | PHP | 448 lines
                    
1<?php
                    
2
                    
169    /**
                    
170     * Transforms searialized Fields from PHP-Serialize to JSON. Recodes entities.
                    
171     *
                    
191                $val                = $this->reSerializeString($element->textContent);
                    
192                $element->nodeValue = htmlentities($val, ENT_NOQUOTES, 'UTF-8');
                    
193            }
                    
                
Save.php https://github.com/m-fuji-0616/vtigercrm-5.1.x-ja.git | PHP | 247 lines
                    
1<?php
                    
2/*+********************************************************************************
                    
9 ********************************************************************************/
                    
10require_once('include/logging.php');
                    
11require_once('include/utils/utils.php');
                    
22	if(strtolower($default_charset) != 'utf-8')
                    
23		$viewname = htmlentities($viewname);
                    
24
                    
96	   if($string == "fval") {
                    
97		   //$adv_filter_value[] = htmlentities(trim($_REQUEST[$allKeys[$i]]));
                    
98		   $adv_filter_value[] = trim($_REQUEST[$allKeys[$i]]);
                    
245
                    
246header("Location: index.php?action=$return_action&parenttab=$parenttab&module=$cvmodule&viewname=$cvid");
                    
247?>
                    
                
displayNotification.php https://gitlab.com/florianocomercial/centreon | PHP | 245 lines
                    
1<?php
                    
2/*
                    
33 *
                    
34 * SVN : $URL: http://svn.centreon.com/branches/centreon-2.3.x/www/include/options/accessLists/resourcesACL/showUsersAccess.php $
                    
35 * SVN : $Id: showUsersAccess.php 12517 2011-09-20 08:26:49Z shotamchay $
                    
42
                    
43    require_once _CENTREON_PATH_ . 'www/class/centreonNotification.class.php';
                    
44
                    
102	if (isset($_POST["contact"])) {
                    
103		$contact_id = (int)htmlentities($_POST["contact"], ENT_QUOTES, "UTF-8");
                    
104	} else {
                    
                
html_link.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 345 lines
                    
1<?php
                    
2
                    
269   *
                    
270   * htmlentities() will be automatically applied to attribute values (but not to #link_text).
                    
271   *
                    
                
upload.php https://gitlab.com/dkiller1/rapidleech | PHP | 220 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('rl_init.php');
                    
4ignore_user_abort(true);
                    
7
                    
8include(CLASS_DIR.'http.php');
                    
9
                    
14// We put basename() because we are quite sure that no one is able to upload things besides the download directory normally
                    
15// htmlentities() prevents XSS attacks
                    
16$_REQUEST['filename'] = htmlentities($options['download_dir'].basename($_REQUEST['filename']));
                    
16$_REQUEST['filename'] = htmlentities($options['download_dir'].basename($_REQUEST['filename']));
                    
17$_REQUEST['uploaded'] = htmlentities(trim($_REQUEST['uploaded']));
                    
18// We want to check if the selected upload service is a valid ones
                    
203if (isset($_GET['auul'])) {
                    
204?><script type="text/javascript">parent.nextlink<?php echo $_GET['auul']; ?>();</script><?php
                    
205	// Write links to a file
                    
                
send.mails.php https://bitbucket.org/elulice/gestionar.git | PHP | 429 lines
                    
3header('Content-type: text/html; charset=utf-8');
                    
4include("class.phpmailer.php");
                    
5include("../clases/framework-1.0/class.bd.php");
                    
5include("../clases/framework-1.0/class.bd.php");
                    
6include("../includes/funciones.php");
                    
7
                    
19{
                    
20    $email = htmlentities($_GET['email'], ENT_NOQUOTES, 'UTF-8');
                    
21
                    
142
                    
143    $eSucursal = htmlentities($_GET['eSucursal'], ENT_NOQUOTES, 'UTF-8');
                    
144
                    
358
                    
359    include("html.format.new.ticket.php");
                    
360
                    
                
contact.html https://bitbucket.org/pombredanne/spip-zone-treemap.git | HTML | 194 lines
                    
47                ?>
                    
48                <form action="<?php echo $PHP_SELF ?>" method="post">
                    
49                  <ul id="item">
                    
50                    <li><div class="liste"><:escal:contact_nom:></div>
                    
51                    <input type="text" name="Nom" size="30" value="<?php echo trim(htmlentities($_POST['Nom'])) ?>" /></li>
                    
52                    <li><div class="liste"><:escal:contact_prenom:></div>
                    
52                    <li><div class="liste"><:escal:contact_prenom:></div>
                    
53                    <input type="text" name="Prenom" value="<?php echo trim(htmlentities($_POST['Prenom'])) ?>" size="30" /></li>
                    
54                    <li><div class="liste"><:escal:contact_mail:></div>
                    
54                    <li><div class="liste"><:escal:contact_mail:></div>
                    
55                    <input type="text" name="Email" value="<?php echo trim(htmlentities($_POST['Email'])) ?>" size="30" /></li>
                    
56                    <li><:escal:contact_motif:></li>
                    
59                        <li><input type="radio" name="Sujet" value="<:escal:contact_motif2:>"  size="30" <?php if ($_POST['Sujet']=='<:escal:contact_motif2:>') { echo 'checked="checked"'; } ?> /><:escal:contact_motif2:></li>
                    
60                        <li><input type="radio" name="Sujet" value="<:escal:contact_motif3:>"  size="30" <?php if ($_POST['Sujet']=='<:escal:contact_motif3:>') { echo 'checked="checked"'; } ?> /><:escal:contact_motif3:></li>
                    
61                        <li><input type="radio" name="Sujet" value="<:escal:contact_motif4:>"  size="30" <?php if ($_POST['Sujet']=='<:escal:contact_motif4:>') { echo 'checked="checked"'; } ?> /><:escal:contact_motif4:></li>
                    
                
AviaryFX.php https://github.com/aviaryapi/AviaryFxPhp.git | PHP | 344 lines
                    
1<?php
                    
2
                    
3	/**
                    
4	 * AviaryFX PHP SDK
                    
5	 * 
                    
15		const HARDWARE_VERSION = "1.0";
                    
16	 	const SOFTWARE_VERSION = "PHP";
                    
17		const APP_VERSION = "1.0";
                    
268		/**
                    
269		 * Converts a SimpleXMLObject into an array. http://php.net/manual/en/book.simplexml.php
                    
270		 * 
                    
330	            } else {
                    
331	                $value = htmlentities($value);
                    
332	                $xml->addAttribute($key, (string) $value);
                    
                
HtmlBuilder.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 471 lines
                    
1<?php
                    
2
                    
39    {
                    
40        return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
                    
41    }
                    
67
                    
68        return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL;
                    
69    }
                    
87
                    
88        return '<link'.$this->attributes($attributes).'>'.PHP_EOL;
                    
89    }
                    
124
                    
125        return '<link'.$this->attributes($attributes).'>'.PHP_EOL;
                    
126    }
                    
468
                    
469        return '<meta'.$this->attributes($attributes).'>'.PHP_EOL;
                    
470    }
                    
                
html.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 386 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
81	{
                    
82		return htmlentities( (string) $value, ENT_QUOTES, Kohana::$charset, $double_encode);
                    
83	}
                    
                
reporter.php https://bitbucket.org/murtuza88/carolina-home-stone.git | PHP | 445 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reporter.php 2005 2010-11-02 14:09:34Z lastcraft $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/scorer.php');
                    
13//require_once(dirname(__FILE__) . '/arguments.php');
                    
115        print implode(" -&gt; ", $breadcrumb);
                    
116        print " -&gt; " . $this->htmlEntities($message) . "<br />\n";
                    
117    }
                    
119    /**
                    
120     *    Paints a PHP error.
                    
121     *    @param string $message        Message is ignored.
                    
129        print implode(" -&gt; ", $breadcrumb);
                    
130        print " -&gt; <strong>" . $this->htmlEntities($message) . "</strong><br />\n";
                    
131    }
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 408 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
240            function ($matches) {
                    
241                return htmlentities($matches[0]);
                    
242            },
                    
                
xml2docbook_xml.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 456 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * This file contains the /element/ class needed by xml2tree.php
                    
5 * to create a tree which is then converted into DocBook XML
                    
132		if ( isset ( $this->attrs['TYPE'] ) AND strtolower ( $this->attrs['TYPE'] ) == 'external' ) { # External link
                    
133			$href = htmlentities ( $this->attrs['HREF'] ) ;
                    
134			if ( trim ( $sub ) == "" ) {
                    
195
                    
196				$href = "http://{$nstext}.wikipedia.org/wiki/" . htmlentities ( $name ) ;
                    
197				$link = "<ulink url=\"{$href}\"><citetitle>{$sub}</citetitle></ulink>" ;
                    
453
                    
454require_once ( "xml2tree.php" ) ; # Uses the "element" class defined above
                    
455
                    
                
string.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 463 lines
                    
1<?php
                    
2/**
                    
4 * @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5 * @license		GNU/GPL, see LICENSE.php
                    
6 *
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
107		{
                    
108			return EasyBlogStringHelper::unhtmlentities($rawStr);
                    
109		}
                    
112	/**
                    
113	 * A pior php 4.3.0 version of
                    
114	 * html_entity_decode
                    
115	 */
                    
116	public static function unhtmlentities($string)
                    
117	{
                    
                
test.oop.kses.php https://github.com/masuman/elgg-1.git | PHP | 507 lines
                    
1<?php
                    
2
                    
6
                    
7	//	Make sure we're in a usable PHP environment
                    
8	if(substr(phpversion(), 0, 1) < 4)
                    
11	}
                    
12	elseif(substr(phpversion(), 0, 1) >= 5)
                    
13	{
                    
34			"Error: Not using a current version of PHP!",
                    
35			"You are using PHP version " . phpversion() . ".",
                    
36			"KSES Class version requires PHP4 or better.",
                    
46
                    
47	$include_file = "php" . KSESTEST_VER . ".class.kses.php";
                    
48	if(file_exists($include_file) && is_readable($include_file))
                    
143		{
                    
144			return htmlentities($text);
                    
145		}
                    
                
class.ls.posts.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 261 lines
                    
1<?php
                    
2
                    
63			$ret[$key]['image-url'] = $ret[$key]['thumbnail'];
                    
64			$ret[$key]['title'] = htmlentities(__($val->post_title));
                    
65			$ret[$key]['content'] = wp_strip_all_tags(__($val->post_content));
                    
                
products_page.php https://github.com/evadne/wp-e-commerce.git | PHP | 280 lines
                    
58				<?php if(get_option('show_category_thumbnails') && wpsc_category_image()) : ?>
                    
59					<img src='<?php echo wpsc_category_image(); ?>' alt='<?php echo wpsc_category_name(); ?>' title='<?php echo wpsc_category_name(); ?>' />
                    
60				<?php endif; ?>
                    
89								<a rel="<?php echo str_replace(array(" ", '"',"'", '&quot;','&#039;'), array("_", "", "", "",''), wpsc_the_product_title()); ?>" class="thickbox preview_link" href="<?php echo wpsc_the_product_image(); ?>">
                    
90									<img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>"/>
                    
91								</a>
                    
155						
                    
156						<form class='product_form'  enctype="multipart/form-data" action="<?php echo $action; ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>" id="product_<?php echo wpsc_the_product_id(); ?>" >
                    
157							<?php do_action('wpsc_product_addon_after_descr', wpsc_the_product_id()); ?>
                    
182										<?php while (wpsc_have_variations()) : wpsc_the_variation(); ?>
                    
183											<option value="<?php echo wpsc_the_variation_id(); ?>" <?php echo wpsc_the_variation_out_of_stock(); ?> ><?php echo wpsc_the_variation_name(); ?></option>
                    
184										<?php endwhile; ?>
                    
211									<?php endif; ?>
                    
212									<span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span><?php echo __('Price', 'wpsc'); ?>:  <br/>
                    
213									<?php if(get_option('display_pnp') == 1) : ?>
                    
                
fckconfig.js https://github.com/viglesiasce/testlink.git | JavaScript | 325 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>

                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code

                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>

                    
64

                    
65FCKConfig.ProcessHTMLEntities	= true ;

                    
66FCKConfig.IncludeLatinEntities	= true ;

                    
164FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;

                    
165FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl

                    
166FCKConfig.FirefoxSpellChecker	= false ;

                    
275// Custom implementations should just ignore it.

                    
276var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py

                    
277var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py

                    
                
listTraps.php https://gitlab.com/florianocomercial/centreon | PHP | 180 lines
                    
1<?php
                    
2/*
                    
41
                    
42        include_once("./class/centreonUtils.class.php");
                    
43		
                    
43		
                    
44	include("./include/common/autoNumLimit.php");
                    
45	$mnftr_id = NULL;
                    
51        $search = $_POST['searchT'];
                    
52		$SearchTool = "WHERE traps_oid LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%' OR traps_name LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%' OR manufacturer_id IN (SELECT id FROM traps_vendor WHERE alias LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%')";
                    
53    }
                    
58
                    
59	include("./include/common/checkPagination.php");
                    
60
                    
130	</SCRIPT>
                    
131	<?php
                    
132	$attrs1 = array(
                    
                
compatibility_helper.php https://github.com/mkhairul/Presta.git | PHP | 498 lines
                    
21 * This helper contains some functions based on the PEAR PHP_Compat library
                    
22 * http://pear.php.net/package/PHP_Compat
                    
23 * 
                    
48 * Writes a string to a file
                    
49 * http://us.php.net/manual/en/function.file_put_contents.php
                    
50 * argument 4, $context, not supported
                    
242 * Find position of first occurrence of a case-insensitive string
                    
243 * http://us.php.net/manual/en/function.stripos.php
                    
244 *
                    
296 * Find position of first occurrence of a case-insensitive string
                    
297 * http://us.php.net/manual/en/function.str-ireplace.php
                    
298 * (parameter 4, $count, is not supported as to do so in PHP 4 would make
                    
394 * Generate URL-encoded query string
                    
395 * http://us.php.net/manual/en/function.http-build-query.php
                    
396 *
                    
                
TestViewer.php https://github.com/benbruscella/vpcounselling.com.git | PHP | 253 lines
                    
1<?php
                    
2/**
                    
11	 * Inner keys are token names/codes.  The values are either a string, new state, or an array(new state, handler method).
                    
12	 * The handler method will be passed the PHP token as an argument, and is expected to populate a property of the object.
                    
13	 */
                    
147	function renderToken($token) {
                    
148		$tokenContent = htmlentities(is_array($token) ? $token[1] : $token);
                    
149		$tokenName = is_array($token) ? token_name($token[0]) : 'T_PUNCTUATION';
                    
182		// Execute a finite-state-machine with a built-in state stack
                    
183		// This FSM+stack gives us enough expressive power for simple PHP parsing
                    
184		$state = "start";
                    
                
page_annuaire_nouvelle_fiche.inc.php https://github.com/yvesb/soothERP.git | PHP | 269 lines
                    
73								?>
                    
74								<option value="<?php echo $civ->id_civilite ?>"><?php echo htmlentities($civ->lib_civ_court, ENT_QUOTES, "UTF-8")?></option>
                    
75								<?php 
                    
118											?>
                    
119											<span><input onclick="affiche_annu_nvlf_profil('<?php echo $profil->getId_profil();?>');" type=checkbox value="<?php echo $profil->getId_profil();?>" id="profils<?php echo $profil->getId_profil();?>" <?php 
                    
120									
                    
126									
                    
127									?> name="profils[<?php echo $profil->getId_profil();?>]"><?php echo htmlentities($profil->getLib_profil(), ENT_QUOTES, "UTF-8");?></span><br />
                    
128
                    
138											?>
                    
139											<span><input onclick="affiche_annu_nvlf_profil('<?php echo $profil->getId_profil();?>');" type=checkbox value="<?php echo $profil->getId_profil();?>" id="profils<?php echo $profil->getId_profil();?>"<?php 
                    
140									
                    
146									
                    
147									?> name="profils[<?php echo $profil->getId_profil();?>]"><?php echo htmlentities($profil->getLib_profil(), ENT_QUOTES, "UTF-8");?></span><br />
                    
148											<?php
                    
                
10_sql_insert_select.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 254 lines
                    
1<?php
                    
2
                    
132			if (!($multi == ($res))) {
                    
133				$err[] = "sql_multi $lg mal rendu : retour : ".htmlentities($multi).", attendu : ".htmlentities($res);
                    
134			}
                    
139			if (!($multi == ($res))) {
                    
140				$err[] = "sql_multi $lg mal rendu : retour : ".htmlentities(utf8_decode($multi)).", attendu : ".htmlentities(utf8_decode($res));
                    
141			}
                    
146			if (!($multi == ($res))) {
                    
147				$err[] = "sql_multi $lg mal rendu : retour : ".htmlentities(utf8_decode($multi)).", attendu : ".htmlentities(utf8_decode($res));
                    
148			}
                    
                
sanitize.php https://github.com/cgajardo/repositorium.git | PHP | 348 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-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2010, 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.10.0.1076
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
90 * - charset (string) the charset used to encode the string
                    
91 * - quotes (int) see http://php.net/manual/en/function.htmlentities.php
                    
92 *
                    
                
Message.php https://gitlab.com/wuhang2003/typecho | PHP | 167 lines
                    
1<?php
                    
2/*
                    
3   IXR - The Inutio XML-RPC Library - (c) Incutio Ltd 2002
                    
4   Version 1.61 - Simon Willison, 11th July 2003 (htmlentities -> htmlspecialchars)
                    
5   Site:   http://scripts.incutio.com/xmlrpc/
                    
5   Site:   http://scripts.incutio.com/xmlrpc/
                    
6   Manual: http://scripts.incutio.com/xmlrpc/manual.php
                    
7   Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
                    
                
Imap.php https://github.com/dannyrealfox/Fu-Chi--Future-Chinatown.git | PHP | 408 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
34		More Info about above options at:
                    
35		http://php.net/manual/en/function.imap-open.php
                    
36		*/
                    
166			// Convert to valid UTF8
                    
167			$body = htmlentities($body);
                    
168			$subject = htmlentities(strip_tags($subject));
                    
393		// but AOL uses type 1 (multipart), which is not handled here.
                    
394		// There are no PHP functions to parse embedded messages,
                    
395		// so this just appends the raw source to the main message.
                    
                
classXmlForm_Field_TextPMTest.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 210 lines
                    
1<?php
                    
2  $unitFilename = $_SERVER['PWD'] . '/test/bootstrap/unit.php' ;
                    
4
                    
5  require_once( PATH_THIRDPARTY . '/lime/lime.php');
                    
6  require_once( PATH_THIRDPARTY.'lime/yaml.class.php');
                    
11  G::LoadSystem ( 'form');
                    
12  require_once( 'propel/Propel.php' );
                    
13  require_once ( "creole/Creole.php" );
                    
13  require_once ( "creole/Creole.php" );
                    
14  require_once (  PATH_CORE . "config/databases.php");  
                    
15
                    
113  //checking method 'htmlentities'
                    
114  $t->is ( $aMethods[8],      'htmlentities',   'htmlentities() is callable' );
                    
115
                    
115
                    
116  //$result = $obj->htmlentities ( $value, $flags, $encoding);
                    
117  //$t->isa_ok( $result,      'NULL',   'call to method htmlentities ');
                    
                
helper-slideshow.php https://bitbucket.org/adatux_/uakami.git | PHP | 491 lines
                    
1<?php
                    
2
                    
173		if($button) $button = "<div class='button_wrap button_wrap_$button_number'>$button</div>";
                    
174		if($data) $data = "data-caption='".htmlentities($data.$button, ENT_QUOTES, get_bloginfo( 'charset' ))."' ";
                    
175		//transition
                    
382				      flashvars.cssSource = "'.AVIA_BASE_URL.'slideshow/piecemaker.css";
                    
383				      flashvars.xmlSource = "'.AVIA_BASE_URL.'slideshow/piecemaker.xml.php?post_id='.$this->post_id.'";
                    
384						
                    
                
autoload.function.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 385 lines
                    
1<?php
                    
2/*
                    
41
                    
42include_once (GLPI_ROOT."/config/based_config.php");
                    
43include_once (GLPI_ROOT."/config/define.php");
                    
107 *
                    
108 * @return protected string (with htmlentities)
                    
109**/
                    
110function __s($str, $domain='glpi') {
                    
111   return htmlentities(__($str, $domain), ENT_QUOTES, 'UTF-8');
                    
112}
                    
123 *
                    
124 * @return protected string (with htmlentities)
                    
125**/
                    
126function _sx($ctx, $str, $domain='glpi') {
                    
127   return htmlentities(_x($ctx, $str, $domain), ENT_QUOTES, 'UTF-8');
                    
128}
                    
                
html_entity_decode_php4.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 309 lines
                    
1<?php
                    
2//============================================================+
                    
2//============================================================+
                    
3// File name   : html_entity_decode_php4.php
                    
4// Begin       : 2006-06-22
                    
9//
                    
10// Description : This is a PHP4 function that redefine the 
                    
11//               standard html_entity_decode function to support
                    
40/**
                    
41 * Reverse function for htmlentities.
                    
42 * Convert entities in UTF-8.
                    
45 */
                    
46function html_entity_decode_php4($text_to_convert) {
                    
47    $htmlentities_table = array (
                    
299    );
                    
300    $return_text = strtr($text_to_convert, $htmlentities_table);
                    
301    $return_text = preg_replace('~&#x([0-9a-f]+);~ei', 'code_to_utf8(hexdec("\\1"))', $return_text);
                    
                
listServiceTemplateModel.php https://gitlab.com/florianocomercial/centreon | PHP | 277 lines
                    
1<?php
                    
2/*
                    
39
                    
40include_once("./class/centreonUtils.class.php");
                    
41
                    
46
                    
47include("./include/common/autoNumLimit.php");
                    
48
                    
64if($search != ''){
                    
65    $DBRESULT = $pearDB->query("SELECT COUNT(*) FROM service sv WHERE (sv.service_description LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%' OR sv.service_alias LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%') AND sv.service_register = '0'");
                    
66}else{
                    
72
                    
73include("./include/common/checkPagination.php");
                    
74
                    
99if ($search)
                    
100	$rq = "SELECT sv.service_id, sv.service_description, sv.service_alias, sv.service_activate, sv.service_template_model_stm_id FROM service sv WHERE (sv.service_description LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%' OR sv.service_alias LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%') AND sv.service_register = '0' ORDER BY service_description LIMIT ".$num * $limit.", ".$limit;
                    
101else
                    
                
team_individual.php https://gitlab.com/robinphillips/risus-web | PHP | 241 lines
                    
10
                    
11require("inc_head_php.php");
                    
12require("inc_head_html.php");
                    
66	$individualcliche = $db->querySingle("SELECT * FROM cliches WHERE clicheid = ".$_POST["individualcliche"], True);
                    
67	$log .= "<p>".htmlentities($individual,ENT_QUOTES)." (".htmlentities($individualcliche["cliche"],ENT_QUOTES)." ".$individualcliche["current"].")<br>";
                    
68	// Inappropriate Clichés and Lucky Shots
                    
69	if (isset($_POST["inappropriate"]))
                    
70		$log .= htmlentities($individual,ENT_QUOTES)." is using an Inappropriate Cliché<br>";
                    
71	if (isset($_POST["lucky"])) {
                    
102			$newindividualcliche = 0;
                    
103			$log .= "<br><b>".htmlentities($individual,ENT_QUOTES)." is defeated!</b>";
                    
104		}
                    
128			$viewlog .= "<option value='$clicheid' id='option$clicheid' data-charid='$charid' data-current='".intval($cliche["current"])."'>";
                    
129			$viewlog .= htmlentities($name, ENT_QUOTES)." (".htmlentities($cliche["cliche"], ENT_QUOTES)." ".intval($cliche["current"]).")";
                    
130			$viewlog .= "</option>";
                    
                
function.oci-fetch.html https://bitbucket.org/thncr/manuals.git | HTML | 131 lines
                    
11 <div class="up"><a href="ref.oci8.html">OCI8 函数</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="function.oci-fetch" class="refentry">
                    
15  <h1 class="refname">oci_fetch</h1>
                    
16  <p class="verinfo">(PHP 5, PECL OCI8 &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">oci_fetch</span> &mdash; <span class="dc-title">Fetches the next row into result-buffer</span></p>
                    
17
                    
30   <p class="para">
                    
31PHP 5.0.0 之前的版本必须使用  <span class="function"><a href="function.ocifetch.html" class="function">ocifetch()</a></span>
                    
32    替代本函数。该函数名仍然可用,为向下兼容作为
                    
77<div class="phpcode"><code><span style="color: #000000">
                    
78<span style="color: #0000BB">&lt;?php<br /><br />$conn&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">oci_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'hr'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'welcome'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'localhost/XE'</span><span style="color: #007700">);<br />if&nbsp;(!</span><span style="color: #0000BB">$conn</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$e&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">oci_error</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">trigger_error</span><span style="color: #007700">(</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">[</span><span style="color: #DD0000">'message'</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">E_USER_ERROR</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">$sql&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'SELECT&nbsp;location_id,&nbsp;city&nbsp;FROM&nbsp;locations&nbsp;WHERE&nbsp;location_id&nbsp;&lt;&nbsp;1200'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">oci_parse</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;The&nbsp;defines&nbsp;MUST&nbsp;be&nbsp;done&nbsp;before&nbsp;executing<br /></span><span style="color: #0000BB">oci_define_by_name</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'LOCATION_ID'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$locid</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">oci_define_by_name</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'CITY'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$city</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">oci_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Each&nbsp;fetch&nbsp;populates&nbsp;the&nbsp;previously&nbsp;defined&nbsp;variables&nbsp;with&nbsp;the&nbsp;next&nbsp;row's&nbsp;data<br /></span><span style="color: #007700">while&nbsp;(</span><span style="color: #0000BB">oci_fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Location&nbsp;id&nbsp;</span><span style="color: #0000BB">$locid</span><span style="color: #DD0000">&nbsp;is&nbsp;</span><span style="color: #0000BB">$city</span><span style="color: #DD0000">&lt;br&gt;\n"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;Displays:<br />//&nbsp;&nbsp;&nbsp;Location&nbsp;id&nbsp;1000&nbsp;is&nbsp;Roma<br />//&nbsp;&nbsp;&nbsp;Location&nbsp;id&nbsp;1100&nbsp;is&nbsp;Venice<br /><br /></span><span style="color: #0000BB">oci_free_statement</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">oci_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
                    
79</span>
                    
89<div class="phpcode"><code><span style="color: #000000">
                    
90<span style="color: #0000BB">&lt;?php<br /><br />$conn&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">oci_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'hr'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'welcome'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'localhost/XE'</span><span style="color: #007700">);<br />if&nbsp;(!</span><span style="color: #0000BB">$conn</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$e&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">oci_error</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">trigger_error</span><span style="color: #007700">(</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">[</span><span style="color: #DD0000">'message'</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">E_USER_ERROR</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">$sql&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'SELECT&nbsp;location_id,&nbsp;city&nbsp;FROM&nbsp;locations&nbsp;WHERE&nbsp;location_id&nbsp;&lt;&nbsp;1200'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">oci_parse</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">oci_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">);<br /><br />while&nbsp;(</span><span style="color: #0000BB">oci_fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">oci_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'LOCATION_ID'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&nbsp;is&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">oci_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'CITY'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;br&gt;\n"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;Displays:<br />//&nbsp;&nbsp;&nbsp;1000&nbsp;is&nbsp;Roma<br />//&nbsp;&nbsp;&nbsp;1100&nbsp;is&nbsp;Venice<br /><br /></span><span style="color: #0000BB">oci_free_statement</span><span style="color: #007700">(</span><span style="color: #0000BB">$stid</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">oci_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
                    
91</span>
                    
                
Error.php https://bitbucket.org/vaneves/repono.git | PHP | 220 lines
                    
1<?php
                    
2/*
                    
16	/**
                    
17	 * Método que é executado quando ocorre algum erro no PHP
                    
18	 * @param	int		$type		tipo do erro, que pode ser E_STRICT
                    
65	/**
                    
66	 * Método executado quando ocorre algum erro fatal no PHP, esse método é chamado 
                    
67	 * antes que o PHP pare a execução da página
                    
97		if (Debug::enabled())
                    
98			return require_once root . 'core/error/debug.php';
                    
99
                    
100		$files = array();
                    
101		$files[0] = root . 'app/views/_error/' . $number . '.php';
                    
102		$files[1] = root . 'core/error/default.php';
                    
202			if($i == $line)
                    
203				$output .= '<span class="line line-error"><span class="line-n">'. $i .'</span>' . htmlentities($l) . '</span>';
                    
204			else
                    
                
listServers.php https://gitlab.com/florianocomercial/centreon | PHP | 283 lines
                    
1<?php
                    
2/*
                    
39
                    
40include("./include/common/autoNumLimit.php");
                    
41
                    
51  $search = $_POST['searchP'];
                    
52  $LCASearch = " name LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%'";
                    
53}
                    
129
                    
130include("./include/common/checkPagination.php");
                    
131
                    
146	if ($config["ns_activate"]) {
                    
147		$moptions .= "<a href='main.php?p=".$p."&server_id=".$config['id']."&o=u&limit=".$limit."&num=".$num."&search=".$search."'><img src='img/icons/disabled.png' class='ico-14 margin_right' border='0' alt='"._("Disabled")."'></a>";
                    
148	} else {
                    
148	} else {
                    
149		$moptions .= "<a href='main.php?p=".$p."&server_id=".$config['id']."&o=s&limit=".$limit."&num=".$num."&search=".$search."'><img src='img/icons/enabled.png' class='ico-14 margin_right' border='0' alt='"._("Enabled")."'></a>";
                    
150	}
                    
                
Address.php https://github.com/Dimyan/muhovyaz_ps.git | PHP | 329 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
23*  @version  Release: $Revision: 6594 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
213
                    
214	public function validateController($htmlentities = true)
                    
215	{
                    
215	{
                    
216		$errors = parent::validateController($htmlentities);
                    
217		if (!Configuration::get('VATNUMBER_CHECKING'))
                    
218			return $errors;
                    
219		include_once(_PS_MODULE_DIR_.'vatnumber/vatnumber.php');
                    
220		if (class_exists('VatNumber', false))
                    
                
 

Source

Language