• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zen_array_to_string函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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 '&nbsp;&nbsp;<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 />';
     }
 }
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:20,代码来源:navigation_history.php


示例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 . '">';
    }
}
开发者ID:dalinhuang,项目名称:cameras,代码行数:20,代码来源:functions_general.php


示例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:
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:header_php.php


示例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;
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:19,代码来源:Mobile.php


示例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) {
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:tpl_header_test_info.php


示例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 . '">';
    }
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:19,代码来源:functions_general.php



注:本文中的zen_array_to_string函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zen_back_link函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_admin_demo函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap