PageRenderTime 166ms queryTime 45ms sortTime 5ms getByIdsTime 27ms findMatchingLines 31ms

100+ results results for 'php addslashes' (166 ms)

Not the results you expected?
applications.php https://github.com/terasa/import_repo.git | PHP | 276 lines
                    
1<?php
                    
2
                    
30    $ret = array();
                    
31    include_once PartuzaConfig::get('models_root') . "/oauth/oauth.php";
                    
32    $oauth = new oauthModel();
                    
32    $oauth = new oauthModel();
                    
33    $id = $db->addslashes($id);
                    
34    $res = $db->query("select applications.*, person_applications.id as mod_id from person_applications, applications where person_applications.person_id = $id and applications.id = person_applications.application_id");
                    
45    global $db;
                    
46    include_once PartuzaConfig::get('models_root') . "/oauth/oauth.php";
                    
47    $oauth = new oauthModel();
                    
61    $this->invalidate_dependency('person_application_prefs', $person_id);
                    
62    $person_id = $db->addslashes($person_id);
                    
63    $app_id = $db->addslashes($app_id);
                    
63    $app_id = $db->addslashes($app_id);
                    
64    $key = $db->addslashes($key);
                    
65    $value = $db->addslashes($value);
                    
                
func.php https://github.com/DX66/private_sales.git | PHP | 254 lines
                    
1<?php
                    
2/* vim: set ts=4 sw=4 sts=4 et: */
                    
10| FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE  |
                    
11| AT THE FOLLOWING URL: http://www.x-cart.com/license.php                     |
                    
12|                                                                             |
                    
41 * @copyright  Copyright (c) 2001-2011 Ruslan R. Fazlyev <rrf@x-cart.com>
                    
42 * @license    http://www.x-cart.com/license.php X-Cart license agreement
                    
43 * @version    $Id: func.php,v 1.31.2.1 2011/01/10 13:12:04 ferz Exp $
                    
97        $user = func_query_first_cell("SELECT parent FROM $sql_tbl[customers] WHERE id = '$user'");
                    
98        $user = addslashes($user);
                    
99        $level++;
                    
151    }
                    
152    $href = 'home.php?partner=' . $_partner;
                    
153    $partner_url = $xcart_catalogs['customer'] . '/' . $href . '&amp;bid=' . $_bid . ($iframe_referer ? '&amp;iframe_referer=' . $iframe_referer : "");
                    
162            if ($e['image_type'] == "application/x-shockwave-flash") {
                    
163                $banner_url = urlencode($current_location . '/image.php?type=L&id=' . $e['id']);
                    
164                $flash_container = $current_location . '/flash_container.swf';
                    
                
extension.driver.php https://github.com/bauhouse/sym-extensions.git | PHP | 320 lines
                    
1<?php
                    
2
                    
78					? mysql_real_escape_string($_POST['front-end-authentication']['username']) 
                    
79					: addslashes($_POST['front-end-authentication']['username']));
                    
80					
                    
89
                    
90					General::sendEmail($username, 'noreply@' . parse_url($params['root'], PHP_URL_HOST), $params['website-name'], $subject, $body);
                    
91					define_safe('FRONT_END_AUTHENTICATION_EMAIL_SENT', true);
                    
134			
                    
135			$username = (function_exists('mysql_real_escape_string') ? mysql_real_escape_string($username) : addslashes($username));
                    
136			$password = (function_exists('mysql_real_escape_string') ? mysql_real_escape_string($password) : addslashes($password));
                    
153			
                    
154			$username = (function_exists('mysql_real_escape_string') ? mysql_real_escape_string($username) : addslashes($username));
                    
155			
                    
                
Query.php https://github.com/michaelmcandrew/citylink.git | PHP | 267 lines
                    
1<?php 
                    
2
                    
41        $fields = array( );
                    
42        require_once 'CRM/Case/DAO/Case.php';
                    
43        $fields = array_merge( $fields, CRM_Case_DAO_Case::import( ) );
                    
94        case 'case_subject':
                    
95            $value = strtolower(addslashes(trim($value)));
                    
96            $query->_where[$grouping][] = "civicrm_case.subject $op '{$value}'";
                    
101        case 'case_status_id':
                    
102            require_once 'CRM/Core/OptionGroup.php' ;
                    
103            $caseStatus = CRM_Core_OptionGroup::values('case_status');
                    
112        case 'case_type_id':
                    
113            require_once 'CRM/Core/OptionGroup.php' ;
                    
114            $caseType = CRM_Core_OptionGroup::values('case_type');
                    
118            }
                    
119            require_once 'CRM/Case/BAO/Case.php';
                    
120            $value = CRM_Case_BAO_Case::VALUE_SEPERATOR . 
                    
                
modal.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 170 lines
                    
1<?php
                    
2/**
                    
18
                    
19require_once JPATH_ROOT . '/components/com_content/helpers/route.php';
                    
20
                    
27?>
                    
28<form action="<?php echo JRoute::_('index.php?option=com_content&view=articles&layout=modal&tmpl=component&function='.$function.'&'.JSession::getFormToken().'=1');?>" method="post" name="adminForm" id="adminForm" class="form-inline">
                    
29	<fieldset class="filter clearfix">
                    
36			<div class="btn-group pull-left">
                    
37				<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" size="30" title="<?php echo JText::_('COM_CONTENT_FILTER_SEARCH_DESC'); ?>" />
                    
38			</div>
                    
45			<?php if ($app->isAdmin()) : ?>
                    
46				<input onclick="if (window.parent) window.parent.<?php echo $this->escape($function);?>('0', '<?php echo $this->escape(addslashes(JText::_('COM_CONTENT_SELECT_AN_ARTICLE'))); ?>', null, null);" class="btn" type="button" value="<?php echo JText::_('COM_CONTENT_NONE'); ?>" />
                    
47			<?php endif; ?>
                    
135				<td>
                    
136					<a class="pointer" onclick="if (window.parent) window.parent.<?php echo $this->escape($function);?>('<?php echo $item->id; ?>', '<?php echo $this->escape(addslashes($item->title)); ?>', '<?php echo $this->escape($item->catid); ?>', null, '<?php echo $this->escape(ContentHelperRoute::getArticleRoute($item->id, $item->catid, $item->language)); ?>', '<?php echo $this->escape($lang); ?>', null);">
                    
137						<?php echo $this->escape($item->title); ?></a>
                    
                
language.php https://github.com/janmoesen/forkcms.git | PHP | 432 lines
                    
1<?php
                    
2
                    
55
                    
56		// start generating PHP
                    
57		$value = '<?php' . "\n";
                    
94					{
                    
95						$value .= '$' . $type . '[\'' . $item['module'] . '\'][\'' . $item['name'] . '\'] = \'' . str_replace('\"', '"', addslashes($item['value'])) . '\';' . "\n";
                    
96						$json[$type][$item['module']][$item['name']] = $item['value'];
                    
99					{
                    
100						$value .= '$' . $type . '[\'' . $item['name'] . '\'] = \'' . str_replace('\"', '"', addslashes($item['value'])) . '\';' . "\n";
                    
101						$json[$type][$item['name']] = $item['value'];
                    
113		// store
                    
114		SpoonFile::setContent(constant(mb_strtoupper($application) . '_CACHE_PATH') . '/locale/' . $language . '.php', $value);
                    
115
                    
356		// validate file, generate it if needed
                    
357		if(!SpoonFile::exists(FRONTEND_CACHE_PATH . '/locale/en.php')) self::buildCache('en', 'frontend');
                    
358		if(!SpoonFile::exists(FRONTEND_CACHE_PATH . '/locale/' . $language . '.php')) self::buildCache($language, 'frontend');
                    
                
people.php https://github.com/terasa/import_repo.git | PHP | 313 lines
                    
33    $this->add_dependency('people', $friend_id);
                    
34    $person_id = $db->addslashes($person_id);
                    
35    $friend_id = $db->addslashes($friend_id);
                    
45    $person_id = $db->addslashes($person_id);
                    
46    $friend_id = $db->addslashes($friend_id);
                    
47    $res = $db->query("delete from friends where (person_id = $person_id and friend_id = $friend_id) or (person_id = $friend_id and friend_id = $person_id)");
                    
67        } else {
                    
68          $updates[] = "`" . $db->addslashes($key) . "` = '" . $db->addslashes($val) . "'";
                    
69        }
                    
155    $ret = array();
                    
156    $person_id = $db->addslashes($id);
                    
157    $res = $db->query("select count(person_id) from friends where person_id = $person_id or friend_id = $person_id");
                    
281        } else {
                    
282          $updates[] = "`" . $db->addslashes($key) . "` = '" . $db->addslashes($val) . "'";
                    
283        }
                    
                
pop_topic.php https://gitlab.com/mucill/majalengka | PHP | 193 lines
                    
33require SB.'admin/default/session.inc.php';
                    
34require SB.'admin/default/session_check.inc.php';
                    
35require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
138<div class="popUpForm">
                    
139<form name="mainForm" action="pop_topic.php?biblioID=<?php echo $biblioID; ?>" method="post">
                    
140<div>
                    
140<div>
                    
141    <strong><?php echo __('Add Subject'); ?></strong>
                    
142    <hr />
                    
143    <form name="searchTopic" method="post" style="display: inline;">
                    
144    <?php
                    
145    $ajax_exp = "ajaxFillSelect('../../AJAX_vocabolary_control.php', 'mst_topic', 'topic_id:topic:topic_type', 'topicID', $('#search_str').val())";
                    
146    ?>
                    
147    <?php echo __('Keyword'); ?> : <input type="text" name="search_str" id="search_str" style="width: 30%;" onkeyup="<?php echo $ajax_exp; ?>" />
                    
148    <select name="type" style="width: 20%;"><?php
                    
                
server_user_groups.lib.php https://gitlab.com/qbarbosa/klindev | PHP | 359 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
8
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
29    $sql_query = "SELECT `username` FROM " . $usersTable
                    
30        . " WHERE `usergroup`='" . PMA_Util::sqlAddSlashes($userGroup) . "'";
                    
31    $result = PMA_queryAsControlUser($sql_query, false);
                    
72        $html_output .= '<form name="userGroupsForm" id="userGroupsForm"'
                    
73            . ' action="server_privileges.php" method="post">';
                    
74        $html_output .= PMA_URL_getHiddenInputs();
                    
102            $html_output .= '<td>';
                    
103            $html_output .= '<a class="" href="server_user_groups.php'
                    
104                . PMA_URL_getCommon(
                    
                
php.js https://github.com/inturiasgary/OC.git | JavaScript | 156 lines
                    
1editAreaLoader.load_syntax["php"] = {
                    
2	'COMMENT_SINGLE' : {1 : '//', 2 : '#'}
                    
15			'null', '__LINE__', '__FILE__',
                    
16			'false', '&lt;?php', '?&gt;', '&lt;?',
                    
17			'&lt;script language', '&lt;/script&gt;',
                    
19			'function', 'class', 'new', '&amp;new', 'this',
                    
20			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',
                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
                    
22			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',
                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
                    
24			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',
                    
25			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',
                    
32			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
                    
33			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',
                    
34			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',
                    
                
export_money_details.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 347 lines
                    
1<?php
                    
2//  echo "<pre>"; print_r($_REQUEST); exit;
                    
190{
                    
191    $ssql.= " AND ".addslashes($option)." LIKE '%".addslashes($keyword)."%'";
                    
192}
                    
                
cache.php https://github.com/t73biz/BaseApp.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs.view.helpers
                    
17 * @since         CakePHP(tm) v 1.0.0.2277
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
211		}
                    
212		$cache = $cache . '.php';
                    
213		$file = '<!--cachetime:' . $cacheTime . '--><?php';
                    
                
import_xml.php https://github.com/amcl/openemr.git | PHP | 213 lines
                    
1<?php
                    
2 // Copyright (C) 2005 Rod Roark <rod@sunsetsystems.com>
                    
12
                    
13 include_once("../interface/globals.php");
                    
14 include_once("$srcdir/patient.inc");
                    
76    $tagtype = $taginfo['type'];
                    
77    $tagval = addslashes($taginfo['value']);
                    
78
                    
192<head>
                    
193<?php html_header_show();?>
                    
194<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
                    
194<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
                    
195<title><?php xl('Import Patient Demographics','e'); ?></title>
                    
196</head>
                    
198
                    
199<p><?php xl('Paste the data to import into the text area below:','e'); ?></p>
                    
200
                    
                
spcjs.php https://bitbucket.org/valmy/openx.git | PHP | 142 lines
                    
1<?php
                    
2
                    
28// Require the initialisation file
                    
29require_once '../../init-delivery.php';
                    
30
                    
31// Required files
                    
32require_once MAX_PATH . '/lib/max/Delivery/cache.php';
                    
33require_once MAX_PATH . '/lib/max/Delivery/javascript.php';
                    
33require_once MAX_PATH . '/lib/max/Delivery/javascript.php';
                    
34require_once MAX_PATH . '/lib/max/Delivery/flash.php';
                    
35
                    
59    foreach ($aZones as $zoneid => $aZone) {
                    
60        $zones[$aZone['type']][] = "            '" . addslashes($aZone['name']) . "' : {$zoneid}";
                    
61    }
                    
                
HTTPConditionalGetTest.php https://github.com/soitun/minify.git | PHP | 150 lines
                    
1<?php
                    
2
                    
129        } else {
                    
130            $_SERVER['HTTP_IF_NONE_MATCH'] = PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()
                    
131                ? addslashes($inm) :
                    
                
socolissimo_fancybox.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 233 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright 2007-2016 PrestaShop SA
                    
22*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
64	{foreach from=$inputs item=input key=name name=myLoop}
                    
65	soInputs.{$name} = "{$input|strip_tags|addslashes}";
                    
66	{/foreach}
                    
86				else
                    
87					$('#soLink').attr('href', baseDir + 'modules/socolissimo/redirect.php' + serialiseInput(soInputs));
                    
88			},
                    
91					type: 'GET',
                    
92					url: baseDir + '/modules/socolissimo/ajax.php',
                    
93					async: false,
                    
                
auto_enroll_filter_courses.php https://github.com/harriswong/ATutor.git | PHP | 216 lines
                    
104			<?php echo _AT('access'); ?><br />
                    
105			<input type="radio" name="access" value="private" id="s1" <?php if ($_POST['access'] == 'private') { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('private'); ?></label> 
                    
106
                    
118				<option value="-1">- - - <?php echo _AT('cats_all'); ?> - - -</option>
                    
119				<option value="0" <?php if ($_POST['category'] == 0) { echo 'selected="selected"'; } ?>>- - - <?php echo _AT('cats_uncategorized'); ?> - - -</option>
                    
120				<?php echo $categories_select; ?>
                    
144		<tr>
                    
145			<th scope="col"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all_add" title="<?php echo _AT('select_all'); ?>" name="selectall_add" onclick="CheckAll('add_ids[]', 'selectall_add');" /></th>
                    
146			<th scope="col"><?php echo _AT('title'); ?></th>
                    
175	?>
                    
176		<tr onmousedown="document.form['a<?php echo $row['course_id']; ?>'].checked = !document.form['a<?php echo $row['course_id']; ?>'].checked; togglerowhighlight(this, 'a<?php echo $row['course_id']; ?>');" id="ra<?php echo $row['course_id']; ?>">
                    
177			<td width="10"><label for="ta<?php echo $row['course_id']; ?>"><input type="checkbox" name="add_ids[]" value="<?php echo $row['course_id']; ?>" id="a<?php echo $row['course_id']; ?>" onmouseup="this.checked=!this.checked" /></label></td>
                    
177			<td width="10"><label for="ta<?php echo $row['course_id']; ?>"><input type="checkbox" name="add_ids[]" value="<?php echo $row['course_id']; ?>" id="a<?php echo $row['course_id']; ?>" onmouseup="this.checked=!this.checked" /></label></td>
                    
178			<td id="ta<?php echo $row['course_id']; ?>"><?php echo $row['title']; ?></td>
                    
179			<td><?php echo $cats[$row['cat_id']]; ?></td>
                    
                
controller.user.php https://github.com/Shigaru/shigaru.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
3* Joomla/Mambo Community Builder
                    
4* @version $Id: controller.user.php 1486 2011-07-12 00:15:02Z beat $
                    
5* @package Community Builder
                    
5* @package Community Builder
                    
6* @subpackage admin.comprofiler.php : user controller
                    
7* @author Beat
                    
85		if ( ! ( isset( $_POST['approved'] ) && isset( $_POST['confirmed'] ) && isset( $_POST['username'] ) ) ) {
                    
86			echo "<script type=\"text/javascript\"> alert('" . addslashes( CBTxt::T('Not Authorized') ) ."'); window.history.go(-1);</script>\n";
                    
87			exit;
                    
105		if ($msg) {
                    
106			echo "<script type=\"text/javascript\"> alert('" . addslashes( $msg ) . "'); window.history.go(-1);</script>\n";
                    
107			exit;
                    
116			if ( ! ( $userComplete && $userComplete->id ) ) {
                    
117				echo "<script type=\"text/javascript\"> alert('" . addslashes( _UE_USER_PROFILE_NOT ) . "'); window.history.go(-1);</script>\n";
                    
118				return;
                    
                
index.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 152 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: index.php 27617 2012-02-07 08:24:14Z monkey $
                    
8 */
                    
