100+ results for 'php htmlspecialchars'
Not the results you expected?
base.php (https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment) PHP · 302 lines
1 <?php
3 $developmentalhistory =[
5 'field' => 'length_of_preg',
6 'label' => 'Length Of Pregnancy',
7 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
8 ),
9 array(
10 'field' => 'form_of_del',
11 'label' => 'Form Of Delivery',
12 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
13 ),
14 array(
15 'field' => 'complications',
16 'label' => 'Complications On Pregnancy',
17 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
18 ),
19 array(
Link.php (https://github.com/ngocanh/pimcore.git) PHP · 467 lines
quote.php (https://github.com/ecoeco/ecoeco.git) PHP · 304 lines
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>
183 <p><select size="1" name="item[<?php echo $quote_item['id_quote_item'] ; ?>]['color']">
184 <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>
185 <option value=" RAL 9016"> RAL 9016</option>
186 <option value=" RAL 9006"> RAL 9006</option>
200 <p><input
201 type="number"
202 value="<?php echo $quote_item['qty']; ?>" size="12" name="item[<?php echo $quote_item['id_quote_item']; ?>]['qty']" min="0" max="1000" value="1" /></p>
203 </td>
302 }
303 ?>
304 <?php //require 'templates/footer.php'; ?>
Abstract.php (https://github.com/hansdubois/Docblox.git) PHP · 301 lines
1 <?php
2 /**
3 * DocBlox
4 *
5 * PHP Version 5
6 *
7 * @category DocBlox
10 * @author Mike van Riel <mike.vanriel@naenius.com>
11 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
12 * @license http://www.opensource.org/licenses/mit-license.php MIT
13 * @link http://docblox-project.org
14 */
21 * @subpackage Behaviour
22 * @author Mike van Riel <mike.vanriel@naenius.com>
23 * @license http://www.opensource.org/licenses/mit-license.php MIT
24 * @link http://docblox-project.org
25 */
sfValidatorDateTest.php (https://github.com/bheneka/gitta.git) PHP · 246 lines
1 <?php
3 /*
9 */
11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
13 $t = new lime_test(52);
100 {
101 $t->pass('->clean() throws a sfValidatorError if the date does not match the regex');
102 $t->like($e->getMessage(), '/'.preg_quote(htmlspecialchars($v->getOption('date_format'), ENT_QUOTES, 'UTF-8'), '/').'/', '->clean() returns the expected date format in the error message');
103 $t->is($e->getCode(), 'bad_format', '->clean() throws a sfValidatorError');
104 }
options.class.php (https://gitlab.com/Almamun444/Octa) PHP · 333 lines
1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
2 /**
3 *
127 ob_start();
128 var_export( $this->field );
129 $out .= htmlspecialchars( ob_get_clean() );
130 $out .= "\n\n";
131 $out .= "<strong>". __( 'USAGE', 'cs-framework' ) .":</strong>";
139 ob_start();
140 var_export( $value );
141 $out .= htmlspecialchars( ob_get_clean() );
142 }
default_status.php (https://gitlab.com/julienv/joomleague) PHP · 346 lines
1 <?php defined( '_JEXEC' ) or die( 'Restricted access' );
3 if ( ( isset($this->teamPlayer->injury) && $this->teamPlayer->injury > 0 ) ||
9 JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
10 ?>
11 <h2><?php echo JText::_('COM_JOOMLEAGUE_PERSON_STATUS'); ?></h2>
13 <table class="status">
14 <?php
15 if ($this->teamPlayer->injury > 0)
16 {
36 <tr>
37 <td class="label">
38 <?php
39 $imageTitle = JText::_( 'COM_JOOMLEAGUE_PERSON_INJURED' );
40 echo " " . JHtml::image( 'images/com_joomleague/database/events/'.$this->project->fs_sport_type_name.'/injured.gif',
settings_static.tpl (https://gitlab.com/phamngsinh/baitaplon_sinhvien) Smarty Template · 191 lines
8 <ul id="isoft" class="tabs">
9 <li >
10 <a href="settings_general.php" id="isoft_group_1" name="group_1" title="General Settings" class="tab-item-link ">
11 <span>
12 <span class="changed" title=""></span>
20 <li >
21 <a href="settings_meta.php" id="isoft_group_9" name="group_9" title="Meta Settings" class="tab-item-link">
22 <span>
23 <span class="changed" title=""></span>
31 <li >
32 <a href="settings_static.php" id="isoft_group_11" name="group_11" title="Static Pages" class="tab-item-link">
33 <span>
34 <span class="changed" title=""></span>
Exception.php (https://github.com/ratbird/hope.git) PHP · 382 lines
1 <?php
3 /*
305 // when in cli or not accessible via filesystem, don't generate links
306 if (PHP_SAPI == 'cli' || !Util::isPathAbsolute($path)) {
307 return $path;
308 }
310 return sprintf('<a href="%s" class="file-edit">%s</a>', htmlspecialchars(strtr(self::$fileEditUrlFormat, [
311 // allow more formats
312 '%f' => $path,
324 public function __toString()
325 {
326 return $this->toString(true, php_sapi_name() !== 'cli');
327 }
config.html (https://github.com/jarednipper/HSU-common-code.git) HTML · 387 lines
1 <?php // initialize variables
3 // general
89 <tr>
90 <td colspan="2">
91 <h4><?php print_string("enrol_ldap_server_settings", "enrol_ldap") ?> </h4>
92 </td>
93 </tr>
95 <td align="right">enrol_ldap_host_url:</td>
96 <td>
97 <input name="enrol_ldap_host_url" type="text" size="30" value="<?php echo $frm->enrol_ldap_host_url?>" />
98 <?php if (isset($err["enrol_ldap_host_url"])) formerr($err["enrol_ldap_host_url"]); ?>
221 <td><?php echo htmlspecialchars($role->name, ENT_COMPAT, 'UTF-8'); ?></td>
222 <td><input type="text" size="30" name="enrol_ldap_contexts_role<?php echo $role->id; ?>" value="<?php echo htmlspecialchars($frm->{'enrol_ldap_contexts_role'.$role->id}); ?>" /></td>
223 <td><input type="text" size="30" name="enrol_ldap_memberattribute_role<?php echo $role->id; ?>" value="<?php echo htmlspecialchars($frm->{'enrol_ldap_memberattribute_role'.$role->id}); ?>" /></td>
Reports.php (https://gitlab.com/Blueprint-Marketing/dyn-php) PHP · 710 lines
SkinzamTablePager.php (https://github.com/Seizam/seizamcore.git) PHP · 353 lines
Cdn_CloudFrontFsd_Popup.php (https://gitlab.com/karlen/ayo_wp) PHP · 345 lines
1 <?php
2 namespace W3TC;
33 ) );
35 include W3TC_DIR . '/Cdn_CloudFrontFsd_Popup_View_Intro.php';
36 exit();
37 }
81 );
83 include W3TC_DIR . '/Cdn_CloudFrontFsd_Popup_View_Distributions.php';
84 exit();
85 }
172 include W3TC_DIR . '/Cdn_CloudFrontFsd_Popup_View_Distribution.php';
173 exit();
174 }
HIncludeFragmentRenderer.php (https://gitlab.com/ealexis.t/trends) PHP · 160 lines
XMLDBIndex.class.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 264 lines
1 <?php // $Id: XMLDBIndex.class.php,v 1.9 2007/10/10 05:25:14 nicolasconnault Exp $
3 ///////////////////////////////////////////////////////////////////////////
190 $o.= ' FIELDS="' . implode(', ', $this->fields) . '"';
191 if ($this->comment) {
192 $o.= ' COMMENT="' . htmlspecialchars($this->comment) . '"';
193 }
194 if ($this->previous) {
221 /**
222 * Returns the PHP code needed to define one XMLDBIndex
223 */
224 function getPHP() {
UserService.php (https://github.com/theosp/google_appengine.git) PHP · 164 lines
1 <?php
2 /**
3 * Copyright 2007 Google Inc.
64 } catch (ApplicationError $e) {
65 throw self::applicationErrorToException(
66 $e, htmlspecialchars($destination_url));
67 }
68 return $resp->getLoginUrl();
91 } catch (ApplicationError $e) {
92 throw self::applicationErrorToException(
93 $e, htmlspecialchars($destination_url));
94 }
95 return $resp->getLogoutUrl();
Variables.php (https://github.com/leerbag/zf2.git) PHP · 337 lines
ods.php (https://github.com/md-tech/openemr.git) PHP · 187 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
6 * @version $Id$
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
10 }
30 $GLOBALS['ods_buffer'] = '';
31 require_once './libraries/opendocument.lib.php';
33 /**
138 }
140 $GLOBALS['ods_buffer'] .= '<table:table table:name="' . htmlspecialchars($table) . '">';
142 // If required, get fields name at the first line
text.php (https://github.com/zakgrant/forkcms.git) PHP · 755 lines
1 <?php
3 /**
86 {
87 // set value
88 $value = (SPOON_CHARSET == 'utf-8') ? SpoonFilter::htmlspecialchars($value) : SpoonFilter::htmlentities($value);
89 }
106 // html allowed?
107 if(!$allowHTML) $value = (SPOON_CHARSET == 'utf-8') ? SpoonFilter::htmlspecialchars($value) : SpoonFilter::htmlentities($value);
108 }
109 }
secondary.php (https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment) PHP · 464 lines
1 <?php
3 $secondary = [
5 'field' => 'child_fname',
6 'label' => 'Child First name',
7 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
8 ),
9 array(
10 'field' => 'child_lname',
11 'label' => 'Child Last Name',
12 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
13 ),
14 array(
15 'field' => 'child_mname',
16 'label' => 'Childs Middle Name',
17 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
18 ),
19 array(
buttons.php (https://github.com/joomla/joomla-cms.git) PHP · 123 lines
1 <?php
3 /**
79 <div class="<?php echo $containerClass; ?>">
80 <?php foreach ($options as $i => $option) : ?>
81 <?php echo $blockStart; ?>
82 <?php
83 $disabled = !empty($option->disable) ? 'disabled' : '';
84 $style = $disabled ? ' style="pointer-events: none"' : '';
113 <?php if ($required) : ?>
114 <?php $attributes[] = 'required'; ?>
115 <?php endif; ?>
116 <input class="<?php echo $classToggle; ?>" type="radio" id="<?php echo $oid; ?>" name="<?php echo $name; ?>" value="<?php echo $ovalue; ?>" <?php echo implode(' ', $attributes); ?>>
117 <label for="<?php echo $oid; ?>" class="<?php echo trim($optionClass); ?>"<?php echo $style; ?>>
Message.class.php (https://github.com/cabenitez/factuweb.git) PHP · 802 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Holds class PMA_Message
5 *
6 * @version $Id: Error.class.php 10738 2007-10-08 16:02:58Z cybot_tm $
7 */
447 * </code>
448 *
449 * @uses htmlspecialchars()
450 * @uses PMA_Message::$_params to fill
451 * @uses PMA_Message::notice()
458 $this->_params[] = $param;
459 } elseif ($raw) {
460 $this->_params[] = htmlspecialchars($param);
461 } else {
462 $this->_params[] = PMA_Message::notice($param);
qode.layout.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 1546 lines
60 }
61 ?>
62 <div class="qodef-page-form-section-holder" id="qodef_<?php echo $this->name; ?>"<?php if ($hidden) { ?> style="display: none"<?php } ?>>
63 <h3 class="qodef-page-section-title"><?php echo $this->title; ?></h3>
183 }
184 ?>
185 <div id="qodef_<?php echo esc_attr($this->name); ?>"<?php if ($hidden) { ?> style="display: none"<?php } ?>>
186 <?php
389 }
390 ?>
391 <h5 class="qodef-page-section-subtitle" id="qodef_<?php echo esc_attr($this->name); ?>"<?php if ($hidden) { ?> style="display: none"<?php } ?>><?php echo esc_html($this->title); ?></h5>
392 <?php
733 <?php foreach($fontArrays as $fontArray) { ?>
734 <option <?php if (qodef_option_get_value($name) == str_replace(' ', '+', $fontArray["family"])) { echo "selected='selected'"; } ?> value="<?php echo str_replace(' ', '+', $fontArray["family"]); ?>"><?php echo $fontArray["family"]; ?></option>
735 <?php } ?>
Message.class.php (https://github.com/BenBE/ispCP.git) PHP · 764 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Holds class PMA_Message
5 *
6 * @package phpMyAdmin
7 */
55 * // strSomeEvenMoreLocale - some final words
56 * </code>
57 * @package phpMyAdmin
58 */
59 class PMA_Message
459 * </code>
460 *
461 * @uses htmlspecialchars()
462 * @uses PMA_Message::$_params to fill
463 * @uses PMA_Message::notice()
Message.class.php (https://gitlab.com/albert925/lading-ach) PHP · 815 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
6 * @author Sebastian Mendel <info@sebastianmendel.de>
7 * @version $Id$
8 * @package phpMyAdmin
9 */
60 * // strSomeEvenMoreLocale - some final words
61 * </code>
62 * @package phpMyAdmin
63 */
64 class PMA_Message
460 * </code>
461 *
462 * @uses htmlspecialchars()
463 * @uses PMA_Message::$_params to fill
464 * @uses PMA_Message::notice()
default.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 220 lines
105 <?php if( $should_print_quick_view ){?>
106 <li class="eael-product-quick-view">
107 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"
108 class="eael-product-gallery-open-popup open-popup-link">
109 <i class="fas fa-eye"></i>
124 <?php if( $should_print_quick_view ){?>
125 <li class="eael-product-quick-view">
126 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"
127 class="eael-product-gallery-open-popup open-popup-link">
128 <i class="fas fa-eye"></i>
186 <?php if( $should_print_quick_view ){?>
187 <li class="eael-product-quick-view">
188 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"
189 class="eael-product-gallery-open-popup open-popup-link">
190 <i class="fas fa-eye"></i>
form_validation.php (https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment) PHP · 1795 lines
1 <?php
7 'field' => 'child_fname',
8 'label' => 'Child First name',
9 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
10 ),
11 array(
12 'field' => 'child_lname',
13 'label' => 'Child Last Name',
14 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
15 ),
16 array(
17 'field' => 'child_mname',
18 'label' => 'Childs Middle Name',
19 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
20 ),
21 array(
ajax_actions.js (https://github.com/AmirHossein/JoCo.git) JavaScript · 176 lines
27 }
28 var xmlHttp = ajaxRequest();
29 xmlHttp.open("GET" , "index.php?a=112&id=" +mKey+ "&comment_action=" + action + "&comment_id=" + id + query, true);
31 xmlHttp.onreadystatechange=function()
131 message = message.replace(" ", "\t");
132 message = message.replace('<span class="highlight">', "").replace('</span>', "");
133 message = message.replace("<","<").replace(">",">"); // htmlspecialchars() - 0.9.2
134 }
135 document.getElementById("textarea_" + id).value = message;
IntrospectionServer.php (https://gitlab.com/wuhang2003/typecho) PHP · 158 lines
1 <?php
2 if (!defined('__TYPECHO_ROOT_DIR__')) exit;
3 /*
4 IXR - The Inutio XML-RPC Library - (c) Incutio Ltd 2002
5 Version 1.61 - Simon Willison, 11th July 2003 (htmlentities -> htmlspecialchars)
6 Site: http://scripts.incutio.com/xmlrpc/
7 Manual: http://scripts.incutio.com/xmlrpc/manual.php
8 Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
9 */
thread.php (https://gitlab.com/elasa/vb-elasa.ir) PHP · 141 lines
1 <?php
3 /* ======================================================================*\
76 $threadinfo =& $this->content['thread'][$activity['contentid']];
77 $foruminfo =& vB::$vbulletin->forumcache[$threadinfo['forumid']];
78 $threadinfo['prefix_plain_html'] = htmlspecialchars_uni($this->vbphrase["prefix_{$threadinfo['prefixid']}_title_plain"]);
79 $threadinfo['prefix_rich'] = $this->vbphrase["prefix_{$threadinfo['prefixid']}_title_rich"];
84 $threadinfo['preview'] = strip_quotes($threadinfo['pagetext']);
85 $threadinfo['preview'] = htmlspecialchars_uni(fetch_censored_text(
86 fetch_trimmed_title(strip_bbcode($threadinfo['preview'], false, true, true, true),
87 vb::$vbulletin->options['as_snippet'])
timelimiter.php (https://gitlab.com/alexprowars/bitrix) PHP · 230 lines
class.php (https://gitlab.com/alexprowars/bitrix) PHP · 241 lines
1 <?php
3 use Bitrix\Main\LoaderException;
19 if (isset($arParams['DOCUMENT_TYPE_SIGNED']))
20 {
21 $arParams['DOCUMENT_TYPE_SIGNED'] = htmlspecialcharsback($arParams['DOCUMENT_TYPE_SIGNED']);
22 $arParams['DOCUMENT_TYPE'] = CBPDocument::unSignDocumentType($arParams['DOCUMENT_TYPE_SIGNED']);
23 }
25 $arParams['FIELD_ID'] = $arParams['FIELD_ID'] ? htmlspecialcharsback($arParams['FIELD_ID']) : null;
26 $arParams['MODE'] = in_array($arParams['MODE'], ['constant', 'variable']) ? $arParams['MODE'] : null;
27 $arParams['SET_TITLE'] = ($arParams["SET_TITLE"] === 'N' ? 'N' : 'Y');
28 $arParams['NAME'] = ($arParams['NAME']) ? htmlspecialcharsback($arParams['NAME']) : null;
30 return $arParams;
Tile.php (https://gitlab.com/Ltaimao/wecenter) PHP · 365 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Mobile_Push_Message_Mpns **/
23 //require_once 'Zend/Mobile/Push/Message/Mpns.php';
25 /**
325 $ret = '<?xml version="1.0" encoding="utf-8"?>'
326 . '<wp:Notification xmlns:wp="WPNotification">'
327 . '<wp:Tile' . (($this->_tileId) ? ' Id="' . htmlspecialchars($this->_tileId) . '"' : '') . '>'
328 . '<wp:BackgroundImage>' . htmlspecialchars($this->_backgroundImage) . '</wp:BackgroundImage>'
329 . '<wp:Count>' . (int) $this->_count . '</wp:Count>'
330 . '<wp:Title>' . htmlspecialchars($this->_title) . '</wp:Title>';
332 if ($this->_backBackgroundImage) {
report_post.php (https://github.com/AJenbo/ubuntudanmark.dk.git) PHP · 230 lines
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
12 */
14 namespace phpbb\notification\type;
16 /**
113 'POST_SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('post_subject'))),
114 'TOPIC_TITLE' => htmlspecialchars_decode(censor_text($this->get_data('topic_title'))),
116 'U_VIEW_REPORT' => "{$board_url}/mcp.{$this->php_ext}?f={$this->get_data('forum_id')}&p={$this->item_id}&i=reports&mode=report_details#reports",
130 public function get_url()
131 {
132 return append_sid($this->phpbb_root_path . 'mcp.' . $this->php_ext, "f={$this->get_data('forum_id')}&p={$this->item_id}&i=reports&mode=report_details#reports");
133 }
Tile.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 365 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Mobile_Push_Message_Mpns **/
23 #require_once 'Zend/Mobile/Push/Message/Mpns.php';
25 /**
325 $ret = '<?xml version="1.0" encoding="utf-8"?>'
326 . '<wp:Notification xmlns:wp="WPNotification">'
327 . '<wp:Tile' . (($this->_tileId) ? ' Id="' . htmlspecialchars($this->_tileId) . '"' : '') . '>'
328 . '<wp:BackgroundImage>' . htmlspecialchars($this->_backgroundImage) . '</wp:BackgroundImage>'
329 . '<wp:Count>' . (int) $this->_count . '</wp:Count>'
330 . '<wp:Title>' . htmlspecialchars($this->_title) . '</wp:Title>';
332 if ($this->_backBackgroundImage) {
Inline.php (https://github.com/ewandor/horde.git) PHP · 193 lines
Standalone.php (https://github.com/kervin/kyzstudio.git) PHP · 324 lines
1 <?php
2 /**
3 * Zend Framework
17 * @subpackage Helper
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Standalone.php 20143 2010-01-08 15:17:11Z matthew $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
23 /** Zend_View_Helper_Placeholder_Registry */
24 #require_once 'Zend/View/Helper/Placeholder/Registry.php';
26 /** Zend_View_Helper_Abstract.php */
27 #require_once 'Zend/View/Helper/Abstract.php';
29 /**
parsedown.php (https://gitlab.com/websumon/tosnib) PHP · 1285 lines
1 <?php
3 #
307 $text = $Block['element']['text']['text'];
309 $text = htmlspecialchars( $text, ENT_NOQUOTES, 'UTF-8' );
311 $Block['element']['text']['text'] = $text;
403 $text = $Block['element']['text']['text'];
405 $text = htmlspecialchars( $text, ENT_NOQUOTES, 'UTF-8' );
407 $Block['element']['text']['text'] = $text;
rewrite.php (https://github.com/archives-of-michigan/seekingmichigan.org-Wordpress.git) PHP · 246 lines
1 <?php
3 /**
118 }
120 $query = htmlspecialchars(add_query_arg( $args));
122 return $query;
174 //TODO:: I could parse for the Picture name , gallery etc, but this increase the queries
175 //TODO:: Class nggdb need to cache the query for the nggfunctions.php
177 if ( $show == 'slide' )
207 $rewrite_rules = array (
208 // rewrite rules for pages
209 $this->slug.'/page-([0-9]+)/?$' => 'index.php?page_id=$matches[1]',
210 $this->slug.'/page-([0-9]+)/page-([0-9]+)/?$' => 'index.php?page_id=$matches[1]&nggpage=$matches[2]',
field_spacing.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 381 lines
1 <?php
3 // Exit if accessed directly
181 if ( isset( $this->field['select2'] ) ) { // if there are any let's pass them to js
182 $select2_params = json_encode( $this->field['select2'] );
183 $select2_params = htmlspecialchars( $select2_params, ENT_QUOTES );
185 echo '<input type="hidden" class="select2_params" value="' . $select2_params . '">';
Message.class.php (https://github.com/jackygrahamez/DrugDiscovery-Home.git) PHP · 815 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 *
6 * @author Sebastian Mendel <info@sebastianmendel.de>
7 * @version $Id: Error.class.php 10738 2007-10-08 16:02:58Z cybot_tm $
8 * @package phpMyAdmin
60 * // strSomeEvenMoreLocale - some final words
61 * </code>
62 * @package phpMyAdmin
63 */
64 class PMA_Message
460 * </code>
461 *
462 * @uses htmlspecialchars()
463 * @uses PMA_Message::$_params to fill
464 * @uses PMA_Message::notice()
parsedown.php (https://github.com/medieteknik/Medieteknik.nu.git) PHP · 1343 lines
1 <?php
3 #
149 }
151 $string = htmlspecialchars($indentedLine, ENT_NOQUOTES, 'UTF-8');
153 $block['content'][0]['content'] .= $string;
295 $block['content'][0]['content'] .= "\n";
297 $string = htmlspecialchars($line, ENT_NOQUOTES, 'UTF-8');
298 $string = str_repeat(' ', $indentation - 4) . $string;
499 $blocks []= $block;
501 $string = htmlspecialchars($line, ENT_NOQUOTES, 'UTF-8');
502 $string = str_repeat(' ', $indentation - 4) . $string;
editusers.php (https://gitlab.com/mariadb-corporation/LimeSurvey) PHP · 138 lines
18 <?php echo CHtml::form(array('admin/user/sa/modifyuser'), 'post');?>
19 <input type='image' src='<?php echo $imageurl;?>edit_16.png' alt='<?php $clang->eT("Edit this user");?>' />
20 <input type='hidden' name='action' value='modifyuser' />
21 <input type='hidden' name='uid' value='<?php echo htmlspecialchars($usrhimself['uid']);?>' />
77 <?php echo CHtml::form(array('admin/user/sa/setusertemplates'), 'post');?>
78 <input type='image' src='<?php echo $imageurl;?>templatepermissions_small.png' alt='<?php $clang->eT("Set template permissions for this user");?>' />
79 <input type='hidden' name='action' value='setusertemplates' />
80 <input type='hidden' name='user' value='<?php echo htmlspecialchars($usr['user']);?>' />
85 <?php echo CHtml::form(array('admin/user/sa/deluser'), 'post');?>
86 <input type='image' src='<?php echo $imageurl;?>token_delete.png' alt='<?php $clang->eT("Delete this user");?>' onclick='return confirm("<?php $clang->eT("Are you sure you want to delete this entry?","js");?>")' />
87 <input type='hidden' name='action' value='deluser' />
88 <input type='hidden' name='user' value='<?php echo htmlspecialchars($usr['user']);?>' />
103 <td><?php echo htmlspecialchars($usr['user']);?></td>
104 <td><a href='mailto:<?php echo htmlspecialchars($usr['email']);?>'><?php echo htmlspecialchars($usr['email']);?></a></td>
105 <td><?php echo htmlspecialchars($usr['full_name']);?></td>
Tile.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 365 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Mobile_Push_Message_Mpns **/
23 require_once 'Zend/Mobile/Push/Message/Mpns.php';
25 /**
325 $ret = '<?xml version="1.0" encoding="utf-8"?>'
326 . '<wp:Notification xmlns:wp="WPNotification">'
327 . '<wp:Tile' . (($this->_tileId) ? ' Id="' . htmlspecialchars($this->_tileId) . '"' : '') . '>'
328 . '<wp:BackgroundImage>' . htmlspecialchars($this->_backgroundImage) . '</wp:BackgroundImage>'
329 . '<wp:Count>' . (int) $this->_count . '</wp:Count>'
330 . '<wp:Title>' . htmlspecialchars($this->_title) . '</wp:Title>';
332 if ($this->_backBackgroundImage) {
preschool.php (https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment) PHP · 484 lines
1 <?php
3 $preschool = [
5 'field' => 'child_fname',
6 'label' => 'Child First name',
7 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
8 ),
9 array(
10 'field' => 'child_lname',
11 'label' => 'Child Last Name',
12 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
13 ),
14 array(
15 'field' => 'child_mname',
16 'label' => 'Childs Middle Name',
17 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
18 ),
19 array(
search.php (https://bitbucket.org/welz01/webgroup.git) PHP · 174 lines
1 <?php
2 include('_common.php');
36 if ($user != null) {
37 $this->Name = htmlspecialchars($user->Name);
38 $this->ProfileLink = 'profile.php?id='.$user->Id;
50 if ($category != null) {
51 $this->Name = htmlspecialchars($category->Name);
52 $this->Link = 'bycategory.php?id='.$category->Id;
65 if ($image != null) {
66 $this->Title = htmlspecialchars($image->Title);
67 $this->Link = 'image.php?id='.$image->Id;
68 $this->PictureLink = 'picture.php?id='.$image->PictureId;
69 }
70 }
store_form.tpl (https://gitlab.com/reclamare/mao) Smarty Template · 811 lines
42 <div class="tab-pane active" id="tab-general">
43 <div class="form-group required">
44 <label class="col-sm-2 control-label" for="input-url"><span data-toggle="tooltip" data-html="true" title="<?php echo htmlspecialchars($help_url); ?>"><?php echo $entry_url; ?></span></label>
45 <div class="col-sm-10">
46 <input type="text" name="config_url" value="<?php echo $config_url; ?>" placeholder="<?php echo $entry_url; ?>" id="input-url" class="form-control" />
68 <label class="col-sm-2 control-label" for="input-owner"><?php echo $entry_owner; ?></label>
69 <div class="col-sm-10">
70 <input type="text" name="config_owner" value="<?php echo $config_owner; ?>" placeholder="<?php echo $entry_owner; ?>" id="input-owner" class="form-control" />
71 <?php if ($error_owner) { ?>
171 <label class="col-sm-2 control-label" for="input-meta-keyword"><?php echo $entry_meta_keyword; ?></label>
172 <div class="col-sm-10">
173 <textarea name="config_meta_keyword" rows="5" placeholder="<?php echo $entry_meta_keyword; ?>" id="input-meta-keyword" class="form-control"><?php echo $config_meta_keyword; ?></textarea>
174 </div>
175 </div>
196 <?php if ($layout['layout_id'] == $config_layout_id) { ?>
197 <option value="<?php echo $layout['layout_id']; ?>" selected="selected"><?php echo $layout['name']; ?></option>
198 <?php } else { ?>
Message.class.php (https://github.com/slikk66/DbAdmin.git) PHP · 749 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Holds class PMA_Message
5 *
6 * @package PhpMyAdmin
7 */
56 * </code>
57 *
58 * @package PhpMyAdmin
59 */
60 class PMA_Message
457 $this->params[] = $param;
458 } elseif ($raw) {
459 $this->params[] = htmlspecialchars($param);
460 } else {
461 $this->params[] = PMA_Message::notice($param);
highschool.php (https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment) PHP · 459 lines
1 <?php
3 $highschool = [
5 'field' => 'child_fname',
6 'label' => 'Child First name',
7 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
8 ),
9 array(
10 'field' => 'child_lname',
11 'label' => 'Child Last Name',
12 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
13 ),
14 array(
15 'field' => 'child_mname',
16 'label' => 'Childs Middle Name',
17 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
18 ),
19 array(
class-s2-form-widget.php (https://github.com/livinglab/openlab.git) PHP · 198 lines
1 <?php
2 class S2_Form_Widget extends WP_Widget {
136 $instance = wp_parse_args( (array) $instance, $defaults );
138 $title = htmlspecialchars( $instance['title'], ENT_QUOTES );
139 $div = htmlspecialchars( $instance['div'], ENT_QUOTES );
140 $widgetprecontent = htmlspecialchars( $instance['widgetprecontent'], ENT_QUOTES );
141 $widgetpostcontent = htmlspecialchars( $instance['widgetpostcontent'], ENT_QUOTES );
142 $size = htmlspecialchars( $instance['size'], ENT_QUOTES );
143 $hidebutton = htmlspecialchars( $instance['hidebutton'], ENT_QUOTES );
144 $postto = htmlspecialchars( $instance['postto'], ENT_QUOTES );
145 $js = htmlspecialchars( $instance['js'], ENT_QUOTES );
ajax_actions.js (https://github.com/AmirHossein/JoCo.git) JavaScript · 176 lines
27 }
28 var xmlHttp = ajaxRequest();
29 xmlHttp.open("GET" , "index.php?id=" +mKey+ "&comment_action=" + action + "&comment_id=" + id + query, true);
31 xmlHttp.onreadystatechange=function()
131 message = message.replace(" ", "\t");
132 message = message.replace('<span class="highlight">', "").replace('</span>', "");
133 message = message.replace("<","<").replace(">",">"); // htmlspecialchars() - 0.9.2
134 }
135 document.getElementById("textarea_" + id).value = message;
gallery.tpl.php (https://gitlab.com/endomorphosis/jeffersonsmithmayor) PHP · 122 lines
37 <div class="tubepress_thumb">
38 <a id="tubepress_image_<?php echo $video->getId(); ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>" rel="tubepress_<?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_IMPL_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::PLAYER_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>">
39 <img alt="<?php echo htmlspecialchars($video->getTitle(), ENT_QUOTES, "UTF-8"); ?>" src="<?php echo $video->getThumbnailUrl(); ?>" width="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_WIDTH}; ?>" height="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_HEIGHT}; ?>" />
43 <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::TITLE]): ?>
44 <dt class="tubepress_meta tubepress_meta_title"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::TITLE]; ?></dt><dd class="tubepress_meta tubepress_meta_title"><a id="tubepress_title_<?php echo $video->getId(); ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>" rel="tubepress_<?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_IMPL_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::PLAYER_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>"><?php echo htmlspecialchars($video->getTitle(), ENT_QUOTES, "UTF-8"); ?></a></dd>
45 <?php endif; ?>
57 <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::KEYWORDS]): ?>
59 <dt class="tubepress_meta tubepress_meta_keywords"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::KEYWORDS]; ?></dt><dd class="tubepress_meta tubepress_meta_keywords"><?php echo $raw = htmlspecialchars(implode(" ", $video->getKeywords()), ENT_QUOTES, "UTF-8"); ?></dd>
60 <?php endif; ?>
62 <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::URL]): ?>
64 <dt class="tubepress_meta tubepress_meta_url"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::URL]; ?></dt><dd class="tubepress_meta tubepress_meta_url"><a rel="external nofollow" href="<?php echo $video->getHomeUrl(); ?>"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::URL]; ?></a></dd>
65 <?php endif; ?>
profil.php (https://github.com/Theblues/Agenda-Electronique.git) PHP · 199 lines
1 <?php
2 session_start();
4 include 'core.inc.php';
5 include 'interactionDB.inc.php';
7 if (!$_SESSION)
8 redirect("index.php");
10 $id_user = $_SESSION['id'];
17 if (isset($_GET['nom']) && isset($_GET['prenom']))
18 {
19 $nom_user = htmlspecialchars($_GET['nom']);
20 $prenom_user = htmlspecialchars($_GET['prenom']);
Xml.php (https://github.com/testlinkjp/testlink-japanese-localization.git) PHP · 589 lines
1 <?php
3 /**
5 */
7 include_once 'Sanitizer.php';
9 class Xml {
31 $out .= ' />';
32 } else {
33 $out .= '>' . htmlspecialchars( $contents ) . "</$element>";
34 }
35 }
430 * Encode a variable of unknown type to JavaScript.
431 * Arrays are converted to JS arrays, objects are converted to JS associative
432 * arrays (objects). So cast your PHP associative arrays to objects before
433 * passing them to here.
434 */
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 }
37 case 'html':
38 if ($_double_encode) {
39 // php >=5.3.2 - go native
40 return htmlspecialchars($string, ENT_QUOTES, $char_set, $double_encode);
form_valiadiation_with_require.php (https://gitlab.com/Garincha/PHP_Fundametals) PHP · 119 lines
41 $data1 = trim($data);//then it goes through trim function and stores in $data1.
42 $data2 = stripcslashes($data1);//then it goes through stripclashed function and stores in $data2
43 $data3 = htmlspecialchars($data2);//then it goes through htmlspecialchars function and stores in $data3
44 return $data3;
45 }
61 <div class="code">
62 <div class="headeroption">
63 <h2><?php echo 'PHP Fundamentals'?></h2>
64 </div>
65 <div class="maincontent">
67 echo 'PHP Form Validation';
68 ?>
69 <form method="post" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']);//in action we are using this code to take action within this page or we can leave the place empty.to protect hacking we are using htmlspecialchars?>">
70 <table>
71 <p style="color:red">* Required Field</p>
store_form.tpl (https://gitlab.com/shapcy/opencart) Smarty Template · 627 lines
42 <div class="tab-pane active" id="tab-general">
43 <div class="form-group required">
44 <label class="col-sm-2 control-label" for="input-url"><span data-toggle="tooltip" data-html="true" title="<?php echo htmlspecialchars($help_url); ?>"><?php echo $entry_url; ?></span></label>
45 <div class="col-sm-10">
46 <input type="text" name="config_url" value="<?php echo $config_url; ?>" placeholder="<?php echo $entry_url; ?>" id="input-url" class="form-control" />
68 <label class="col-sm-2 control-label" for="input-meta-description"><?php echo $entry_meta_description; ?></label>
69 <div class="col-sm-10">
70 <textarea name="config_meta_description" rows="5" placeholder="<?php echo $entry_meta_description; ?>" id="input-meta-description" class="form-control"><?php echo $config_meta_description; ?></textarea>
71 </div>
72 </div>
172 </div>
173 <div class="form-group">
174 <label class="col-sm-2 control-label" for="input-open"><span data-toggle="tooltip" title="<?php echo $help_open; ?>"><?php echo $entry_open; ?></span></label>
175 <div class="col-sm-10">
176 <textarea name="config_open" rows="5" placeholder="<?php echo $entry_open; ?>" id="input-open" class="form-control"><?php echo $config_open; ?></textarea>
google.php (https://gitlab.com/Ltaimao/wecenter) PHP · 338 lines
1 <?php
2 /*
3 +--------------------------------------------------------------------------
215 'client_id' => get_setting('google_client_id'),
216 'client_secret' => get_setting('google_client_secret'),
217 'refresh_token' => htmlspecialchars_decode($user_info['refresh_token']),
218 'grant_type' => 'refresh_token'
219 );
244 $this->update('users_google', array(
245 'access_token' => htmlspecialchars($result['access_token']),
246 'expires_time' => time() + intval($result['expires_in'])
247 ), 'id = ' . $user_info['id']);
259 return $this->insert('users_google', array(
260 'id' => htmlspecialchars($google_user['id']),
261 'uid' => intval($uid),
262 'name' => htmlspecialchars($google_user['name']),
sp-colorbox-settings.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 331 lines
67 </th>
68 <td>
69 <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshowSpeed]" id="jquery-colorbox-slideshowSpeed" value="<?php echo $this->colorboxSettings['slideshowSpeed'] ?>" size="5" maxlength="5"/><?php _e('milliseconds', JQUERYCOLORBOX_TEXTDOMAIN); ?>
70 <br/><?php _e('Sets the speed of the slideshow, in milliseconds', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
177 <label for="jquery-colorbox-height-custom-radio"><?php _e('Set height of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
178 <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[heightValue]" id="jquery-colorbox-heightValue" value="<?php echo $this->colorboxSettings['heightValue'] ?>" size="5" maxlength="5"/>
179 <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[heightUnit]" id="jquery-colorbox-height-unit" class="postform" style="margin:0">
244 <!-- </th>-->
245 <!-- <td>-->
246 <!-- <input type="text" name="--><?php //echo JQUERYCOLORBOX_SETTINGSNAME ?><!--[initialWidth]" id="jquery-colorbox-initialWidth" value="--><?php //echo $this->colorboxSettings['initialWidth'] ?><!--" size="5" maxlength="5"/>--><?php __('pixels', JQUERYCOLORBOX_TEXTDOMAIN) ?>
247 <!-- <br/>--><?php __('Set the maximum width of the Colorbox before the content is loaded', JQUERYCOLORBOX_TEXTDOMAIN); ?><!--.-->
253 <!-- </th>-->
254 <!-- <td>-->
255 <!-- <input type="text" name="--><?php //echo JQUERYCOLORBOX_SETTINGSNAME ?><!--[initialHeight]" id="jquery-colorbox-initialHeight" value="--><?php //echo $this->colorboxSettings['initialHeight'] ?><!--" size="5" maxlength="5"/>--><?php __('pixels', JQUERYCOLORBOX_TEXTDOMAIN) ?>
256 <!-- <br/>--><?php __('Set the maximum height of the Colorbox before the content is loaded', JQUERYCOLORBOX_TEXTDOMAIN); ?><!--.-->
Form.php (https://github.com/tquensen/MiniMVC.git) PHP · 363 lines
1 <?php
3 class MiniMVC_Form
350 // } elseif (!$field = $this->getElement($_POST['_validateField'])) {
351 // $t = MiniMVC_Registry::getInstance()->helper->i18n->get('_form');
352 // $response = array('status' => false, 'message' => $t->errorAjaxInvalidField('field=' . htmlspecialchars($_POST['_validateField'])));
353 // } else {
354 // $field->setValue($_POST['_validateValue']);
Tidy.php (https://gitlab.com/afzalpotenza/YII_salon) PHP · 230 lines
kXml.class.php (https://github.com/richhl/kalturaCE.git) PHP · 231 lines
shortcodes.php (https://github.com/mgsisk/webcomic.git) PHP · 458 lines
1 <?php
2 /**
3 * Commerce shortcodes
53 if ( $content ) {
54 $args['link'] = do_shortcode( htmlspecialchars_decode( $content ) );
55 }
57 $args['link'] = htmlspecialchars_decode( $args['link'] );
59 return get_webcomic_collection_cart_link( $args['link'], $args['collection'] );
130 if ( $content ) {
131 $args['link'] = do_shortcode( htmlspecialchars_decode( $content ) );
132 }
HtmlTag.php (https://github.com/leerbag/zf2.git) PHP · 311 lines
1 <?php
2 /**
3 * Zend Framework
283 $attribute = sprintf('style="font-size: %d%s;"', $tag->getParam('weightValue'), $this->getFontSizeUnit());
284 } else {
285 $attribute = sprintf('class="%s"', htmlspecialchars($tag->getParam('weightValue'), ENT_COMPAT, $enc));
286 }
288 $tagHTML = sprintf('<a href="%s" %s>%s</a>', htmlSpecialChars($tag->getParam('url'), ENT_COMPAT, $enc), $attribute, $tag->getTitle());
290 foreach ($this->getHTMLTags() as $key => $data) {
295 foreach ($data as $param => $value) {
296 $attributes .= ' ' . $param . '="' . htmlspecialchars($value, ENT_COMPAT, $enc) . '"';
297 }
298 } else {
Standalone.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 324 lines
1 <?php
2 /**
3 * Zend Framework
17 * @subpackage Helper
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Standalone.php 20143 2010-01-08 15:17:11Z matthew $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
23 /** Zend_View_Helper_Placeholder_Registry */
24 // require_once 'Zend/View/Helper/Placeholder/Registry.php';
26 /** Zend_View_Helper_Abstract.php */
27 // require_once 'Zend/View/Helper/Abstract.php';
29 /**
SpecialFirstSteps.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 248 lines
APCHostMode.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 202 lines
1 <?php
3 class APCHostMode {
9 APCUtils::tableRow( $r = 1 - $r, wfMsgHtml( 'viewapc-apc-version' ), phpversion( 'apc' ) ) .
10 APCUtils::tableRow( $r = 1 - $r, wfMsgHtml( 'viewapc-php-version' ), phpversion() ) .
12 APCUtils::tableRow( $r = 1 - $r, wfMsgHtml( 'viewapc-shared-memory' ),
66 foreach ( ini_get_all( 'apc' ) as $k => $v ) {
67 $s .= APCUtils::tableRow( $r = 1 - $r,
68 htmlspecialchars( $k ),
69 str_replace( ',', ',<br />', htmlspecialchars( $v['local_value'] ) ) );
controller.php (https://gitlab.com/ilya.webcity/anna) PHP · 288 lines
1 <?php
3 class controller_faq extends controller {
214 // это админ, все ок
215 $model = LoadModel('faq');
216 $id = htmlspecialchars($this->req['id']);
218 $result = $model->getOneFaq($id);
254 $inputArray = array(
255 'ans_fuser' => (int)htmlspecialchars($this->req['FromU']),
256 'ans_tuser' => (int)htmlspecialchars($this->req['ToU']),
257 'ans_theme' => htmlspecialchars($this->req['theme']),
258 'ans_ask' => htmlspecialchars($this->req['ans_ask']),
pmd_common.php (https://bitbucket.org/subhan_12/mwi-panel.git) PHP · 262 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @package PhpMyAdmin-Designer
5 */
6 /**
7 *
8 */
9 if (! defined('PHPMYADMIN')) {
10 exit;
11 }
44 = urlencode($one_table['TABLE_NAME']);
46 $GLOBALS['PMD_OUT']['TABLE_NAME'][$i] = htmlspecialchars(
47 $GLOBALS['db'] . "." . $one_table['TABLE_NAME'], ENT_QUOTES
48 );
bug49785.php (https://github.com/tstarling/hiphop-php.git) PHP · 136 lines
1 <?php
2 function _bin2hex($val) {
3 return is_string($val) ? bin2hex($val): $val;
41 echo "--\n";
42 echo "UTF-8: alternative (invalid) UTF-8 sequence / surrogate pairs\n";
43 var_dump(_bin2hex(htmlspecialchars("\xc0\xa6", ENT_QUOTES, 'UTF-8')));
44 var_dump(_bin2hex(htmlspecialchars("\xe0\x80\xa6", ENT_QUOTES, 'UTF-8')));
45 var_dump(_bin2hex(htmlspecialchars("\xf0\x80\x80\xa6", ENT_QUOTES, 'UTF-8')));
46 var_dump(_bin2hex(htmlspecialchars("\xec\xbf\xbf", ENT_QUOTES, 'UTF-8')));
47 var_dump(_bin2hex(htmlspecialchars("\xed\xa0\x80", ENT_QUOTES, 'UTF-8')));
48 var_dump(_bin2hex(htmlspecialchars("\xed\xbf\xbf", ENT_QUOTES, 'UTF-8')));
49 var_dump(_bin2hex(htmlspecialchars("\xee\x80\x80", ENT_QUOTES, 'UTF-8')));
51 echo "--\n";
usertypepropertydiskfile.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 197 lines
shortcodes.php (https://github.com/mgsisk/webcomic.git) PHP · 537 lines
1 <?php
2 /**
3 * Taxonomy shortcodes
63 if ( is_string( $args['args'] ) ) {
64 parse_str( htmlspecialchars_decode( $args['args'] ), $args['args'] );
65 }
92 if ( is_string( $args['args'] ) ) {
93 parse_str( htmlspecialchars_decode( $args['args'] ), $args['args'] );
94 }
127 if ( is_string( $args['args'] ) ) {
128 parse_str( htmlspecialchars_decode( $args['args'] ), $args['args'] );
129 }
shortcodes.php (https://github.com/mgsisk/webcomic.git) PHP · 854 lines
1 <?php
2 /**
3 * Deprecated shortcodes
60 * @param string $name Shortcode name.
61 * @return string
62 * @SuppressWarnings(PHPMD.StaticAccess) - Required for compatibility.
63 */
64 function the_webcomic_collections_shortcode( $atts, string $content, string $name ) : string {
87 * @param string $name Shortcode name.
88 * @return string
89 * @SuppressWarnings(PHPMD.StaticAccess) - Required for compatibility.
90 */
91 function the_related_webcomics_shortcode( $atts, string $content, string $name ) : string {
115 * @param string $name Shortcode name.
116 * @return string
117 * @SuppressWarnings(PHPMD.StaticAccess) - Required for compatibility.
118 */
119 function webcomic_collection_poster_shortcode( $atts, string $content, string $name ) : string {
shortcodes.php (https://github.com/mgsisk/webcomic.git) PHP · 795 lines
1 <?php
2 /**
3 * Collection shortcodes
176 if ( $content ) {
177 $args['format'] = do_shortcode( htmlspecialchars_decode( $content ) );
178 }
215 if ( $content ) {
216 $args['link'] = do_shortcode( htmlspecialchars_decode( $content ) );
217 }
219 $args['link'] = htmlspecialchars_decode( $args['link'] );
221 if ( is_string( $args['args'] ) ) {
OrganisationSelectionField.php (https://bitbucket.org/valmy/openx.git) PHP · 333 lines
1 <?php
3 /*
26 */
28 require_once MAX_PATH . '/lib/max/Admin/UI/Field.php';
29 require_once MAX_PATH . '/lib/max/Admin/UI/OrganisationScope.php';
30 require_once MAX_PATH . '/lib/max/Admin_DA.php';
31 require_once MAX_PATH . '/lib/max/other/common.php';
34 {
35 /**
36 * PHP4-style constructor
37 *
38 * @param array $aFieldSelectionNames A list of the predefined 'friendly' selections.
Tile.php (https://bitbucket.org/yeahyahoo/yeahyahoo.bitbucket.org.git) PHP · 365 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Mobile_Push_Message_Mpns **/
23 require_once 'Zend/Mobile/Push/Message/Mpns.php';
25 /**
325 $ret = '<?xml version="1.0" encoding="utf-8"?>'
326 . '<wp:Notification xmlns:wp="WPNotification">'
327 . '<wp:Tile' . (($this->_tileId) ? 'Id="' . htmlspecialchars($this->_tileId) . '"' : '') . '>'
328 . '<wp:BackgroundImage>' . htmlspecialchars($this->_backgroundImage) . '</wp:BackgroundImage>'
329 . '<wp:Count>' . (int) $this->_count . '</wp:Count>'
330 . '<wp:Title>' . htmlspecialchars($this->_title) . '</wp:Title>';
332 if ($this->_backBackgroundImage) {
window_controls_extratabs-ac49a0b22260c5bdb1c8787d774f0200.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 764 lines
1 <?php
2 // URI: design/admin2/templates/window_controls_extratabs.tpl
3 // Filename: design/admin2/templates/window_controls_extratabs.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= ' ';
159 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
160 $var1 = $var1->templateValue();
161 $var = htmlspecialchars( $var1 );
162 unset( $var1 );
163 if (! isset( $var ) ) $var = NULL;
257 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
258 $var1 = $var1->templateValue();
259 $var = htmlspecialchars( $var1 );
260 unset( $var1 );
261 if (! isset( $var ) ) $var = NULL;
pagelayout-ab20c5221634928b41a1af19e2e2689f.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 1421 lines
1 <?php
2 // URI: design:pagelayout.tpl
3 // Filename: design/admin2/templates/pagelayout.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= '<!DOCTYPE html>
32 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
33 $var1 = $var1->templateValue();
34 $var = htmlspecialchars( $var1 );
35 unset( $var1 );
36 if (! isset( $var ) ) $var = NULL;
708 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
709 $var1 = $var1->templateValue();
710 $var = htmlspecialchars( $var1 );
711 unset( $var1 );
712 if (! isset( $var ) ) $var = NULL;
page_header_links-d18ca8f54e1eaf31f659de472c270585.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 1079 lines
1 <?php
2 // URI: extension/ezwebin/design/ezwebin/templates/page_header_links.tpl
3 // Filename: extension/ezwebin/design/ezwebin/templates/page_header_links.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= '<div id="links">
118 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
119 $var1 = $var1->templateValue();
120 $var = htmlspecialchars( $var1 );
121 unset( $var1 );
122 if (! isset( $var ) ) $var = NULL;
145 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
146 $var1 = $var1->templateValue();
147 $var = htmlspecialchars( $var1 );
148 unset( $var1 );
149 if (! isset( $var ) ) $var = NULL;
page_header_languages-c5dc1772a2d92b2df9825dbc4bcb4f84.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 412 lines
1 <?php
2 // URI: extension/ezwebin/design/ezwebin/templates/page_header_languages.tpl
3 // Filename: extension/ezwebin/design/ezwebin/templates/page_header_languages.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= '<div id="languages">
358 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
359 $var1 = $var1->templateValue();
360 $var = htmlspecialchars( $var1 );
361 unset( $var1 );
362 if (! isset( $var ) ) $var = NULL;
page_head-ba84edd1315836891b1b792f4cac2080.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 1065 lines
1 <?php
2 // URI: design/standard/templates/page_head.tpl
3 // Filename: design/standard/templates/page_head.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 if ( !isset( $vars[$currentNamespace]['enable_help'] ) )
299 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
300 $var1 = $var1->templateValue();
301 $var = htmlspecialchars( $var1 );
302 unset( $var1 );
303 if (! isset( $var ) ) $var = NULL;
327 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
328 $var1 = $var1->templateValue();
329 $var = htmlspecialchars( $var1 );
330 unset( $var1 );
331 if (! isset( $var ) ) $var = NULL;
page_head-4404198f3316ea87bc026bf9c9ee6d34.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 1176 lines
1 <?php
2 // URI: extension/ezwebin/design/ezwebin/templates/page_head.tpl
3 // Filename: extension/ezwebin/design/ezwebin/templates/page_head.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 if ( !isset( $vars[$currentNamespace]['enable_help'] ) )
385 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
386 $var1 = $var1->templateValue();
387 $var = htmlspecialchars( $var1 );
388 unset( $var1 );
389 if (! isset( $var ) ) $var = NULL;
413 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
414 $var1 = $var1->templateValue();
415 $var = htmlspecialchars( $var1 );
416 unset( $var1 );
417 if (! isset( $var ) ) $var = NULL;
full-d516513b055c6f28fd2e7e147dc24d2f.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 1000 lines
1 <?php
2 // URI: design:node/view/full.tpl
3 // Filename: extension/ezwebin/design/ezwebin/templates/node/view/full.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= '<div class="border-box">
52 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
53 $var1 = $var1->templateValue();
54 $var = htmlspecialchars( $var1 );
55 unset( $var1 );
56 if (! isset( $var ) ) $var = NULL;
meta_array.php (https://bitbucket.org/lishnih/phpndt.yii2.git) PHP · 185 lines
single_video.tpl.php (https://github.com/midnightskinhead/tubepress.git) PHP · 106 lines
46 <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::TAGS]): ?>
48 <dt class="tubepress_meta tubepress_meta_keywords"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::TAGS]; ?></dt><dd class="tubepress_meta tubepress_meta_keywords"><?php echo $raw = htmlspecialchars(implode(" ", $video->getKeywords()), ENT_QUOTES, "UTF-8"); ?></dd>
49 <?php endif; ?>
51 <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::URL]): ?>
53 <dt class="tubepress_meta tubepress_meta_url"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::URL]; ?></dt><dd class="tubepress_meta tubepress_meta_url"><a rel="external nofollow" href="<?php echo $video->getHomeUrl(); ?>"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::URL]; ?></a></dd>
54 <?php endif; ?>
58 ?>
60 <dt class="tubepress_meta tubepress_meta_category"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::CATEGORY]; ?></dt><dd class="tubepress_meta tubepress_meta_category"><?php echo htmlspecialchars($video->getCategory(), ENT_QUOTES, "UTF-8"); ?></dd>
61 <?php endif; ?>
99 <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::DESCRIPTION]): ?>
101 <dt class="tubepress_meta tubepress_meta_description"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::DESCRIPTION]; ?></dt><dd class="tubepress_meta tubepress_meta_description"><?php echo htmlspecialchars($video->getDescription(), ENT_QUOTES, "UTF-8"); ?></dd>
102 <?php endif; ?>
ezsimpletagsoperator.php (https://github.com/lserwatka/ezpublish.git) PHP · 225 lines
141 }
143 $textPHPFunctions = array( 'htmlspecialchars' );
144 $textPre = false;
145 $textPost = false;
171 {
172 $tagOptions = $tagMap[$tag];
173 $phpFunctions = $tagOptions['phpfunctions'];
174 if ( !$isEndTag )
175 {
207 {
208 $text = $originalText;
209 foreach ( $textPHPFunctions as $textPHPFunction )
210 {
211 $text = $textPHPFunction( $text );
Standalone.php (https://bitbucket.org/haichau59/manga.git) PHP · 324 lines
1 <?php
2 /**
3 * Zend Framework
17 * @subpackage Helper
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Standalone.php 24594 2012-01-05 21:27:01Z matthew $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
23 /** Zend_View_Helper_Placeholder_Registry */
24 //require_once 'Zend/View/Helper/Placeholder/Registry.php';
26 /** Zend_View_Helper_Abstract.php */
27 //require_once 'Zend/View/Helper/Abstract.php';
29 /**
mysql.class.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 735 lines
1 <?php
3 /**
8 */
10 if ( defined( 'NV_CLASS_SQL_DB_PHP' ) ) return;
11 define( 'NV_CLASS_SQL_DB_PHP', true );
224 $this->query_result = @mysql_query( $query, $this->db_connect_id );
225 $this->query_strs[] = array(
226 htmlspecialchars( $query ), ( $this->query_result ? true : false )
227 );
228 }
SpecialListUserRestrictions.php (https://github.com/sunnysujan/wikireader.git) PHP · 162 lines
test-engines.rb (https://github.com/bharathi2011/example.git) Ruby · 369 lines
8 require 'erubis'
9 require 'erubis/engine/eruby'
10 require 'erubis/engine/ephp'
11 require 'erubis/engine/ec'
12 require 'erubis/engine/ejava'
68 _buf.to_s
69 ##
70 - name: php1
71 lang: php
72 class: Ephp
73 options:
74 input: |
101 <td><?php echo $i; ?></td>
102 <td><?php echo htmlspecialchars($item); ?></td>
103 </tr>
104 <?php
Tile.php (https://github.com/timglabisch/pimcore.git) PHP · 365 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Mobile_Push_Message_Mpns **/
23 // require_once 'Zend/Mobile/Push/Message/Mpns.php';
25 /**
325 $ret = '<?xml version="1.0" encoding="utf-8"?>'
326 . '<wp:Notification xmlns:wp="WPNotification">'
327 . '<wp:Tile' . (($this->_tileId) ? ' Id="' . htmlspecialchars($this->_tileId) . '"' : '') . '>'
328 . '<wp:BackgroundImage>' . htmlspecialchars($this->_backgroundImage) . '</wp:BackgroundImage>'
329 . '<wp:Count>' . (int) $this->_count . '</wp:Count>'
330 . '<wp:Title>' . htmlspecialchars($this->_title) . '</wp:Title>';
332 if ($this->_backBackgroundImage) {
Scripts.php (https://gitlab.com/luyxtran264/myproject) PHP · 292 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * JavaScript management
5 *
6 * @package PhpMyAdmin
7 */
8 namespace PMA\libraries;
13 * the page and generates the relevant code.
14 *
15 * @package PhpMyAdmin
16 */
17 class Scripts
89 $script_chunks = array_chunk($scripts, 20);
90 foreach ($script_chunks as $script_chunk) {
91 $url = 'js/get_scripts.js.php?'
92 . implode($separator, $script_chunk)
93 . $separator . Header::getVersionParameter();
Standalone.php (https://bitbucket.org/hmancvs/farmis.git) PHP · 324 lines
1 <?php
2 /**
3 * Zend Framework
17 * @subpackage Helper
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Standalone.php,v 1.1 2011/11/03 08:30:03 smusoke Exp $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
23 /** Zend_View_Helper_Placeholder_Registry */
24 require_once 'Zend/View/Helper/Placeholder/Registry.php';
26 /** Zend_View_Helper_Abstract.php */
27 require_once 'Zend/View/Helper/Abstract.php';
29 /**
navi.modul.php (https://github.com/pschichtel/Infected-CMS.git) PHP · 511 lines
1 <?php
2 realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']) and die('<strong>Access denied!</strong>');
3 if (!user::loggedIn())
19 if (isset($_POST['post']))
20 {
21 $name = htmlspecialchars(trim($_POST['name']));
22 $addr = htmlspecialchars(trim($_POST['addr']));
304 if (isset($_POST['post']))
305 {
306 $name = htmlspecialchars(trim($_POST['name']));
307 $addr = htmlspecialchars(trim($_POST['addr']));
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><?php</BEGIN>
16 </SPAN>
18 <SPAN TYPE="MARKUP" DELEGATE="PHP">
19 <BEGIN><?</BEGIN>
20 <END>?></END>
21 </SPAN>
23 <SPAN TYPE="MARKUP" DELEGATE="PHP">
24 <BEGIN><%=</BEGIN>
25 <END>%></END>
65 <RULES SET="TAGS" DEFAULT="MARKUP">
66 <SPAN TYPE="MARKUP" DELEGATE="PHP">
67 <BEGIN><?php</BEGIN>
inline.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 155 lines
1 <?php
3 require_once 'Text/Diff/Renderer.php';
8 * This class renders diffs in the Wiki-style "inline" format.
9 *
10 * $Horde: framework/Text_Diff/Diff/Renderer/inline.php,v 1.16 2006/01/08 00:06:57 jan Exp $
11 *
12 * @author Ciprian Popovici
150 function _encode(&$string)
151 {
152 $string = htmlspecialchars($string);
153 }
usertypestr.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 498 lines
1 <?
2 /**
3 * usertypestr.php, ��� ��� ���������������� ������� - ������
4 *
5 * "".
102 *
103 * <p> html 2- .
104 * � ����� usertype_edit.php</p>
105 * <p>.. tr td bla-bla /td td edit-edit-edit /td /tr </p>
106 * @param array $arUserField . ( - <b>false</b>)
113 $result = '';
114 if($bVarsFromForm)
115 $value = htmlspecialcharsbx($GLOBALS[$arHtmlControl["NAME"]]["DEFAULT_VALUE"]);
116 elseif(is_array($arUserField))
117 $value = htmlspecialcharsbx($arUserField["SETTINGS"]["DEFAULT_VALUE"]);
index.php (https://github.com/beletsky/restorandoma.git) PHP · 146 lines
6 # Copyright () 2003, Ilya Blagorodov, Sergey Efremov #
7 # #
8 # admin/adm/resources/index.php #
9 # . #
10 # #
22 define ('ACT_DEL_PROC', 'del_proc');
24 require (PATH_TO_ADMIN . 'inc/top.inc.php');
25 include_once (PATH_TO_ADMIN . 'inc/func_resources.inc.php');
79 print GetList();
81 require (PATH_TO_ADMIN . 'inc/bottom.inc.php');
89 $tpl->set_var('THIS_PAGE', $this_page);
90 $tpl->set_var('ID', isset($form['ID_Resource']) ? $form['ID_Resource'] : '');
91 $tpl->set_var('NAME', isset($form['ResourceName']) ? htmlspecialchars($form['ResourceName']) : '');
92 $tpl->set_var('CODE', isset($form['ResourceCode']) ? htmlspecialchars($form['ResourceCode']) : '');
dirlib.php (https://gitlab.com/ElvisAns/tiki) PHP · 863 lines
1 <?php
3 // (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
11 //this script may only be included - so its better to die if called directly.
12 if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
13 header("location: index.php");
14 exit;
15 }
62 $path = '';
63 $info = $this->dir_get_category($categId);
64 $path = '<a class="dirlink" href="tiki-directory_browse.php?parent=' . $info["categId"] . '">' . htmlspecialchars($info["name"]) . '</a>';
65 while ($info["parent"] != 0) {
66 $info = $this->dir_get_category($info["parent"]);
67 $path = '<a class="dirlink" href="tiki-directory_browse.php?parent=' . $info["categId"] . '">' . htmlspecialchars($info["name"]) . '</a> ' . $prefs['site_crumb_seper'] . ' ' . $path;
68 }
php_calendar.php
(http://phpwcms.googlecode.com/svn/trunk/)
PHP · 150 lines
✨ Summary
The PHP code generates a calendar table with the current month and year, displaying days of the week and dates. It takes into account day names, weekday numbers, and user-defined links for each date. The output is an HTML string representing a calendar table, which can be used in a web page or other application to display a calendar view.
The PHP code generates a calendar table with the current month and year, displaying days of the week and dates. It takes into account day names, weekday numbers, and user-defined links for each date. The output is an HTML string representing a calendar table, which can be used in a web page or other application to display a calendar view.
1 <?php
3 ////////////////////////////////////////////////////////
5 // PHP Calendar (version 2.3), written by Keith Devens
6 // http://keithdevens.com/software/php_calendar
8 // License: http://keithdevens.com/software/license
10 // enhanced by Oliver Georgi for phpwcms
54 @list($p, $pl) = each($pn);
55 @list($n, $nl) = each($pn); //previous and next links, if applicable
56 if($p) $p = '<span class="calendarPrev'.$styleAdd.'">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
57 if($n) $n = ' <span class="calendarNext'.$styleAdd.'">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';