100+ results for 'php urlencode'
Not the results you expected?
mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
134 $message .= 'Content-Transfer-Encoding: base64' . $this->newline;
135 $message .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . $this->newline;
136 $message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . $this->newline;
137 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
sopac-facet-block.tpl.php (https://github.com/eby/sopac.git) PHP · 261 lines
1 <?php
3 $uri = $_GET['q'];
7 <div id="sidetreecontrol"><a href="?#">Collapse All</a> | <a href="?#">Expand All</a></div>
8 <ul id="facet" class="treeview">
9 <?php
10 $mat_count = count($locum_result['facets']['mat']);
11 $search_formats = is_array($getvars['search_format']) ? $getvars['search_format'] : array();
60 else {
61 $getvars_tmp = $getvars;
62 $getvars_tmp['limit_avail'] = urlencode($avail);
63 if (isset($getvars_tmp['page'])) {
64 $getvars_tmp['page'] = '';
91 else {
92 $getvars_tmp = $getvars;
93 $getvars_tmp['age'][] = urlencode($age);
94 if (isset($getvars_tmp['page'])) {
95 $getvars_tmp['page'] = '';
install-orig.php (https://github.com/sabirmostofa/quiz-plugin.git) PHP · 253 lines
graph.test.php (https://github.com/kwijibo/sparql-proxy.git) PHP · 308 lines
1 <?php
2 require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'constants.inc.php';
3 require_once MORIARTY_DIR . 'graph.class.php';
4 require_once MORIARTY_TEST_DIR . 'fakecredentials.class.php';
6 class GraphTest extends PHPUnit_Framework_TestCase {
7 var $_empty_changeset = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cs="http://purl.org/vocab/changeset/schema#">
8 <rdf:Description rdf:nodeID="cs">
10 <cs:subjectOfChange rdf:nodeID="a" />
11 <cs:creatorName>Ian</cs:creatorName>
12 <cs:changeReason>PHP Client Test</cs:changeReason>
13 </rdf:Description>
14 </rdf:RDF>';
mail.php (https://gitlab.com/2202Programming/navxmxp) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
134 $message .= 'Content-Transfer-Encoding: base64' . $this->newline;
135 $message .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . $this->newline;
136 $message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . $this->newline;
137 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
users.php (https://bitbucket.org/ke2083/transfans.co.uk-website.git) PHP · 376 lines
Url.php (https://github.com/markn86/moodle.git) PHP · 302 lines
1 <?php
2 /**
3 * Copyright 2008-2017 Horde LLC (http://www.horde.org/)
176 if (is_null($this->protocol) || ($this->protocol == 'imap')) {
177 $url .= rawurlencode($this->mailbox);
179 if (!empty($this->uidvalidity)) {
183 if (!is_null($this->search)) {
184 $url .= '?' . rawurlencode($this->search);
185 } else {
186 if (!is_null($this->uid)) {
WorkflowContext.php (https://github.com/trob/fabrik.git) PHP · 215 lines
ChannelContext.php (https://github.com/trob/fabrik.git) PHP · 236 lines
block.php (https://github.com/kmikzjh/forkcms.git) PHP · 537 lines
1 <?php
3 /*
105 // require the config file, we know it is there because we validated it before (possible actions are defined by existance off the file).
106 require_once FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/actions/' . $this->getAction() . '.php';
108 // validate if class exists (aka has correct name)
147 {
148 // get action that should be passed as parameter
149 $actionURL = urlencode(FL::act(SpoonFilter::toCamelCase($actionName)));
151 // the action is the requested one
255 // check if the config is present? If it isn't present there is a huge problem, so we will stop our code by throwing an error
256 if(!SpoonFile::exists($frontendModulePath . '/config.php')) throw new FrontendException('The configfile for the module (' . $this->getModule() . ') can\'t be found.');
258 // build config-object-name
mail.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
134 $message .= 'Content-Transfer-Encoding: base64' . $this->newline;
135 $message .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . $this->newline;
136 $message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . $this->newline;
137 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
contact.tpl (https://gitlab.com/dadangnh/sb1-bon) Smarty Template · 144 lines
4 <?php foreach ($breadcrumbs as $breadcrumb) { ?>
5 <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
6 <?php } ?>
22 <?php if ($image) { ?>
23 <div class="col-sm-3"><img src="<?php echo $image; ?>" alt="<?php echo $store; ?>" title="<?php echo $store; ?>" class="img-thumbnail" /></div>
24 <?php } ?>
29 <?php if ($geocode) { ?>
30 <a href="https://maps.google.com/maps?q=<?php echo urlencode($geocode); ?>&hl=<?php echo $geocode_hl; ?>&t=m&z=15" target="_blank" class="btn btn-info"><i class="fa fa-map-marker"></i> <?php echo $button_map; ?></a>
31 <?php } ?>
66 <?php if ($location['image']) { ?>
67 <div class="col-sm-3"><img src="<?php echo $location['image']; ?>" alt="<?php echo $location['name']; ?>" title="<?php echo $location['name']; ?>" class="img-thumbnail" /></div>
68 <?php } ?>
73 <?php if ($location['geocode']) { ?>
74 <a href="https://maps.google.com/maps?q=<?php echo urlencode($location['geocode']); ?>&hl=<?php echo $geocode_hl; ?>&t=m&z=15" target="_blank" class="btn btn-info"><i class="fa fa-map-marker"></i> <?php echo $button_map; ?></a>
75 <?php } ?>
category.php (https://gitlab.com/haque.mdmanzurul/wp-harpar-carolyn) PHP · 343 lines
1 <?php
2 /**
3 * WordPress Category API
102 */
103 function get_category_by_path( $category_path, $full_match = true, $output = OBJECT ) {
104 $category_path = rawurlencode( urldecode( $category_path ) );
105 $category_path = str_replace( '%2F', '/', $category_path );
106 $category_path = str_replace( '%20', ' ', $category_path );
315 * The parameter should only be passed a variable and not create the array or
316 * object inline to the parameter. The reason for this is that parameter is
317 * passed by reference and PHP will fail unless it has the variable.
318 *
319 * There is no return value, because everything is updated on the variable you
320 * pass to it. This is one of the features with using pass by reference in PHP.
321 *
322 * @since 2.3.0
AssistantContext.php (https://github.com/trob/fabrik.git) PHP · 288 lines
File.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 224 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
28 * @var \Magento\Framework\Url\EncoderInterface
29 */
30 protected $urlEncoder;
32 /**
36 * @param \Magento\Backend\Helper\Data $adminhtmlData
37 * @param \Magento\Framework\View\Asset\Repository $assetRepo
38 * @param \Magento\Framework\Url\EncoderInterface $urlEncoder
39 * @param array $data
40 */
50 $this->_adminhtmlData = $adminhtmlData;
51 $this->_assetRepo = $assetRepo;
52 $this->urlEncoder = $urlEncoder;
53 parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
54 $this->setType('file');
AccessToken.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 189 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Oauth_Http */
23 #require_once 'Zend/Oauth/Http.php';
25 /** Zend_Oauth_Token_Access */
26 #require_once 'Zend/Oauth/Token/Access.php';
28 /**
124 $client->setHeaders(
125 Zend_Http_Client::CONTENT_TYPE,
126 Zend_Http_Client::ENC_URLENCODED
127 );
128 return $client;
HttpUtilsTest.php (https://gitlab.com/martinstti/silex-microframework-rest) PHP · 267 lines
1 <?php
3 /*
19 use Symfony\Component\Security\Http\HttpUtils;
21 class HttpUtilsTest extends \PHPUnit_Framework_TestCase
22 {
23 public function testCreateRedirectResponseWithPath()
144 $this->assertTrue($utils->checkRequestPath($this->getRequest('/foo+bar'), '/foo+bar'));
145 // Checking unicode
146 $this->assertTrue($utils->checkRequestPath($this->getRequest(urlencode('/вход')), '/вход'));
147 }
AccessToken.php (https://github.com/vadimonus/moodle.git) PHP · 189 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Oauth_Http */
23 require_once 'Zend/Oauth/Http.php';
25 /** Zend_Oauth_Token_Access */
26 require_once 'Zend/Oauth/Token/Access.php';
28 /**
124 $client->setHeaders(
125 Zend_Http_Client::CONTENT_TYPE,
126 Zend_Http_Client::ENC_URLENCODED
127 );
128 return $client;
Repo.php (https://github.com/alfrekjv/ppi-framework.git) PHP · 400 lines
223 public function getRepoCollaborators($username, $repo)
224 {
225 $response = $this->get('repos/show/'.urlencode($username).'/'.urlencode($repo).'/collaborators');
227 return $response['collaborators'];
328 public function getRepoBranches($username, $repo)
329 {
330 $response = $this->get('repos/show/'.urlencode($username).'/'.urlencode($repo).'/branches');
332 return $response['branches'];
389 public function getRepoContributors($username, $repo, $includingNonGithubUsers = false)
390 {
391 $url = 'repos/show/'.urlencode($username).'/'.urlencode($repo).'/contributors';
392 if ($includingNonGithubUsers) {
393 $url .= '/anon';
product.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 1292 lines
1 <?php
2 class ControllerSupplierProduct extends Controller {
3 private $error = array();
32 $url = '';
33 if (isset($this->request->get['filter_name'])) {
34 $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
35 }
37 if (isset($this->request->get['filter_model'])) {
38 $url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8'));
39 }
40 //添加推荐人
41 if (isset($this->request->get['filter_referrer'])) {
42 $url .= '&filter_referrer=' . urlencode(html_entity_decode($this->request->get['filter_referrer'], ENT_QUOTES, 'UTF-8'));
43 }
Query.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 285 lines
1 <?php
3 /**
25 * @see Zend_Gdata_Query
26 */
27 // require_once('Zend/Gdata/Query.php');
29 /**
103 {
104 $this->_category = $item .
105 ($name ? '/' . urlencode('{' . self::ITEM_CATEGORY_NS . '}' . $name) : null);
106 return $this;
107 }
157 if ($value !== null) {
158 if ($value <= 0 || $this->getGrouped() !== 'true') {
159 // require_once 'Zend/Gdata/App/InvalidArgumentException.php';
160 throw new Zend_Gdata_App_InvalidArgumentException(
161 'The max-results-group parameter must be set to a value
UniformResourceLocator.php (https://github.com/massiveart-webservices/ZOOLU.git) PHP · 465 lines
1 <?php
2 /**
3 * ZOOLU - Content Management System
28 * @copyright Copyright (c) 2008-2012 HID GmbH (http://www.hid.ag)
29 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, Version 3
30 * @version $Id: version.php
31 */
239 // delete problematic characters
240 $path = str_replace('%2F', '/', urlencode(preg_replace('/([^A-za-z0-9\s-_\/])/', '', $path)));
242 $path = str_replace('+', '-', $path);
WorkspaceContext.php (https://github.com/trob/fabrik.git) PHP · 318 lines
exportentry.php (https://github.com/markn86/moodle.git) PHP · 127 lines
1 <?php
3 require_once('../../config.php');
4 require_once('lib.php');
6 $id = required_param('id', PARAM_INT); // Entry ID
9 $hook = optional_param('hook', '', PARAM_CLEAN);
11 $url = new moodle_url('/mod/glossary/exportentry.php', array('id'=>$id,'prevmode'=>$prevmode));
12 if ($confirm !== 0) {
13 $url->param('confirm', $confirm);
46 require_capability('mod/glossary:export', $context);
48 $returnurl = "view.php?id=$cm->id&mode=$prevmode&hook=".urlencode($hook);
50 if (!$mainglossary = $DB->get_record('glossary', array('course'=>$cm->course, 'mainglossary'=>1))) {
RestRouteTest.class.php (https://github.com/ghiata/xp-framework.git) PHP · 362 lines
review.php (https://github.com/ocStore/ocStore.git) PHP · 447 lines
1 <?php
2 namespace Opencart\Admin\Controller\Catalog;
3 class Review extends \Opencart\System\Engine\Controller {
11 if (isset($this->request->get['filter_product'])) {
12 $url .= '&filter_product=' . urlencode(html_entity_decode($this->request->get['filter_product'], ENT_QUOTES, 'UTF-8'));
13 }
15 if (isset($this->request->get['filter_author'])) {
16 $url .= '&filter_author=' . urlencode(html_entity_decode($this->request->get['filter_author'], ENT_QUOTES, 'UTF-8'));
17 }
116 if (isset($this->request->get['filter_product'])) {
117 $url .= '&filter_product=' . urlencode(html_entity_decode($this->request->get['filter_product'], ENT_QUOTES, 'UTF-8'));
118 }
Query.php (https://bitbucket.org/acidel/buykoala.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
25 * Zend_Gdata_App_Util
26 */
27 #require_once 'Zend/Gdata/App/Util.php';
29 /**
88 continue;
89 }
90 $queryArray[] = urlencode($name) . '=' . urlencode($value);
91 }
92 if (count($queryArray) > 0) {
block.php (https://github.com/lowiebenoot/forkcms.git) PHP · 573 lines
1 <?php
3 /*
106 // require the config file, we know it is there because we validated it before (possible actions are defined by existence off the file).
107 require_once FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/actions/' . $this->getAction() . '.php';
109 // validate if class exists (aka has correct name)
149 {
150 // get action that should be passed as parameter
151 $actionURL = urlencode(FL::act(SpoonFilter::toCamelCase($actionName)));
153 // the action is the requested one
257 // check if the config is present? If it isn't present there is a huge problem, so we will stop our code by throwing an error
258 if(!is_file($frontendModulePath . '/config.php')) {
259 throw new FrontendException('The config file for the module (' . $this->getModule() . ') can\'t be found.');
260 }
MemberList.php (https://gitlab.com/D-apos-software/Alcesac) PHP · 181 lines
update.php (https://github.com/geenkaas/Wordpress.git) PHP · 254 lines
35 $plugins = array_map('urldecode', $plugins);
37 $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins));
38 $nonce = 'bulk-update-plugins';
136 $submenu_file = 'plugin-install.php';
137 require_once(ABSPATH . 'wp-admin/admin-header.php');
139 $title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) );
140 $nonce = 'plugin-upload';
141 $url = add_query_arg(array('package' => $file_upload->filename ), 'update.php?action=upload-plugin');
142 $type = 'upload'; //Install plugin type, From Web or an Upload.
183 $themes = array_map('urldecode', $themes);
185 $url = 'update.php?action=update-selected-themes&themes=' . urlencode(implode(',', $themes));
186 $nonce = 'bulk-update-themes';
aggregation.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 178 lines
1 <?php
2 /**
3 * Aggregation controller
86 if (count($urls)) {
87 foreach ($urls as $key => $url) {
88 $urls[$key] = urlencode($url);
89 }
90 $service->aggregate_by_url($post, $urls);
136 $awaiting_mod = $awaiting_mod->moderated;
138 $link = esc_url(admin_url('edit-comments.php?p='.$post->ID));
140 $html = '';
encoding.php (https://github.com/h-kanjisan/swiftmailer.git) PHP · 552 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: encoding.php 1784 2008-04-26 13:07:14Z pp11 $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/socket.php');
13 /**#@-*/
38 */
39 function asRequest() {
40 return urlencode($this->key) . '=' . urlencode($this->value);
41 }
Query.php (https://github.com/Riges/KawaiViewModel.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
22 */
25 * Zend_Gdata_App_Util
26 */
27 require_once 'Zend/Gdata/App/Util.php';
29 /**
88 continue;
89 }
90 $queryArray[] = urlencode($name) . '=' . urlencode($value);
91 }
92 if (count($queryArray) > 0) {
HttpTest.php (https://github.com/mackstar/lithium.git) PHP · 380 lines
1 <?php
2 /**
3 * Lithium: the most rad php framework
4 *
5 * @copyright Copyright 2012, Union of RAD (http://union-of-rad.org)
6 * @license http://opensource.org/licenses/bsd-license.php The BSD License
7 */
126 'Connection: Close',
127 'User-Agent: Mozilla/5.0',
128 'Content-Type: application/x-www-form-urlencoded',
129 'Content-Length: 11',
130 '', 'status=cool'
142 'Connection: Close',
143 'User-Agent: Mozilla/5.0',
144 'Content-Type: application/x-www-form-urlencoded',
145 'Content-Length: 11',
146 '', 'status=cool'
Query.php (https://bitbucket.org/mercysam/zfs.git) PHP · 284 lines
1 <?php
3 /**
24 * @see Zend_Gdata_Query
25 */
26 require_once('Zend/Gdata/Query.php');
28 /**
102 {
103 $this->_category = $item .
104 ($name ? '/' . urlencode('{' . self::ITEM_CATEGORY_NS . '}' . $name) : null);
105 return $this;
106 }
156 if ($value !== null) {
157 if ($value <= 0 || $this->getGrouped() !== 'true') {
158 require_once 'Zend/Gdata/App/InvalidArgumentException.php';
159 throw new Zend_Gdata_App_InvalidArgumentException(
160 'The max-results-group parameter must be set to a value
tag.php (https://github.com/ffchung/gallery3.git) PHP · 155 lines
1 <?php defined("SYSPATH") or die("No direct script access.");
2 /**
3 * Gallery - a web based photo album viewer and editor
142 /**
143 * Return the server-relative url to this item, eg:
144 * /gallery3/index.php/tags/35
145 *
146 * @param string $query the query string (eg "page=3")
147 */
148 public function url($query=null) {
149 $url = url::site("tag/{$this->id}/" . urlencode($this->name));
150 if ($query) {
151 $url .= "?$query";
_aux.c (https://github.com/basuke/io.git) C · 334 lines
ExecutionList.php (https://github.com/trob/fabrik.git) PHP · 175 lines
SharedCostList.php (https://github.com/trob/fabrik.git) PHP · 152 lines
utils_transaction.js (https://github.com/geekbuntu/Projet-BD.git) JavaScript · 174 lines
15 var xmlHttp=GetXmlHttpObject();
16 var url="registration/register_transaction_buy.php";
17 var parameters = "cart=" + encodeURI(document.getElementById("cart").value) +"&supplier=" +
18 encodeURI(document.getElementById("supplier_list").value)+"&repo=" + encodeURI(document.getElementById("repository_list").value);
19 xmlHttp.open('POST', url, false);
20 xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
21 xmlHttp.setRequestHeader("Content-length", parameters.length);
22 xmlHttp.setRequestHeader("Connection", "close");
47 var xmlHttp=GetXmlHttpObject();
48 var url="registration/register_transaction_sell.php";
49 var parameters = "cart=" + encodeURI(document.getElementById("cart").value) +"&client=" +
50 encodeURI(document.getElementById("client_list").value);
mailNativePlugin.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 131 lines
1 <?php
2 /**
3 * $URL: svn://svn.mzz.ru/mzz/trunk/system/template/drivers/native/mailNativePlugin.php $
12 * @package system
13 * @subpackage template
14 * @version $Id: mailNativePlugin.php 4222 2010-05-17 04:50:56Z striker $
15 */
47 case 'followupto':
48 if (!empty($value))
49 $mail_parms[] = $var . '=' . str_replace($search, $replace, rawurlencode($value));
50 break;
52 case 'subject':
53 case 'newsgroups':
54 $mail_parms[] = $var . '=' . rawurlencode($value);
55 break;
adsense.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 416 lines
180 $url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode($accountID);
181 $url .= '/adclients/' . urlencode($adclientID) . '/adunits/' . urlencode($adunitID) . '/customchannels?' . http_build_query($options);
183 return $this->listGetData($url, $maxpages, $next);
206 $url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode($accountID) . '/adclients/';
207 $url .= urlencode($adclientID) . '/customchannels/' . urlencode($channelID);
208 $jdata = $this->query($url);
242 $next = array_key_exists('nextPageToken', $options) ? $options['nextPage'] : null;
243 unset($options['nextPageToken']);
244 $url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode($accountID) . '/adclients/' . urlencode($adclientID);
245 $url .= '/customchannels?' . http_build_query($options);
273 $next = array_key_exists('nextPageToken', $options) ? $options['nextPage'] : null;
274 unset($options['nextPageToken']);
275 $url = 'https://www.googleapis.com/adsense/v1.1/accounts/' . urlencode($accountID) . '/adclients/' . urlencode($adclientID);
276 $url .= '/customchannels/' . urlencode($channelID) . '/adunits?' . http_build_query($options);
UrlMatcherTest.php (https://bitbucket.org/hill2steve/mobileroom.git) PHP · 245 lines
1 <?php
3 /*
19 use Symfony\Component\Routing\RequestContext;
21 class UrlMatcherTest extends \PHPUnit_Framework_TestCase
22 {
23 public function testNoMethodSoAllowed()
167 $matcher = new UrlMatcher($collection, new RequestContext());
168 $this->assertEquals(array('_route' => 'foo', 'foo' => $chars), $matcher->match('/'.rawurlencode($chars).'/bar'));
169 $this->assertEquals(array('_route' => 'foo', 'foo' => $chars), $matcher->match('/'.strtr($chars, array('%' => '%25')).'/bar'));
170 }
177 $matcher = new UrlMatcher($collection, new RequestContext());
178 $this->assertEquals(array('_route' => 'foo', 'foo' => "\n"), $matcher->match('/'.urlencode("\n").'/bar'), 'linefeed character is matched');
179 }
REST.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 134 lines
1 <?php
2 /*
3 * Copyright 2010 Google Inc.
113 if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) {
114 foreach ($paramSpec['value'] as $value) {
115 $queryVars[] = $paramName . '=' . rawurlencode($value);
116 }
117 } else {
118 $queryVars[] = $paramName . '=' . rawurlencode($paramSpec['value']);
119 }
120 }
revert_changes.class.php (https://github.com/Matthew1/moodle.git) PHP · 120 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
79 $o.= ' <table class="boxaligncenter" cellpadding="20"><tr><td>';
80 $o.= ' <div class="singlebutton">';
81 $o.= ' <form action="index.php?action=revert_changes&sesskey=' . sesskey() . '&confirmed=yes&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '&postaction=main_view#lastused" method="post"><fieldset class="invisiblefieldset">';
82 $o.= ' <input type="submit" value="'. $this->str['yes'] .'" /></fieldset></form></div>';
83 $o.= ' </td><td>';
84 $o.= ' <div class="singlebutton">';
85 $o.= ' <form action="index.php?action=main_view#lastused" method="post"><fieldset class="invisiblefieldset">';
86 $o.= ' <input type="submit" value="'. $this->str['no'] .'" /></fieldset></form></div>';
87 $o.= ' </td></tr>';
function.mailto.php (https://github.com/deloschang/Ajemem-Prototype.git) PHP · 143 lines
1 <?php
2 /**
3 * Smarty plugin
38 * {mailto address="me@domain.com" extra='class="mailto"'}
39 * </pre>
40 * @link http://smarty.php.net/manual/en/language.function.mailto.php {mailto}
41 * (Smarty online manual)
42 * @version 1.2
69 case 'followupto':
70 if (!empty($value))
71 $mail_parms[] = $var.'='.str_replace('%40','@',rawurlencode($value));
72 break;
74 case 'subject':
75 case 'newsgroups':
76 $mail_parms[] = $var.'='.rawurlencode($value);
77 break;
plugins.php (https://github.com/sarriaroman/Cronos-Aion.git) PHP · 389 lines
178 $plg = Plugin::getByPath($plugin);
180 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section );
181 } else {
182 $permalink = getPermalink(0);
204 $plg = Plugin::getByPath($plugin);
206 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section . "&module=" . $module );
207 } else {
208 $permalink = getPermalink(0);
230 $plg = Plugin::getByName($plugin);
232 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section . "&module=" . $module );
233 } else {
234 $permalink = getPermalink(0);
mwslib.py (https://github.com/jleyva/mooconsole.git) Python · 226 lines
156 if site.wstoken:
157 url = site.url + '/webservice/rest/server.php?wstoken='+site.wstoken+'&wsfunction='+self.wsfname
158 elif site.wsusername != '' and site.wspassword != '':
159 url = site.url + '/webservice/rest/server.php?wsusername='+site.wsusername +'&wspassword='+site.wspassword +'&wsfunction='+self.wsfname
161 return (False, None)
163 params = urllib.urlencode(self.ws_data)
165 self.logger.debug('Executing WS: %s %s',url,params)
admin.inc.php (https://github.com/BenBE/ispCP.git) PHP · 189 lines
1 <?php
3 // -------------------------------------------------------------------------------
97 // Include
98 echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"". $net2ftp_globals["application_rootdir_url"] . "/skins/" . $net2ftp_globals["skin"] . "/css/main.css.php?ltr=" . __("ltr") . "&image_url=" . urlEncode2($net2ftp_globals["image_url"]) . "\" />\n";
100 } // end net2ftp_printCssInclude
178 // Print the output
179 // -------------------------------------------------------------------------
180 require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/manage.template.php");
182 } // End net2ftp_printBody
AlchemyAPIParams.php (https://github.com/schultetwin/commons.git) PHP · 630 lines
1 <?php
3 /* Parameter class for functions URLGetRankedNamedEntities, HTMLGetRankedNamedEntities, TextGetRankedNamedEntities
77 $this->customParameters .= "&".func_get_arg($i);
78 if ((++$i) < $numargs)
79 $this->customParameters .= "=".rawurlencode(func_get_arg($i));
80 }
81 }
84 $retString = "";
85 if(isset($this->url))
86 $retString=$retString."&url=".rawurlencode($this->url);
87 if(isset($this->html))
88 $retString=$retString."&html=".rawurlencode($this->html);
89 if(isset($this->text))
90 $retString=$retString."&text=".rawurlencode($this->text);
91 if(isset($this->customParameters))
92 $retString=$retString.$this->customParameters;
urbanairship.php (https://github.com/midnightskinhead/php-library.git) PHP · 217 lines
1 <?php
3 // Php module for using the Urban Airship API
5 require_once 'RESTClient.php';
7 define('SERVER', 'go.urbanairship.com');
199 */
200 public function feedback($since) {
201 $url = FEEDBACK_URL . '?' . 'since=' . rawurlencode($since->format('c'));
202 $response = $this->_request($url, 'GET', null, null);
203 $response_code = $response[0];
Query.php (https://github.com/jung921/MIT-Mobile-Web.git) PHP · 284 lines
24 * @see Zend_Gdata_Query
25 */
26 require_once('Zend/Gdata/Query.php');
28 /**
102 {
103 $this->_category = $item .
104 ($name ? '/' . urlencode('{' . self::ITEM_CATEGORY_NS . '}' . $name) : null);
105 return $this;
106 }
156 if ($value !== null) {
157 if ($value <= 0 || $this->getGrouped() !== 'true') {
158 require_once 'Zend/Gdata/App/InvalidArgumentException.php';
159 throw new Zend_Gdata_App_InvalidArgumentException(
160 'The max-results-group parameter must be set to a value
ckfinder_php5.php (https://gitlab.com/endomorphosis/falkenstein) PHP · 231 lines
181 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
182 $editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
183 $editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
184 $editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
185 }
226 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
227 $editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
228 $editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
229 $editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
230 }
231 }
Page.php (https://github.com/voidit/chyrp.git) PHP · 287 lines
1 <?php
2 /**
3 * Class: Page
234 $config = Config::current();
235 if (!$config->clean_urls)
236 return $config->url."/?action=page&url=".urlencode($this->url);
238 $url = array("", urlencode($this->url));
240 $page = $this;
241 while (isset($page->parent_id) and $page->parent_id) {
242 $url[] = urlencode($page->parent->url);
243 $page = $page->parent;
244 }
OrderConfirmationController.php (https://gitlab.com/staging06/myproject) PHP · 148 lines
1 <?php
2 /*
3 * 2007-2015 PrestaShop
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
21 * @author PrestaShop SA <contact@prestashop.com>
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
25 */
28 {
29 public $ssl = true;
30 public $php_self = 'order-confirmation';
31 public $id_cart;
32 public $id_module;
customer_online.php (https://gitlab.com/reclamare/mao) PHP · 138 lines
1 <?php
2 class ControllerReportCustomerOnline extends Controller {
3 public function index() {
28 if (isset($this->request->get['filter_customer'])) {
29 $url .= '&filter_customer=' . urlencode($this->request->get['filter_customer']);
30 }
111 if (isset($this->request->get['filter_customer'])) {
112 $url .= '&filter_customer=' . urlencode($this->request->get['filter_customer']);
113 }
admin.dev.js (https://gitlab.com/phamngsinh/baitaplon_sinhvien) JavaScript · 419 lines
185 }
187 link = rawurlencode( link );
189 nv_ajax( 'post', script_name, nv_name_variable + '=' + nv_module_name + '&check=1&url=' + link + '&is_myurl=' + is_myUrl + '&num=' + nv_randomPassword( 8 ), '', 'nv_checkfile_result' );
205 if( is_myUrl )
206 {
207 link = rawurlencode( link );
208 link = script_name + '?' + nv_name_variable + '=' + nv_module_name + '&fdownload=' + link;
209 window.location.href = link;
391 file_items ++ ;
392 var newitem = "<input readonly=\"readonly\" class=\"txt\" value=\"\" name=\"fileupload[]\" id=\"fileupload" + file_items + "\" style=\"width : 300px\" maxlength=\"255\" />";
393 newitem += " <input type=\"button\" value=\"" + file_selectfile + "\" name=\"selectfile\" onclick=\"nv_open_browse_file( '" + nv_base_adminurl + "index.php?" + nv_name_variable + "=upload&popup=1&area=fileupload" + file_items + "&path=" + file_dir + "&type=file', 'NVImg', 850, 500, 'resizable=no,scrollbars=no,toolbar=no,location=no,status=no' ); return false; \" />";
394 newitem += " <input type=\"button\" value=\"" + file_checkUrl + "\" id= \"check_fileupload" + file_items + "\" onclick=\"nv_checkfile( 'fileupload" + file_items + "', 1, 'check_fileupload" + file_items + "' ); \" />";
395 newitem += " <input type=\"button\" value=\"" + file_gourl + "\" id= \"go_fileupload" + file_items + "\" onclick=\"nv_gourl( 'fileupload" + file_items + "', 1, 'go_fileupload" + file_items + "' ); \" /><br />";
AssetDispatcherTest.php (https://bitbucket.org/vishallogiciel/admin-bootstrap.git) PHP · 191 lines
1 <?php
2 /**
3 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
8 *
9 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
10 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
11 * @package Cake.Test.Case.Routing.Filter
12 * @since CakePHP(tm) v 2.2
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
14 */
131 /**
132 * Test that no exceptions are thrown for //index.php type urls.
133 *
134 * @return void
class-ga-js.php (https://gitlab.com/najomie/fit-hippie) PHP · 191 lines
1 <?php
2 /**
3 * @package GoogleAnalytics\Frontend
84 $pushstr = "'_trackPageview','/?s=";
85 if ( $wp_query->found_posts == 0 ) {
86 $gaq_push[] = $pushstr . 'no-results:' . rawurlencode( $wp_query->query_vars['s'] ) . "&cat=no-results'";
87 }
88 else {
89 if ( $wp_query->found_posts == 1 ) {
90 $gaq_push[] = $pushstr . rawurlencode( $wp_query->query_vars['s'] ) . "&cat=1-result'";
91 }
92 else {
93 if ( $wp_query->found_posts > 1 && $wp_query->found_posts < 6 ) {
94 $gaq_push[] = $pushstr . rawurlencode( $wp_query->query_vars['s'] ) . "&cat=2-5-results'";
95 }
96 else {
HttpClientApi.php (https://gitlab.com/hunt9310/ras) PHP · 116 lines
1 <?php
2 namespace Test\Integration;
4 require_once dirname(__DIR__) . '/Setup.php';
6 use Braintree;
49 public function get_cards($options) {
50 $encoded_fingerprint = urlencode($options["authorization_fingerprint"]);
51 $url = "/client_api/v1/payment_methods.json?";
52 $url .= "authorizationFingerprint=" . $encoded_fingerprint;
Regex.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 173 lines
AuthSub.php (https://github.com/leerbag/zf2.git) PHP · 239 lines
Pubsubhubbub.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 153 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Pubsubhubbub.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Http_Client
24 */
25 // // // // // // // // // // require_once 'Zend/Http/Client.php';
27 /**
28 * @see Zend_Uri
29 */
30 // // // // // // // // // // require_once 'Zend/Uri.php';
32 /**
pynma.py (https://github.com/CybeTech/CouchPotato.git) Python · 137 lines
3 from xml.dom.minidom import parseString
4 from httplib import HTTPSConnection
5 from urllib import urlencode
7 __version__ = "0.1"
73 Warning: using batch_mode will return error only if all API keys are bad
74 cf: http://nma.usk.bz/api.php
75 """
76 datas = {
104 headers = { 'User-Agent': USER_AGENT }
105 if method == "POST":
106 headers['Content-type'] = "application/x-www-form-urlencoded"
107 http_handler = HTTPSConnection(API_SERVER)
108 http_handler.request(method, path, urlencode(args), headers)
Query.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
25 * Zend_Gdata_App_Util
26 */
27 require_once 'Zend/Gdata/App/Util.php';
29 /**
88 continue;
89 }
90 $queryArray[] = urlencode($name) . '=' . urlencode($value);
91 }
92 if (count($queryArray) > 0) {
encoding.php (https://github.com/nigeldaley/moodle.git) PHP · 552 lines
1 <?php
2 /**
3 * base include file for SimpleTest
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/socket.php');
13 /**#@-*/
38 */
39 function asRequest() {
40 return urlencode($this->_key) . '=' . urlencode($this->_value);
41 }
471 function writeHeadersTo(&$socket) {
472 $socket->write("Content-Length: " . (integer)strlen($this->_encode()) . "\r\n");
473 $socket->write("Content-Type: application/x-www-form-urlencoded\r\n");
474 }
filemanager.php (https://github.com/ShadowCross/croogo.git) PHP · 207 lines
1 <?php
2 /**
3 * Filemanager Helper
4 *
5 * PHP version 5
6 *
7 * @category Helper
9 * @version 1.0
10 * @author Fahad Ibnay Heylaal <contact@fahad19.com>
11 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
12 * @link http://www.croogo.org
13 */
51 'htm' => 'html.png',
52 'html' => 'html.png',
53 'php' => 'page_white_php.png',
55 'rar' => 'page_white_compressed.png',
middleware.clj (https://github.com/pelle/clauth.git) Clojure · 297 lines
172 :access-token "abcde"
173 :session {:access_token "abcde"}})))
174 (is (base/is-form? {:content-type "application/x-www-form-urlencoded"
175 :access-token "abcde"
176 :session {:access_token "abcde"}}))
180 (is (not (base/is-form? {:content-type "application/json"})))
181 (is (not (base/is-form? {:content-type "application/xml"})))
182 (is (base/is-form? {:content-type "application/x-www-form-urlencoded"}))
183 (is (base/is-form? {:content-type "multipart/form-data"}))
184 (is (not (base/is-form? {:content-type "application/json"
186 (is (not (base/is-form? {:content-type "application/xml"
187 :access-token "abcde"})))
188 (is (not (base/is-form? {:content-type "application/x-www-form-urlencoded"
189 :access-token "abcde"})))
190 (is (not (base/is-form? {:content-type "multipart/form-data"
CookieTest.php (https://github.com/Faianca/symfony.git) PHP · 166 lines
1 <?php
3 /*
14 use Symfony\Component\BrowserKit\Cookie;
16 class CookieTest extends \PHPUnit_Framework_TestCase
17 {
18 /**
106 {
107 $cookie = new Cookie('foo', 'bar=baz'); // decoded value
108 $this->assertEquals('bar%3Dbaz', $cookie->getRawValue(), '->getRawValue() returns the urlencoded cookie value');
109 $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true); // raw value
110 $this->assertEquals('bar%3Dbaz', $cookie->getRawValue(), '->getRawValue() returns the non-urldecoded cookie value');
Cookie.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 324 lines
CommonModel.php (https://gitlab.com/e0/mautic) PHP · 279 lines
ostatustag.php (https://gitlab.com/BeS/io.schiessle.org) PHP · 123 lines
1 <?php
2 /*
3 * StatusNet - the distributed open-source microblogging tool
110 // @fixme hack hack! We should look up the remote sub URL from XRDS
111 $suburl = preg_replace('!^(.*)/(.*?)$!', '$1/main/tagprofile', $subscriber_profile);
112 $suburl .= '?uri=' . urlencode($target_profile);
114 common_log(LOG_INFO, "Sending remote subscriber $subscriber_profile to $suburl");
template.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 112 lines
70 <label for="button-history-scans" class="history-tab"><?php _e( 'History', 'p3-profiler' ); ?></label>
71 <input type="radio" name="p3-nav" id="button-help" <?php echo $button_help_checked; ?> /><label for="button-help" class="help-tab"><?php _e( 'Help', 'p3-profiler' ); ?></label>
72 </div>
89 <?php } else { ?>
90 <?php require_once P3_PATH . '/templates/list-scans.php'; ?>
91 <?php } ?>
98 <?php _e( 'Do you like this plugin?', 'p3-profiler' ); ?>
99 <ul>
100 <li><a href="http://twitter.com/home?status=<?php echo rawurlencode( sprintf( __( 'I just optimized my WordPress site with %1$s %2$s', 'p3-profiler' ), '#p3plugin', 'http://wordpress.org/extend/plugins/p3-profiler/') ); ?>" target="_blank"><?php _e( 'Tweet about it', 'p3-profiler' ); ?></a></li>
101 <li><a href="http://wordpress.org/extend/plugins/p3-profiler/" target="_blank"><?php _e( 'Rate it on the repository', 'p3-profiler' ); ?></a></li>
106 <div id="p3-copyright">
107 <img src="<?php echo plugins_url() . '/p3-profiler/css/logo.png'; ?>" alt="<?php esc_attr_e( 'Logo', 'p3-profiler' ); ?>" title="<?php esc_attr_e( 'Logo', 'p3-profiler' ); ?>" />
108 <br />
109 <?php printf( __( 'P3 (Plugin Performance Profiler) is Copyright © %1$s - %2$s <a href="%3$s" target="_blank">GoDaddy.com</a>. All rights reserved.', 'p3-profiler' ), 2011, date( 'Y' ), 'http://www.godaddy.com/' ); ?>
MessageList.php (https://github.com/trob/fabrik.git) PHP · 188 lines
QueryList.php (https://github.com/trob/fabrik.git) PHP · 182 lines
edit.php (https://github.com/jasonweng/forkcms.git) PHP · 151 lines
1 <?php
3 /*
114 {
115 // geocode address
116 $url = 'http://maps.googleapis.com/maps/api/geocode/json?address=' . urlencode($item['street'] . ' ' . $item['number'] . ', ' . $item['zip'] . ' ' . $item['city'] . ', ' . SpoonLocale::getCountry($item['country'], BL::getWorkingLanguage())) . '&sensor=false';
117 $geocode = json_decode(SpoonHTTP::getContent($url));
118 $item['lat'] = isset($geocode->results[0]->geometry->location->lat) ? $geocode->results[0]->geometry->location->lat : null;
142 // redirect
143 $this->redirect(BackendModel::createURLForAction('index') . '&report=edited&var=' . urlencode($item['title']) . '&highlight=row-' . $id);
144 }
oauth.php (https://github.com/FractalizeR/php-stubs.git) PHP · 357 lines
body_footer.php (https://github.com/Ankso/MaNGOSWeb.git) PHP · 101 lines
51 <span class="textlinks">
52 <small>
53 <?php echo $lang['pagegenerated'];?> <?php echo round(PAGE_LOAD_TIME, 4);?> sec.
54 Query's: (RDB: <?php echo $DB->_statistics['count']; ?>,
55 WDB: <?php echo $WDB->_statistics['count']?>,
56 CDB: <?php echo $CDB->_statistics['count']?>)<br/>
58 <br /><b><?php echo $Core->copyright; ?></b>
59 <br/>
60 <a href="http://validator.w3.org/check?uri=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); ?>">Validate XHTML</a> |
61 <a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); ?>">Validate CSS</a> |
62 <a href="http://validator.w3.org/feed/check.cgi?url=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].(str_replace('index.php','',$_SERVER['PHP_SELF'])).'core/cache/rss/news.xml'); ?>">Validate RSS</a>
63 </small>
64 </span>
MessageList.php (https://gitlab.com/D-apos-software/Alcesac) PHP · 168 lines
delete.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 145 lines
1 <?php
2 include_once('./_common.php');
12 $count_write = $count_comment = 0;
14 @include_once($board_skin_path.'/delete.head.skin.php');
16 if ($is_admin == 'super') // 최고관리자 통과
33 } else {
34 if ($write['mb_id'])
35 alert('로그인 후 삭제하세요.', G5_BBS_URL.'/login.php?url='.urlencode(get_pretty_url($bo_table, $wr_id)));
36 else if (!check_password($wr_password, $write['wr_password']))
37 alert('비밀번호가 틀리므로 삭제할 수 없습니다.');
64 // 사용자 코드 실행
65 @include_once($board_skin_path.'/delete.skin.php');
comments.php (https://github.com/somerandomdude/Frank.git) PHP · 113 lines
18 <?php if ( have_comments() ) : ?>
19 <header id="comments-header">
20 <h1 id="comments-title">
29 </header>
30 <ul id="comments">
31 <?php wp_list_comments( array( 'callback' => 'frank_comment' ) ); ?>
32 </ul>
45 <?php elseif (comments_open()) : ?>
46 <p id="comments" class="no_comments">
47 <?php _e( 'Be the first to leave a comment. Don’t be shy.', 'frank_theme' ); ?>
48 </p>
49 <?php endif; ?>
54 <?php if ( get_option( 'comment_registration' ) && ! $user_ID ) : ?>
55 <p>You must be <a href="<?php echo get_option( 'siteurl' ); ?>/wp-login.php?redirect_to=<?php echo urlencode( get_permalink() ); ?>">logged in</a> to post a comment.</p>
57 <?php else : ?>
refs.remote.other.html (https://github.com/vsilent/vim.git) HTML · 242 lines
6 </head>
7 <body><div style="text-align: center;">
8 <div class="prev" style="float: left;"><a href="function.urlencode.html">urlencode</a></div>
9 <div class="next" style="float: right;"><a href="book.curl.html">Функции CURL</a></div>
10 <div class="up"><a href="funcref.html">Справочник функций</a></div>
11 <div class="home"><a href="index.html">PHP Manual</a></div>
12 </div><hr /><div>
13 <h1 class="title">Other Services</h1>
237 <ul class="chunklist chunklist_set"><li><a href="book.curl.html">Функции CURL</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.curl.html">Введение</a></li><li><a href="curl.setup.html">Установка и настройка</a></li><li><a href="curl.constants.html">Предопределенные константы</a></li><li><a href="curl.examples.html">Примеры</a></li><li><a href="ref.curl.html">CURL</a> — Функции CURL, Client URL Library</li></ul></li><li><a href="book.fam.html">File Alteration Monitor</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.fam.html">Введение</a></li><li><a href="fam.setup.html">Установка и настройка</a></li><li><a href="fam.constants.html">Предопределенные константы</a></li><li><a href="ref.fam.html">fam</a> — File Alteration Monitor Функции</li></ul></li><li><a href="book.ftp.html">Функции FTP</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.ftp.html">Введение</a></li><li><a href="ftp.setup.html">Установка и настройка</a></li><li><a href="ftp.constants.html">Предопределенные константы</a></li><li><a href="ftp.examples.html">Примеры</a></li><li><a href="ref.ftp.html">FTP</a> — Функции FTP</li></ul></li><li><a href="book.hw.html">Hyperwave</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.hw.html">Введение</a></li><li><a href="hw.setup.html">Установка и настройка</a></li><li><a href="hw.constants.html">Предопределенные константы</a></li><li><a href="hw.apache.html">Integration with Apache</a></li><li><a href="ref.hw.html">Hyperwave Функции</a></li></ul></li><li><a href="book.hwapi.html">Hyperwave API</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.hwapi.html">Введение</a></li><li><a href="hwapi.setup.html">Установка и настройка</a></li><li><a href="hwapi.constants.html">Предопределенные константы</a></li><li><a href="ref.hwapi.html">Hyperwave API Функции</a></li></ul></li><li><a href="book.http.html">HTTP</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.http.html">Введение</a></li><li><a href="http.setup.html">Установка и настройка</a></li><li><a href="http.constants.html">Предопределенные константы</a></li><li><a href="http.request.options.html">Request Options</a> — Options usable with the HttpRequest class and request functions</li><li><a href="class.httpdeflatestream.html">The HttpDeflateStream class</a></li><li><a href="class.httpinflatestream.html">The HttpInflateStream class</a></li><li><a href="class.httpmessage.html">The HttpMessage class</a></li><li><a href="class.httpquerystring.html">The HttpQueryString class</a></li><li><a href="class.httprequest.html">The HttpRequest</a></li><li><a href="class.httprequestpool.html">The HttpRequestPool class</a></li><li><a href="class.httpresponse.html">The HttpResponse</a></li><li><a href="ref.http.html">HTTP Функции</a></li></ul></li><li><a href="book.java.html">Java</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.java.html">Введение</a></li><li><a href="java.setup.html">Установка и настройка</a></li><li><a href="java.constants.html">Предопределенные константы</a></li><li><a href="java.servlet.html">Java Servlet SAPI</a></li><li><a href="java.examples.html">Примеры</a></li><li><a href="ref.java.html">PHP / Java Integration</a></li></ul></li><li><a href="book.ldap.html">LDAP</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.ldap.html">Введение</a></li><li><a href="ldap.setup.html">Установка и настройка</a></li><li><a href="ldap.constants.html">Предопределенные константы</a></li><li><a href="ldap.using.html">Using the PHP LDAP calls</a></li><li><a href="ldap.examples.html">Примеры</a></li><li><a href="ref.ldap.html">LDAP Функции</a></li></ul></li><li><a href="book.notes.html">Lotus Notes</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.notes.html">Введение</a></li><li><a href="notes.setup.html">Установка и настройка</a></li><li><a href="notes.constants.html">Предопределенные константы</a></li><li><a href="ref.notes.html">Lotus Notes Функции</a></li></ul></li><li><a href="book.memcache.html">Memcache</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.memcache.html">Введение</a></li><li><a href="memcache.setup.html">Установка и настройка</a></li><li><a href="memcache.constants.html">Предопределенные константы</a></li><li><a href="memcache.examples.html">Примеры</a></li><li><a href="ref.memcache.html">Memcache Функции</a></li></ul></li><li><a href="book.mnogosearch.html">mnoGoSearch</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.mnogosearch.html">Введение</a></li><li><a href="mnogosearch.setup.html">Установка и настройка</a></li><li><a href="mnogosearch.constants.html">Предопределенные константы</a></li><li><a href="ref.mnogosearch.html">mnoGoSearch Функции</a></li></ul></li><li><a href="book.mqseries.html">mqseries</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.mqseries.html">Введение</a></li><li><a href="mqseries.setup.html">Установка и настройка</a></li><li><a href="mqseries.constants.html">Предопределенные константы</a></li><li><a href="ref.mqseries.html">mqseries Функции</a></li></ul></li><li><a href="book.net-gopher.html">Net Gopher</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.net-gopher.html">Введение</a></li><li><a href="net-gopher.setup.html">Установка и настройка</a></li><li><a href="net-gopher.constants.html">Предопределенные константы</a></li><li><a href="net-gopher.examples.html">Примеры</a></li><li><a href="ref.net-gopher.html">gopher</a> — Net_Gopher</li></ul></li><li><a href="book.network.html">Network</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.network.html">Введение</a></li><li><a href="network.setup.html">Установка и настройка</a></li><li><a href="network.constants.html">Предопределенные константы</a></li><li><a href="ref.network.html">Network Функции</a></li></ul></li><li><a href="book.sam.html">Simple Asynchronous Messaging</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.sam.html">Введение</a></li><li><a href="sam.setup.html">Установка и настройка</a></li><li><a href="sam.constants.html">Предопределенные константы</a></li><li><a href="sam.examples.html">Примеры</a></li><li><a href="ref.sam.html">SAM Функции</a></li></ul></li><li><a href="book.snmp.html">SNMP</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.snmp.html">Введение</a></li><li><a href="snmp.setup.html">Установка и настройка</a></li><li><a href="snmp.constants.html">Предопределенные константы</a></li><li><a href="ref.snmp.html">SNMP Функции</a></li></ul></li><li><a href="book.sockets.html">Sockets</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.sockets.html">Введение</a></li><li><a href="sockets.setup.html">Установка и настройка</a></li><li><a href="sockets.constants.html">Предопределенные константы</a></li><li><a href="sockets.examples.html">Примеры</a></li><li><a href="sockets.errors.html">Socket Errors</a></li><li><a href="ref.sockets.html">Socket Функции</a></li></ul></li><li><a href="book.ssh2.html">Secure Shell2 Функции</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.ssh2.html">Введение</a></li><li><a href="ssh2.setup.html">Установка и настройка</a></li><li><a href="ssh2.constants.html">Предопределенные константы</a></li><li><a href="ref.ssh2.html">ssh2</a> — Secure Shell2 Функции</li></ul></li><li><a href="book.svn.html">Subversion</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.svn.html">Введение</a></li><li><a href="svn.setup.html">Установка и настройка</a></li><li><a href="svn.constants.html">Предопределенные константы</a></li><li><a href="ref.svn.html">SVN</a> — Subversion Функции</li></ul></li><li><a href="book.tcpwrap.html">TCP Wrappers</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.tcpwrap.html">Введение</a></li><li><a href="tcpwrap.setup.html">Установка и настройка</a></li><li><a href="tcpwrap.constants.html">Предопределенные константы</a></li><li><a href="ref.tcpwrap.html">TCP Wrappers Функции</a></li></ul></li><li><a href="book.yaz.html">YAZ</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.yaz.html">Введение</a></li><li><a href="yaz.setup.html">Установка и настройка</a></li><li><a href="yaz.constants.html">Предопределенные константы</a></li><li><a href="yaz.examples.html">Примеры</a></li><li><a href="ref.yaz.html">YAZ Функции</a></li></ul></li><li><a href="book.nis.html">YP/NIS</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="intro.nis.html">Введение</a></li><li><a href="nis.setup.html">Установка и настройка</a></li><li><a href="nis.constants.html">Предопределенные константы</a></li><li><a href="ref.nis.html">YP/NIS Функции</a></li></ul></li></ul><hr /><div style="text-align: center;">
238 <div class="prev" style="float: left;"><a href="function.urlencode.html">urlencode</a></div>
239 <div class="next" style="float: right;"><a href="book.curl.html">Функции CURL</a></div>
240 <div class="up"><a href="funcref.html">Справочник функций</a></div>
241 <div class="home"><a href="index.html">PHP Manual</a></div>
242 </div></body></html>
querystring.del.test.php (https://bitbucket.org/valmy/openx.git) PHP · 106 lines
1 <?php
3 /*
26 */
28 require_once MAX_PATH . '/lib/max/Delivery/querystring.php';
30 /**
73 $_REQUEST = array();
74 $this->sendMessage('test_MAX_querystring');
75 $_SERVER['QUERY_STRING'] = "zoneid={$zoneid}&campaignid={$campaignid}&bannerid={$bannerid}&loc=".urlencode($loc).'&referer='.urlencode($referer).'&maxdest=' . $dest;
76 MAX_querystringConvertParams();
77 $this->assertEqual($_GET['zoneid'], $zoneid);
88 $this->sendMessage('test_MAX_querystring');
89 $del = $GLOBALS['_MAX']['CONF']['delivery']['ctDelimiter'];
90 $_SERVER['QUERY_STRING'] = 'oaparams='.strlen($del)."{$del}zoneid={$zoneid}{$del}campaignid={$campaignid}{$del}bannerid={$bannerid}{$del}loc=".urlencode($loc)."{$del}referer=".urlencode($referer)."{$del}oadest={$dest}";
91 MAX_querystringConvertParams();
92 $this->assertEqual($_GET['zoneid'], $zoneid);
FilesystemAdapter.php (https://gitlab.com/pr0055/symfonypizza) PHP · 158 lines
SignUpActivity.java (https://gitlab.com/tjkaragosian/timkaragosiansampleproject) Java · 213 lines
23 import java.net.MalformedURLException;
24 import java.net.URL;
25 import java.net.URLEncoder;
27 public class SignUpActivity extends AppCompatActivity {
72 try {
74 encodedEmail = URLEncoder.encode(emailEditText.getText().toString().trim(), "UTF-8");
75 encodedPassword = URLEncoder.encode(passwordEditText.getText().toString(), "UTF-8");
79 }
81 url = new URL("https://example.tkbil.com/api/1/user_create.php?email=" +
82 encodedEmail + "&password=" + encodedPassword);
users.php (https://github.com/hewu/blogwp.git) PHP · 146 lines
1 <?php
3 $posts_per_page = $options["admin_rows"];
44 <div class="wrap">
45 <form id="gdsr-articles" method="post" action="">
46 <h2 class="gdptlogopage">GD Star Rating: <?php _e("Users", "gd-star-rating"); ?></h2>
47 <div class="tablenav">
48 <div class="alignleft">
49 </div>
50 <div class="tablenav-pages">
51 <?php echo $pager; ?>
52 </div>
53 </div>
57 <thead>
58 <tr>
59 <th scope="col"><?php _e("Name", "gd-star-rating"); ?></th>
60 <th scope="col"><?php _e("ID", "gd-star-rating"); ?></th>
Query.php (https://github.com/basdog22/Qool.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 24594 2012-01-05 21:27:01Z matthew $
22 */
25 * Zend_Gdata_App_Util
26 */
27 require_once 'Zend/Gdata/App/Util.php';
29 /**
88 continue;
89 }
90 $queryArray[] = urlencode($name) . '=' . urlencode($value);
91 }
92 if (count($queryArray) > 0) {
encoding.php (https://github.com/cgajardo/repositorium.git) PHP · 552 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: encoding.php 1723 2008-04-08 00:34:10Z lastcraft $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/socket.php');
13 /**#@-*/
38 */
39 function asRequest() {
40 return urlencode($this->_key) . '=' . urlencode($this->_value);
41 }
authTest.php (https://github.com/Sa-ryong/Stadioom-php.git) PHP · 176 lines
pubsearch.htm (https://gitlab.com/phamngsinh/baitaplon_sinhvien) HTML · 83 lines
1 <!--{eval $keywordenc = $keyword ? rawurlencode($keyword) : '';}-->
2 <!--{if $searchid || ($_GET['adv'] && CURMODULE == 'forum')}-->
3 <table id="scform" class="mbm" cellspacing="0" cellpadding="0">
4 <tr>
5 <td><h1><a href="search.php" title="$_G['setting']['bbname']"><img src="{IMGDIR}/logo_sc_s.png" alt="$_G['setting']['bbname']" /></a></h1></td>
6 <td>
7 <div id="scform_tb" class="cl">
10 <a href="javascript:;" id="quick_sch" class="showmenu" onmouseover="delayShow(this);">{lang quick}</a>
11 <!--{if CURMODULE == 'forum'}-->
12 <a href="search.php?mod=forum&adv=yes{if $keyword}&srchtxt=$keywordenc{/if}">{lang search_adv}</a>
13 <!--{/if}-->
14 </span>
15 <!--{/if}-->
16 <!--{if $_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)}--><!--{block slist[portal]}--><a href="search.php?mod=portal{if $keyword}&srchtxt=$keywordenc&searchsubmit=yes{/if}"{if CURMODULE == 'portal'} class="a"{/if}>{lang portal}</a><!--{/block}--><!--{/if}-->
17 <!--{if $_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)}--><!--{block slist[forum]}--><a href="search.php?mod=forum{if $keyword}&srchtxt=$keywordenc&searchsubmit=yes{/if}"{if CURMODULE == 'forum'} class="a"{/if}>{lang thread}</a><!--{/block}--><!--{/if}-->
PostTest.java (https://github.com/fumiz/NanoHTTPd.git) Java · 94 lines
6 import org.apache.http.NameValuePair;
7 import org.apache.http.client.ResponseHandler;
8 import org.apache.http.client.entity.UrlEncodedFormEntity;
9 import org.apache.http.client.methods.HttpPost;
10 import org.apache.http.message.BasicNameValuePair;
26 String response;
28 request = new HttpPost(getTestUrl("/post.php"));
30 List<NameValuePair> params = new ArrayList<NameValuePair>();
34 params.add(new BasicNameValuePair("multilinelf","\n\nマルチ\nバイト\n文字列\n改行込みテストLF\n\n"));
35 params.add(new BasicNameValuePair("multilinecr","\rマルチ\rバイト\r文字列\r改行込みテストCR\r\r"));
36 request.setEntity(new UrlEncodedFormEntity(params, "utf-8"));
38 response = execute(new TestRequestHandler() {
subscriber.php (https://github.com/nougad/Tiny-Tiny-RSS.git) PHP · 120 lines
1 <?php
3 // a PHP client library for pubsubhubbub
40 public function find_feed($url, $http_function = false) {
41 // using google feed API
42 $url = "http://ajax.googleapis.com/ajax/services/feed/lookup?key={$this->google_key}&v=1.0&q=".urlencode($url);
43 // fetch the content
44 if ($http_function)
71 // set the mode subscribe/unsubscribe
72 $post_string = "hub.mode=".$mode;
73 $post_string .= "&hub.callback=".urlencode($this->callback_url);
74 $post_string .= "&hub.verify=".$this->verify;
75 $post_string .= "&hub.verify_token=".$this->verify_token;
78 // append the topic url parameters
79 $post_string .= "&hub.topic=".urlencode($topic_url);
81 // make the http post request and return true/false
tests.py (https://github.com/ypodim/brin.gy.git) Python · 278 lines
class-ai1wm-import-database.php (https://gitlab.com/vanafroo/landingpage) PHP · 466 lines
1 <?php
2 /**
3 * Copyright (C) 2014-2016 ServMask Inc.
140 // Get domain
141 $old_domain = parse_url( $blog->Old->SiteURL, PHP_URL_HOST );
142 $new_domain = parse_url( $blog->New->SiteURL, PHP_URL_HOST );
144 // Get scheme
145 $new_scheme = parse_url( $blog->New->SiteURL, PHP_URL_SCHEME );
147 // Replace Site URL scheme
156 // Add encoded Site URL
157 if ( ! in_array( urlencode( set_url_scheme( $blog->Old->SiteURL, $old_scheme ) ), $old_values ) ) {
158 $old_values[] = urlencode( set_url_scheme( $blog->Old->SiteURL, $old_scheme ) );
class.jetpack-signature.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 188 lines
ajax.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 135 lines
sign_in.php (https://github.com/AskMP/A3M-for-CodeIgniter-2.0.git) PHP · 111 lines
14 <div class="container_12">
15 <div class="grid_12">
16 <h2><?php echo anchor(uri_string().($this->input->get('continue')?'/?continue='.urlencode($this->input->get('continue')):''), lang('sign_in_page_name')); ?></h2>
17 </div>
18 <div class="clear"></div>
19 <div class="grid_6">
20 <?php echo form_open(uri_string().($this->input->get('continue')?'/?continue='.urlencode($this->input->get('continue')):'')); ?>
21 <?php echo form_fieldset(); ?>
47 </div>
48 <div class="grid_4 omega">
49 <?php echo form_password(array(
50 'name' => 'sign_in_password',
51 'id' => 'sign_in_password',
99 <?php foreach($this->config->item('third_party_auth_providers') as $provider) : ?>
100 <li class="third_party <?php echo $provider; ?>"><?php echo anchor('account/connect_'.$provider, lang('connect_'.$provider),
101 array('title'=>sprintf(lang('sign_in_with'), lang('connect_'.$provider)))); ?></li>
102 <?php endforeach; ?>
Video.php (https://github.com/fracmak/mythweb.git) PHP · 188 lines
openplans_update_wp.py (https://github.com/socialplanning/opencore-wordpress-mu-scripts.git) Python · 208 lines
15 def create_blog(blog_base, domain, path, title, topp_secret_filename):
16 url = blog_base + '/openplans-create-blog.php'
17 data = {
18 'domain': domain,
23 sig = sig.encode('base64').strip()
24 data['signature'] = sig
25 data = urllib.urlencode(data)
26 print 'Opening url: %s' % url
27 f = urllib.urlopen(url, data)
34 def add_user(blog_base, username, email, topp_secret_filename):
35 url = blog_base + '/openplans-create-user.php'
36 data = {
37 'username': username,
simplyscala.clj
(git://github.com/hiredman/clojurebot.git)
Clojure · 25 lines
✨ Summary
This Clojure code defines a bot that responds to Scala-related messages on an IRC channel. When a message starting with “scala” is received, the bot extracts the code from the message, encodes it as a URL, and sends back the result of evaluating the code using a Scala interpreter at http://www.simplyscala.com/interp
.
This Clojure code defines a bot that responds to Scala-related messages on an IRC channel. When a message starting with “scala” is received, the bot extracts the code from the message, encodes it as a URL, and sends back the result of evaluating the code using a Scala interpreter at http://www.simplyscala.com/interp
.
2 (:use [hiredman.clojurebot.core :only (defresponder2 new-send-out extract-message)])
3 (:require [hiredman.utilities :as util])
4 (:import (java.net URLEncoder )))
9 (defn scala-eval [code]
10 (-> code URLEncoder/encode ((partial str scala-the-easy-way))
11 util/get-url (.split "res0: ") rest ((partial apply str))))
coldfusion.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 645 lines
380 <FUNCTION>QuotedValueList</FUNCTION>
381 <FUNCTION>StripCR</FUNCTION>
382 <FUNCTION>URLEncodedFormat</FUNCTION>
383 <FUNCTION>ValueList</FUNCTION>
384 <FUNCTION>WriteOutput</FUNCTION>
619 <KEYWORD2>QuotedValueList</KEYWORD2>
620 <KEYWORD2>StripCR</KEYWORD2>
621 <KEYWORD2>URLEncodedFormat</KEYWORD2>
622 <KEYWORD2>ValueList</KEYWORD2>
623 <KEYWORD2>WriteOutput</KEYWORD2>
FacebookImporter.java
(http://tum-sophomore-web-hackathon.googlecode.com/svn/trunk/)
Java · 147 lines
✨ Summary
This Java code is a Facebook importer class that retrieves and imports user data from Facebook, including friends and likes, using the Graph API. It handles connection errors and uses Gson to parse JSON responses. The imported data is then saved to a datastore using JDO.
This Java code is a Facebook importer class that retrieves and imports user data from Facebook, including friends and likes, using the Graph API. It handles connection errors and uses Gson to parse JSON responses. The imported data is then saved to a datastore using JDO.
7 import java.net.MalformedURLException;
8 import java.net.URL;
9 import java.net.URLEncoder;
11 import javax.jdo.PersistenceManager;
71 try {
72 req.append("?access_token="
73 + URLEncoder.encode(accessToken, "UTF-8"));
74 } catch (UnsupportedEncodingException e1) {
75 e1.printStackTrace();
88 try {
89 req.append("?access_token="
90 + URLEncoder.encode(accessToken, "UTF-8"));
91 } catch (UnsupportedEncodingException e1) {
92 e1.printStackTrace();
StatefulAgent.java
(http://jplurk.googlecode.com/svn/trunk/)
Java · 243 lines
✨ Summary
The Java code is a stateful HTTP client implementation for interacting with the Plurk social network. It creates an agent that can execute HTTP requests, including login, timeline retrieval, and file uploads. The agent maintains cookies and session information across requests, allowing for persistent behavior. It also logs debug information and handles exceptions.
The Java code is a stateful HTTP client implementation for interacting with the Plurk social network. It creates an agent that can execute HTTP requests, including login, timeline retrieval, and file uploads. The agent maintains cookies and session information across requests, allowing for persistent behavior. It also logs debug information and handles exceptions.
125 HttpMethodParams.USE_EXPECT_CONTINUE, true);
127 // filePost.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
128 filePost.setRequestHeader("Referer", "http://www.plurk.com/Shares/showPhoto?mini=0");
173 PostMethod method = createMethod(PostMethod.class, uri);
174 method.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
175 Iterator<Entry<String, String>> it = params.entrySet().iterator();
176 while (it.hasNext()) {
upload.php
(http://pradoportal.googlecode.com/svn/trunk/)
PHP · 178 lines
✨ Summary
This is a PHP file that generates an HTML page for uploading files to a web server using Flash. The code uses the SWFUpload library to handle the file uploads and displays a progress bar while the files are being uploaded. It also allows users to select a folder to upload the files to, if multiple folders exist on the server.
This is a PHP file that generates an HTML page for uploading files to a web server using Flash. The code uses the SWFUpload library to handle the file uploads and displays a progress bar while the files are being uploaded. It also allows users to select a folder to upload the files to, if multiple folders exist on the server.
98 if($passfeid == '' && $tinybrowser['integration']=='tinymce')
99 {
100 ?><link rel="stylesheet" type="text/css" media="all" href="<?php echo $tinybrowser['tinymcecss']; ?>" /><?php
101 }
102 else
144 <li id="browse_tab"><span><a href="tinybrowser.php?type=<?php echo $typenow.$passfolder.$passfeid ; ?>"><?php echo TB_BROWSE; ?></a></span></li>
145 <li id="upload_tab" class="current"><span><a href="upload.php?type=<?php echo $typenow.$passfolder.$passfeid ; ?>"><?php echo TB_UPLOAD; ?></a></span></li>
146 <?php
147 if($tinybrowser['allowedit'] || $tinybrowser['allowdelete'])
148 {
149 ?><li id="edit_tab"><span><a href="edit.php?type=<?php echo $typenow.$passfolder.$passfeid ; ?>"><?php echo TB_EDIT; ?></a></span></li>
150 <?php
152 if($tinybrowser['allowfolders'])
153 {
154 ?><li id="folders_tab"><span><a href="folders.php?type=<?php echo $typenow.$passfolder.$passfeid; ?>"><?php echo TB_FOLDERS; ?></a></span></li><?php
155 }
156 // Display folder select, if multiple exist