17	$jump = false;
                    
18	@include_once './data/sysdata/cache_domain.php';
                    
19	$_ENV['domain'] = $domain;
                    
22	} else {
                    
23		$_ENV['defaultapp'] = array('portal.php' => 'portal', 'forum.php' => 'forum', 'group.php' => 'group', 'home.php' => 'home');
                    
24		$_ENV['hostarr'] = explode('.', $_SERVER['HTTP_HOST']);
                    
33			}
                    
34			if($_ENV['curapp'] == 'default' || !isset($_ENV['defaultapp'][$_ENV['curapp'].'.php'])) {
                    
35				$_ENV['curapp'] = '';
                    
65			} elseif(count($_ENV['hostarr']) > 2 && $_ENV['hostarr'][0] != 'www' && !checkholddomain($_ENV['hostarr'][0])) {
                    
66				$_ENV['prefixdomain'] = addslashes($_ENV['hostarr'][0]);
                    
67				$_ENV['domainroot'] = addslashes($_ENV['domainroot']);
                    
                
medias.php https://github.com/terasa/import_repo.git | PHP | 244 lines
                    
1<?php
                    
2/**
                    
35        } else {
                    
36          $adds[] = "`" . $db->addslashes($key) . "` = '" . $db->addslashes($val) . "'";
                    
37        }
                    
87    $owner_id = $db->addslashes($owner_id);
                    
88    $album_id = $db->addslashes($album_id);
                    
89    $start = $db->addslashes($start);
                    
89    $start = $db->addslashes($start);
                    
90    $count = $db->addslashes($count);
                    
91    if (! $start) $start = '0';
                    
151        } else {
                    
152          $updates[] = "`" . $db->addslashes($key) . "` = '" . $db->addslashes($val) . "'";
                    
153        }
                    
183    global $db;
                    
184    $query = "delete from media_items where owner_id = '" . $db->addslashes($owner_id) . 
                    
185      "' and id = '" . $db->addslashes($media_id) ."'";
                    
                
DfpTestBase.php https://gitlab.com/Drulenium-bot/dfp | PHP | 226 lines
                    
1<?php
                    
2
                    
222  private function getPropertyPattern($property, $key, $val) {
                    
223    return '|' . '.set' . $property . '\(\'' . $key . '\',{1}\s(.)*' . addslashes($val) . '|';
                    
224  }
                    
                
referrer.php https://gitlab.com/karlen/ayo_wp | PHP | 92 lines
                    
12    <?php foreach ( $themes as $theme_key => $theme_name ): ?>
                    
13    referrer_themes['<?php echo addslashes( $theme_key ); ?>'] = '<?php echo addslashes( $theme_name ); ?>';
                    
14    <?php endforeach; ?>
                    
36                        <td>
                    
37                            <span class="referrer_group_number"><?php echo $index; ?>.</span> <span class="referrer_group"><?php echo htmlspecialchars( $group ); ?></span> <input type="button" class="button referrer_delete" value="<?php _e( 'Delete group', 'w3-total-cache' ); ?>" />
                    
38                        </td>
                    
56                                <?php foreach ( $themes as $theme_key => $theme_name ): ?>
                    
57                                <option value="<?php echo esc_attr( $theme_key ); ?>"<?php selected( $theme_key, $group_config['theme'] ); ?>><?php echo htmlspecialchars( $theme_name ); ?></option>
                    
58                                <?php endforeach; ?>
                    
67                        <td>
                    
68                            <input id="referrer_groups_<?php echo esc_attr( $group ); ?>_redirect" type="text" name="referrer_groups[<?php echo esc_attr( $group ); ?>][redirect]" value="<?php echo esc_attr( $group_config['redirect'] ); ?>" size="60" />
                    
69                            <br /><span class="description"><?php _e( 'A 302 redirect is used to send this group of referrers to another hostname (domain).', 'w3-total-cache' ); ?></span>
                    
76                        <td>
                    
77                            <textarea id="referrer_groups_<?php echo esc_attr( $group ); ?>_referrers" name="referrer_groups[<?php echo esc_attr( $group ); ?>][referrers]" rows="10" cols="50"><?php echo esc_textarea( implode( "\r\n", (array) $group_config['referrers'] ) ); ?></textarea>
                    
78                            <br /><span class="description"><?php _e( 'Specify the referrers for this group. Remember to escape special characters like spaces, dots or dashes with a backslash. Regular expressions are also supported.', 'w3-total-cache' ); ?></span>
                    
                
Session_cache.php https://github.com/danmontgomery/codeigniter-session-driver.git | PHP | 302 lines
                    
1<?php
                    
2
                    
240			$this->sess_cookie_name,
                    
241			addslashes(serialize(array())),
                    
242			($this->parent->now - 31500000),
                    
                
edit.materials.php https://bitbucket.org/ssimpledecision/simpledecision.git | PHP | 338 lines
                    
1<? include "../../inc/header_m.php";?>
                    
2<?
                    
56		$article=$_POST['article'];
                    
57		$text=addslashes($_POST['text']);
                    
58		$status=$_POST['status'];
                    
76			mysql_query("update {$pref}db_{$modul} set price='{$price}',price2='{$price2}',discount='{$discount}',title='{$title}',alias='{$alias}',description='{$description}',keyword='{$keyword}',name='{$name}',anons='{$anons}',article='{$article}',text='{$text}',video='{$video}',date1='{$date1}',date2='{$date2}',var1='{$var1}',var2='{$var2}',var3='{$var3}',var4='{$var4}',text1='{$text1}',status='{$status}' where id='{$id}' $home_parent");
                    
77			if (isset($_POST['sf1'])) header("Location: index.php");
                    
78		}
                    
131                'swf' : '".$pt.$cmspatch."/templates/uploadify/uploadify.swf',
                    
132                'uploader' : '".$pt.$cmspatch."/templates/uploadify/uploadify.php',
                    
133                'uploadLimit' : 50,
                    
153		                'swf' : '".$pt.$cmspatch."/templates/uploadify/uploadify.swf',
                    
154		                'uploader' : '".$pt.$cmspatch."/templates/uploadify/uploadify.php',
                    
155		                'uploadLimit' : 50,
                    
337
                    
338<? include "../../inc/footer_m.php"; ?>
                    
                
Action.php https://gitlab.com/AlexandrSy/magento.xxx | PHP | 162 lines
                    
1<?php
                    
2/**
                    
104        if (isset($action['confirm'])) {
                    
105            $action['onclick'] = 'return window.confirm(\'' . addslashes(
                    
106                $this->escapeHtml($action['confirm'])
                    
121     * @return $this
                    
122     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
123     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * usally called as form action from tbl_change.php to insert or update table rows
                    
7 *
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
23 * @uses    PMA_getUniqueCondition()
                    
24 * @uses    PMA_sqlAddslashes()
                    
25 * @uses    PMA_securePath()
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
69    $GLOBALS['js_include'][] = 'tbl_change.js';
                    
70    require_once './libraries/header.inc.php';
                    
71    require './tbl_change.php';
                    
                
tags.php https://github.com/xmirror/piwigo.git | PHP | 531 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
5// | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org |
                    
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
                    
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
                    
23
                    
24if( !defined("PHPWG_ROOT_PATH") )
                    
25{
                    
28
                    
29include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
                    
30check_status(ACCESS_ADMINISTRATOR);
                    
408  array(
                    
409    'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags',
                    
410    'PWG_TOKEN' => get_pwg_token(),
                    
                
Utils.php https://github.com/ieducar/ieducar.git | PHP | 167 lines
                    
1<?php
                    
2
                    
30
                    
31require_once 'lib/Portabilis/Array/Utils.php';
                    
32
                    
84  public static function escape($str) {
                    
85    return addslashes($str);
                    
86  }
                    
                
pm.php https://github.com/gcao/bbs.git | PHP | 255 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: pm.php 836 2008-12-05 02:25:48Z monkey $
                    
8*/
                    
34		if($more == 3) {
                    
35			require_once UC_ROOT.'lib/uccode.class.php';
                    
36			$this->uccode = new uccode();
                    
51			$user = $_ENV['user']->get_user_by_uid($fromuid);
                    
52			$user = daddslashes($user, 1);
                    
53			if(!$user) {
                    
181 		if($pm) {
                    
182			require_once UC_ROOT.'lib/uccode.class.php';
                    
183			$this->uccode = new uccode();
                    
214
                    
215 	 	require_once UC_ROOT.'lib/uccode.class.php';
                    
216		$this->uccode = new uccode();
                    
                
Location.php https://github.com/ksecor/civicrm.git | PHP | 198 lines
                    
1<?php
                    
2
                    
168            $location['contactID'  ] = $dao->contact_id;
                    
169            $location['displayName'] = addslashes( $dao->display_name );
                    
170            $location['city'       ] = $dao->city;
                    
185                                      array( $dao->country ) );
                    
186            $location['address'       ] = addslashes( $address );
                    
187            $location['displayAddress'] = str_replace( '<br />', ', ', $address );
                    
189            $location['location_type' ] = $dao->location_type;
                    
190            require_once 'CRM/Contact/BAO/Contact/Utils.php';
                    
191            $location['image'] = 
                    
                
getid3.check.php https://github.com/gaea/oms.git | PHP | 245 lines
                    
20	// support for running with register globals turned off
                    
21	// while maintaing pre-PHP4.1.0 compatibility
                    
22	// thanks to reel_taz@users.sourceforge.net
                    
73	}
                    
74	echo 'Browse: <A HREF="'.$PHP_SELF.'?listdirectory='.urlencode($listdirectory).'">'.$listdirectory.'</A><BR>';
                    
75
                    
81		} else {
                    
82			echo '<A HREF="'.$PHP_SELF.'?filename='.urlencode($filename).'&assumeFormat='.$possibleFormat.'">'.$possibleFormat.'</A> | ';
                    
83		}
                    
213					echo '</TD>';
                    
214					echo '<TD ALIGN="LEFT">&nbsp;<A HREF="'.$PHP_SELF.'?listdirectory='.urlencode($listdirectory).'&deletefile='.urlencode($dirname.$filename).'" onClick="return confirm(\'Are you sure you want to delete '.addslashes($dirname.$filename).'? \n(this action cannot be un-done)\');" TITLE="Permanently delete '."\n".FixTextFields($filename)."\n".' from'."\n".' '.FixTextFields($dirname).'">delete</A></TD>';
                    
215					echo '</TR>';
                    
232					echo '<TD ALIGN="LEFT">&nbsp;</TD>'; // Edit
                    
233					echo '<TD ALIGN="LEFT">&nbsp;<A HREF="'.$PHP_SELF.'?listdirectory='.urlencode($listdirectory).'&deletefile='.urlencode($dirname.$filename).'" onClick="return confirm(\'Are you sure you want to delete '.addslashes($dirname.$filename).'? \n(this action cannot be un-done)\');" TITLE="Permanently delete '.addslashes($dirname.$filename).'">delete</A></TD>';
                    
234					echo '</TR>';
                    
                
index.php https://github.com/singpolyma/theveeb-ecosystem-server.git | PHP | 157 lines
                    
29	<channel>
                    
30		<title>Recent Activity<?php if(count($contacts) > 0) echo ' from '.htmlspecialchars($LOGIN_DATA['nickname']).'\'s contacts'; ?></title>
                    
31		<link>http://<?php echo $_SERVER['HTTP_HOST'].APPROOT; ?>apps/</link>
                    
101	<body>
                    
102		<?php require dirname(__FILE__).'/../include/visible_header.php'; ?>
                    
103
                    
109			<li>
                    
110				<img src="/images/apps/<?php echo htmlspecialchars($app['package']); ?>"
                    
111				     alt="<?php echo htmlspecialchars($app['package']); ?>" />
                    
126				<li>
                    
127					<a href="<?php echo APPROOT; ?>users/<?php echo htmlspecialchars($contact_request['nickname']); ?>"><?php echo htmlspecialchars($contact_request['nickname']); ?></a>
                    
128					<form method="post" action="<?php echo APPROOT; ?>users/me"><fieldset>
                    
153
                    
154		<?php require dirname(__FILE__).'/../include/visible_footer.php' ?>
                    
155	</body>
                    
                
form.php https://github.com/DanielTichy/plagat.com.git | PHP | 196 lines
                    
1<?php // @version: $Id$

                    
2defined('_JEXEC') or die('Restricted access');

                    
11var sectioncategories = new Array;

                    
12<?php

                    
13$i = 0;

                    
15	foreach ($items as $v) {

                    
16		echo "sectioncategories[".$i++."] = new Array( '$k','".addslashes( $v->id )."','".addslashes( $v->title )."' );\n\t\t";

                    
17	}

                    
34	// do field validation

                    
35	var text = <?php echo $this->editor->getContent( 'text' ); ?>

                    
36	if (form.title.value == '') {

                    
36	if (form.title.value == '') {

                    
37		return alert ( "<?php echo JText::_( 'Article must have a title', true ); ?>" );

                    
38	} else if (text == '') {

                    
38	} else if (text == '') {

                    
39		return alert ( "<?php echo JText::_( 'Article must have some text', true ); ?>");

                    
40	} else if (parseInt('<?php echo $this->article->sectionid;?>')) {

                    
                
ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
144					'DATE_FORMAT'			=> $data['dateformat'],
                    
145					'A_DATE_FORMAT'			=> addslashes($data['dateformat']),
                    
146					'S_DATEFORMAT_OPTIONS'	=> $dateformat_options,
                    
148					'DEFAULT_DATEFORMAT'	=> $config['default_dateformat'],
                    
149					'A_DEFAULT_DATEFORMAT'	=> addslashes($config['default_dateformat']),
                    
150
                    
                
mysqli_driver.php https://github.com/mkhairul/Presta.git | PHP | 650 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
18/**
                    
19 * MySQLi Database Adapter Class - MySQLi only works with PHP 5
                    
20 *
                    
260		{
                    
261			return addslashes($str);
                    
262		}
                    
648
                    
649/* End of file mysqli_driver.php */
                    
650/* Location: ./system/database/drivers/mysqli/mysqli_driver.php */
                    
                
pm.php https://github.com/AlexChien/EY_BBS.git | PHP | 255 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: pm.php 857 2008-12-09 09:48:05Z monkey $
                    
8*/
                    
34		if($more == 3) {
                    
35			require_once UC_ROOT.'lib/uccode.class.php';
                    
36			$this->uccode = new uccode();
                    
51			$user = $_ENV['user']->get_user_by_uid($fromuid);
                    
52			$user = daddslashes($user, 1);
                    
53			if(!$user) {
                    
181 		if($pm) {
                    
182			require_once UC_ROOT.'lib/uccode.class.php';
                    
183			$this->uccode = new uccode();
                    
214
                    
215 	 	require_once UC_ROOT.'lib/uccode.class.php';
                    
216		$this->uccode = new uccode();
                    
                
index.php https://github.com/dvilboy/Techweb.git | PHP | 259 lines
                    
95?>
                    
96<form name="frmSearch" action="?m=<?php echo $m ;?>"  method="POST">
                    
97<table cellspacing="5" cellpadding="0" border="0">
                    
145		<label for="keyword4">4.</label>
                    
146		<input class="text" size="18" type="text" id="keyword4" name="keyword4" value="<?php 
                    
147echo stripslashes($keyword4); ?>" />
                    
151echo (($ignore_specchar == 'on') ? ' checked="checked"' : ''); ?> />
                    
152		<label for="ignorespecchar"><?php echo $AppUI->_('Ignore special chars'); ?></label>
                    
153	</td>
                    
193	<td align="left">
                    
194		<input name="mod_<?php echo $temp; ?>" id="mod_<?php echo $temp; ?>" type="checkbox" value="on"<?php 
                    
195		echo (($mod_select[$temp] == 'on') ? ' checked="checked"' : ''); ?> />
                    
195		echo (($mod_select[$temp] == 'on') ? ' checked="checked"' : ''); ?> />
                    
196		<label for="mod_<?php echo $temp; ?>"><?php echo $AppUI->_($class_obj->table_title); ?></label>
                    
197	</td>
                    
                
manage_user_page.php https://github.com/fusenigk/mantisbt-1.git | PHP | 356 lines
                    
244<div id="manage-user-div" class="form-container">
                    
245	<h2><?php echo lang_get( 'manage_accounts_title' ) ?></h2> [<?php echo $total_user_count ?>]
                    
246	<?php print_button( 'manage_user_create_page.php', lang_get( 'create_new_account_link' ) ) ?>
                    
246	<?php print_button( 'manage_user_create_page.php', lang_get( 'create_new_account_link' ) ) ?>
                    
247	<?php if ( $f_filter === 'UNUSED' ) echo print_button( 'manage_user_prune.php', lang_get( 'prune_accounts' ) ); ?>
                    
248	<form id="manage-user-filter" method="post" action="manage_user_page.php">
                    
254			<input type="hidden" name="filter" value="<?php echo $c_filter ?>" />
                    
255			<input type="checkbox" name="hide" value="1" <?php check_checked( $c_hide, 1 ); ?> /> <?php echo lang_get( 'hide_inactive' ) ?>
                    
256			<input type="submit" class="button" value="<?php echo lang_get( 'filter_button' ) ?>" />
                    
310				if ( access_has_global_level( $u_access_level ) ) { ?>
                    
311					<a href="manage_user_edit_page.php?user_id=<?php echo $u_id ?>"><?php echo string_display_line( $u_username ) ?></a><?php
                    
312				} else {
                    
343	<div id="manage-user-edit-div" class="form-container">
                    
344		<form id="manage-user-edit-form" method="get" action="manage_user_edit_page.php"<?php # CSRF protection not required here - form does not result in modifications ?>>
                    
345			<fieldset>
                    
                
dbx.php https://github.com/usagi-project/mynets1.git | PHP | 302 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2003 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
12// | obtain it through the world-wide-web, please send a note to          |
                    
13// | license@php.net so we can mail you a copy immediately.               |
                    
14// +----------------------------------------------------------------------+
                    
17//
                    
18// $Id: dbx.php,v 1.6 2004/12/15 09:09:29 dufuz Exp $
                    
19
                    
                
panelurl.php https://gitlab.com/cadoles/ePortail.git | PHP | 319 lines
                    
2	$repository="../";
                    
3	include($repository."include/include.php");
                    
4	include($repository."include/delete.php");
                    
4	include($repository."include/delete.php");
                    
5	include($repository."header.php"); 
                    
6
                    
41	if($vladd!=""&&$fgerr=="") {
                    
42		$q="INSERT INTO env_panel(panel_label, panel_user, panel_url, panel_order, panel_type) VALUES('".addslashes($label)."',$idproprio,'$url','$order',1)";
                    
43		$db1->query($q);
                    
48	if($vlmod!=""&&$fgerr=="") {
                    
49		$q="UPDATE env_panel SET panel_label='".addslashes($label)."', panel_user=$idproprio, panel_url='$url',panel_order='$order' WHERE panel_id=$id";
                    
50		$db1->query($q);
                    
59	echo "<div id='wrapper'>";
                    
60	include("header.php");
                    
61	echo "<div id='page-wrapper'>";
                    
                
install.php https://github.com/ayamyau/concrete5.git | PHP | 352 lines
                    
136		
                    
137		if (version_compare(PHP_VERSION, '5.2.0', '>')) {
                    
138			$phpVtest = true;
                    
141		}
                    
142		$this->set('phpVtest',$phpVtest);
                    
143		
                    
175	public function getDBErrorMsg() {
                    
176		return t('Function mysql_connect() not found. Your system does not appear to have MySQL available within PHP.');
                    
177	}
                    
285						$configuration = "<?php\n";
                    
286						$configuration .= "define('DB_SERVER', '" . addslashes($_POST['DB_SERVER']) . "');\n";
                    
287						$configuration .= "define('DB_USERNAME', '" . addslashes($_POST['DB_USERNAME']) . "');\n";
                    
287						$configuration .= "define('DB_USERNAME', '" . addslashes($_POST['DB_USERNAME']) . "');\n";
                    
288						$configuration .= "define('DB_PASSWORD', '" . addslashes($_POST['DB_PASSWORD']) . "');\n";
                    
289						$configuration .= "define('DB_DATABASE', '" . addslashes($_POST['DB_DATABASE']) . "');\n";
                    
                
BaseVarDumper.php https://gitlab.com/I-NOZex/quiz | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
80            case 'string':
                    
81                self::$_output .= "'" . addslashes($var) . "'";
                    
82                break;
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
video.php https://github.com/MythTV/mythweb.git | PHP | 341 lines
                    
74            if (result['matches']) {
                    
75                $('window_title').innerHTML   = '<?php echo addslashes(t('Video: IMDB: Window Title')); ?> (<a href="javascript: imdb_prompt(\''+result['id']+'\');"><?php echo addslashes(t('Custom Search')); ?><\/a>)';
                    
76                $('window_content').innerHTML = '';
                    
84            else {
                    
85                $('window_title').innerHTML   = '<?php echo addslashes(t('Video: IMDB: Window Title')); ?> (<a href="javascript: imdb_prompt(\''+result['id']+'\');"><?php echo addslashes(t('Custom Search')); ?><\/a>)';
                    
86                $('window_content').innerHTML = '<?php echo addslashes(t('Video: IMDB: No Matches'));   ?>';
                    
324            ?></div>
                    
325        <div id="<?php echo $video->intid; ?>_img">                <img <?php if ($_SESSION["show_video_covers"] && (strcmp($video->cover_url, '') != 0)) echo 'src="'.$video->cover_url.'"'; echo ' width="'.$video->cover_scaled_width.'" height="'.$video->cover_scaled_height.'"'; ?> alt="<?php echo t('Missing Cover'); ?>"></div>
                    
326        <div id="<?php echo $video->intid; ?>-category">           <?php echo $Category_String[$video->category]; ?></div>
                    
327        <div id="<?php echo $video->intid; ?>_playtime">           <?php echo nice_length($video->length * 60); ?></div>
                    
328        <div id="<?php echo $video->intid; ?>_imdb">               <?php if ($video->inetref != '00000000') { ?><a href="<?php echo makeImdbWebUrl($video->inetref); ?>"><?php echo $video->inetref ?></a><?php } ?></div>
                    
329        <div class="command">
                    
330            <span class="commands"><a href="javascript:newWindow('<?php echo $video->intid ?>')" ><?php echo t('Edit') ?></a></span>
                    
331            <span class="commands"><a href="javascript:imdb_lookup('<?php echo $video->intid ?>','<?php echo addslashes($video->title); ?>')"><?php echo t('IMDB') ?></a></span>
                    
332        </div>
                    
                
monthcategories.php http://php-personal-budget.googlecode.com/svn/trunk/ | PHP | 155 lines
                    
33
                    
34				<td width="25px"><img src="/resources/icons/cross.png" style="cursor: pointer" onclick="delete_category(<?=$id?>, '<?=addslashes($category["category_pretty_name"])?>');" title="Delete <?=$category["category_pretty_name"]?>" /></td>
                    
35<?php		
                    
38				<td width="25px"><img src="/resources/icons/folder_edit_disabled.png" /></td>
                    
39<?php
                    
40			} else {
                    
47?>
                    
48				<td width="25px"><img src="/resources/icons/folder_edit.png" style="cursor: pointer" onclick="enableRenameCategoryDialog(<?=$id?>, '<?=addslashes($category["category_pretty_name"])?>');" title="Rename <?=addslashes($category["category_pretty_name"])?>" /></td>
                    
49<?php } ?>
                    
61									<span style='color: red'>$<?=number_format($category['budget_amount'] - $trans_total, 2)?></span>
                    
62						<?php
                    
63								} else if (($category['budget_amount'] - $trans_total) > 0){
                    
76                	<p id="cat_<?=$id?>" style="text-align: right;">
                    
77                		<?php
                    
78							if (isset($category['budget_amount'])) {
                    
                
index.php https://github.com/atutor/AChecker.git | PHP | 287 lines
                    
91
                    
92<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
                    
93	<div class="input-form">
                    
101?>
                    
102				<option value="<?php echo $row_lang['language_code']; ?>" <?php if ($_REQUEST["lang_code"] == $row_lang['language_code'] || $row_lang['language_code'] == $_SESSION['lang']) echo 'selected="selected"'; ?>><?php echo htmlspecialchars($row_lang["english_name"]); ?></option>
                    
103<?php
                    
120			<input type="radio" name="new_or_translated" value="0" id="u0" <?php if (!isset($_REQUEST['new_or_translated']) || $_REQUEST['new_or_translated'] == 0) { echo 'checked="checked"'; } ?> /><label for="u0"><?php echo _AC('all'); ?></label> 
                    
121			<input type="radio" name="new_or_translated" value="1" id="u1" <?php if ($_REQUEST['new_or_translated'] == 1) { echo 'checked="checked"'; } ?> /><label for="u1"><?php echo _AC('new_terms'); ?></label> 
                    
122			<input type="radio" name="new_or_translated" value="2" id="u2" <?php if ($_REQUEST['new_or_translated'] == 2) { echo 'checked="checked"'; } ?> /><label for="u2"><?php echo _AC('translated_terms'); ?></label> 
                    
122			<input type="radio" name="new_or_translated" value="2" id="u2" <?php if ($_REQUEST['new_or_translated'] == 2) { echo 'checked="checked"'; } ?> /><label for="u2"><?php echo _AC('translated_terms'); ?></label> 
                    
123			<input type="radio" name="new_or_translated" value="3" id="u3" <?php if ($_REQUEST['new_or_translated'] == 3) { echo 'checked="checked"'; } ?> /><label for="u3"><?php echo _AC('updated_terms'); ?></label> 
                    
124		</div>
                    
184<br />
                    
185<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>#anchor">
                    
186	<input type="hidden" name="selected_term" value="<?php echo $_REQUEST['selected_term']; ?>" />
                    
                
transformations.lib.php https://github.com/md-tech/openemr.git | PHP | 279 lines
                    
138 * @uses    PMA_backquote()
                    
139 * @uses    PMA_sqlAddslashes()
                    
140 * @uses    PMA_DBI_fetch_result()
                    
219                UPDATE ' . PMA_backquote($cfgRelation['db']) . '.' . PMA_backquote($cfgRelation['column_info']) . '
                    
220                   SET `mimetype`               = \'' . PMA_sqlAddslashes($mimetype) . '\',
                    
221                       `transformation`         = \'' . PMA_sqlAddslashes($transformation) . '\',
                    
221                       `transformation`         = \'' . PMA_sqlAddslashes($transformation) . '\',
                    
222                       `transformation_options` = \'' . PMA_sqlAddslashes($transformation_options) . '\'';
                    
223        } else {
                    
252 *
                    
253 * in fact: it just replaces old php3 with php extension
                    
254 *
                    
269    // This value can also contain a 'php3' value, in which case we map this filename to our new 'php' variant
                    
270    $testfile = preg_replace('@\.inc\.php3$@', '.inc.php', $include_file);
                    
271    if ($include_file{strlen($include_file)-1} == '3'
                    
                
take_test_q.php https://github.com/harriswong/ATutor.git | PHP | 282 lines
                    
68   ( ($test_row['num_takes'] != AT_TESTS_TAKE_UNLIMITED) && ($takes['cnt'] >= $test_row['num_takes']) )  ) {
                    
69	require(AT_INCLUDE_PATH.'header.inc.php');
                    
70	$msg->printInfos('MAX_ATTEMPTS');
                    
245?>
                    
246<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?pos=<?php echo $pos; ?>">
                    
247<input type="hidden" name="tid" value="<?php echo $tid; ?>" />
                    
247<input type="hidden" name="tid" value="<?php echo $tid; ?>" />
                    
248<?php if (isset($_REQUEST['cid'])) {?> <input type="hidden" name="cid" value="<?php echo $cid; ?>" /> <?php }?>
                    
249
                    
251
                    
252	<fieldset class="group_form"><legend class="group_form"><?php echo $title ?> (<?php echo _AT('question').' '. ($pos+1).'/'.$test_row['num_questions']; ?>)</legend>
                    
253	<?php if ($_REQUEST['efs']){?>
                    
272		<?php if (($pos+1) == $test_row['num_questions']): ?>
                    
273			<input type="submit" name="next" value="<?php echo _AT('submit'); ?>" accesskey="s" onclick="confirmSubmit(this, '<?php echo $addslashes(_AT("test_confirm_submit")); ?>'); return false;"/>
                    
274		<?php else: ?>
                    
281<script type="text/javascript" src="<?php echo $_base_href;?>/mods/_standard/tests/lib/take_test.js">
                    
282<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
                    
                
articleupload.class.php https://github.com/bluelovers/phpwind.git | PHP | 290 lines
                    
1<?php
                    
2!defined('P_W') && exit('Forbidden');
                    
25		}
                    
26		require_once(R_P . 'require/functions.php');
                    
27		$pw_attachs = L::loadDB('attachs', 'forum');
                    
64		$prename  = substr(md5($timestamp . $currUpload['id'] . randstr(8)),10,15);
                    
65		$filename = "{$this->uid}_$prename." . preg_replace('/(php|asp|jsp|cgi|fcgi|exe|pl|phtml|dll|asa|com|scr|inf)/i', "scp_\\1", $currUpload['ext']);
                    
66		$savedir = $this->getSaveDir($currUpload['ext']);
                    
149		$prename  = substr(md5($timestamp . $currUpload['id'] . randstr(8)),10,15);
                    
150		$filename = "{$this->uid}_$prename." . preg_replace('/(php|asp|jsp|cgi|fcgi|exe|pl|phtml|dll|asa|com|scr|inf)/i', "scp_\\1", $currUpload['ext']);
                    
151		$savedir = $this->getSaveDir($currUpload['ext']);
                    
272		foreach ($uploaddb as $value) {
                    
273			$value['name'] = addslashes($value['name']);
                    
274			$aid = $value['id'];
                    
                
functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
                    
1<?php
                    
2
                    
342function validate_poblacion($poblacion) {
                    
343    //$poblacion = addslashes($poblacion);
                    
344    $poblacion = filter_var($poblacion, FILTER_SANITIZE_STRING);
                    
                
book.strings.html https://bitbucket.org/thncr/manuals.git | HTML | 48 lines
                    
11 <div class="up"><a href="refs.basic.text.html">文本处理</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="book.strings" class="book">
                    
42 
                    
43<ul class="chunklist chunklist_book"><li><a href="intro.strings.html">简介</a></li><li><a href="strings.setup.html">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="strings.requirements.html">需求</a></li><li><a href="strings.installation.html">安装</a></li><li><a href="strings.configuration.html">运行时配置</a></li><li><a href="strings.resources.html">资源类型</a></li></ul></li><li><a href="string.constants.html">预定义常量</a></li><li><a href="ref.strings.html">字符串函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.addcslashes.html">addcslashes</a> — 以 C 语言风格使用反斜线转义字符串中的字符</li><li><a href="function.addslashes.html">addslashes</a> — 使用反斜线引用字符串</li><li><a href="function.bin2hex.html">bin2hex</a> — 将二进制数据转换成十六进制表示</li><li><a href="function.chop.html">chop</a> — rtrim 的别名</li><li><a href="function.chr.html">chr</a> — 返回指定的字符</li><li><a href="function.chunk-split.html">chunk_split</a> — 将字符串分割成小块</li><li><a href="function.convert-cyr-string.html">convert_cyr_string</a> — 将字符由一种 Cyrillic 字符转换成另一种</li><li><a href="function.convert-uudecode.html">convert_uudecode</a> — 解码一个 uuencode 编码的字符串</li><li><a href="function.convert-uuencode.html">convert_uuencode</a> — 使用 uuencode 编码一个字符串</li><li><a href="function.count-chars.html">count_chars</a> — 返回字符串所用字符的信息</li><li><a href="function.crc32.html">crc32</a> — 计算一个字符串的 crc32 多项式</li><li><a href="function.crypt.html">crypt</a> — 单向字符串散列</li><li><a href="function.echo.html">echo</a> — 输出一个或多个字符串</li><li><a href="function.explode.html">explode</a> — 使用一个字符串分割另一个字符串</li><li><a href="function.fprintf.html">fprintf</a> — 将格式化后的字符串写入到流</li><li><a href="function.get-html-translation-table.html">get_html_translation_table</a> — 返回使用 htmlspecialchars 和 htmlentities 后的转换表</li><li><a href="function.hebrev.html">hebrev</a> — 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew)</li><li><a href="function.hebrevc.html">hebrevc</a> — 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew),并且转换换行符</li><li><a href="function.hex2bin.html">hex2bin</a> — Decodes a hexadecimally encoded binary string</li><li><a href="function.html-entity-decode.html">html_entity_decode</a> — Convert all HTML entities to their applicable characters</li><li><a href="function.htmlentities.html">htmlentities</a> — Convert all applicable characters to HTML entities</li><li><a href="function.htmlspecialchars-decode.html">htmlspecialchars_decode</a> — Convert special HTML entities back to characters</li><li><a href="function.htmlspecialchars.html">htmlspecialchars</a> — Convert special characters to HTML entities</li><li><a href="function.implode.html">implode</a> — Join array elements with a string</li><li><a href="function.join.html">join</a> — 别名 implode</li><li><a href="function.lcfirst.html">lcfirst</a> — Make a string's first character lowercase</li><li><a href="function.levenshtein.html">levenshtein</a> — Calculate Levenshtein distance between two strings</li><li><a href="function.localeconv.html">localeconv</a> — Get numeric formatting information</li><li><a href="function.ltrim.html">ltrim</a> — Strip whitespace (or other characters) from the beginning of a string</li><li><a href="function.md5-file.html">md5_file</a> — 计算指定文件的 MD5 散列值</li><li><a href="function.md5.html">md5</a> — 计算字符串的 MD5 散列值</li><li><a href="function.metaphone.html">metaphone</a> — Calculate the metaphone key of a string</li><li><a href="function.money-format.html">money_format</a> — Formats a number as a currency string</li><li><a href="function.nl-langinfo.html">nl_langinfo</a> — Query language and locale information</li><li><a href="function.nl2br.html">nl2br</a> — 在字符串所有新行之前插入 HTML 换行标记</li><li><a href="function.number-format.html">number_format</a> — Format a number with grouped thousands</li><li><a href="function.ord.html">ord</a> — 返回字符的 ASCII 码值</li><li><a href="function.parse-str.html">parse_str</a> — 将字符串解析成多个变量</li><li><a href="function.print.html">print</a> — 输出字符串</li><li><a href="function.printf.html">printf</a> — 输出格式化字符串</li><li><a href="function.quoted-printable-decode.html">quoted_printable_decode</a> — Convert a quoted-printable string to an 8 bit string</li><li><a href="function.quoted-printable-encode.html">quoted_printable_encode</a> — Convert a 8 bit string to a quoted-printable string</li><li><a href="function.quotemeta.html">quotemeta</a> — Quote meta characters</li><li><a href="function.rtrim.html">rtrim</a> — 删除字符串末端的空白字符(或者其他字符)</li><li><a href="function.setlocale.html">setlocale</a> — Set locale information</li><li><a href="function.sha1-file.html">sha1_file</a> — 计算文件的 sha1 散列值</li><li><a href="function.sha1.html">sha1</a> — 计算字符串的 sha1 散列值</li><li><a href="function.similar-text.html">similar_text</a> — 计算两个字符串的相似度</li><li><a href="function.soundex.html">soundex</a> — Calculate the soundex key of a string</li><li><a href="function.sprintf.html">sprintf</a> — Return a formatted string</li><li><a href="function.sscanf.html">sscanf</a> — Parses input from a string according to a format</li><li><a href="function.str-getcsv.html">str_getcsv</a> — 解析 CSV 字符串为一个数组</li><li><a href="function.str-ireplace.html">str_ireplace</a> — str_replace 的忽略大小写版本</li><li><a href="function.str-pad.html">str_pad</a> — 使用另一个字符串填充字符串为指定长度</li><li><a href="function.str-repeat.html">str_repeat</a> — 重复一个字符串</li><li><a href="function.str-replace.html">str_replace</a> — 子字符串替换</li><li><a href="function.str-rot13.html">str_rot13</a> — 对字符串执行 ROT13 转换</li><li><a href="function.str-shuffle.html">str_shuffle</a> — 随机打乱一个字符串</li><li><a href="function.str-split.html">str_split</a> — 将字符串转换为数组</li><li><a href="function.str-word-count.html">str_word_count</a> — 返回字符串中单词的使用情况</li><li><a href="function.strcasecmp.html">strcasecmp</a> — 二进制安全比较字符串(不区分大小写)</li><li><a href="function.strchr.html">strchr</a> — 别名 strstr</li><li><a href="function.strcmp.html">strcmp</a> — 二进制安全字符串比较</li><li><a href="function.strcoll.html">strcoll</a> — 基于区域设置的字符串比较</li><li><a href="function.strcspn.html">strcspn</a> — 获取不匹配遮罩的起始子字符串的长度</li><li><a href="function.strip-tags.html">strip_tags</a> — 从字符串中去除 HTML 和 PHP 标记</li><li><a href="function.stripcslashes.html">stripcslashes</a> — 反引用一个使用 addcslashes 转义的字符串</li><li><a href="function.stripos.html">stripos</a> — 查找字符串首次出现的位置(不区分大小写)</li><li><a href="function.stripslashes.html">stripslashes</a> — 反引用一个引用字符串</li><li><a href="function.stristr.html">stristr</a> — strstr 函数的忽略大小写版本</li><li><a href="function.strlen.html">strlen</a> — 获取字符串长度</li><li><a href="function.strnatcasecmp.html">strnatcasecmp</a> — 使用&ldquo;自然顺序&rdquo;算法比较字符串(不区分大小写)</li><li><a href="function.strnatcmp.html">strnatcmp</a> — 使用自然排序算法比较字符串</li><li><a href="function.strncasecmp.html">strncasecmp</a> — 二进制安全比较字符串开头的若干个字符(不区分大小写)</li><li><a href="function.strncmp.html">strncmp</a> — 二进制安全比较字符串开头的若干个字符</li><li><a href="function.strpbrk.html">strpbrk</a> — 在字符串中查找一组字符的任何一个字符</li><li><a href="function.strpos.html">strpos</a> — 查找字符串首次出现的位置</li><li><a href="function.strrchr.html">strrchr</a> — 查找指定字符在字符串中的最后一次出现</li><li><a href="function.strrev.html">strrev</a> — 反转字符串</li><li><a href="function.strripos.html">strripos</a> — 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写)</li><li><a href="function.strrpos.html">strrpos</a> — 计算指定字符串在目标字符串中最后一次出现的位置</li><li><a href="function.strspn.html">strspn</a> — 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。</li><li><a href="function.strstr.html">strstr</a> — 查找字符串的首次出现</li><li><a href="function.strtok.html">strtok</a> — 标记分割字符串</li><li><a href="function.strtolower.html">strtolower</a> — 将字符串转化为小写</li><li><a href="function.strtoupper.html">strtoupper</a> — 将字符串转化为大写</li><li><a href="function.strtr.html">strtr</a> — 转换指定字符</li><li><a href="function.substr-compare.html">substr_compare</a> — 二进制安全比较字符串(从偏移位置比较指定长度)</li><li><a href="function.substr-count.html">substr_count</a> — 计算字串出现的次数</li><li><a href="function.substr-replace.html">substr_replace</a> — 替换字符串的子串</li><li><a href="function.substr.html">substr</a> — 返回字符串的子串</li><li><a href="function.trim.html">trim</a> — 去除字符串首尾处的空白字符(或者其他字符)</li><li><a href="function.ucfirst.html">ucfirst</a> — 将字符串的首字母转换为大写</li><li><a href="function.ucwords.html">ucwords</a> — 将字符串中每个单词的首字母转换为大写</li><li><a href="function.vfprintf.html">vfprintf</a> — 将格式化字符串写入流</li><li><a href="function.vprintf.html">vprintf</a> — 输出格式化字符串</li><li><a href="function.vsprintf.html">vsprintf</a> — 返回格式化字符串</li><li><a href="function.wordwrap.html">wordwrap</a> — 打断字符串为指定数量的字串</li></ul></li><li><a href="changelog.strings.html">更新日志</a></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
                    
44 <div class="prev" style="text-align: left; float: left;"><a href="function.ssdeep-fuzzy-hash.html">ssdeep_fuzzy_hash</a></div>
                    
46 <div class="up"><a href="refs.basic.text.html">文本处理</a></div>
                    
47 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
48</div></body></html>
                    
                
index.php https://github.com/henriquecrang/e-UNI.git | PHP | 373 lines
                    
159    foreach ($keywords as $keyword) {
                    
160        $keyword = addslashes($keyword);   // Just to be safe
                    
161        $keywordfull[] = " description $like '%$keyword%' ";
                    
296        } catch(e) {
                    
297            alert('<?php echo get_string('spaminvalidresult', 'report_spamcleaner');?>');
                    
298            return;
                    
308        if(yes){
                    
309            var cObj = YAHOO.util.Connect.asyncRequest('POST', '<?php echo me();?>?delall=yes&sesskey=<?php echo $sesskey;?>', delall_cb); 
                    
310        }
                    
356        row = obj;
                    
357        var cObj = YAHOO.util.Connect.asyncRequest('POST', '<?php echo me();?>?del=yes&sesskey=<?php echo $sesskey;?>&id='+id, del_cb); 
                    
358    }
                    
361    row = obj;
                    
362    var cObj = YAHOO.util.Connect.asyncRequest('POST', '<?php echo me();?>?ignore=yes&sesskey=<?php echo $sesskey;?>&id='+id, ignore_cb); 
                    
363}
                    
                
php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 140 lines
                    
32    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
33    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
34    multiLineStrings: true,
                    
63    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
64    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
65
                    
91        return style;
                    
92      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
93        state.curMode = htmlMode;
                    
112        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
113            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
114        if (state.curMode == htmlMode) cur = htmlNew;
                    
138  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
139  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
140});
                    
                
edit_user.php https://github.com/harriswong/ATutor.git | PHP | 265 lines
                    
31	$id = intval($_POST['id']);
                    
32	//$_POST['password']   = $addslashes($_POST['password']);
                    
33    $_POST['website']    = $addslashes($_POST['website']);
                    
44    $_POST['old_status']     = intval($_POST['old_status']);
                    
45    $_POST['gender']     = $addslashes($_POST['gender']);
                    
46    $_POST['student_id'] = intval($_POST['student_id']);
                    
46    $_POST['student_id'] = intval($_POST['student_id']);
                    
47    $_POST['email']      = $addslashes($_POST['email']);
                    
48
                    
200			/* send the email confirmation message: */
                    
201			require(AT_INCLUDE_PATH . 'classes/phpmailer/atutormailer.class.php');
                    
202			$mail = new ATutorMailer();
                    
262$savant->assign('no_captcha', true);
                    
263$savant->display('registration.tmpl.php');
                    
264
                    
                
controller.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 315 lines
                    
1<?php
                    
2
                    
190        foreach ($args['survivingOptionNames'] as $arg) {
                    
191            $slashedArgs[] = addslashes($arg);
                    
192        }
                    
                
edit_reading_book.php https://github.com/harriswong/ATutor.git | PHP | 185 lines
                    
92			<?php while ($rowbook = mysql_fetch_assoc($book_result)): ?>
                    
93				<option value="<?php echo $rowbook['resource_id']; ?>"<?php if ($rowbook['resource_id'] == $resource_id) { echo ' selected="selected"'; } ?>><?php echo AT_print($rowbook['title'], 'input.text'); ?></option>
                    
94			<?php endwhile; ?>
                    
137		<?php for ($i = 1; $i <= 31; $i++){ ?>
                    
138			<option value="<?php echo intval($i); ?>" <?php if ($i == $array_date_start[2]) { echo ' selected="selected"'; } ?>><?php echo intval($i); ?></option>
                    
139		<?php } ?>
                    
143		<?php for ($i = 1; $i <= 12; $i++){ ?>
                    
144			<option value="<?php echo intval($i); ?>" <?php if ($i == $array_date_start[1]) { echo ' selected="selected"'; } ?>><?php echo AT_Date('%M', intval($i), AT_DATE_INDEX_VALUE) ?></option>
                    
145		<?php } ?>
                    
164		<?php for ($i = 1; $i <= 12; $i++){ ?>
                    
165			<option value="<?php echo intval($i); ?>" <?php if ($i == $array_date_end[1]) { echo ' selected="selected"'; } ?>><?php echo AT_Date('%M', intval($i), AT_DATE_INDEX_VALUE) ?></option>
                    
166		<?php } ?>
                    
170		<?php for ($i = ($today['year'] - '1'); $i <= ($today['year'] + '4'); $i++){ ?>
                    
171			<option value="<?php echo intval($i); ?>" <?php if ($i == $array_date_end[0]) { echo ' selected="selected"'; } ?>><?php echo intval($i); ?></option>
                    
172		<?php } ?>
                    
                
install.php https://github.com/rii-J/concrete5-de.git | PHP | 352 lines
                    
86		$sql = file_get_contents($contentfile);
                    
87		$sql = str_replace('{[CCM:SITE]}', addslashes($_POST['SITE']), $sql);
                    
88		$statements = explode("\n\n", $sql);
                    
137		if (version_compare(PHP_VERSION, '5.2.0', '>')) {
                    
138			$phpVtest = true;
                    
139		} else {
                    
141		}
                    
142		$this->set('phpVtest',$phpVtest);
                    
143		
                    
284						// write the config file
                    
285						$configuration = "<?php \n";
                    
286						$configuration .= "define('DB_SERVER', '" . addslashes($_POST['DB_SERVER']) . "');\n";
                    
286						$configuration .= "define('DB_SERVER', '" . addslashes($_POST['DB_SERVER']) . "');\n";
                    
287						$configuration .= "define('DB_USERNAME', '" . addslashes($_POST['DB_USERNAME']) . "');\n";
                    
288						$configuration .= "define('DB_PASSWORD', '" . addslashes($_POST['DB_PASSWORD']) . "');\n";
                    
                
DBFile.class.php https://github.com/Krassmus/tsc.git | PHP | 241 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__file__)."/vendor/qqUpload.php";
                    
4require_once dirname(__file__)."/Cache.class.php";
                    
50     * Liefert die aktuelle Datei aus, wenn der Nutzer das Recht zum Sehen hat.
                    
51     * Ignoriert alle anderen Ausgaben von PHP und beendet das Programm, sodass nur die Datei
                    
52     * zurückgegeben werden kann!
                    
113            foreach ($db_entries as $key => $value) {
                    
114                $additional_db_entries .= "`".addslashes($key) . "` = " . $db->quote($value) . ", ";
                    
115            }
                    
117            $db->exec(
                    
118                "INSERT INTO `".addslashes($this->table)."` " .
                    
119                "SET ".addslashes($this->filename_field)." = ".$db->quote($filename).", " .
                    
121                    ($this->width_field ? 
                    
122                        "`".addslashes($this->width_field)."` = ".($size[0] ? $db->quote($size[0]) : "NULL").", " : "") .
                    
123                    ($this->height_field ?
                    
                
authSources_Ajax.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * authSources_Ajax.php
                    
4 *
                    
33        case 'searchUsers':
                    
34            require_once 'classes/model/Users.php';
                    
35            $criteria = new Criteria( 'workflow' );
                    
61                    // add replace to change D'Souza to D*Souza by krlos
                    
62                    $sCheckbox = '<div align="center"><input type="checkbox" name="aUsers[' . $i . ']" id="aUsers[' . $i . ']" value=\'' . str_replace( "\'", "*", addslashes( $oJSON->encode( $aUser ) ) ) . '\' /></div>';
                    
63                    $i ++;
                    
97        case 'authSourcesList':
                    
98            require_once PATH_RBAC . 'model/AuthenticationSource.php';
                    
99            global $RBAC;
                    
157                    if (is_file( PATH_RBAC . 'plugins' . PATH_SEP . $sObject )) {
                    
158                        $sType = trim( str_replace( 'class.', '', str_replace( '.php', '', $sObject ) ) );
                    
159                        $aAuthSourceTypes['sType'] = $sType;
                    
                
GuidelineGroupsDAO.class.php https://github.com/atutor/AChecker.git | PHP | 327 lines
                    
1<?php
                    
2/************************************************************************/
                    
22
                    
23require_once(AC_INCLUDE_PATH. 'classes/DAO/DAO.class.php');
                    
24require_once(AC_INCLUDE_PATH. 'classes/Utility.class.php');
                    
40	{
                    
41		global $addslashes;
                    
42		
                    
43		$guidelineID = intval($guidelineID);
                    
44		$name = trim($name);	// $addslashes is not necessary as it's called in LanguageTextDAO->Create()
                    
45		$abbr = $addslashes(trim($abbr));
                    
45		$abbr = $addslashes(trim($abbr));
                    
46		$principle = $addslashes(trim($principle));
                    
47		
                    
65				
                    
66				require_once(AC_INCLUDE_PATH.'classes/DAO/LanguageTextDAO.class.php');
                    
67				$langTextDAO = new LanguageTextDAO();
                    
                
ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
22#include "hphp/runtime/ext/extension.h"
                    
23#include "hphp/runtime/base/zend-string.h"
                    
24#include "hphp/runtime/base/zend-printf.h"
                    
31
                    
32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST;
                    
33extern const int64_t k_STR_PAD_RIGHT;
                    
81                     const String& str,
                    
82                     const String& charlist = k_HPHP_TRIM_CHARLIST);
                    
83Variant HHVM_FUNCTION(explode,
                    
                
order-address.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 267 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2013 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
26{if $opc}
                    
27	{assign var="back_order_page" value="order-opc.php"}
                    
28{else}
                    
28{else}
                    
29	{assign var="back_order_page" value="order.php"}
                    
30{/if}
                    
77	
                    
78	var addressMultishippingUrl = "{$link->getPageLink('address', true, NULL, "back={$back_order_page}?step=1{'&multi-shipping=1'|urlencode}{if $back}&mod={$back|urlencode}{/if}")|addslashes}";
                    
79	var addressUrl = "{$link->getPageLink('address', true, NULL, "back={$back_order_page}?step=1{if $back}&mod={$back}{/if}")|addslashes}";
                    
                
Translate.php https://bitbucket.org/enurkov/prestashop.git | PHP | 237 lines
                    
36	 * @param string $class
                    
37	 * @param bool $addslashes
                    
38	 * @param bool $htmlentities
                    
40	 */
                    
41	public static function getAdminTranslation($string, $class = 'AdminTab', $addslashes = false, $htmlentities = true, $sprintf = null)
                    
42	{
                    
59			$class_name_controller = $class.'controller';
                    
60			// if the class is extended by a module, use modules/[module_name]/xx.php lang file
                    
61			if (class_exists($class_name_controller) && Module::getModuleNameFromClass($class_name_controller))
                    
80
                    
81		return ($addslashes ? addslashes($str) : stripslashes($str));
                    
82	}
                    
132				// Translations in theme
                    
133				_PS_THEME_DIR_.'modules/'.$name.'/translations/'.Context::getContext()->language->iso_code.'.php', 
                    
134				_PS_THEME_DIR_.'modules/'.$name.'/'.Context::getContext()->language->iso_code.'.php', 
                    
                
derivative_std_params.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 283 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
211      ) );
                    
212    conf_update_param('derivatives', addslashes($ser) );
                    
213  }
                    
                
step_3.php https://bitbucket.org/jojoluzifer/gold-light-project.git | PHP | 256 lines
                    
32			$output .= 'define(\'DB_HOSTNAME\', \'' . addslashes($this->request->post['db_host']) . '\');' . "\n";
                    
33			$output .= 'define(\'DB_USERNAME\', \'' . addslashes($this->request->post['db_user']) . '\');' . "\n";
                    
34			$output .= 'define(\'DB_PASSWORD\', \'' . addslashes($this->request->post['db_password']) . '\');' . "\n";
                    
34			$output .= 'define(\'DB_PASSWORD\', \'' . addslashes($this->request->post['db_password']) . '\');' . "\n";
                    
35			$output .= 'define(\'DB_DATABASE\', \'' . addslashes($this->request->post['db_name']) . '\');' . "\n";
                    
36			$output .= 'define(\'DB_PREFIX\', \'' . addslashes($this->request->post['db_prefix']) . '\');' . "\n";
                    
67			$output .= '// DB' . "\n";
                    
68			$output .= 'define(\'DB_DRIVER\', \'' . addslashes($this->request->post['db_driver']) . '\');' . "\n";
                    
69			$output .= 'define(\'DB_HOSTNAME\', \'' . addslashes($this->request->post['db_host']) . '\');' . "\n";
                    
241		if (!is_writable(DIR_OPENCART . 'config.php')) {
                    
242			$this->error['warning'] = 'Error: Could not write to config.php please check you have set the correct permissions on: ' . DIR_OPENCART . 'config.php!';
                    
243		}
                    
245		if (!is_writable(DIR_OPENCART . 'admin/config.php')) {
                    
246			$this->error['warning'] = 'Error: Could not write to config.php please check you have set the correct permissions on: ' . DIR_OPENCART . 'admin/config.php!';
                    
247		}	
                    
                
form.tpl https://gitlab.com/staging06/myproject | Smarty Template | 365 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2015 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
80				$.ajax({
                    
81					url: "{$link->getAdminLink('AdminAccess')|addslashes}",
                    
82					cache: false,
                    
110			$.ajax({
                    
111				url: "{$link->getAdminLink('AdminAccess')|addslashes}",
                    
112				cache: false,
                    
159			$.ajax({
                    
160				url: "{$link->getAdminLink('AdminAccess')|addslashes}",
                    
161				cache: false,
                    
                
Db.class.php https://gitlab.com/Red54/thinkphp | PHP | 193 lines
                    
1<?php
                    
2
                    
3// +----------------------------------------------------------------------
                    
4// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
5// +----------------------------------------------------------------------
                    
5// +----------------------------------------------------------------------
                    
6// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
                    
7// +----------------------------------------------------------------------
                    
155        $expire   = time() + $this->lifeTime;
                    
156        $sessData = addslashes($sessData);
                    
157        mysql_query('REPLACE INTO  ' . $this->sessionTable . " (  session_id, session_expire, session_data)  VALUES( '$sessID', '$expire',  '$sessData')", $hander);
                    
                
facilities_add.php https://github.com/md-tech/openemr.git | PHP | 268 lines
                    
150	if(document.getElementById('primary_business_entity').checked==false)
                    
151	alert("<?php echo addslashes(xl('Primary Business Entity tax id is used as account id for NewCrop ePrescription. Changing the facility will affect the working in NewCrop.'));?>");
                    
152	else if(document.getElementById('primary_business_entity').checked==true)
                    
195        <td>&nbsp;</td>
                    
196        <td><span class="text"><?php xl('Tax ID','e'); ?>: </span></td><td><select name=tax_id_type><option value="EI"><?php xl('EIN','e'); ?></option><option value="SY"><?php xl('SSN','e'); ?></option></select><input type=entry size=11 name=federal_ein value=""></td>
                    
197        </tr>
                    
207          <td>&nbsp;</td>
                    
208          <td><span class='text'><?php xl('Accepts Assignment','e'); ?><br>(<?php xl('only if billing location','e'); ?>): </span></td> <td><input type='checkbox' name='accepts_assignment' value = '1'></td>
                    
209        </tr>
                    
212          <td>&nbsp;</td>
                    
213          <td><span class='text'><?php echo htmlspecialchars(xl('Color'),ENT_QUOTES); ?>: </span><span class="mandatory">&nbsp;*</span></td> <td><input type=entry name=ncolor id=ncolor size=20 value="">[<a href="javascript:void(0);" onClick="pick('pick','newcolor');return false;" NAME="pick" ID="pick"><?php echo htmlspecialchars(xl('Pick'),ENT_QUOTES); ?></a>]</td>
                    
214        </tr>
                    
222          <td><span class='text'><?php xl('Primary Business Entity','e'); ?>: </span></td>
                    
223          <td><input type='checkbox' name='primary_business_entity' id='primary_business_entity' value='1' <?php if ($facility['primary_business_entity'] == 1) echo 'checked'; ?> <?php if($GLOBALS['erx_enable']){ ?> onchange='return displayAlert()' <?php } ?> <?php echo $disabled;?>></td>
                    
224          <td>&nbsp;</td>
                    
                
relation_cleanup.lib.php https://gitlab.com/qbarbosa/klindev | PHP | 295 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * Set of functions used for cleaning up phpMyAdmin tables
                    
5 *
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
27            . '.' . PMA_Util::backquote($cfgRelation['column_info'])
                    
28            . ' WHERE db_name  = \'' . PMA_Util::sqlAddSlashes($db) . '\''
                    
29            . ' AND table_name = \'' . PMA_Util::sqlAddSlashes($table) . '\''
                    
29            . ' AND table_name = \'' . PMA_Util::sqlAddSlashes($table) . '\''
                    
30            . ' AND column_name = \'' . PMA_Util::sqlAddSlashes($column) . '\'';
                    
31        PMA_queryAsControlUser($remove_query);
                    
                
tbl_alter.php https://bitbucket.org/steve_delbar/iepsm-projet-de-d-veloppement-internet-2013.git | PHP | 211 lines
                    
1<?php
                    
2/* $Id: tbl_alter.php,v 2.15.2.2 2005/04/13 14:41:46 lem9 Exp $ */
                    
7 */
                    
8require_once('./libraries/grab_globals.lib.php');
                    
9$js_to_run = 'functions.js';
                    
9$js_to_run = 'functions.js';
                    
10require_once('./header.inc.php');
                    
11
                    
17 */
                    
18require('./tbl_properties_common.php');
                    
19require('./tbl_properties_table_info.php');
                    
22 */
                    
23$active_page = 'tbl_properties_structure.php';
                    
24// I don't see the need to display the links here, they will be displayed later
                    
24// I don't see the need to display the links here, they will be displayed later
                    
25//require('./tbl_properties_links.php');
                    
26
                    
                
v014.php https://github.com/denisbz/SPIP.git | PHP | 328 lines
                    
1<?php
                    
2
                    
23		while($row = sql_fetch($result)) {
                    
24				$type = addslashes($row['type']);
                    
25				// Old style, doit echouer
                    
39		while($row = sql_fetch($result)) {
                    
40				$id_groupe = addslashes($row['id_groupe']);
                    
41				$type = addslashes($row['titre']);
                    
220		while ($row = sql_fetch($result)) {
                    
221			$type = addslashes($row['type']);
                    
222			$res = spip_query("SELECT * FROM spip_groupes_mots WHERE titre='$type'");
                    
238		while ($row = sql_fetch($result)) {
                    
239			$titre = addslashes($row['titre']);
                    
240			if (! $vu[$titre] ) {
                    
                
index.php https://github.com/vik-off/framework.git | PHP | 213 lines
                    
1<?php
                    
2/* SmartOptimizer v1.8
                    
89	echo "//<script>\n";
                    
90	echo "alert('SmartOptimizer Error: ".str_replace("\n", "\\n", addslashes($msg))."');\n";
                    
91	echo "//</script>\n";
                    
103	if ($filesmtime) return $filesmtime;
                    
104	$filesmtime = max(@filemtime("minifiers/$fileType.php"), filemtime('index.php'), filemtime('config.php'));
                    
105	foreach ($files as $file) {
                    
111
                    
112@include('config.php');
                    
113
                    
166
                    
167$settings['minify'] = $settings['minify'] && file_exists('minifiers/'.$fileType.'.php');
                    
168$settings['embed'] = $settings['embed'] && $fileType == 'css' && (!preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT']) || preg_match('/msie 8|opera/i', $_SERVER['HTTP_USER_AGENT']));
                    
193	if ($generateContent) {
                    
194		if ($settings['minify']) include('minifiers/'.$fileType.'.php');
                    
195		$content = array();
                    
                
edit_post.php https://github.com/harriswong/ATutor.git | PHP | 155 lines
                    
98$_pages['mods/_standard/forums/forum/index.php?fid='.$fid]['title']    = $forum_info['title'];
                    
99$_pages['mods/_standard/forums/forum/index.php?fid='.$fid]['parent']   = 'mods/_standard/forums/forum/list.php';
                    
100$_pages['mods/_standard/forums/forum/index.php?fid='.$fid]['children'] = array('mods/_standard/forums/forum/new_thread.php?fid='.$fid);
                    
108$_pages['mods/_standard/forums/edit_post.php']['title_var'] = 'edit_post';
                    
109$_pages['mods/_standard/forums/edit_post.php']['parent']    = 'mods/_standard/forums/forum/index.php?fid='.$fid;
                    
110$_pages['mods/_standard/forums/edit_post.php']['children']  = array();
                    
126	<div class="row">
                    
127		<span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
                    
128		<input type="text" maxlength="80" name="subject" size="36" value="<?php echo stripslashes(htmlspecialchars($post_row['subject'])); ?>" id="subject" />
                    
131	<div class="row">
                    
132		<span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
                    
133		<textarea cols="65" name="body" rows="10" id="body"><?php echo AT_print($post_row['body'], 'text.input'); ?></textarea>
                    
142    <div class="row">	
                    
143		<a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#jumpcodes" title="<?php echo _AT('jump_codes'); ?>"><img src="images/clr.gif" height="1" width="1" alt="<?php echo _AT('jump_codes'); ?>" border="0" /></a><?php require(AT_INCLUDE_PATH.'html/code_picker.inc.php'); ?>
                    
144
                    
154
                    
155<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
                    
                
index.php https://github.com/harriswong/ATutor.git | PHP | 164 lines
                    
98?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    
99<html lang="<?php if ($req_lang) { echo $req_lang; } else { echo 'dp'; } ?>">
                    
100<head>
                    
115	<ol>
                    
116		<li><a href="../general/index.php?<?php echo $req_lang; ?>"><?php get_text('doc_user'); ?></a></li>
                    
117		<li><a href="../admin/index.php?<?php echo $req_lang; ?>"><?php get_text('doc_admin'); ?></a></li>
                    
117		<li><a href="../admin/index.php?<?php echo $req_lang; ?>"><?php get_text('doc_admin'); ?></a></li>
                    
118		<li><a href="../instructor/index.php?<?php echo $req_lang; ?>"><?php get_text('doc_instructor'); ?></a></li>
                    
119		<li><a href="../developer/guidelines.html"><?php get_text('doc_dev'); ?></a></li>
                    
149				<h5><?php echo $row['date']; ?>
                    
150					<a href="../approve_note.php?id=<?php echo $row['note_id']; ?>" onclick="return confirm('<?php echo get_text('doc_approved_confirm'); ?>');"><?php  get_text('doc_approve'); ?></a> | 
                    
151					<a href="../delete_note.php?id=<?php echo $row['note_id']; ?>" onclick="return confirm('<?php echo get_text('doc_delete_confirm'); ?>');"><?php get_text('doc_delete'); ?></a>
                    
158		<div class="note"><?php get_text('doc_no_notes'); ?></div>
                    
159	<?php endif; ?>
                    
160
                    
                
LiquidStandardFilters.class.php git://github.com/harrydeluxe/php-liquid.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
6 * @copyright Copyright (c) 2011-2012 Harald Hanek, 
                    
7 * fork of php-liquid (c) 2006 Mateo Murphy,
                    
8 * based on Liquid for Ruby (c) 2006 Tobias Luetke
                    
85    {
                    
86        return is_string($input) ? addslashes($input) : $input;
                    
87    }
                    
                
module_prefs.php https://github.com/harriswong/ATutor.git | PHP | 94 lines
                    
1<?php
                    
2define('AT_INCLUDE_PATH', '../../../../include/');
                    
2define('AT_INCLUDE_PATH', '../../../../include/');
                    
3require(AT_INCLUDE_PATH.'vitals.inc.php');
                    
4admin_authenticate(AT_ADMIN_PRIV_ADMIN);
                    
4admin_authenticate(AT_ADMIN_PRIV_ADMIN);
                    
5require(AT_INCLUDE_PATH.'header.inc.php');
                    
6
                    
14	if ($_GET['keyIsValidated']=='true'){
                    
15		$key = $addslashes($_GET['key']);
                    
16		$sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES('gsearch','$key')";
                    
31if (isset($_POST['submit'])) {
                    
32	require('../SOAP_Google.php');
                    
33	$_POST['key'] = trim($_POST['key']);
                    
59			} else {
                    
60				$key = $addslashes($_POST['key']);
                    
61				$sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES('gsearch','$key')";
                    
                
translation.php http://you.googlecode.com/svn/trunk/ | PHP | 332 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
111			// Saves the languages files
                    
112			$data  = "<?php\n\n";
                    
113			
                    
115			{
                    
116				$data .= "\$lang['".$item."'] = \"".addslashes(htmlentities($this->input->post($item.'_'.$lang, TRUE), ENT_QUOTES, 'UTF-8'))."\";\n"; 
                    
117			}
                    
123			{
                    
124				write_file($path.'/'.Settings::get('theme').'_lang.php', $data);
                    
125			}
                    
309			
                    
310			// Translation file name. look like [theme_name]_lang.php
                    
311			$file = $path.'/language/'.$lang_code.'/'.Settings::get('theme').'_lang.php';
                    
330
                    
331/* End of file translation.php */
                    
332/* Location: ./application/controllers/admin/translation.php */
                    
                
replication.inc.php https://gitlab.com/luyxtran264/myproject | PHP | 322 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
8
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
30            "SET @@default_master_connection = '"
                    
31            . PMA\libraries\Util::sqlAddSlashes(
                    
32                $_REQUEST['master_connection']
                    
                
function.button.php https://gitlab.com/ElvisAns/tiki | PHP | 230 lines
                    
1<?php
                    
2
                    
139            if (! empty($params['_escape']) && $params['_escape'] === 'y') {
                    
140                $params['_onclick'] = addslashes($params['_onclick']);
                    
141            }
                    
                
db_info.inc.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 266 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 *
                    
12 * @package PhpMyAdmin
                    
13 */
                    
13 */
                    
14if (! defined('PHPMYADMIN')) {
                    
15    exit;
                    
20 */
                    
21require_once './libraries/common.inc.php';
                    
22
                    
145                            'SHOW TABLE STATUS FROM ' . PMA_backquote($db)
                    
146                             . ' LIKE \'' . PMA_sqlAddSlashes($tmp[0], true) . '\';');
                    
147                        $sts_tmp     = PMA_DBI_fetch_assoc($sts_result);
                    
223        if (isset($sub_part) && $sub_part == '_export') {
                    
224            // (don't fetch only a subset if we are coming from db_export.php,
                    
225            // because I think it's too risky to display only a subset of the
                    
                
utils.php git://pkgs.fedoraproject.org/zarafa | PHP | 135 lines
                    
1<?php
                    
2/*
                    
51?>
                    
52<?php
                    
53	// Constants for regular expressions which are used in get method to verify the input string
                    
72		if (isset($_GET[$var])){
                    
73			$result = addslashes($_GET[$var]);
                    
74			if($regex) {
                    
                
Translate.php https://gitlab.com/jslee1/PrestaShop | PHP | 347 lines
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
58
                    
59        return ($addslashes ? addslashes($str) : stripslashes($str));
                    
60    }
                    
86            if (file_exists(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php')) {
                    
87                include_once(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
                    
88            }
                    
115
                    
116        return ($addslashes ? addslashes($str) : stripslashes($str));
                    
117    }
                    
                
utility.inc.php https://github.com/awriel/s3st15_matoa.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
47        echo '<script type="text/javascript">'."\n";
                    
48        echo 'alert("'.addslashes($str_message).'")'."\n";
                    
49        echo '</script>'."\n";
                    
182     * @return  boolean
                    
183     * this script is taken from http://mobiforge.com/developing/story/lightweight-device-detection-php
                    
184     **/
                    
                
admin-ajax.php https://github.com/socialplanning/opencore-wordpress-mu.git | PHP | 296 lines
                    
1<?php
                    
2require_once('../wp-config.php');
                    
2require_once('../wp-config.php');
                    
3require_once('admin-functions.php');
                    
4require_once('admin-db.php');
                    
16	$value = attribute_escape($value);
                    
17	$key_js = addslashes(wp_specialchars($key, 'double'));
                    
18	$key = attribute_escape($key);
                    
230		die('-1');
                    
231	require_once(ABSPATH . WPINC . '/registration.php');
                    
232	if ( !$user_id = add_user() )
                    
                
replication.inc.php https://gitlab.com/qbarbosa/klindev | PHP | 321 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
8
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
29        $GLOBALS['dbi']->query(
                    
30            "SET @@default_master_connection = '" . PMA_Util::sqlAddSlashes(
                    
31                $_REQUEST['master_connection']
                    
                
enrol.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 329 lines
                    
1<?php
                    
2// The following flags are set in the configuration
                    
159
                    
160                    if (! $user = get_record("user", "idnumber", addslashes($fields[2])) ) {
                    
161                        $this->log .= "Unknown user idnumber in field 3 - ignoring line\n";
                    
165
                    
166                    if (! $course = get_record("course", "idnumber", addslashes($fields[3])) ) {
                    
167                        $this->log .= "Unknown course idnumber in field 4 - ignoring line\n";
                    
259                            $a->coursename = "$course->fullname";
                    
260                            $a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id&amp;course=$course->id";
                    
261                            email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname), 
                    
                
view.controller.php https://github.com/nadavkav/MoodleTAO.git | PHP | 289 lines
                    
1<?php
                    
2
                    
12if (!defined('MOODLE_INTERNAL')) {
                    
13    die('Direct access to this script is forbidden.');    ///  It must be included from view.php in mod/tracker
                    
14}
                    
23    print_simple_box_end();
                    
24    print_continue("view.php?id={$cm->id}view=view&amp;page=browse");
                    
25    
                    
38    $issue->summary = required_param('summary', PARAM_TEXT);
                    
39    $issue->description = addslashes(required_param('description', PARAM_CLEANHTML));
                    
40    $issue->format = required_param('format', PARAM_INT);
                    
41    $issue->datereported = required_param('datereported', PARAM_INT);
                    
42    $issue->resolution = addslashes(required_param('resolution', PARAM_CLEANHTML));
                    
43    $issue->resolutionformat = required_param('resolutionformat', PARAM_INT);
                    
174    $issueid = required_param('issueid', PARAM_INT);
                    
175    $comment->comment = addslashes(required_param('comment', PARAM_CLEANHTML));
                    
176    $comment->commentformat = required_param('commentformat', PARAM_INT);
                    
                
Links.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 241 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
195            foreach ($params as $key=>$value) {
                    
196                $result .= ' ' . $key . '="' . addslashes($value) . '"';
                    
197            }
                    
                
order-carrier.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 315 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2013 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
34	var txtProducts = "{l s='Products' js=1}";
                    
35	var orderUrl = '{$link->getPageLink("order", true)|addslashes}';
                    
36
                    
                
medias_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 108 lines
                    
1<?php
                    
2/**
                    
57		$f = sql_serveur('quote', $serveur, true);
                    
58		$modes = addslashes(join(',', array_map($f, array_unique($modes))));
                    
59		array_unshift($boucle->where,array("'IN'", "'$id_table.mode'", "'($modes)'"));
                    
                
upgrade.php https://github.com/bobpuffer/1.9.12-LAE1.3.git | PHP | 328 lines
                    
1<?php  //$Id: upgrade.php 68 2009-07-31 18:23:01Z dlandau $
                    
2
                    
28        // ensure "hotpot_update_grades" function is available
                    
29        require_once $CFG->dirroot.'/mod/hotpot/lib.php';
                    
30
                    
50
                    
51    require_once($CFG->dirroot.'/lib/gradelib.php');
                    
52
                    
134        }
                    
135        if (set_field('grade_items', 'idnumber', addslashes($idnumber), 'id', $id)) {
                    
136            $count_idnumber_updated++;
                    
173            }
                    
174            $set_field = set_field('grade_items', 'itemname', addslashes($hotpotname), 'id', $id);
                    
175        } else {
                    
179            }
                    
180            $set_field = set_field('hotpot', 'name', addslashes($gradename), 'id', $hotpotid);
                    
181        }
                    
                
form.tpl https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | Smarty Template | 365 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2016 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
80				$.ajax({
                    
81					url: "{$link->getAdminLink('AdminAccess')|addslashes}",
                    
82					cache: false,
                    
110			$.ajax({
                    
111				url: "{$link->getAdminLink('AdminAccess')|addslashes}",
                    
112				cache: false,
                    
159			$.ajax({
                    
160				url: "{$link->getAdminLink('AdminAccess')|addslashes}",
                    
161				cache: false,
                    
                
evt.php https://gitlab.com/Alzakath/icagenda | PHP | 332 lines
                    
1<?php
                    
2/**
                    
154			$alert_reg_type.= '</div>';
                    
155			$alert_reg_type = addslashes($alert_reg_type);
                    
156
                    
159			$alert_date_format = '<div class="ic-alert ic-alert-note"><span class="iCicon-info"></span> <strong>' . JText::_('NOTICE') . '</strong><br />' . JText::sprintf('COM_ICAGENDA_REGISTRATION_ERROR_DATE_CONTROL', $date_no_longer_exists) . '</div>';
                    
160			$alert_date_format = addslashes($alert_date_format);
                    
161
                    
163			$alert_date_no_longer_exists = '<div class="alert alert-error"><strong>' . JText::_('COM_ICAGENDA_FORM_WARNING') . '</strong><br /><small>' . JText::sprintf('COM_ICAGENDA_REGISTRATION_DATE_NO_LONGER_EXISTS', $date_no_longer_exists) . '</small></div>';
                    
164			$alert_date_no_longer_exists = addslashes($alert_date_no_longer_exists);
                    
165
                    
167			$alert_full_period_no_longer_exists = '<div class="alert alert-error"><strong>' . JText::_('COM_ICAGENDA_FORM_WARNING') . '</strong><br /><small>' . JText::sprintf('COM_ICAGENDA_REGISTRATION_PERIOD_NO_LONGER_EXISTS', $date_no_longer_exists) . '</small></div>';
                    
168			$alert_full_period_no_longer_exists = addslashes($alert_full_period_no_longer_exists);
                    
169
                    
172			$alert_by_date_no_longer_possible = '<div class="alert alert-error"><strong>' . JText::_('COM_ICAGENDA_FORM_WARNING') . '</strong><br /><small>' . JText::sprintf('COM_ICAGENDA_REGISTRATION_BY_DATE_NO_LONGER_POSSIBLE', $for_all_dates, $for_all_dates) . '</small></div>';
                    
173			$alert_by_date_no_longer_possible = addslashes($alert_by_date_no_longer_possible);
                    
174
                    
                
postgres7.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 217 lines
                    
1<?php  // $Id$
                    
2
                    
5// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL 
                    
6// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
                    
7
                    
15        if (!empty($CFG->textfilters)) {
                    
16            $CFG->textfilters = str_replace("dynalink.php", "filter.php", $CFG->textfilters);
                    
17            set_config("textfilters", $CFG->textfilters);
                    
30            foreach($entries as $entry) {
                    
31                set_field("glossary_entries","concept",addslashes(trim($entry->concept)),"id",$entry->id);
                    
32            }
                    
35            foreach($aliases as $alias) {
                    
36                set_field("glossary_alias","alias",addslashes(trim($alias->alias)),"id",$alias->id);
                    
37            }
                    
211
                    
212    //////  DO NOT ADD NEW THINGS HERE!!  USE upgrade.php and the lib/ddllib.php functions.
                    
213
                    
                
draw.php https://github.com/Shigaru/shigaru.git | PHP | 423 lines
                    
1<?php
                    
2/**
                    
37
                    
38		$config = "<?php\n";
                    
39		$config .= "class hwd_vs_Config{ \n\n";
                    
50			if ($row->setting == "flvplay_width" && empty($row->value)) { $row->value = "450"; }
                    
51			if ($row->setting == "customencode") { $row->value = addslashes($row->value); }
                    
52			$config .= "  var \$".$row->setting." = '".$row->value."';\n";
                    
60
                    
61		$configFile = JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'config.hwdvideoshare.php';
                    
62		if (!JFile::write($configFile, $config)) {
                    
73
                    
74		$config = "<?php\n";
                    
75		$config .= "class hwd_vs_SConfig{ \n\n";
                    
94
                    
95		$configFile = JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'serverconfig.hwdvideoshare.php';
                    
96		if (!JFile::write($configFile, $config)) {
                    
                
footer.inc.php https://bitbucket.org/steve_delbar/iepsm-projet-de-d-veloppement-internet-2013.git | PHP | 182 lines
                    
45        parent.frames.queryframe.document.queryframeform.db.value = "<?php echo (isset($db) ? addslashes($db) : ''); ?>";
                    
46        parent.frames.queryframe.document.queryframeform.table.value = "<?php echo (isset($table) ? addslashes($table) : ''); ?>";
                    
47    }
                    
74                parent.frames.queryframe.querywindow.document.querywindow.db.value = "<?php echo (isset($db) ? addslashes($db) : '') ?>";
                    
75                parent.frames.queryframe.querywindow.document.querywindow.query_history_latest_db.value = "<?php echo (isset($db) ? addslashes($db) : '') ?>";
                    
76                parent.frames.queryframe.querywindow.document.querywindow.table.value = "<?php echo (isset($table) ? addslashes($table) : '') ?>";
                    
76                parent.frames.queryframe.querywindow.document.querywindow.table.value = "<?php echo (isset($table) ? addslashes($table) : '') ?>";
                    
77                parent.frames.queryframe.querywindow.document.querywindow.query_history_latest_table.value = "<?php echo (isset($table) ? addslashes($table) : '') ?>";
                    
78
                    
105        } else if (parent.frames.queryframe) {
                    
106            new_win_url = 'querywindow.php?sql_query=' + sql_query + '&<?php echo PMA_generate_common_url(isset($db) ? addslashes($db) : '', isset($table) ? addslashes($table) : '', '&'); ?>';
                    
107            parent.frames.queryframe.querywindow=window.open(new_win_url, '','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=<?php echo $cfg['QueryWindowWidth']; ?>,height=<?php echo $cfg['QueryWindowHeight']; ?>');
                    
145
                    
146<?php include('./config.footer.inc.php'); ?>
                    
147    <script type="text/javascript" language="javascript" src="libraries/tooltip.js"></script>
                    
                
rss.php https://gitlab.com/BGCX261/zillatek-project-svn-to-git.git | PHP | 238 lines
                    
1<?php if( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
35		// Get the modules config file
                    
36		include APPPATH . 'config/modules.php';
                    
37
                    
50	/**
                    
51	* Saves the config.php settings
                    
52	*
                    
57	{
                    
58		// Model used to write config.php
                    
59		$this->load->model('config_model', '', TRUE);
                    
74			// Try to change the setting
                    
75			if($this->config_model->change('config.php', $field, addslashes($setting), 'Rss') == FALSE)
                    
76			{
                    
135	{
                    
136		// Model used to write config.php
                    
137		$this->load->model('config_model', '', TRUE);
                    
                
validatorslib.php https://gitlab.com/ElvisAns/tiki | PHP | 213 lines
                    
1<?php
                    
2
                    
35    {
                    
36        include_once('lib/validators/validator_' . $validator . '.php');
                    
37        if (! function_exists("validator_$validator") || ! isset($this->input)) {
                    
47        $validators = [];
                    
48        foreach (glob('lib/validators/validator_*.php') as $file) {
                    
49            $base = basename($file);
                    
95                    $validationjs .= 'remote: { ';
                    
96                    $validationjs .= 'url: "validate-ajax.php", ';
                    
97                    $validationjs .= 'type: "post", ';
                    
110                    } else {
                    
111                        $validationjs .= 'parameter: "' . addslashes($field_value['validationParam']) . '", ';
                    
112                    }
                    
                
LoadMap.php https://github.com/alonso/fusion.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * $Id: LoadMap.php 1521 2008-09-11 17:44:26Z madair $
                    
6 *
                    
30
                    
31include('Common.php');
                    
32include('Utilities.php');
                    
95    echo "metersPerUnit:$metersPerUnit,";
                    
96    //echo "mapTitle:'".addslashes(htmlentities($mapTitle))."',";
                    
97    //echo "mapName:'".addslashes(htmlentities($mapName))."',";
                    
97    //echo "mapName:'".addslashes(htmlentities($mapName))."',";
                    
98    echo "mapTitle:'".addslashes($mapTitle)."',";
                    
99    echo "mapName:'".addslashes($mapName)."',";
                    
227                    $output .= $styleSep."{";
                    
228                    $output .= "legendLabel:'".addslashes(trim($labelText))."',";
                    
229                    $output .= "filter:'".addslashes(trim($filterText))."',";
                    
                
home_group.php https://github.com/bluelovers/Discuz.git | PHP | 251 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * $Id: home_group.php 19554 2011-01-07 04:26:02Z zhengqingpeng $
                    
6 */
                    
10$table_source = $db_source->table('mtag');
                    
11require_once DISCUZ_ROOT.'./include/editor.func.php';
                    
12
                    
27	$nextid = $value['tid'];
                    
28	$value = daddslashes($value);
                    
29	$value['replynum'] = intval($value['replynum']);
                    
50		$post['message'] = html2bbcode($post['message']);
                    
51		$post = daddslashes($post);
                    
52		$postarr = array(
                    
104	$profield = $db_source->fetch_first("SELECT * FROM ".$db_source->table('profield')." WHERE fieldid='$fieldid'");
                    
105	showmessage("繼續轉換數據表 ".$table_source." : $profield[title] ".(!empty($mtag) ? "&rsaquo; $mtag[tagname] &rsaquo; tid > $nextid":""), "index.php?a=$action&source=$source&prg=$curprg&start=$nextid&gid=$gid&fid=$fid&sid=$sid&fieldid=$fieldid&tagid=$tagid");
                    
106}
                    
                
admin-header.php https://github.com/thisduck/wordpress.git | PHP | 188 lines
                    
29<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    
30<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
                    
31<head>
                    
31<head>
                    
32<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
                    
33<title><?php echo $title; ?> &lsaquo; <?php bloginfo('name') ?>  &#8212; WordPress</title>
                    
53	},
                    
54	ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',
                    
55	pagenow = '<?php echo $current_screen->id; ?>',
                    
125<h1 id="site-heading" <?php echo $title_class ?>>
                    
126	<a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Visit Site') ?>">
                    
127		<span id="site-title"><?php echo $blog_name ?></span>
                    
129<?php if ( !is_network_admin() && current_user_can('manage_options') && '1' != get_option('blog_public') ): ?>
                    
130	<a id="privacy-on-link" href="options-privacy.php" title="<?php echo esc_attr( apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') ) ); ?>"><?php echo apply_filters('privacy_on_link_text', __('Search Engines Blocked') ); ?></a>
                    
131<?php endif; ?>
                    
                
lib.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 264 lines
                    
1<?php
                    
2
                    
4    // Avoid including forum libraries in large areas of Moodle code that
                    
5    // require this lib.php; only include when functions are called
                    
6    require_once(dirname(__FILE__).'/forum.php');
                    
20        $forumng = (object)array(
                    
21            'name' => addslashes($originalforumng->name),
                    
22            'course' => $forumng->course,
                    
49function forumng_update_instance($forumng) {
                    
50    require_once(dirname(__FILE__).'/forum.php');
                    
51
                    
59        //  handle insitu editing updates
                    
60        include_once($CFG->dirroot.'/local/insitu/lib.php');
                    
61        oci_mod_make_backup_and_save_instance($forumng);
                    
79function forumng_delete_instance($id, $ociskip=true) {
                    
80    require_once(dirname(__FILE__).'/forum.php');
                    
81
                    
                
user_password.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 294 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
4 * displays and handles the form where the user can change his password
                    
5 * linked from index.php
                    
6 *
                    
6 *
                    
7 * @package PhpMyAdmin
                    
8 */
                    
13 */
                    
14require_once './libraries/common.inc.php';
                    
15
                    
18 */
                    
19require_once './libraries/server_privileges.lib.php';
                    
20
                    
69
                    
70require_once './libraries/display_change_password.lib.php';
                    
71
                    
                
cli_install.php https://gitlab.com/unityfamily359/opencart | PHP | 311 lines
                    
11//   cd install
                    
12//   php cli_install.php install --db_hostname localhost \
                    
13//                               --db_username root \
                    
74	));
                    
75	echo 'php cli_install.php install ' . $options . "\n\n";
                    
76}
                    
143	$error = null;
                    
144	if (phpversion() < '5.0') {
                    
145		$error = 'Warning: You need to use PHP5 or above for OpenCart to work!';
                    
188function write_config_files($options) {
                    
189	$output  = '<?php' . "\n";
                    
190	$output .= '// HTTP' . "\n";
                    
216	$output .= 'define(\'DB_DATABASE\', \'' . addslashes($options['db_database']) . '\');' . "\n";
                    
217	$output .= 'define(\'DB_PREFIX\', \'' . addslashes($options['db_prefix']) . '\');' . "\n";
                    
218	$output .= 'define(\'DB_PORT\', \'' . addslashes($options['db_port']) . '\');' . "\n";
                    
                
secure_form.php https://github.com/richhl/kalturaCE.git | PHP | 391 lines
                    
1<?php 
                    
2
                    
72		// Get kaltura configuration file
                    
73		require_once( realpath( dirname(__FILE__) ) . '/../config/kConf.php' );
                    
74		$kConf = new kConf();
                    
76		// Load kaltura client
                    
77		require_once( realpath( dirname(__FILE__) ) . '/../../clients/php5/KalturaClient.php' );
                    
78				
                    
97		$str = htmlspecialchars($str);
                    
98		$str = addslashes($str);
                    
99		
                    
                
Organisme.php https://gitlab.com/r.collas/site_central | PHP | 260 lines
                    
1<?php
                    
2
                    
39				function isNumber($idElt, &$formvalue, &$form, &$errors_messages, $message){
                    
40					$eltvalue = addslashes($formvalue[$idElt]);
                    
41					if(!empty($eltvalue)){
                    
45				function isUnique($idElt, &$formvalue, &$fsn_organisme, &$errors_messages, $message){
                    
46					$eltvalue = addslashes($formvalue[$idElt]);
                    
47					if(!empty($eltvalue)){	
                    
47					if(!empty($eltvalue)){	
                    
48						$req = $fsn_organisme->fetchAll()->where(addslashes($idElt).' ="'.$eltvalue.'" ');
                    
49						$nb_row = $req->count();
                    
118				function isNumber($idElt, &$formvalue, &$form, &$errors_messages, $message){
                    
119					$eltvalue = addslashes($formvalue[$idElt]);
                    
120					if(!empty($eltvalue)){
                    
124				function isUnique($idElt, &$formvalue, &$fsn_organisme, &$id, &$errors_messages, $message){
                    
125					$eltvalue = addslashes($formvalue[$idElt]);
                    
126					if(!empty($eltvalue)){	
                    
                
autocompletion.php https://github.com/CircleCode/dynacase-core.git | PHP | 314 lines
                    
61        $isInAbstract = false;
                    
62        $phpfile = GetHttpVars("phpfile");
                    
63        $phpfunc = GetHttpVars("phpfunc");
                    
69        $options = "";
                    
70        $oattr = new NormalAttribute($attrid, $doc->id, $label, "text", $format, $repeat, $order, $link, $visibility, $needed, $isInTitle, $isInAbstract, $fieldSet, $phpfile, $phpfunc, $elink, $phpconstraint, $usefor, $eformat, $options);
                    
71    } else {
                    
156                $oattr->phpfunc = "lfamily(D,'$famid',${linkprefix}${aname},0,$sfilter,'$idid):${cible}${aname},${linkprefix}${aname}";
                    
157                $oattr->phpfile = "fdl.php";
                    
158            } else {
                    
159                //getDeclaration(D,ACOM_ENT_ID,ILINK_ACOM_DEPOTDECL):ACOM_DEPOTDECL,ILINK_ACOM_DEPOTDECL
                    
160                $phpfunc = preg_replace('/([\s|,|:|\(])CT([\s|,|\)]|$)/', '$1' . $linkprefix . $aname . '$2', $oattr->phpfunc);
                    
161                $phpfunc = str_replace("):$aname,", "):${cible}${aname},", $phpfunc);
                    
162                $phpfunc = str_replace("):" . strtoupper($aname) . ",", "):${cible}${aname},", $phpfunc);
                    
163                $oattr->phpfunc = $phpfunc;
                    
164            }
                    
                
wiki_document.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
17* Functions for iterating and retrieving the necessary records are now also included
                    
18* in this file, rather than mod/wiki/lib.php
                    
19*/
                    
23*/
                    
24require_once("$CFG->dirroot/search/documents/document.php");
                    
25require_once("$CFG->dirroot/mod/wiki/lib.php");
                    
76
                    
77    return $CFG->wwwroot.'/mod/wiki/view.php?wid='.$wikiId.'&amp;page='.wiki_name_convert($title).'&amp;version='.$version;
                    
78} //wiki_make_link
                    
80/**
                    
81* rescued and converted from ewikimoodlelib.php
                    
82* retrieves latest version of a page
                    
87function wiki_get_latest_page(&$entry, $pagename, $version = 0) {
                    
88    $pagename = "'".addslashes($pagename)."'";
                    
89    
                    
                
string functions.php https://gitlab.com/naznin/Naznin_151485_B33_session4 | PHP | 153 lines
                    
9echo "</br>";
                    
10echo addslashes($str2);//outputs thank \\you
                    
11echo "</br>";
                    
27//htmlentities
                    
28$convert = htmlentities ("<li><ahref='index.php'>we are learning PHP</a></li>",ENT_COMPAT);
                    
29echo $convert;
                    
72
                    
73<?php
                    
74echo "</br>";
                    
74echo "</br>";
                    
75echo str_repeat("PHP programming </br>",5);
                    
76?>
                    
148
                    
149<?php
                    
150//str_replace
                    
                
print-options.php https://github.com/jkreska/test1.git | PHP | 301 lines
                    
178				<select name="print_style" id="print_style" size="1" onchange="check_print_style();">
                    
179					<option value="1"<?php selected('1', $print_options['print_style']); ?>><?php _e('Print Icon With Text Link', 'wp-print'); ?></option>
                    
180					<option value="2"<?php selected('2', $print_options['print_style']); ?>><?php _e('Print Icon Only', 'wp-print'); ?></option>
                    
228					<option value="1"<?php selected('1', $print_options['videos']); ?>><?php _e('Yes', 'wp-print'); ?></option>
                    
229					<option value="0"<?php selected('0', $print_options['videos']); ?>><?php _e('No', 'wp-print'); ?></option>
                    
230				</select>
                    
237					<option value="ltr"<?php selected('ltr', $print_options['text_direction']); ?>><?php _e('Left To Right', 'wp-print'); ?></option>
                    
238					<option value="rtl"<?php selected('rtl', $print_options['text_direction']); ?>><?php _e('Right To Left', 'wp-print'); ?></option>
                    
239				</select>
                    
248			<td>
                    
249				<textarea rows="2" cols="80" name="print_disclaimer" id="print_template_disclaimer"><?php echo htmlspecialchars(stripslashes($print_options['disclaimer'])); ?></textarea><br /><?php _e('HTML is allowed.', 'wp-print'); ?><br />					
                    
250			</td> 
                    
294		<input type="checkbox" name="uninstall_print_yes" value="yes" />&nbsp;<?php _e('Yes', 'wp-print'); ?><br /><br />
                    
295		<input type="submit" name="do" value="<?php _e('UNINSTALL WP-Print', 'wp-print'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Uninstall WP-Print From WordPress.\nThis Action Is Not Reversible.\n\n Choose [Cancel] To Stop, [OK] To Uninstall.', 'wp-print'); ?>')" />
                    
296	</p>
                    
                
php.js https://gitlab.com/ptisky/API_prestashop | JavaScript | 75 lines
                    
1editAreaLoader.load_syntax["php"] = {

                    
2	'COMMENT_SINGLE' : {1 : '//', 2 : '#'}

                    
15			'null', '__LINE__', '__FILE__',

                    
16			'false', '&lt;?php', '?&gt;', '&lt;?',

                    
17			'&lt;script language', '&lt;/script&gt;',

                    
19			'function', 'class', 'new', '&amp;new', 'this',

                    
20			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',

                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',

                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',

                    
22			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',

                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',

                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',

                    
24			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',

                    
25			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',

                    
32			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',

                    
33			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',

                    
34			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',

                    
                
mysqli_driver.php https://bitbucket.org/code_noodle/the-package-ci-edition.git | PHP | 510 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
88	{
                    
89		// Persistent connection support was added in PHP 5.3.0
                    
90		if ( ! is_php('5.3'))
                    
300
                    
301		$str = is_object($this->conn_id) ? $this->conn_id->real_escape_string($str) : addslashes($str);
                    
302
                    
424				'code' => $this->conn_id->connect_errno,
                    
425				'message' => is_php('5.2.9') ? $this->conn_id->connect_error : mysqli_connect_error()
                    
426			);
                    
508
                    
509/* End of file mysqli_driver.php */
                    
510/* Location: ./system/database/drivers/mysqli/mysqli_driver.php */
                    
                
users.php https://github.com/harriswong/ATutor.git | PHP | 246 lines
                    
1<?php
                    
2/****************************************************************/
                    
14define('AT_INCLUDE_PATH', '../../../include/');
                    
15require(AT_INCLUDE_PATH.'vitals.inc.php');
                    
16admin_authenticate(AT_ADMIN_PRIV_USERS);
                    
20} else if (isset($_GET['edit'], $_GET['id'])) {
                    
21	header('Location: edit_user.php?id='.$_GET['id'][0]);
                    
22	exit;
                    
23} else if (isset($_GET['password'], $_GET['id'])) {
                    
24	header('Location: password_user.php?id='.$_GET['id'][0]);
                    
25	exit;
                    
26} else if (isset($_GET['enrollment'], $_GET['id'])) {
                    
27	header('Location: user_enrollment.php?id='.$_GET['id'][0]);
                    
28	exit;
                    
32	if ($status == -1) {
                    
33		header('Location: admin_delete.php?id='.$ids);
                    
34		exit;
                    
                
 

Source

Language