100+ results for 'php htmlentities'

Not the results you expected?

Sitemaps.php (https://github.com/chamnan/ionize.git) PHP · 247 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2

3 /**

58 foreach($this->items as $item)

59 {

60 $item['loc'] = htmlentities($item['loc'], ENT_QUOTES);

61 $map .= "\t<url>\n\t\t<loc>" . $item['loc'] . "</loc>\n";

62

132 foreach($urls as $url)

133 {

134 $url['loc'] = htmlentities($url['loc'], ENT_QUOTES);

135 $index .= "\t<sitemap>\n\t\t<loc>" . $url['loc'] . "</loc>\n";

136

HtmlBuilder.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 414 lines

1 <?php namespace Illuminate\Html;

2

3 use Illuminate\Routing\UrlGenerator;

50 public function entities($value)

51 {

52 return htmlentities($value, ENT_QUOTES, 'UTF-8', false);

53 }

54

76 $attributes['src'] = $this->url->asset($url, $secure);

77

78 return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL;

79 }

80

95 $attributes['href'] = $this->url->asset($url, $secure);

96

97 return '<link'.$this->attributes($attributes).'>'.PHP_EOL;

98 }

99

HtmlBuilder.php (https://gitlab.com/techniconline/kmc) PHP · 430 lines

1 <?php namespace Collective\Html;

2

3 use Illuminate\Routing\UrlGenerator;

35 public function entities($value)

36 {

37 return htmlentities($value, ENT_QUOTES, 'UTF-8', false);

38 }

39

61 $attributes['src'] = $this->url->asset($url, $secure);

62

63 return '<script' . $this->attributes($attributes) . '></script>' . PHP_EOL;

64 }

65

80 $attributes['href'] = $this->url->asset($url, $secure);

81

82 return '<link' . $this->attributes($attributes) . '>' . PHP_EOL;

83 }

84

Couch.php (https://bitbucket.org/luismayta/zrt.git) PHP · 505 lines

1 <?php

2

3

80 {

81 throw new Zrt_Exception( sprintf( 'Invalid database specified: "%s"' ,

82 htmlentities( $db ) ) );

83 }

84 $this->_config['db'] = $db;

QI18n.class.php (https://github.com/quinta/qcodo.git) PHP · 288 lines

1 <?php

2 class QPoParserException extends QCallerException {}

3

279 $strToReturn = '';

280 foreach ($this->strTranslationArray as $strKey=>$strValue) {

281 $strKey = str_replace("\n", '\\n', addslashes(QApplication::HtmlEntities($strKey)));

282 $strValue = str_replace("\n", '\\n', addslashes(QApplication::HtmlEntities($strValue)));

FactoryTest.php (https://github.com/shevron/zf2.git) PHP · 351 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

11 namespace ZendTest\InputFilter;

12

13 use PHPUnit_Framework_TestCase as TestCase;

14 use Zend\Filter;

15 use Zend\InputFilter\Factory;

110 {

111 $factory = new Factory();

112 $htmlEntities = new Filter\HtmlEntities();

113 $input = $factory->createInput(array(

114 'name' => 'foo',

117 'name' => 'string_trim',

118 ),

119 $htmlEntities,

120 array(

121 'name' => 'string_to_lower',

FactoryTest.php (https://github.com/necrogami/zf2.git) PHP · 346 lines

1 <?php

2 /**

3 * Zend Framework

22 namespace ZendTest\InputFilter;

23

24 use PHPUnit_Framework_TestCase as TestCase;

25 use Zend\Filter;

26 use Zend\InputFilter\Factory;

121 {

122 $factory = new Factory();

123 $htmlEntities = new Filter\HtmlEntities();

124 $input = $factory->createInput(array(

125 'name' => 'foo',

128 'name' => 'string_trim',

129 ),

130 $htmlEntities,

131 array(

132 'name' => 'string_to_lower',

JLayoutBaseTest.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 216 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

11 * Test class for JLayoutBase.

12 */

13 class JLayoutBaseTest extends PHPUnit_Framework_TestCase

14 {

15 /**

143 * @since 3.3.7

144 */

145 public function testEscapingSpecialCharactersIntoHtmlEntities()

146 {

147 $this->assertThat(

classXmlForm_Field_TextPMTest.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 210 lines

1 <?php

2 $unitFilename = $_SERVER['PWD'] . '/test/bootstrap/unit.php' ;

3 require_once( $unitFilename );

4

5 require_once( PATH_THIRDPARTY . '/lime/lime.php');

6 require_once( PATH_THIRDPARTY.'lime/yaml.class.php');

10 G::LoadSystem ( 'xmlDocument');

11 G::LoadSystem ( 'form');

12 require_once( 'propel/Propel.php' );

13 require_once ( "creole/Creole.php" );

14 require_once ( PATH_CORE . "config/databases.php");

15

16 G::LoadClass ( 'xmlfield_InputPM');

113 //checking method 'htmlentities'

114 $t->is ( $aMethods[8], 'htmlentities', 'htmlentities() is callable' );

115

116 //$result = $obj->htmlentities ( $value, $flags, $encoding);

category_widget.php (https://github.com/Matmon/WP-e-Commerce.git) PHP · 180 lines

140

141 <p>

142 <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('grid'); ?>" name="<?php echo $this->get_field_name('grid'); ?>"<?php checked( $grid ); ?> />

143 <label for="<?php echo $this->get_field_id('grid'); ?>"><?php _e('Use Category Grid View', 'wpsc'); ?></label><br />

149 <p>

150

151 <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('show_name'); ?>" name="<?php echo $this->get_field_name('show_name'); ?>"<?php checked( $show_name ); ?> /><label for="<?php echo $this->get_field_id('show_name'); ?>"><?php _e(' Show N/A when No Image Available', 'wpsc'); ?></label>

152 </p>

153 <p>

156 <label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:', 'wpsc'); ?></label>

157 <input type="text" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" value="<?php echo $height ; ?>" size="3" />

158 </p>

159 </div>

174 $checked = ''; ?>

175

176 <input type="checkbox" class="checkbox" id="<?php echo $fieldconfig['id']; ?>-<?php echo $category->term_id; ?>" name="<?php echo $fieldconfig['name']; ?>[<?php echo $category->term_id; ?>]" <?php echo $checked; ?>></input> <label for="<?php echo $fieldconfig['id']; ?>-<?php echo $category->term_id; ?>"><?php echo htmlentities($category->name, ENT_QUOTES, 'UTF-8' ); ?></label><br />

177

178 <?php

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/

6 Manual: http://scripts.incutio.com/xmlrpc/manual.php

7 Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php

8 */

9

Error.php (https://bitbucket.org/vaneves/repono.git) PHP · 220 lines

1 <?php

2 /*

3 * Copyright (c) 2012, Valdirene da Cruz Neves Júnior <vaneves@vaneves.com>

15 {

16 /**

17 * Método que é executado quando ocorre algum erro no PHP

18 * @param int $type tipo do erro, que pode ser E_STRICT

19 * @param sintrg $message mensagem do erro

64

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

96 {

97 if (Debug::enabled())

98 return require_once root . 'core/error/debug.php';

99

100 $files = array();

view.php (https://github.com/md-tech/openemr.git) PHP · 745 lines

1 <!-- view.php -->

2 <?php

3 include_once("../../globals.php");

4 include_once("$srcdir/api.inc");

5 formHeader("Form: Forms3_Cardiology");

7

8 function chkdata_Txt(&$obj, $var) {

9 return htmlentities($obj{"$var"});

10 }

11 function chkdata_Date(&$obj, $var) {

726 <table>

727

728 <tr><td class='text' > <?php xl("Examination",'e') ?> </td> <td class='text' ><textarea name="examination" rows="4" cols="40"><?php $result = chkdata_Txt($obj,"examination"); echo $result;?></textarea></td></tr>

729

730 </table>

Endpoint.php (https://bitbucket.org/paulkish/no-cms.git) PHP · 217 lines

1 <?php

2 /*!

3 * HybridAuth

27 if ( is_null(Hybrid_Endpoint::$request) ){

28 // Fix a strange behavior when some provider call back ha endpoint

29 // with /index.php?hauth.done={provider}?{args}...

30 // >here we need to recreate the $_REQUEST

31 if ( strrpos( $_SERVER["QUERY_STRING"], '?' ) ) {

100 (

101 "{X_XRDS_LOCATION}",

102 htmlentities( Hybrid_Auth::getCurrentUrl( false ), ENT_QUOTES, 'UTF-8' ) . "?get=openid_xrds&v=" . Hybrid_Auth::$version,

103 file_get_contents( dirname(__FILE__) . "/resources/openid_realm.html" )

104 );

124 }

125

126 # define:hybrid.endpoint.php step 2.

127 $hauth = Hybrid_Auth::setup( $provider_id );

128

SpecialNovaVolume.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 524 lines

1 <?php

2 class SpecialNovaVolume extends SpecialNova {

3

343 $volumeOut = Html::element( 'td', array(), $volume->getVolumeName() );

344 $volumeId = $volume->getVolumeId();

345 $volumeId = htmlentities( $volumeId );

346 $title = Title::newFromText( $volumeId, NS_NOVA_RESOURCE );

347 $volumeIdLink = $sk->link( $title, $volumeId );

SpecialNovaAddress.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 670 lines

1 <?php

2 class SpecialNovaAddress extends SpecialNova {

3

399 $link = $sk->link( $this->getTitle(), $msg, array(),

400 array( 'action' => 'removehost', 'ip' => $ip, 'project' => $project, 'domain' => $domain->getDomainName(), 'hostname' => $hostname ) );

401 $hostOut = htmlentities( $fqdn ) . ' ' . $link;

402 $hostsOut .= Html::rawElement( 'li', array(), $hostOut );

403 }

usermanager_user.php (https://github.com/be3/ionize.git) PHP · 333 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Usermanager_User {

83 public function upload_pictures($id)

84 {

85 include APPPATH . '../modules/Usermanager/config/config.php';

86 $ci = &get_instance();

87 if (!isset($ci->usermanager_picture))

150 public function get_field($tag)

151 {

152 include APPPATH . '../modules/Usermanager/config/config.php';

153 $ci = &get_instance();

154 $user = $this->get_current_user(isset($tag->attr['id_user']) ? $tag->attr['id_user'] : false);

179 // If only the post data is requested

180 if (!isset($tag->attr['is_like']))

181 return (!isset($tag->attr['html_encode']) || $tag->attr['html_encode'] == "1") ? htmlentities(utf8_decode($ret)) : $ret;

182

183 // If the post data is compared to is_like

Cache.php (https://github.com/matto1990/PHP-Last.fm-API.git) PHP · 252 lines

1 <?php

2

3 namespace LastFmApi\Lib;

74 if ($this->enabled == true) {

75 if ($this->type == 'sqlite') {

76 $this->db = new Sqlite($this->config['path'] . '/phplastfmapi.sqlite3');

77 } else {

78 if (isset($this->config['database']['host']) && isset($this->config['database']['username']) && isset($this->config['database']['password']) && isset($this->config['database']['name'])) {

164 {

165 if ($this->enabled == true) {

166 $query = "SELECT expires, body FROM cache WHERE unique_vars='" . htmlentities(serialize($unique_vars), ENT_QUOTES, 'UTF-8') . "' LIMIT 1";

167 if ($result = $this->db->query($query)) {

168 if ($result->size() > 0) {

198 if ($this->enabled == true) {

199 $expire = time() + $this->config['cache_length'];

200 $query = "INSERT INTO cache (unique_vars, expires, body) VALUES ('" . htmlentities(serialize($unique_vars), ENT_QUOTES, 'UTF-8') . "', '" . $expire . "', \"" . htmlentities(serialize($body), ENT_QUOTES, 'UTF-8') . "\")";

201 if ($this->db->query($query)) {

202 return true;

text.php (https://github.com/jasonweng/forkcms.git) PHP · 755 lines

1 <?php

2

3 /**

86 {

87 // set value

88 $value = (SPOON_CHARSET == 'utf-8') ? SpoonFilter::htmlspecialchars($value) : SpoonFilter::htmlentities($value);

89 }

90

105

106 // html allowed?

107 if(!$allowHTML) $value = (SPOON_CHARSET == 'utf-8') ? SpoonFilter::htmlspecialchars($value) : SpoonFilter::htmlentities($value);

108 }

109 }

edit_profile.tmpl.php (https://github.com/harriswong/ATutor.git) PHP · 166 lines

31 foreach ($this->education as $id=>$row): ?>

32 <div class="profile_container">

33 <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=education'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a> <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=education'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>

34 <div><?php echo _AT('university') . ': ' . htmlentities_utf8($row['university']); ?></div>

77 <?php if (!empty($this->profile['associations'])): ?>

78 <div class="profile_container">

79 <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=associations'.SEP.'id='.$_SESSION['member_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a> <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=associations'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>

80 <div><?php echo htmlentities_utf8($this->profile['associations']); ?></div>

89 <?php if (!empty($this->profile['awards'])): ?>

90 <div class="profile_container">

91 <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=awards'.SEP.'id='.$_SESSION['member_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a> <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=awards'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>

92 <div><?php echo htmlentities_utf8($this->profile['awards']); ?></div>

125 <?php foreach($this->contact as $row=>$value){ ?>

126

127 <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=contact'.SEP.'id='.$value['contact_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a> <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=contact'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>

128

129 <dl class="public-profile">

PagstractList.php (https://gitlab.com/php.bjoernbartels.earth/phpagstract) PHP · 280 lines

1 <?php

2 /**

3 * PHPagstract list token symbol class

4 */

5 namespace PHPagstract\Symbol\Symbols\Tokens;

6

7 use PHPagstract\Symbol\Symbols\AbstractTokenSymbol;

8 use PHPagstract\Token\Tokens\Token;

9 use PHPagstract\Symbol\Symbols\Properties\ListProperty;

10

11 /**

12 * PHPagstract list token symbol class

13 *

14 * @package PHPagstract

Excel.php (https://github.com/timstephenson/NatureBridge.git) PHP · 194 lines

1 <?php

2

3 /*

28

29

30 require_once 'CRM/Utils/String.php';

31

32 class CRM_Core_Report_Excel {

34 * Code copied from phpMyAdmin (v2.6.1-pl3)

35 * File: PHPMYADMIN/libraries/export/csv.php

36 * Function: PMA_exportData

37 *

151 function writeHTMLFile ( $fileName, &$header, &$rows, $titleHeader = null, $outputHeader = true ) {

152 if ( $outputHeader ) {

153 require_once 'CRM/Utils/System.php';

154 CRM_Utils_System::download( CRM_Utils_String::munge( $fileName ),

155 'application/vnd.ms-excel',

classXmlForm_FieldTest.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 460 lines

3 require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';

4 require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';

5 require_once PATH_TRUNK . 'gulliver/system/class.form.php';

6 require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';

7 require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';

8 require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';

9 require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';

10 require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';

111

112 /**

113 * @covers XmlForm_Field::htmlentities

114 * @todo Implement testhtmlentities().

117 {

118 $methods = get_class_methods($this->object);

119 $this->assertTrue( in_array('htmlentities', $methods ), 'exists method htmlentities' );

120 $r = new ReflectionMethod('XmlForm_Field', 'htmlentities');

xhprof_runs.php (https://github.com/markn86/moodle.git) PHP · 164 lines

1 <?php

2 //

3 // Copyright (c) 2009 Facebook

124 public function save_run($xhprof_data, $type, $run_id = null) {

125

126 // Use PHP serialize function to store the XHProf's

127 // raw profiler data.

128 $xhprof_data = serialize($xhprof_data);

153 foreach ($files as $file) {

154 list($run,$source) = explode('.', basename($file));

155 echo '<li><a href="' . htmlentities($_SERVER['SCRIPT_NAME'])

156 . '?run=' . htmlentities($run) . '&source='

157 . htmlentities($source) . '">'

158 . htmlentities(basename($file)) . "</a><small> "

QDataGridColumn.class.php (https://github.com/quinta/qcodo.git) PHP · 414 lines

1 <?php

2 // This defines a specific column <td> for a DataGrid

3 // All the appearance properties should be self-explanatory.

8 // "Name" is the name of the column, as displayed in the DataGrid's header row for that column

9 // "Html" is the contents of the column itself -- the $this->strHtml contents can contain backticks ` to

10 // deliniate commands that are to be PHP evaled (again, see DataGrid.inc for more info)

11

12 class QDataGridColumn extends QBaseClass {

37 protected $strName;

38 protected $strHtml;

39 protected $blnHtmlEntities = true;

40

41 public function __construct($strName, $strHtml = null, $objOverrideParameters = null) {

180 case "Html": return $this->strHtml;

181 case "Name": return $this->strName;

182 case "HtmlEntities": return $this->blnHtmlEntities;

183

184 default:

FilterLoader.php (https://github.com/kiranatama/sagalaya.git) PHP · 153 lines

1 <?php

2 /**

3 * Zend Framework

79 'file_uppercase' => 'Zend\Filter\File\UpperCase',

80 'file_upper_case' => 'Zend\Filter\File\UpperCase',

81 'htmlentities' => 'Zend\Filter\HtmlEntities',

82 'html_entities' => 'Zend\Filter\HtmlEntities',

modifier.escape.php (https://gitlab.com/fiesta-framework/Documentation) PHP · 198 lines

1 <?php

2 /**

3 * Smarty plugin

18 * @param string $string input string

19 * @param string $esc_type escape type

20 * @param string $char_set character set, used for htmlspecialchars() or htmlentities()

21 * @param boolean $double_encode encode already encoded entitites again, used for htmlspecialchars() or htmlentities()

27 static $_double_encode = null;

28 if ($_double_encode === null) {

29 $_double_encode = version_compare(PHP_VERSION, '5.2.3', '>=');

30 }

31

37 case 'html':

38 if ($_double_encode) {

39 // php >=5.3.2 - go native

40 return htmlspecialchars($string, ENT_QUOTES, $char_set, $double_encode);

41 } else {

SpecialChemicalsources_body.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 234 lines

1 <?php

2 if ( ! defined( 'MEDIAWIKI' ) )

3 die();

184

185 foreach ( $transParams as $key => $value ) {

186 $transParams[$key] = wfUrlEncode( htmlentities( preg_replace( "/\<.*?\>/", "", $value ) ) );

187 }

188

SpecialNovaKey.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 272 lines

1 <?php

2 class SpecialNovaKey extends SpecialNova {

3

85 $keyInfo['project'] = array(

86 'type' => 'hidden',

87 'default' => htmlentities( $project ),

88 'name' => 'project',

89 );

default_params.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 341 lines

1 <?php

2 /**

3 * WPBakery Visual Composer shortcode default attributes functions for rendering.

220 . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textarea_raw_html '

221 . $settings['param_name'] . ' ' . $settings['type'] . '" rows="16">'

222 . htmlentities( rawurldecode( base64_decode( $value ) ), ENT_COMPAT, 'UTF-8' ) . '</textarea>';

223 }

224

backend_userinfo.php (https://gitlab.com/Toldierone/ReClop) PHP · 203 lines

1 <?php

2 include("allfunctions.php");

16 EOSQL;

17 $userinfo = onelinequery($sql);

18 $display['description'] = htmlentities($userinfo['description'], ENT_SUBSTITUTE, "UTF-8");

19 $display['email'] = htmlentities($userinfo['email'], ENT_SUBSTITUTE, "UTF-8");

20 $display['flag'] = htmlentities($userinfo['flag'], ENT_SUBSTITUTE, "UTF-8");

21

22 $funstatus = ($userinfo['funmode'] == 1) ? "checked" : "";

30 $GLOBALS['mysqli']->query($sql);

31 $infos[] = "Description changed.";

32 $display['description'] = htmlentities($_POST['description'], ENT_SUBSTITUTE, "UTF-8");

33 }

34 if ($_POST['action'] == "New Password") {

usermanager_user.php (https://github.com/chamnan/ionize.git) PHP · 351 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Usermanager_User {

83 public function upload_pictures($id)

84 {

85 include APPPATH . '../modules/Usermanager/config/config.php';

86 $ci = &get_instance();

87 if (!isset($ci->usermanager_picture))

150 public function get_field($tag)

151 {

152 include APPPATH . '../modules/Usermanager/config/config.php';

153 $ci = &get_instance();

154 $user = $this->get_current_user(isset($tag->attr['id_user']) ? $tag->attr['id_user'] : false);

180 if (!isset($tag->attr['is_like']))

181 return $ret;

182 // return (!isset($tag->attr['html_encode']) || $tag->attr['html_encode'] == "1") ? htmlentities(utf8_decode($ret)) : $ret;

183

184 // If the post data is compared to is_like

admin-tools.php (https://github.com/livinglab/openlab.git) PHP · 608 lines

55 <div class="wrap badgeos-tools-page">

56 <div id="icon-options-general" class="icon32"></div>

57 <h2><?php _e( 'Tools', 'badgeos' ); ?></h2>

58

59 <div class="nav-tab-wrapper">

62 foreach( $badgeos_tools_sections as $key => $badgeos_tools_section ) {

63 ?>

64 <a href="?page=badgeos_tools&tab=<?php echo $key; ?>" class="nav-tab <?php echo $this->page_tab == $key ? 'nav-tab-active' : ''; ?>">

65 <i class="fa <?php echo $badgeos_tools_section['icon']; ?>" aria-hidden="true"></i>

75 if( $this->page_tab == $key ) {

76 $key = str_replace( '_', '-', $key );

77 include( 'tools/' . $key . '.php' );

78 }

79 }

91 ?>

92 <div class="notice notice-success is-dismissible">

93 <p><?php _e( 'Settings Saved.', 'badgeos' ); ?></p>

94 </div>

95 <?php

view.php (https://bitbucket.org/DenizYldrm/openemr.git) PHP · 745 lines

1 <!-- view.php -->

2 <?php

3 include_once("../../globals.php");

4 include_once("$srcdir/api.inc");

5 formHeader("Form: Forms3_Cardiology");

28 <body <?php echo $top_bg_line;?> topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>

29 <form method=post action="<?php echo $rootdir?>/forms/Forms3_Cardiology/save.php?mode=update&id=<?php echo $_GET["id"];?>" name="my_form" onSubmit="return top.restoreSession()">

30 <h1> Forms3_Cardiology </h1>

31 <hr>

726 <table>

727

728 <tr><td class='text' > <?php xl("Examination",'e') ?> </td> <td class='text' ><textarea name="examination" rows="4" cols="40"><?php $result = chkdata_Txt($obj,"examination"); echo $result;?></textarea></td></tr>

729

730 </table>

quote.php (https://github.com/ecoeco/ecoeco.git) PHP · 304 lines

109 <?php (++ $i) ; ?>

110 <td><a href="index.php?id=<?php echo $quote_item['id_product'] = htmlentities($quote_item['id_product']) ; ?>"

111 style="font-size: 10pt; font-family: Arial, sans-serif; color: #666">

112 <img

113 title="<?php echo $quote_item['product_name'] = htmlentities ($quote_item['product_name']); ?>" alt="" src="<?php echo $quote_item['img'] ?>" border="0" />

114 </a>

115 </br>

116 <a href="index.php?id=<?php echo $quote_item['id_product'] = htmlentities($quote_item['id_product']) ; ?>"

117 style="font-size: 10pt; font-family: Arial, sans-serif; color: #666">

118 <?php echo $quote_item['product_name']; ?> </a>

133 <p><select size="1" name="item[<?php echo $quote_item['id_quote_item'] ; ?>]['color']">

134 <option selected style="font-size: 10pt; font-family: Arial, sans-serif; color: #666" value="<?php echo $quote_item['color']; ?>"><?php echo $quote_item['color']; ?></option>

135 <option selected value="Íåðæ. ìàò" >Íåðæ. ìàò</option>

136 </select></p>

order.tpl (https://github.com/elleeott/WPOC-boilerplate.git) Smarty Template · 118 lines

12 <tr>

13 <td align="left">

14 <a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $store_url; ?>image/email/confirm/logo.png" border="0" alt="<?php echo $store_name; ?>"></a>

15 <img src="<?php echo $store_url; ?>image/email/confirm/1x1.gif" height="20" width="680">

36 <tr>

37 <td style="border-right: 1px solid #DDDDDD;border-bottom: 1px solid #DDDDDD;padding:7px;font-size:12px;font-family:arial,helvetica,sans-serif;">

38 <b><?php echo $text_order_id; ?></b> <?php echo $order_id; ?><br>

39 <b><?php echo $text_date_added; ?></b> <?php echo $date_added; ?><br>

46 <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br>

47 <b><?php echo $text_ip; ?></b> <?php echo $ip; ?><br></td>

48 </tr>

49 </table>

74 <?php foreach ($products as $product) { ?>

75 <tr>

76 <td align="left" style="border-right: 1px solid #DDDDDD;border-bottom: 1px solid #DDDDDD;padding:7px;font-size:12px;font-family:arial,helvetica,sans-serif;"><?php echo str_replace("&amp;amp;", "&amp;", htmlentities($product['name'], ENT_QUOTES, "UTF-8")); ?>

77 <?php foreach ($product['option'] as $option) { ?>

classXmlForm_Field_ImageTest.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 209 lines

1 <?php

2 $unitFilename = $_SERVER['PWD'] . '/test/bootstrap/unit.php' ;

3 require_once( $unitFilename );

4

5 require_once( PATH_THIRDPARTY . '/lime/lime.php');

6 require_once( PATH_THIRDPARTY.'lime/yaml.class.php');

10 G::LoadSystem ( 'xmlDocument');

11 G::LoadSystem ( 'form');

12 require_once( 'propel/Propel.php' );

13 require_once ( "creole/Creole.php" );

14 require_once ( PATH_CORE . "config/databases.php");

15

16 G::LoadClass ( 'xmlfield_Image');

96 //checking method 'htmlentities'

97 $t->is ( $aMethods[6], 'htmlentities', 'htmlentities() is callable' );

98

99 //$result = $obj->htmlentities ( $value, $flags, $encoding);

registration.php (https://github.com/likexx/doremichina.git) PHP · 285 lines

1 <?php

2

3 require_once('dao.php');

41 $area = $_POST['area'];

42

43 $username = htmlentities(trim($username),ENT_QUOTES, "UTF-8");

44 $nickname = htmlentities(trim($nickname),ENT_QUOTES, "UTF-8");

111 $area = $_POST['area'];

112

113 $nickname = htmlentities(trim($nickname),ENT_QUOTES, "UTF-8");

114

115 $nickLen = strlen($nickname);

202 }

203

204 $realname = htmlentities(trim($realname),ENT_QUOTES, "UTF-8");

205 if(strlen($realname)>20) {

206 return self::ERROR_USERNAME_LENGTH;

invoice.php (https://gitlab.com/MichelZuniga/neoinvoice) PHP · 300 lines

1 <?php

2 class Invoice extends App_Controller {

3 function __construct() {

74 function send_submit($invoice_id) {

75 if ($this->security_model->own_invoice($invoice_id) && $this->perm_user->invoice->send && $this->invoice_model->select_email_remain_month($this->session->userdata('company_id'))) {

76 $message = htmlentities($this->input->post('content'));

77 $this->invoice_model->mail_invoice($invoice_id, $this->input->post('recipient'), nl2br($message), 'New Invoice', 'You have a new invoice due.', post_checkbox('copy_self'));

78

140 $this->load->model("segment_model");

141 $this->load->model("expense_model");

142 $invoice['name'] = htmlentities($this->input->post('name'));

143 $invoice['duedate'] = $this->input->post('duedate');

144 $invoice['client_id'] = (int) $this->input->post('client_id');

153 $invoice['itemize'] = post_checkbox('itemize');

154 $invoice['sent'] = post_checkbox('sent');

155 $invoice['content'] = htmlentities($this->input->post('content'));

156 $invoice['company_id'] = $this->session->userdata('company_id');

157 $segment_ids = $this->input->post('segments');

editvote.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 108 lines

1 <?php

2 /**

3 * @package JohnCMS

12 if ($rights == 3 || $rights >= 6) {

13 $topic_vote = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_vote` WHERE `website` = '$website' AND `type`='1' AND `topic`='$id'"), 0);

14 require('../incfiles/head.php');

15 if ($topic_vote == 0) {

16 echo functions::display_error($lng['error_wrong_data']);

17 require('../incfiles/end.php');

18 exit;

19 }

35 } else {

36 echo '<div class="rmenu"><p>' . $lng_forum['voting_variant_warning'] . '<br />' .

37 '<a href="index.php?act=editvote&amp;id=' . $id . '&amp;vote=' . $vote . '&amp;delvote&amp;yes">' . $lng['delete'] . '</a><br />' .

38 '<a href="' . htmlspecialchars(getenv("HTTP_REFERER")) . '">' . $lng['cancel'] . '</a></p></div>';

39 }

SelectField.php (https://github.com/livinglab/openlab.git) PHP · 129 lines

14 <label for="<?php echo esc_attr($this->fieldInputName); ?>[name]"><?php esc_html_e("Name", "wpdiscuz"); ?>:</label>

15 <input class="wpd-field-name" type="text" value="<?php echo esc_attr($this->fieldData["name"]); ?>" name="<?php echo esc_attr($this->fieldInputName); ?>[name]" id="<?php echo esc_attr($this->fieldInputName); ?>[name]" required />

16 <p class="wpd-info"><?php esc_html_e("Also used for field placeholder", "wpdiscuz"); ?></p>

30 <label for="<?php echo $this->fieldInputName; ?>[values]"><?php esc_html_e("Values", "wpdiscuz"); ?>:</label>

31 <textarea required name="<?php echo $this->fieldInputName; ?>[values]" id="<?php echo $this->fieldInputName; ?>[values]"><?php echo esc_html($values); ?></textarea>

32 <p class="wpd-info"><?php esc_html_e("New value new line", "wpdiscuz"); ?></p>

39 <label for="<?php echo esc_attr($this->fieldInputName); ?>[is_show_sform]"><?php esc_html_e("Display on reply form", "wpdiscuz"); ?>:</label>

40 <input type="checkbox" value="1" <?php checked($this->fieldData["is_show_sform"], 1, true); ?> name="<?php echo esc_attr($this->fieldInputName); ?>[is_show_sform]" id="<?php echo esc_attr($this->fieldInputName); ?>[is_show_sform]" />

41 </div>

42 <div class="wpd-field-option">

50 <label for="<?php echo esc_attr($this->fieldInputName); ?>[meta_key]"><?php esc_html_e("Meta Key", "wpdiscuz"); ?>:</label>

51 <input type="text" value="<?php echo $this->name; ?>" name="<?php echo esc_attr($this->fieldInputName); ?>[meta_key]" id="<?php echo esc_attr($this->fieldInputName); ?>[meta_key]" required="required"/>

52 </div>

53 <div class="wpd-field-option">

92 <div class="wpdiscuz-item wpd-field-group wpd-field-select <?php echo esc_attr($name) . "-wrapper" . ($hasDesc ? " wpd-has-desc" : ""); ?>">

93 <select <?php echo $required; ?> name="<?php echo esc_attr($name); ?>" class="<?php echo esc_attr($name); ?> wpd-field wpdiscuz_select">

94 <option value=""><?php echo htmlentities($args["name"]); ?></option>

SitemapHandler.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 143 lines

1 <?php

2

3 /**

4 * @file SitemapHandler.inc.php

5 *

6 * Copyright (c) 2003-2008 John Willinsky

131 $url =& XMLCustomWriter::createElement($doc, 'url');

132

133 XMLCustomWriter::createChildWithText($doc, $url, htmlentities('loc'), $loc, false);

134 XMLCustomWriter::createChildWithText($doc, $url, 'lastmod', $lastmod, false);

135 XMLCustomWriter::createChildWithText($doc, $url, 'changefreq', $changefreq, false);

Couch.php (https://github.com/abtris/phplogger-couchdb.git) PHP · 611 lines

1 <?php

2 require_once 'Zend/Json.php';

86 {

87 if (!preg_match('/^[a-z][a-z0-9_$()+-\/]+$/', $db)) {

88 require_once 'Phly/Couch/Exception.php';

89 throw new Phly_Couch_Exception(sprintf('Invalid database specified: "%s"', htmlentities($db)));

182 $client = self::getDefaultHttpClient();

183 if (null === $client) {

184 require_once 'Zend/Http/Client.php';

185 $client = new Zend_Http_Client;

186 }

214 $response = $this->_prepareAndSend('', 'GET');

215 if (!$response->isSuccessful()) {

216 require_once 'Phly/Couch/Exception.php';

217 throw new Phly_Couch_Exception(sprintf('Failed retrieving server information; received response code "%s"', (string) $response->getStatus()));

218 }

Template.php (https://github.com/stackboxcms/stackboxcms.git) PHP · 342 lines

1 <?php

2 namespace Module\Page;

3 use Alloy;

45 $content = $this->content();

46

47 // Ensure errors due to malformed HTML document will not throw PHP errors

48 libxml_use_internal_errors(true);

49

78 // Ensure there is only ONE main region

79 if(null !== $this->_regionMain) {

80 throw new Template\Exception("Template can only have one main region. Second one encountered at:<br />(" . \htmlentities($region->saveHTML()) . ")");

81 }

82 }

84 // Ensure region has a name (id attribute)

85 if(!$regionName) {

86 throw new Template\Exception("Template region does not have an id attribute.\n<br /> Parsing (" . \htmlentities($region->saveHTML()) . ")");

87 }

88

adapter.nextgen_addgallery_ajax.php (https://bitbucket.org/kenaku/karate.git) PHP · 175 lines

1 <?php

2

3 class A_NextGen_AddGallery_Ajax extends Mixin

103 $rel_file_path = str_replace($root, '', $file_path);

104 if(@file_exists($file_path) && $file != '.' && $file != '..' && is_dir($file_path) ) {

105 $html[] = "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . htmlentities($rel_file_path) . "/\">" . htmlentities($file) . "</a></li>";

106 }

107 }

Sources.php (https://github.com/SSilence/selfoss.git) PHP · 307 lines

1 <?php

2

3 namespace daos\mysql;

47 ':filter' => $filter,

48 ':spout' => $spout,

49 ':params' => htmlentities(json_encode($params)),

50 ]);

51 }

70 ':filter' => $filter,

71 ':spout' => $spout,

72 ':params' => htmlentities(json_encode($params)),

73 ':id' => $id,

74 ]);

297 ':title' => trim($title),

298 ':spout' => $spout,

299 ':params' => htmlentities(json_encode($params)),

300 ]);

301 if ($result) {

Compiler.php (https://github.com/noyse1987/nephrite.git) PHP · 166 lines

1 <?php

2

3 namespace lib;

86 protected function _buffer($str, $esc) {

87 if ( $esc ) {

88 $str = htmlentities($str, ENT_QUOTES);

89 }

90 $this->_buffer[$str];

cm_webservice_inbox.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 228 lines

1 <?php

2

3 require_once(dirname(__FILE__).'/../inc/global.inc.php');

4 $libpath = api_get_path(LIBRARY_PATH);

5 require_once $libpath.'message.lib.php';

6 require_once $libpath.'usermanager.lib.php';

7 require_once(dirname(__FILE__).'/cm_webservice.php');

8

9 /**

185 $user_sender_id = UserManager::get_user_id_from_username($username);

186

187 $subject = htmlentities($subject);

188 $content = htmlentities($content);

FilterLoader.php (https://github.com/leerbag/zf2.git) PHP · 153 lines

1 <?php

2 /**

3 * Zend Framework

79 'file_uppercase' => 'Zend\Filter\File\UpperCase',

80 'file_upper_case' => 'Zend\Filter\File\UpperCase',

81 'htmlentities' => 'Zend\Filter\HtmlEntities',

82 'html_entities' => 'Zend\Filter\HtmlEntities',

widget.php (https://gitlab.com/MichelZuniga/neoinvoice) PHP · 169 lines

1 <?php

2

3 class Widget extends Controller {

59 </form>

60

61 <?php

62 }

63

75 }

76 $ticket = $this->input->post('ticket');

77 $notes = htmlentities($this->input->post('notes'));

78 if (!$duration = $this->input->post('duration')) {

79 $this->_output_error("Missing Duration");

Standalone.php (https://github.com/su2921iw/ma3.git) PHP · 319 lines

1 <?php

2 /**

3 * Zend Framework

17 * @subpackage Helper

18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

19 * @version $Id: Standalone.php 16541 2009-07-07 06:59:03Z bkarwin $

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 */

22

23 /** Zend_View_Helper_Placeholder_Registry */

24 require_once 'Zend/View/Helper/Placeholder/Registry.php';

25

26 /** Zend_View_Helper_Abstract.php */

27 require_once 'Zend/View/Helper/Abstract.php';

28

29 /**

HtmlBuilder.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 407 lines

1 <?php namespace Illuminate\Html;

2

3 use Illuminate\Routing\UrlGenerator;

50 public function entities($value)

51 {

52 return htmlentities($value, ENT_QUOTES, 'UTF-8', false);

53 }

54

75 $attributes['src'] = $this->url->asset($url);

76

77 return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL;

78 }

79

93 $attributes['href'] = $this->url->asset($url);

94

95 return '<link'.$this->attributes($attributes).'>'.PHP_EOL;

96 }

97

Xml.php (https://github.com/robertleeplummerjr/bluebox.git) PHP · 151 lines

1 <?php

2 /*

3 * $Id: Xml.php 1080 2007-02-10 18:17:08Z jwage $

17 * This software consists of voluntary contributions made by many individuals

18 * and is licensed under the LGPL. For more information, see

19 * <http://www.phpdoctrine.org>.

20 */

21

25 * @package Doctrine

26 * @subpackage Parser

27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

28 * @link www.phpdoctrine.org

82 $xml->addChild($value, 'true');

83 } else {

84 $value = htmlentities($value);

85

86 $xml->addChild($key, $value);

view.php (https://github.com/andreskane/MitosEHR-Official.git) PHP · 745 lines

1 <!-- view.php -->

2 <?php

3 include_once("../../registry.php");

4 include_once("$srcdir/acl.inc.php");

5 formHeader("Form: Forms3_Cardiology");

6 $obj = formFetch("form_Forms3_Cardiology", $_GET["id"]); //#Use the formFetch function from acl.inc.php to get values for existing form.

7

8 function chkdata_Txt(&$obj, $var) {

9 return htmlentities($obj{"$var"});

10 }

11 function chkdata_Date(&$obj, $var) {

Provider_Model_OAuth1.php (https://gitlab.com/code26/selah) PHP · 180 lines

1 <?php

2 /**

3 * HybridAuth

16 *

17 * Hybrid_Provider_Model_OAuth1 use OAuth1Client v0.1 which can be found on

18 * Hybrid/thirdparty/OAuth/OAuth1Client.php

19 */

20 class Hybrid_Provider_Model_OAuth1 extends Hybrid_Provider_Model

71 // 2 - include OAuth lib and client

72 if ( ! class_exists('OAuthConsumer') ) {

73 require_once realpath( dirname( __FILE__ ) ) . "/thirdparty/OAuth/OAuth.php";

74 }

75

76 require_once realpath( dirname( __FILE__ ) ) . "/thirdparty/OAuth/OAuth1Client.php";

77

78 // 3.1 - setup access_token if any stored

filter.php (https://github.com/luthercollege/reason_package.git) PHP · 221 lines

1 <?php

2 /**

3 * A disco class for Reason admin filter forms

9 * Required Includes

10 */

11 include_once('reason_header.php');

12 reason_include_once( 'classes/entity.php' );

13 reason_include_once( 'classes/admin/admin_page.php' );

14 include_once( DISCO_INC . 'disco.php' );

210 $array[ 'state' ] = $this->page->request[ 'state' ];

211

212 $link = unhtmlentities( $this->page->make_link( $array ) );

213 }

214 else

param_group.php (https://gitlab.com/darmawan.fatria/df-skp-2014) PHP · 217 lines

1 <?php

2

3 require_once vc_path_dir( 'EDITORS_DIR', 'class-vc-edit-form-fields.php' );

95

96 $settings = $this->settings;

97 $output .= '<ul class="vc_param_group-list" data-settings="' . htmlentities( json_encode( $settings ), ENT_QUOTES, "utf-8" ) . '">';

98

99 $template = vc_include_template( 'params/param_group/content.tpl.php' );

130 $output .= '<li class="wpb_column_container vc_container_for_children vc_param_group-add_content vc_empty-container"></li></ul>';

131

132 $add_template = vc_include_template( 'params/param_group/add.tpl.php' );

133 $add_template = str_replace( '%add_content%', $content, $add_template );

134

189 $edit_form->loadDefaultParams();

190

191 $template = vc_include_template( 'params/param_group/content.tpl.php' );

192 $output .= $template;

193 $value_block = "<div class='vc_param_group-wrapper vc_clearfix'>";

collection.class.php (https://github.com/fatjonakroni/pmb-albania.git) PHP · 161 lines

1 <?php

2 // +-------------------------------------------------+

3 // © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)

4 // +-------------------------------------------------+

5 // $Id: collection.class.php,v 1.9 2010-11-02 16:20:29 ngantier Exp $

6

7 // définition de la classe de gestion des collections

8 // inclure :

9 // classes/publisher.class.php

10

11 if ( ! defined( 'COLLECTION_CLASS' ) ) {

87 $this->comment= $obj->collection_comment;

88 if($obj->collection_web)

89 $this->collection_web_link = " <a href='$obj->collection_web' target=_blank title='".htmlentities($obj->collection_web,ENT_QUOTES,$charset)."' alt='".htmlentities($obj->collection_web,ENT_QUOTES,$charset)."' ><img src='./images/globe.gif' border=0 /></a>";

90 else

91 $this->collection_web_link = "" ;

view.php (https://github.com/pjpradeep/openemr.git) PHP · 745 lines

1 <!-- view.php -->

2 <?php

3 include_once("../../globals.php");

4 include_once("$srcdir/api.inc");

5 formHeader("Form: Forms3_Cardiology");

7

8 function chkdata_Txt(&$obj, $var) {

9 return htmlentities($obj{"$var"});

10 }

11 function chkdata_Date(&$obj, $var) {

12 return htmlentities($obj{"$var"});

13 }

14 function chkdata_CB(&$obj, $nam, $var) {

PaymentMethodController.class.php (https://github.com/quinta/quintacms.git) PHP · 219 lines

1 <?php

2 if(!defined('QUINTACMS') ) die("No quinta.");

3

4 if (!defined("PAYMENTMETHODCONTROLLER.CLASS.PHP")){

5 define("PAYMENTMETHODCONTROLLER.CLASS.PHP",1);

86 throw $objExc;

87 }

88 $this->strTemplate = __QUINTA_CORE_VIEWS__ . '/PaymentMethodView.tpl.php';

89

90 $this->ctlRadioButton = new QRadioButton($this);

104 $this->lblDescription = new QLabel($this);

105 $this->lblDescription->CssClass = 'MethodDescription';

106 $this->lblDescription->HtmlEntities = false;

107 $this->lblDescription->Text = $objPaymentMethod->Description;

108 }

smarty_internal_smartytemplatecompiler.php (https://gitlab.com/webbroteam/satisfaction-mvc) PHP · 170 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Smarty Template Compiler Base

86 {

87 /* here is where the compiling takes place. Smarty

88 tags in the templates are replaces with PHP code,

89 then written to compiled files. */

90 // init the lexer/parser to compile the template

93 $this);

94 if ($isTemplateSource && $this->template->caching) {

95 $this->parser->insertPhpCode("<?php\n\$_smarty_tpl->compiled->nocache_hash = '{$this->nocache_hash}';\n?>\n");

96 }

97 if (function_exists('mb_internal_encoding') && ((int) ini_get('mbstring.func_overload')) & 2) {

110 if ($this->smarty->_parserdebug) {

111 echo "<pre>Line {$this->parser->lex->line} Parsing {$this->parser->yyTokenName[$this->parser->lex->token]} Token " .

112 htmlentities($this->parser->lex->value) . "</pre>";

113 }

114 $this->parser->doParse($this->parser->lex->token, $this->parser->lex->value);

Help.php (https://github.com/durand54/sitellite.git) PHP · 216 lines

1 <?php

2

3 function help_get_id ($file) {

79 $open = false;

80 foreach ($res as $piece) {

81 //echo '--' . htmlentities ($piece) . '--' . BR;

82 if ($open && $piece == '"') {

83 $open = false;

184 // look for docs/en directory

185 if (@is_dir ('inc/app/' . $file . '/docs/en')) {

186 if (! @file_exists ('inc/app/' . $file . '/conf/config.ini.php')) {

187 $name = ucfirst ($file);

188 } else {

189 $data = parse_ini_file ('inc/app/' . $file . '/conf/config.ini.php');

190 $name = $data['app_name'];

191 if (empty ($name)) {

QListItemStyle.class.php (https://github.com/quinta/qcodo.git) PHP · 350 lines

1 <?php

2 /* Qcodo Development Framework for PHP

24 // All the appearance properties should be self-explanatory.

25

26 // For more information about ListItem appearance, please see QListItem.class.php

27

28 class QListItemStyle extends QBaseClass {

139 $strToReturn .= sprintf('style="%s" ', $strStyle);

140 if ($this->strToolTip)

141 $strToReturn .= sprintf('title="%s" ', QApplication::HtmlEntities($this->strToolTip));

142 if ($this->strAltText)

143 $strToReturn .= sprintf('alt="%s" ', QApplication::HtmlEntities($this->strAltText));

150

151 if ($this->strToolTip)

152 $strToReturn .= sprintf('title="%s" ', QApplication::HtmlEntities($this->strToolTip));

153 if ($this->strAltText)

154 $strToReturn .= sprintf('alt="%s" ', QApplication::HtmlEntities($this->strAltText));

default.php (https://github.com/joomla/joomla-cms.git) PHP · 106 lines

43 <?php foreach ($child->getChildren() as $item) : ?>

44 <?php $params = $item->getParams(); ?>

45 <?php // Only if Menu-show = true ?>

48 <?php $class = $params->get('menu-quicktask') ? '' : 'class="flex-grow-1"'; ?>

49 <a <?php echo $class; ?> href="<?php echo $item->link; ?>"

50 <?php echo $item->target === '_blank' ? ' title="' . Text::sprintf('JBROWSERTARGET_NEW_TITLE', Text::_($item->title)) . '"' : ''; ?>

65 <?php endif; ?>

66 </a>

67 <?php echo $item->iconImage; ?>

68 <?php if ($params->get('menu-quicktask')) : ?>

85 <a href="<?php echo $link; ?>">

86 <span class="icon-<?php echo $icon; ?>" title="<?php echo htmlentities($title); ?>" aria-hidden="true"></span>

87 <span class="visually-hidden"><?php echo htmlentities($sronly); ?></span>

94 <a href="<?php echo Route::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $item->dashboard); ?>">

95 <span class="icon-th-large" title="<?php echo htmlentities(Text::sprintf('MOD_MENU_DASHBOARD_LINK', Text::_($child->title))); ?>"></span>

96 </a>

97 </span>

devices.php (https://github.com/shifftynet/OpenVBX.git) PHP · 134 lines

9

10

11 <div class="devices-blank <?php if(!empty($devices)): ?>hide<?php endif; ?>">

12 <h2>Hey, you don't have any phones setup!</h2>

13 <p>If you add devices, like your cell phone or landline, people can reach you on the phone.</p>

24 <h3>Devices</h3>

25 <p>Ex: your cell phone, your home phone, your office phone, etc.</p>

26 <ol class="device-list <?php if(empty($devices)): ?>hide<?php endif; ?>">

27 <?php foreach($devices as $device): ?>

31 <label class="field-label-inline left">

32 <div class="device-type phone-type"><span class="replace">Phone</span></div>

33 <p class="device-name"><?php echo htmlentities($device->name); ?></p>

34 </label>

35

80 </ol>

81

82 <div class="no-devices <?php if(!empty($devices)): ?>hide<?php endif; ?>">

83 <p>No devices setup.</p>

84 </div><!-- .no-devices -->

FilterPluginManager.php (https://github.com/tmccormi/openemr.git) PHP · 369 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

107 'fileUpperCase' => File\UpperCase::class,

108 'FileUpperCase' => File\UpperCase::class,

109 'htmlentities' => HtmlEntities::class,

110 'htmlEntities' => HtmlEntities::class,

111 'HtmlEntities' => HtmlEntities::class,

112 'inflector' => Inflector::class,

113 'Inflector' => Inflector::class,

224 File\RenameUpload::class => InvokableFactory::class,

225 File\UpperCase::class => InvokableFactory::class,

226 HtmlEntities::class => InvokableFactory::class,

227 Inflector::class => InvokableFactory::class,

228 ToInt::class => InvokableFactory::class,

HtmlEntities.php (https://github.com/massiveart/ZF-ZOOLU.git) PHP · 200 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: HtmlEntities.php 20104 2010-01-06 21:26:01Z matthew $

20 */

21

23 * @see Zend_Filter_Interface

24 */

25 require_once 'Zend/Filter/Interface.php';

26

27 /**

31 * @license http://framework.zend.com/license/new-bsd New BSD License

32 */

33 class Zend_Filter_HtmlEntities implements Zend_Filter_Interface

34 {

35 /**

HtmlEntities.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 216 lines

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: HtmlEntities.php 24011 2011-05-04 18:56:38Z matthew $

20 */

21

132 *

133 * @param string $value

134 * @return Zend_Filter_HtmlEntities

135 */

136 public function setEncoding($value)

179 *

180 * @param boolean $doubleQuote

181 * @return Zend_Filter_HtmlEntities Provides a fluent interface

182 */

183 public function setDoubleQuote($doubleQuote)

wikiplugin_dbreport.php (https://gitlab.com/ElvisAns/tiki) PHP · 1412 lines

1 <?php

2

3 // (c) Copyright by authors of the Tiki Wiki CMS Groupware Project

76 return (string) ($wikiplugin_dbreport_record[$this->index]);

77 } elseif (isset($this->variable)) {

78 // PHP variable

79 if (isset($GLOBALS[$this->variable])) {

80 return (string) $GLOBALS[$this->variable];

98 public function html()

99 {

100 return htmlentities($this->text());

101 }

102 public function uri()

123 public function html()

124 {

125 return htmlentities($this->text());

126 }

127 public function uri()

FilterPluginManager.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 118 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

53 'filerenameupload' => 'Zend\Filter\File\RenameUpload',

54 'fileuppercase' => 'Zend\Filter\File\UpperCase',

55 'htmlentities' => 'Zend\Filter\HtmlEntities',

56 'inflector' => 'Zend\Filter\Inflector',

57 'int' => 'Zend\Filter\Int',

edit-profile.php (https://gitlab.com/endomorphosis/reservationtelco) PHP · 193 lines

1 <?php

2 $any_bad_inputs = false;

3 $changes_saved = false;

76 ?>

77 <div class="wrap" style=''>

78 <?php

79 echo " <div class='user-profile-links'><a href='".get_option('user_account_url')."'>Purchase History</a> | <a href='".get_option('user_account_url').$seperator."edit_profile=true'>Your Details</a> | <a href='".get_option('user_account_url').$seperator."downloads=true'>Your Downloads</a></div><br />";

80 ?>

81 <form method='post' action=''>

82 <?php

83 if($changes_saved == true) {

84 echo __('Thanks, your changes have been saved.', 'wpsc');

88 ?>

89 <table>

90 <?php

91 // arr, this here be where the data will be saved

92 $meta_data = null;

TicketMessage.php (https://github.com/keenox/Sardinia.git) PHP · 117 lines

1 <?php

2

3 /**

40 {

41 if ($this->isNewRecord)

42 $this->message = nl2br(htmlentities($this->message));

43 return parent::save();

44 }

get.php (https://github.com/imeyer/pgBoard.git) PHP · 266 lines

1 <?php

2 function main_get() { list_get(); }

3

99 if(!id()) return;

100 $body = $DB->value("SELECT body FROM thread_post WHERE id=$1",array(id()));

101 print htmlentities($body);

102 }

103

CheckOutReviewModule.class.php (https://github.com/quinta/quintacms.git) PHP · 239 lines

1 <?php

2 if(!defined('QUINTACMS') ) die("No quinta.");

3

4 if (!defined("CHECKOUTREVIEWMODULE.CLASS.PHP")){

5 define("CHECKOUTREVIEWMODULE.CLASS.PHP",1);

73

74 $this->AutoRenderChildren = true;

75 $this->strTemplate = __QUINTA_CORE_VIEWS__ . '/CheckOutReviewModule.tpl.php';

76 $this->init();

77 }

148

149 $this->pnlPaymentMethod = new QPanel($this);

150 $this->pnlPaymentMethod->HtmlEntities = false;

151 $this->pnlPaymentMethod->CssClass = 'PaymentMethodReview';

152 $this->pnlPaymentMethod->AutoRenderChildren = true;

centreonSession.class.php (https://gitlab.com/florianocomercial/centreon) PHP · 105 lines

1 <?php

2 /*

3 * Copyright 2005-2015 Centreon

79

80 function checkSession($session_id, $pearDB) {

81 $DBRESULT = $pearDB->query("SELECT id, user_id FROM session WHERE `session_id` LIKE '".htmlentities(trim($session_id), ENT_QUOTES, "UTF-8")."'");

82 $i = 0;

83 while ($a = $DBRESULT->fetchRow()) {

94 public static function getUser($sessionId, $pearDB)

95 {

96 $DBRESULT = $pearDB->query("SELECT user_id FROM session WHERE `session_id` LIKE '".htmlentities(trim($sessionId), ENT_QUOTES, "UTF-8")."'");

97 $row = $DBRESULT->fetchRow();

98 if (!$row) {

example.php (https://github.com/prometheus-ev/promdilps.git) PHP · 228 lines

1 <?PHP

2 /**

3 * several examples for the methods of XML_Util

4 *

5 * $Id: example.php,v 1.1.1.1 2006/01/11 01:40:06 sdoeweling Exp $

6 *

7 * @author Stephan Schmidt

12 error_reporting(E_ALL);

13

14 require_once 'XML/Util.php';

15

16 /**

47

48 print "building DocType declaration with public ID (does not exist):<br>\n";

49 print htmlspecialchars(XML_Util::getDocTypeDeclaration('package', array('uri' => 'http://pear.php.net/dtd/package-1.0', 'id' => '-//PHP//PEAR/DTD PACKAGE 0.1')));

50 print "\n<br><br>\n";

51

browse.tmpl.php (https://github.com/harriswong/ATutor.git) PHP · 163 lines

66 <ul class="fl-list-menu fl-list-thumbnails">

67 <li>

68 <h3 class="browse-courses"><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3>

69

70 <?php if ($row['description']): ?>

71 <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>"><?php echo substr(nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')),0,150);

72 if(strlen($row['description']) > 150){

73 echo "...";

141 <ul class="fl-list-menu fl-list-thumbnails">

142 <li>

143 <h3 class="browse-courses"><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3>

144

145 <?php if ($row['description']): ?>

146 <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>"><?php echo substr(nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')),0,150);

147 if(strlen($row['description']) > 150){

148 echo "...";

list.ctp.php (https://github.com/sendtogeo/Seo-Panel.git) PHP · 124 lines

6 <th><?php echo $spText['common']['Directory']?>: </th>

7 <td width="100px"><input type="text" name="dir_name" value="<?php echo htmlentities($info['dir_name'], ENT_QUOTES)?>" onblur="<?php echo $submitLink?>"></td>

8 <th><?php echo $spText['common']['Status']?>: </th>

25 <?php if($info['capcheck'] == $val){?>

26 <option value="<?php echo $val?>" selected><?php echo $key?></option>

27 <?php }else{?>

41 $selected = (($info['pagerank'] != '') && ($i == $info['pagerank'])) ? "selected" : "";

42 ?>

43 <option value="<?php echo $i?>" <?php echo $selected?>>PR <?php echo $i?></option>

44 <?php

55 $selected = ($langInfo['lang_code'] == $info['lang_code']) ? "selected" : "";

56 ?>

57 <option value="<?php echo $langInfo['lang_code']?>" <?php echo $selected?>><?php echo $langInfo['lang_name']?></option>

58 <?php

107 <td class="td_br_right" id="da_<?php echo $listInfo['id']?>"><?php echo $listInfo['domain_authority']?></td>

108 <td class="td_br_right" id="pa_<?php echo $listInfo['id']?>"><?php echo $listInfo['page_authority']?></td>

109 <td class="td_br_right" id="captcha_<?php echo $listInfo['id']?>"><?php echo $listInfo['is_captcha'] ? $spText['common']["Yes"] : $spText['common']["No"]; ?></td>

SearchReplace.php (https://gitlab.com/iamgraeme/royalmile) PHP · 300 lines

1 <?php

2 namespace Inpsyde\SearchReplace\Page;

3

54 public function render() {

55

56 require_once( __DIR__ . '/../templates/search_replace.php' );

57 }

58

277 if ( $dry_run ) {

278 $search = stripslashes( $search );

279 $search = htmlentities( $search );

280 echo $search;

281 }

292 if ( $dry_run ) {

293 $replace = stripslashes( $replace );

294 $replace = htmlentities( $replace );

295 echo $replace;

296 }

PhpdocHTMLDocumentRenderer.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 744 lines

1 <?php

2 /**

3 * Provides functioninality to render modules and classes.

4 *

5 * @version $Id: PhpdocHTMLDocumentRenderer.php,v 1.3 2001/12/13 10:34:13 hayk Exp $

6 */

7 class PhpdocHTMLDocumentRenderer extends PhpdocHTMLRenderer {

105

106 $this->tpl->setVariable("NAME", $name);

107 $this->tpl->setVariable("VALUE", htmlentities($const["value"]));

108

109 if (isset($const["doc"]["shortdescription"]))

145 $tplvars["NAME"] = $name;

146 $tplvars["CASE"] = $constant["case"];

147 $tplvars["VALUE"] = htmlentities($constant["value"]);

148

149 if ("true" == $constant["undoc"])

blog_update_mysqli.php (https://github.com/lisawilliams/phpsols.git) PHP · 167 lines

85 // redirect if $_GET['article_id'] not defined

86 if ($done || !isset($_GET['article_id'])) {

87 header('Location: http://localhost/phpsols/admin/blog_list_mysqli.php');

88 exit;

89 }

115 <p>

116 <label for="title">Title:</label>

117 <input name="title" type="text" class="widebox" id="title" value="<?php echo htmlentities($title, ENT_COMPAT, 'utf-8'); ?>">

118 </p>

119 <p>

131 while ($row = $categories->fetch_assoc()) {

132 ?>

133 <option value="<?php echo $row['cat_id']; ?>" <?php

134 if (in_array($row['cat_id'], $selected_categories)) {

135 echo 'selected';

Exception.php (https://github.com/drslump/DrTal.git) PHP · 177 lines

1 <?php

2

3 namespace DrSlump\Tal\Parser\Xml;

131 <tr>

132 <td colspan="2">

133 ' . "{$levels[$err['level']]} #{$err['code']}: <em>" . htmlentities($err['msg']) . '</em>

134 </td>

135 </tr>';

142 echo '<tr class="' . ($i==$ln ? 'current' : ($i%2 ? 'odd' : 'even')) . '">';

143 echo '<th>' . $i . '</th>';

144 echo '<td>' . htmlentities($lines[$i]) . '</td>';

145 echo '</tr>';

146 if ( $i == $ln ) {

169 echo "<h3>" . $levels[$error->level] . " #{$error->code} at line {$error->line} column {$error->column}</h3>";

170 echo "<pre>";

171 echo htmlentities( rtrim($lines[$error->line-1]) . PHP_EOL );

172 echo str_repeat( '-', $error->column ) . '^';

173 echo "</pre>";

Helpers.php (https://gitlab.com/ebrjose/comcebu) PHP · 143 lines

1 <?php

2 namespace AIOSEO\Plugin\Common\ImportExport\YoastSeo;

3

9 use AIOSEO\Plugin\Common\ImportExport;

10

11 // phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound

12

13 /**

32 if ( preg_match( '#%%BLOGDESCLINK%%#', $string ) ) {

33 $blogDescriptionLink = '<a href="' .

34 aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'url' ) ) . '">' .

35 aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'name' ) ) . ' - ' .

36 aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'description' ) ) . '</a>';

37

38 $string = str_replace( '%%BLOGDESCLINK%%', $blogDescriptionLink, $string );

edit.php (https://github.com/Doap/FrogCMS.git) PHP · 70 lines

46 <td><label for="layout_content_type"><?php echo __('Content-Type'); ?></label></td>

47 <td class="field"><input class="textbox" id="layout_content_type" maxlength="40" name="layout[content_type]" size="40" type="text" value="<?php echo $layout->content_type; ?>" /></td>

48 </tr>

49 </table>

52 <label for="layout_content"><?php echo __('Body'); ?></label>

53 <textarea class="textarea" cols="40" id="layout_content" name="layout[content]" rows="20" style="width: 100%" onkeydown="return allowTab(event, this);"><?php echo htmlentities($layout->content, ENT_COMPAT, 'UTF-8'); ?></textarea>

54 </p>

55 <?php if (isset($layout->updated_on)) { ?>

56 <p style="clear: left"><small><?php echo __('Last updated by'); ?> <?php echo $layout->updated_by_name; ?> <?php echo __('on'); ?> <?php echo date('D, j M Y', strtotime($layout->updated_on)); ?></small></p>

57 <?php } ?>

61 <input class="button" name="continue" type="submit" accesskey="e" value="<?php echo __('Save and Continue Editing'); ?>" />

62 <?php echo __('or'); ?> <a href="<?php echo get_url('layout'); ?>"><?php echo __('Cancel'); ?></a>

63 </p>

64 </form>

ChargifySubscription.php (https://github.com/zetamedia/Marketing-Site-Laravel-.git) PHP · 187 lines

1 <?php

2

3 //Reference Documentation: http://support.chargify.com/faqs/api/api-subscriptions

117 } elseif ($key != 'connector') {

118 if ($val) {

119 $xml->addChild($key,htmlentities($val, ENT_QUOTES));

120 }

121 }

Question.php (https://gitlab.com/klausmig/CloudSemanticWeb) PHP · 279 lines

1 <?php

2

3 class Question extends Model {

133 $this->difficulty = $difficulty;

134 $id = $this->dbInsert('questions',array('id'=>$this->id,'item_id'=>$this->item_id,'based_on'=>$this->based_on,'mark'=>$this->mark,'difficulty'=>$this->difficulty,'diff_count'=>$this->diff_count,'user_id'=>$this->user->id,'question'=> addslashes($this->question)));

135 // $this->dbQuery('INSERT INTO questions (id, item_id, based_on, mark, difficulty, diff_count, user_id, question) VALUES ('.$this->id .','.$this->item_id.','.$this->based_on.','.$this->mark.','.$this->difficulty.','.$this->diff_count.','.$this->user->id.','.htmlentities($this->question, ENT_QUOTES).')');

136 return $this->id;

137 }

config.html (https://bitbucket.org/kudutest1/moodlegit.git) HTML · 144 lines

1 <?php

2

3 global $CFG;

5 // Set to defaults if undefined

6 if (!isset($config->auth_instructions) or empty($config->user_attribute)) {

7 $config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php');

8 }

9 if (!isset ($config->user_attribute)) {

21

22 <tr valign="top" class="required">

23 <td align="right"><label for="user_attribute"><?php print_string("username") ?>: </label></td>

24 <td>

25 <input id="user_attribute" name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />

26 </td>

27 <td><?php print_string("auth_shib_username_description", "auth_shibboleth") ?></td>

28 </tr>

29

backend_viewuser.php (https://gitlab.com/Toldierone/Compounds-mirror) PHP · 151 lines

1 <?php

2 include("allfunctions.php");

3 include("listresources.php");

4 $getpost = array_merge($_GET, $_POST);

5 foreach ($getpost as $key => $value) {

26 $constants[$rs['name']] = $rs['value'];

27 }

28 if (!$thisuser['donator']) $display['description'] = nl2br(htmlentities($thisuser['description'], ENT_SUBSTITUTE, "UTF-8"));

29 else $display['description'] = $thisuser['description'];

30 if ($_POST['action'] == "Send Message" && $_SESSION['user_id']) {

HtmlEntities.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 200 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: HtmlEntities.php 20104 2010-01-06 21:26:01Z matthew $

20 */

21

23 * @see Zend_Filter_Interface

24 */

25 // require_once 'Zend/Filter/Interface.php';

26

27 /**

31 * @license http://framework.zend.com/license/new-bsd New BSD License

32 */

33 class Zend_Filter_HtmlEntities implements Zend_Filter_Interface

34 {

35 /**

profile_games_widget.php (https://github.com/nbauernfeind/aichallenge.git) PHP · 182 lines

1 <?php

2 include_once "pagination.php";

147 $table .= "<tbody>";

148 for ($i = 1; $row = mysql_fetch_assoc($games_results); $i += 1) {

149 $opp_name = htmlentities($row["opp_name"], ENT_COMPAT, "UTF-8");

150 $opp_id = $row["opp_id"];

151 $game_id = $row["game_id"];

168 $table .= " <tr class=\"$row_class\">";

169 $table .= " <td>$datetime</td>";

170 $table .= " <td><a href=\"profile.php?user=$opp_id\">$opp_name</a></td>";

171 $table .= " <td class=\"$outcome_class\">$outcome</td>";

172 $table .= " <td><a href=\"visualizer.php?game_id=$game_id\">View Game &gt;&gt;</a></td>";

report_xml.php (https://github.com/markn86/moodle.git) PHP · 67 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

50 foreach ($test as $problem) {

51 if (is_object($problem)) {

52 $output .= "\n\t<htmlchecker:entities><![CDATA[" . htmlentities($problem->get_html()) .

53 "]]></htmlchecker:entities>";

54 $output .= "\n\t<htmlchecker:line>". $problem->get_line() ."</htmlchecker:line>";

render.inc.php (https://github.com/yoyar/tprsp.git) PHP · 408 lines

1 <?php

2

3 function tprsp_twitterlink($str) {

51 function (&$content) {

52 $content = trim($content);

53 $content = htmlentities($content);

54 $content = tprsp_twitterlink($content);

55 }

edit.php (https://github.com/alcf/chms.git) PHP · 160 lines

1 <?php

2 require(dirname(__FILE__) . '/../../../includes/prepend.inc.php');

51 $this->lblMinistries->Name = 'Ministry Involvement';

52 $strArray = array();

53 foreach ($this->objLogin->GetMinistryArray() as $objMinistry) $strArray[] = QApplication::HtmlEntities($objMinistry->Name);

54 $this->lblMinistries->Text = implode(' &nbsp;&bull;&nbsp; ', $strArray);

55 if (!$this->lblMinistries->Text) {

57 $this->lblMinistries->Text = 'n/a';

58 }

59 $this->lblMinistries->HtmlEntities = false;

60

61 foreach (Ministry::LoadAll(QQ::OrderBy(QQN::Ministry()->Name)) as $objMinistry) {

RevisionHistory.php (https://github.com/VivekVish/Veda-Project-API.git) PHP · 199 lines

1 <?php

2

3 require_once("classes/resources/Material.php");

128 public function getJSON()

129 {

130 $json = json_encode(array("revisionId"=>$this->revisionId,"resourceId"=>$this->resourceId,"name"=>$this->name,"content"=>htmlentities($this->content),"userId"=>$this->userId,"notes"=>$this->notes));

131 return $json;

132 }

quiz.php (https://github.com/Jessicasoon/ProjectKentRidgeV2.git) PHP · 1383 lines

1 <?php

2 /**************************************************************************

3 Quiz Class: this class contains all the quiz operations on the database

53 function __construct($quiz_id = NULL){

54 if($quiz_id != NULL && $quiz_id != ""){

55 require('quizrooDB.php');

56 // populate class with quiz data

57 $queryQuiz = sprintf("SELECT * FROM q_quizzes WHERE quiz_id = %d", GetSQLValueString($quiz_id, "int"));

98 // create a new quiz

99 function create($title, $description, $cat, $picture, $member_id, $key){

100 require('quizrooDB.php');

101

102 // insert into the quiz table (protect each insert from HTML Injection)

103 $insertSQL = sprintf("INSERT INTO q_quizzes(`quiz_name`, `quiz_description`, `fk_quiz_cat`, `quiz_picture`, `fk_member_id`, `quiz_key`) VALUES (%s, %s, %d, %s, %d, %s)",

104 htmlentities(GetSQLValueString($title, "text")),

105 htmlentities(GetSQLValueString($description, "text")),

build_html_for_db.lib.php (https://gitlab.com/qbarbosa/klindev) PHP · 185 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3

5 * HTML generator for database listing

6 *

7 * @package PhpMyAdmin

8 */

9 if (! defined('PHPMYADMIN')) {

59 /**

60 * Builds the HTML td elements for one database to display in the list

61 * of databases from server_databases.php (which can be modified by

62 * db_create.php)

117 );

118 } else {

119 $value = htmlentities($current[$stat_name], 0);

120 }

121 $out .= '<td class="value">';

0001-Fix-12312-NuSOAP-web-description-XSS-vulnerability.patch (https://github.com/fusenigk/mantisbt-1.git) Patch · 119 lines

51 foreach($tenille as $joanie => $chachi){

52 - $b .= "&nbsp;&nbsp;&nbsp;&nbsp;$joanie: $chachi<br>";

53 + $b .= "&nbsp;&nbsp;&nbsp;&nbsp;".htmlentities($joanie).": ".htmlentities($chachi)."<br>";

54 }

55 //}

106 } else {

107 - $b .= "&nbsp;&nbsp;$captain: $tenille<br>";

108 + $b .= "&nbsp;&nbsp;".htmlentities($captain).": ".htmlentities($tenille)."<br>";

109 }

110 }

111 } else {

112 - $b .= "<font color='white'>".ucfirst($donnie).":</font> $marie<br>";

113 + $b .= "<font color='white'>".htmlentities(ucfirst($donnie)).":</font> ".htmlentities($marie)."<br>";

114 }

115 }

class_form.php (https://github.com/nadavkav/MoodleTAO.git) PHP · 418 lines

1 <?php

2 //----------------------------------------------------------------------------------------------

3 // Desc: Print out form elements and their labels in a standardised way

52 <div id="' . $elementId . 'Element" class="element">

53 <input class="input" type="text" name="' . $elementId . '" id="' . $elementId . '"

54 value="' . htmlentities($defaultValue) . '" ' . $extraAttribute . ' />

55 </div>' . "\n");

56 }

99 <div id="' . $elementId . 'Element_' . $idCheckCount . '" class="element">

100 <input class="checkbox" type="checkbox" name="' . $elementId . '[]" id="' . $elementId . '_' . $idCheckCount . '"

101 value="' . htmlentities($defaultValue) . '" ' . $checkedAttribute . $extraAttribute . ' />

102 ' . $label . '

103 </div>' . "\n");

130 <div id="' . $elementId . 'Element_' . $idRadioCount . '" class="element">

131 <input class="radio" type="radio" name="' . $elementId . '" id="' . $elementId . '_' . $idRadioCount . '"

132 value="' . htmlentities($defaultValue) . '" ' . $checkedAttribute . $extraAttribute . ' />

133 ' . $label . '

134 </div>' . "\n");

WPEditorSetting.php (https://gitlab.com/code26/selah) PHP · 304 lines

1 <?php

2 class WPEditorSetting {

3

126 'type' => 'multiselect',

127 'optons' => apply_filters( 'allowed_extensions', array(

128 'php' => '.php',

129 'js' => '.js',

130 'css' => '.css',

255

256

257 <?php echo ob_get_clean();

258 }

259

296

297 if(!empty( $value ) && $entities ) {

298 $value = htmlentities( $value );

299 }

300

QListBoxBase.class.php (https://github.com/apselico/qcodo.git) PHP · 277 lines

1 <?php

2 // This class will render an HTML DropDown or MultiSelect box <SELECT>.

3 // It extends ListControl, which has methods to handle the ListItem array.

18 protected $objItemStyle = null;

19

20 protected $blnHtmlEntities = true;

21

22 // BEHAVIOR

95 ($objItem->Selected) ? 'selected="selected"' : "",

96 $objStyle->GetAttributes(),

97 ($this->blnHtmlEntities) ? QApplication::HtmlEntities($objItem->Name) : $objItem->Name

98 );

99

189 case "LabelForRequiredUnnamed": return $this->strLabelForRequiredUnnamed;

190 case "ItemStyle": return $this->objItemStyle;

191 case "HtmlEntities": return $this->blnHtmlEntities;

192

193 // BEHAVIOR

language.php (https://gitlab.com/srueegger/1zu12bB) PHP · 189 lines

1 <?PHP

2 class Language{

3

64 */

65 public static function DirectTranslateHtml($token){

66 return htmlentities(utf8_decode(self::GetGlobal()->Translate($token)));

67 }

68

usercp2.php (https://gitlab.com/Conors99/ppm-1.8) PHP · 250 lines

1 <?php

2 /**

3 * MyBB 1.8

10

11 define("IN_MYBB", 1);

12 define('THIS_SCRIPT', 'usercp2.php');

13 define("ALLOWABLE_PAGE", "removesubscription,removesubscriptions");

14

15 $templatelist = 'usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_nav,usercp_addsubscription_thread,usercp_nav_messenger_tracking,usercp_nav_editsignature,usercp_nav_attachments,usercp_nav_messenger_compose,usercp_nav_messenger_folder';

16

17 require_once "./global.php";

18 require_once MYBB_ROOT."inc/functions_user.php";

30 usercp_menu();

31

32 $server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);

33

34 $plugins->run_hooks("usercp2_start");

php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines

11 </PROPS>

12 <RULES IGNORE_CASE="TRUE">

13 <SPAN TYPE="MARKUP" DELEGATE="PHP">

14 <BEGIN>&lt;?php</BEGIN>

16 </SPAN>

17

18 <SPAN TYPE="MARKUP" DELEGATE="PHP">

19 <BEGIN>&lt;?</BEGIN>

20 <END>?&gt;</END>

21 </SPAN>

22

23 <SPAN TYPE="MARKUP" DELEGATE="PHP">

24 <BEGIN>&lt;%=</BEGIN>

25 <END>%&gt;</END>

64

65 <RULES SET="TAGS" DEFAULT="MARKUP">

66 <SPAN TYPE="MARKUP" DELEGATE="PHP">

67 <BEGIN>&lt;?php</BEGIN>