当前位置: 首页>>代码示例>>PHP>>正文


PHP Lib::getRedirect方法代码示例

本文整理汇总了PHP中Lib::getRedirect方法的典型用法代码示例。如果您正苦于以下问题:PHP Lib::getRedirect方法的具体用法?PHP Lib::getRedirect怎么用?PHP Lib::getRedirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Lib的用法示例。


在下文中一共展示了Lib::getRedirect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: explode

    $article_title = $getLib->setFilter($getArticleData['title']);
    $article_author = $getLib->setFilter($getArticleData['author']);
    $article_date = $getLib->setFilter($getArticleData['date']);
    $article_content = $getLib->setFilter($getArticleData['content']);
    $article_counts = $getLib->setFilter($getArticleData['counts']);
    $article_files = explode(",", $getArticleData['files']);
    $article_files_name = explode(",", $getArticleData['files_name']);
    if ($getArticleData['top'] == "1") {
        $article_top = " checked";
    } else {
        $article_top = "";
    }
} else {
    $return_page = "./index.php";
    echo $getLib->showAlertMsg("參數錯誤");
    echo $getLib->getRedirect($return_page);
}
// current page
$website_current_page = "閱讀文章";
// get title
$website_title = $getLib->setFilter($cpsub['title']) . "-" . $website_current_page . "-" . $article_title;
?>

<!DOCTYPE html>
<html lang="zh-tw">
  <head>
	<?php 
echo $getTmp->setHeader($website_title);
?>
  </head>
  <body>
开发者ID:bob2993714,项目名称:project,代码行数:31,代码来源:article.php

示例2: Settings

$getData = $_POST;
$getSettings = new Settings($config_setting_file_path);
$cpsub = $getSettings->getSettings();
$getLib = new Lib($cpsub['filter'], $cpsub['stripslashes']);
$getAuth = new Auth($config_account_data, $getLib);
$getTmp = new Template($config_current_version);
// current page
$website_current_page = "登入";
// get title
$website_title = $getLib->setFilter($cpsub['title']) . "-" . $website_current_page;
// set add function
$getResult = $getAuth->setLogin($getData);
if ($getResult['status'] == true || $_SESSION['login'] == "1") {
    $success_msg_array = $getResult['msg'];
    $rPage = "./manage.php";
    echo $getLib->getRedirect($rPage);
} else {
    $error_msg_array = $getResult['msg'];
    $getAuth->clearAuth();
}
?>
		

<!DOCTYPE html>
<html lang="zh-tw">
  <head>
	<?php 
echo $getTmp->setHeader($website_title);
?>
  </head>
  <body>
开发者ID:bob2993714,项目名称:project,代码行数:31,代码来源:login.php


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