本文整理汇总了PHP中makeQueryString函数的典型用法代码示例。如果您正苦于以下问题:PHP makeQueryString函数的具体用法?PHP makeQueryString怎么用?PHP makeQueryString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeQueryString函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: makeQueryString
?>
';
<!-- Chamilo hack for general my files users -->
if (!mode_editor) {
// Added by Ivan Tcholakov, 22-JUL-2009.
// For integration with the editor's dialig system.
var oEditor = null;
if (!window.opener && window.parent) {
// The file manager is inside a dialog.
oEditor = window.parent.InnerDialogLoaded();
}
//end hack
}
var globalSettings = {'upload_init': false};
var queryString = '<?php
echo makeQueryString(array('path'));
?>
';
var paths = {'root': '<?php
echo addTrailingSlash(backslashToSlash(CONFIG_SYS_ROOT_PATH));
?>
', 'root_title': '<?php
echo LBL_FOLDER_ROOT;
?>
'};
<!-- Chamilo hack for breadcrumb into shared folders -->
var shared_folder = '<?php
echo get_lang('UserFolders');
?>
';
示例2: editorClose
echo IMG_BTN_SAVE_AS;
?>
</button>
<button id="actionClose" class="button" onclick="return editorClose();"><?php
echo IMG_BTN_CLOSE;
?>
</button></p>
</form>
</fieldset>
<fieldset id="imageInfo">
<legend id="imageInfoLegend"><?php
echo IMG_INFO;
?>
</legend>
<form name="formImageInfo" action="<?php
echo appendQueryString(CONFIG_URL_IMAGE_SAVE, makeQueryString(array('path')));
?>
" method="post" id="formImageInfo">
<p><input type="hidden" name="mode" id="image_mode" value="" />
<input type="hidden" name="new_name" id="hidden_new_name" value="" />
<input type="hidden" name="save_to" id="hidden_save_to" value="" />
<input type="hidden" name="path" id="path" value="<?php
echo $_GET['path'];
?>
" />
<input type="hidden" name="flip_angle" id="flip_angle" value="" />
<label><?php
echo IMG_LBL_WIDTH;
?>
</label> <input type="text" name="width" id="width" value="" class="input imageInput" />
<label><?php
示例3: _echoPageNumber
function _echoPageNumber($number, $label, $prefix = "", $postfix = "")
{
global $g_options;
echo "{$prefix}<a href=\"index.php?" . makeQueryString($this->var_page, $number);
if ($this->sorthash) {
echo "#{$this->sorthash}";
}
echo "\">{$label}</a>{$postfix} ";
}
示例4: die
<?php
if (!defined('AJAX_INIT_DONE')) {
die('Permission denied');
}
?>
<div id="content">
<?php
$count = 1;
$imageBaseUrl = appendQueryString(CONFIG_URL_IMG_image, makeQueryString(array('path')));
foreach ($fileList as $file) {
?>
<dl class="imageListing" id="dl<?php
echo $count;
?>
">
<dt id="dt<?php
echo $count;
?>
"
class="<?php
echo $file['type'] == 'folder' && empty($file['file']) && empty($file['subdir']) ? 'folderEmpty' : $file['cssClass'];
?>
"
class="<?php
echo $file['cssClass'];
?>
">
<?php
switch ($file['cssClass']) {
case 'filePicture':
示例5: addTrailingSlash
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax File Manager</title>
<script type="text/javascript" src="jscripts/ajaxfilemanager_c.js"></script>
<!--<script type="text/javascript" src="jscripts/jquery.js"></script>
<script type="text/javascript" src="jscripts/form.js"></script>
<script type="text/javascript" src="jscripts/select.js"></script>
<script type="text/javascript" src="jscripts/thickbox.js"></script>
<script type="text/javascript" src="jscripts/calendar.js"></script>
<script type="text/javascript" src="jscripts/contextmenu.js"></script>
<script type="text/javascript" src="jscripts/media.js"></script>
<script type="text/javascript" src="jscripts/ajaxfileupload.js"></script>
<script type="text/javascript" src="jscripts/ajaxfilemanager.js"></script>-->
<script type="text/javascript">
var globalSettings = {'upload_init':false};
var queryString = '<?php
echo Tools::safeOutput(makeQueryString(array('path')));
?>
';
var paths = {'root':'<?php
echo addTrailingSlash(backslashToSlash(CONFIG_SYS_ROOT_PATH));
?>
', 'root_title':'<?php
echo LBL_FOLDER_ROOT;
?>
'};
var parentFolder = {};
var urls = {
'upload':'<?php
echo CONFIG_URL_UPLOAD;
?>
',
示例6: getFileContent
?>
/css/jqModal.css" type="text/css" rel="stylesheet"/>
<title>Ajax Text Editor</title>
</head>
<body>
<div id="pageBody">
<textarea name="content" id="content" style="height:500px; width: 97%;"><?php
echo getFileContent($path);
?>
</textarea>
</div>
<div id="windowProcessing" class="jqmWindow" style="display:none">
<form name="frmProcessing" id="frmProcessing" method="post"
action="<?php
echo appendQueryString(CONFIG_URL_SAVE_TEXT, makeQueryString(array('path')));
?>
">
<input type="hidden" name="folder" id="folder" value="<?php
echo dirname($path);
?>
"/>
<input type="hidden" name="name" id="name" value="<?php
echo basename($path);
?>
"/>
<input type="hidden" name="save_as_request" id="save_as_request" value="0"/>
<div style="display:none"><textarea name="text" id="text"></textarea></div>
</form>
<a href="#" class="jqmClose" id="windowSaveClose"><?php
示例7: dirname
* @link www.phpletter.com
* @since 22/April/2007
*
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
//Code added to adjust for local admin rights.
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] === false) {
if (isset($_POST['username'])) {
if ($auth->login()) {
header('Location: ' . appendQueryString(CONFIG_URL_HOME, makeQueryString()));
exit;
}
}
} else {
$_SESSION['ajax_user'] = true;
header('Location: ' . appendQueryString(CONFIG_URL_HOME, makeQueryString()));
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="theme/<?php
echo CONFIG_THEME_NAME;
?>
/css/login.css" rel="stylesheet" />
<title><?php
echo LOGIN_PAGE_TITLE;
?>
示例8: getSortArrow
function getSortArrow($sort, $sortorder, $name, $longname, $var_sort = "sort", $var_sortorder = "sortorder", $sorthash = "")
{
global $g_options;
if ($sortorder == "asc") {
$sortimg = "sort-ascending.gif";
$othersortorder = "desc";
} else {
$sortimg = "sort-descending.gif";
$othersortorder = "asc";
}
$arrowstring = $g_options["font_small"] . "<a href=\"index.php?" . makeQueryString($var_sort, $name, array($var_sortorder));
if ($sort == $name) {
$arrowstring .= "&{$var_sortorder}={$othersortorder}";
} else {
$arrowstring .= "&{$var_sortorder}={$sortorder}";
}
if ($sorthash) {
$arrowstring .= "#{$sorthash}";
}
$arrowstring .= "\" style=\"color: " . $g_options["table_head_text"] . "\" title=\"" . l('Change sorting order') . "\">" . "<font color=\"" . $g_options["table_head_text"] . "\">" . $longname . "</font></a>";
if ($sort == $name) {
$arrowstring .= " <img src=\"" . $g_options["imgdir"] . "/{$sortimg}\"" . "width='7' height='7' hspace='4' border='0' align=\"middle\" alt=\"{$sortimg}\">";
}
$arrowstring .= $g_options["fontend_small"];
return $arrowstring;
}
示例9: dirname
<?php
/**
* reset the image
* @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
* @link www.phpletter.com
* @since 22/May/2007
*
*/
require_once '../../config/config.inc.php';
require_once '../init.php';
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
if (!isset($_POST['path'])) {
$_POST['path'] = "uploaded/Winter.jpg" . "?" . makeQueryString(array('path'));
//for crop
$_POST['mode'] = "crop";
$_POST['x'] = 100;
$_POST['y'] = 100;
$imageInfo = @GetImageSize($_POST['path']);
$_POST['width'] = $imageInfo[0];
$_POST['height'] = $imageInfo[1];
}
initSessionHistory($_POST['path']);
echo "{";
$error = "";
$info = "";
if (empty($_POST['path'])) {
$error = IMG_SAVE_EMPTY_PATH;
} elseif (!file_exists($_POST['path'])) {
$error = IMG_SAVE_NOT_EXISTS;
} elseif (!isUnderRoot($_POST['path'])) {
示例10: getFileContent
</script>
<link href="theme/<?php echo CONFIG_THEME_NAME; ?>/css/editor.css" type="text/css" rel="stylesheet" />
<link href="theme/<?php echo CONFIG_THEME_NAME; ?>/css/jqModal.css" type="text/css" rel="stylesheet" />
<title>Ajax Text Editor</title>
</head>
<body>
<div id="pageBody">
<textarea name="content" id="content" style="height:500px; width: 97%;"><?php echo getFileContent($path); ?></textarea>
</div>
<div id="windowProcessing" class="jqmWindow" style="display:none">
<form name="frmProcessing" id="frmProcessing" method="POST" action="<?php echo appendQueryString(CONFIG_URL_SAVE_TEXT, makeQueryString(array('path')));?>">
<input type="hidden" name="folder" id="folder" value="<?php echo dirname($path); ?>" />
<input type="hidden" name="name" id="name" value="<?php echo basename($path); ?>" />
<input type="hidden" name="save_as_request" id="save_as_request" value="0" />
<div style="display:none"><textarea name="text" id="text"></textarea></div>
</form>
<a href="#" class="jqmClose" id="windowSaveClose"><?php echo IMG_BTN_CANCEL; ?></a>
<p><img src="theme/<?php echo CONFIG_THEME_NAME; ?>/images/loading.gif" /></p>
</div>
<div id="windowSaveAs" class="jqmWindow" style="display:none">
<a href="#" class="jqmClose" id="windowSaveClose"><?php echo IMG_BTN_CANCEL; ?></a>
<form id="formSaveAs" name="formSaveAs" action="" method="post">
<table class="tableForm" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2"><?php echo IMG_LBL_SAVE_AS; ?></th>
示例11: ApplyRedirects
//.........这里部分代码省略.........
$exceptflag = true;
foreach ($rule->except->attributes() as $exceptkey => $exceptstr) {
$checkstr = array_get($req, $exceptkey);
if ($checkstr !== NULL) {
$m = NULL;
if (substr($exceptstr, 0, 1) == "!") {
$exceptflag &= !preg_match("#" . substr($exceptstr, 1) . "#", $checkstr, $m);
} else {
$exceptflag &= preg_match("#" . $exceptstr . "#", $checkstr, $m);
}
}
}
if ($exceptflag) {
$isexcept = true;
}
}
if ($ismatch && !$isexcept) {
// Apply nested rules first...
if ($rule->rule) {
$req = $this->ApplyRedirects($req, $rule->rule);
}
// Then process "set" command
if ($rule->set) {
Logger::Info("Applying redirect:\n " . $rule->asXML());
if (!empty($req["args"]["testredir"])) {
print "<pre>" . htmlspecialchars($rule->asXML()) . "</pre><hr />";
}
foreach ($rule->set->attributes() as $rewritekey => $rewritestr) {
if (count($matchvars) > 1 && strpos($rewritestr, "%") !== false) {
$find = array(NULL);
for ($i = 1; $i < count($matchvars); $i++) {
$find[] = "%{$i}";
}
$rewritestr = str_replace($find, $matchvars, $rewritestr);
}
array_set($req, (string) $rewritekey, (string) $rewritestr);
}
if ($rule["type"] == "redirect") {
$doRedirect = 301;
} else {
if ($rule["type"] == "bounce") {
$doRedirect = 302;
}
}
}
// And finally process "unset"
if ($rule->unset) {
$unset = false;
foreach ($rule->unset->attributes() as $unsetkey => $unsetval) {
if ($unsetkey == "_ALL_" && $unsetval == "ALL") {
$req["args"] = array();
} else {
if (!empty($unsetval)) {
$reqval = array_get($req, $unsetkey);
if ($reqval !== NULL) {
array_unset($req, $unsetkey);
$unset = true;
}
}
}
}
if ($unset) {
if ($rule["type"] == "redirect") {
$doRedirect = 301;
} else {
if ($rule["type"] == "bounce") {
$doRedirect = 302;
}
}
}
}
if ($doRedirect !== false) {
break;
}
}
}
}
if ($doRedirect !== false) {
$origscheme = "http" . ($req["ssl"] ? "s" : "");
if ($req["host"] != $_SERVER["HTTP_HOST"] || $req["scheme"] != $origscheme) {
$newurl = sprintf("%s://%s%s", $req["scheme"], $req["host"], $req["path"]);
} else {
$newurl = $req["path"];
}
if (empty($req["args"]["testredir"])) {
if (empty($req["friendly"])) {
$querystr = makeQueryString($req["args"]);
$newurl = http_build_url($newurl, array("query" => $querystr));
} else {
$newurl = makeFriendlyURL($newurl, $req["args"]);
}
if ($newurl != $req["url"]) {
http_redirect($newurl, NULL, true, $doRedirect);
}
} else {
print_pre($req);
}
}
return $req;
}
示例12: getSortArrow
/**
* getSortArrow()
*
* @param mixed $sort
* @param mixed $sortorder
* @param mixed $name
* @param mixed $longname
* @param string $var_sort
* @param string $var_sortorder
* @param string $sorthash
* @return string Returns the code for a sort arrow <IMG> tag.
*/
function getSortArrow($sort, $sortorder, $name, $longname, $var_sort = 'sort', $var_sortorder = 'sortorder', $sorthash = '', $ajax = false)
{
global $g_options;
if ($sortorder == 'asc') {
$sortimg = 'sort-ascending.gif';
$othersortorder = 'desc';
} else {
$sortimg = 'sort-descending.gif';
$othersortorder = 'asc';
}
$arrowstring = '<a href="' . $g_options['scripturl'] . '?' . makeQueryString($var_sort, $name, array($var_sortorder));
if ($sort == $name) {
$arrowstring .= "&{$var_sortorder}={$othersortorder}";
$jsarrow = "'" . $var_sortorder . "': '" . $othersortorder . "'";
} else {
$arrowstring .= "&{$var_sortorder}={$sortorder}";
$jsarrow = "'" . $var_sortorder . "': '" . $sortorder . "'";
}
if ($sorthash) {
$arrowstring .= "#{$sorthash}";
}
$arrowstring .= '" class="head"';
if ($ajax) {
$arrowstring .= " onclick=\"Tabs.refreshTab({'{$var_sort}': '{$name}', {$jsarrow}}); return false;\"";
}
$arrowstring .= ' title="Change sorting order">' . "{$longname}</a>";
if ($sort == $name) {
$arrowstring .= ' <img src="' . IMAGE_PATH . "/{$sortimg}\"" . " style=\"padding-left:4px;padding-right:4px;\" alt=\"{$sortimg}\" />";
}
return $arrowstring;
}
示例13: makeQueryString
echo $site['game'];
?>
</td>
<td><a href="<?php
echo $site['siteURL'];
?>
" target="_blank">Visit the site</a> <span class="icon small blue" data-icon="_"></span></td>
</tr>
<?php
}
}
?>
<tr>
<td colspan="3" style="text-align: right;">
<?php
if ($sData['pages'] > 1) {
echo '<ul class="button-bar">';
for ($i = 1; $i <= $sData['pages']; $i++) {
if ($page == $i) {
echo "<li><a>[", $i, "]</a></li>";
} else {
echo "<li><a href='index.php?", makeQueryString(array('page' => $i)), "'>", $i, "</a></li>";
}
}
echo '</ul>';
}
?>
</td>
</tr>
</table>
示例14: dirname
<?php
/**
* access control login form
* @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
* @link www.phpletter.com
* @since 22/April/2007
*
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
if (!osc_is_admin_user_logged_in()) {
exit('Direct access is not allowed.');
}
if (isset($_POST['username'])) {
if ($auth->login()) {
osc_redirect_to(appendQueryString(CONFIG_URL_HOME, makeQueryString()));
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="theme/<?php
echo CONFIG_THEME_NAME;
?>
/css/login.css" rel="stylesheet" />
<title><?php
echo LOGIN_PAGE_TITLE;
?>
</title>
示例15: _echoPageNumber
function _echoPageNumber($number, $label, $prefix = '', $postfix = '')
{
global $g_options;
echo "{$prefix}<a href=\"" . $g_options['scripturl'] . '?' . makeQueryString($this->var_page, $number);
if ($this->sorthash) {
echo "#{$this->sorthash}";
}
if ($this->ajax) {
echo "\" onclick=\"Tabs.refreshTab({'" . $this->var_page . "': " . $number . "}); return false;";
}
echo "\">{$label}</a>{$postfix} ";
}