本文整理汇总了PHP中zen_array_to_string函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_array_to_string函数的具体用法?PHP zen_array_to_string怎么用?PHP zen_array_to_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_array_to_string函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: debug
function debug()
{
for ($i = 0, $n = sizeof($this->path); $i < $n; $i++) {
echo $this->path[$i]['page'] . '?';
while (list($key, $value) = each($this->path[$i]['get'])) {
echo $key . '=' . $value . '&';
}
if (sizeof($this->path[$i]['post']) > 0) {
echo '<br />';
while (list($key, $value) = each($this->path[$i]['post'])) {
echo ' <strong>' . $key . '=' . $value . '</strong><br />';
}
}
echo '<br />';
}
if (sizeof($this->snapshot) > 0) {
echo '<br /><br />';
echo $this->snapshot['mode'] . ' ' . $this->snapshot['page'] . '?' . zen_array_to_string($this->snapshot['get'], array(zen_session_name())) . '<br />';
}
}
示例2: zen_back_link
function zen_back_link($link_only = false)
{
if (sizeof($_SESSION['navigation']->path) - 2 >= 0) {
$back = sizeof($_SESSION['navigation']->path) - 2;
$link = zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']);
} else {
if (isset($_SERVER['HTTP_REFERER']) && preg_match("~^" . HTTP_SERVER . "~i", $_SERVER['HTTP_REFERER'])) {
//if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], str_replace(array('http://', 'https://'), '', HTTP_SERVER) ) ) {
$link = $_SERVER['HTTP_REFERER'];
} else {
$link = zen_href_link(FILENAME_DEFAULT);
}
$_SESSION['navigation'] = new navigationHistory();
}
if ($link_only == true) {
return $link;
} else {
return '<a href="' . $link . '">';
}
}
示例3: now
$sql = "UPDATE " . TABLE_CUSTOMERS_INFO . "\r\n SET customers_info_date_of_last_logon = now(),\r\n customers_info_number_of_logons = customers_info_number_of_logons+1\r\n WHERE customers_info_id = :customersID";
$sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
$db->Execute($sql);
$zco_notifier->notify('NOTIFY_LOGIN_SUCCESS');
// restore cart contents
$_SESSION['cart']->restore_contents();
/*
if ($_SESSION['cart']->count_contents() > 0) {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING));
}
*/
if (sizeof($_SESSION['navigation']->snapshot) > 0) {
// $back = sizeof($_SESSION['navigation']->path)-2;
//if (isset($_SESSION['navigation']->path[$back]['page'])) {
// if (sizeof($_SESSION['navigation']->path)-2 > 0) {
$origin_href = zen_href_link($_SESSION['navigation']->snapshot['page'], zen_array_to_string($_SESSION['navigation']->snapshot['get'], array(zen_session_name())), $_SESSION['navigation']->snapshot['mode']);
// $origin_href = zen_back_link_only(true);
$_SESSION['navigation']->clear_snapshot();
zen_redirect($origin_href);
} else {
zen_redirect(zen_href_link(FILENAME_DEFAULT));
}
}
}
}
if ($error == true) {
$messageStack->add('login', TEXT_LOGIN_ERROR);
$zco_notifier->notify('NOTIFY_LOGIN_FAILURE');
}
$breadcrumb->add(NAVBAR_TITLE);
// This should be last line of the script:
示例4: initSession
/**
* セッションIDがパラメータとしてわたってきていない場合は
* セッション付きURLでリロード
*/
function initSession()
{
global $session_started;
if ($this->isMobile() && !isset($_POST[zen_session_name()]) && !isset($_GET[zen_session_name()])) {
require_once DIR_WS_CLASSES . 'navigation_history.php';
$navigation = new navigationHistory();
$navigation->add_current_page();
$navigation->set_snapshot();
$snapshot_parameter_array = $navigation->snapshot['get'];
$self_href = zen_href_link($navigation->snapshot['page'], zen_array_to_string($snapshot_parameter_array), $navigation->snapshot['mode']);
//$self_href .= "&" . zen_session_name() . '=' . zen_session_id();
zen_redirect($self_href);
}
return true;
}
示例5: exit
. "&width=\" + screen.width + \"&height=\" + screen.height;\n";
echo "</script>\n";
exit();
}
*/
echo '<br /><br />';
$offset = 0;
while ($offset < 12) {
$back = sizeof($_SESSION['navigation']->path) - $offset;
if (isset($_SESSION['navigation']->path[$back]['page'])) {
$test_link = zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']);
?>
<table>
<tr>
<td class="main"><?php
echo '<a href="' . zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']) . '">' . zen_image_button('button_back.gif', 'TEST BACK NONE') . '</a>-' . $offset . '<br />Go to: ' . $test_link;
?>
</td>
</tr>
</table>
<?php
}
$offset++;
}
}
echo "<br /><br /><strong>GET variables:</strong><br />";
foreach ($_GET as $key => $value) {
echo "{$key} => {$value}<br />";
}
echo "<br /><strong>POST variables:</strong><br />";
foreach ($_POST as $key => $value) {
示例6: zen_back_link_only
function zen_back_link_only($link_only = false)
{
if (sizeof($_SESSION['navigation']->path) - 2 > 0) {
$back = sizeof($_SESSION['navigation']->path) - 2;
$link = zen_href_link($_SESSION['navigation']->path[$back]['page'], zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']);
} else {
if (strstr(HTTP_SERVER, $_SERVER['HTTP_REFERER'])) {
$link = $_SERVER['HTTP_REFERER'];
} else {
$link = zen_href_link(FILENAME_DEFAULT);
}
$_SESSION['navigation'] = new navigationHistory();
}
if ($link_only == true) {
return $link;
} else {
return '<a href="' . $link . '">';
}
}