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


PHP redirect_url函数代码示例

本文整理汇总了PHP中redirect_url函数的典型用法代码示例。如果您正苦于以下问题:PHP redirect_url函数的具体用法?PHP redirect_url怎么用?PHP redirect_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: lineAction

 public function lineAction()
 {
     $reb = D('Rebate');
     $reb->del();
     $url = U('Rebate/Index/line');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:7,代码来源:DeleteController.class.php

示例2: marquetapage_add

function marquetapage_add($uri, $topic, $action)
{
    global $cookie, $NPDS_Prefix, $nuke_url;
    if ($action == 'ad_tapage' and $cookie[0]) {
        $drname = dirname($uri);
        if ($drname == '.') {
            $uri = $nuke_url . '/' . $uri;
        } elseif ($drname == '/') {
            $uri = $nuke_url . $uri;
        } else {
            if ($_SERVER['SERVER_PORT'] == "80") {
                $uri = "http://" . $_SERVER['SERVER_NAME'] . $uri;
            } else {
                $uri = "http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $uri;
            }
        }
        sql_query("INSERT INTO " . $NPDS_Prefix . "marquetapage (uid, uri, topic) VALUES ('{$cookie['0']}', '{$uri}', '{$topic}')");
        redirect_url($uri);
    }
    if ($action == "sp_tapage" and $cookie[0]) {
        $result = sql_query("SELECT uri FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}' AND uri='{$uri}'");
        if (sql_num_rows($result) > 0) {
            sql_query("DELETE FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}' AND uri='{$uri}'");
            redirect_url($uri);
        }
    }
    if ($action == 'sp_tespages' and $cookie[0]) {
        $result = sql_query("SELECT uri FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}'");
        if (sql_num_rows($result) > 0) {
            sql_query("DELETE FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}'");
            redirect_url($uri);
        }
    }
}
开发者ID:npds,项目名称:npds_dune,代码行数:34,代码来源:marquetapage.php

示例3: UpdateAction

 public function UpdateAction()
 {
     $intro = M('Introduction');
     $intro->create();
     $intro->save();
     $url = U('Introduction/Pay/index');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:8,代码来源:PayController.class.php

示例4: lineAction

 public function lineAction()
 {
     $rebate = D('Rebate');
     $key = 1;
     $rebate->update($key);
     $url = U('Rebate/Index/line');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:8,代码来源:UpdateController.class.php

示例5: lineAction

 public function lineAction()
 {
     $reb = D('Rebate');
     $key = 1;
     $res = $reb->datasave($key);
     $url = U('Rebate/Index/line');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:8,代码来源:SaveController.class.php

示例6: indexAction

 public function indexAction()
 {
     $id = I('get.id', '');
     if ($id == '') {
         return false;
     }
     $customer = new CustomerModel();
     $customerInfo = $customer->changeCustomerFreezenState($id);
     $url = $_SERVER['HTTP_REFERER'];
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:11,代码来源:FreezenController.class.php

示例7: updateAction

 public function updateAction()
 {
     $setPacketM = new SetRedpacketModel();
     $data = $setPacketM->create();
     $data['id'] = I('post.id');
     $data['old_state'] = I('post.old_state', 0);
     $data['new_state'] = I('post.new_state', 0);
     $data['old_min_value'] = huansuan(I('post.old_min_value'));
     $data['old_max_value'] = huansuan(I('post.old_max_value'));
     $data['new_min_value'] = huansuan(I('post.new_min_value'));
     $data['new_max_value'] = huansuan(I('post.new_max_value'));
     $data['old_max_num'] = I('post.old_max_num');
     $data['attention_give'] = I('post.attention_give', 0);
     $data['wishing'] = trim(I('post.wishing'));
     $data['share_url'] = trim(I('post.share_url'));
     $setPacketM->save($data);
     $urlIndex = U('Active/SendRedGift/index');
     redirect_url($urlIndex);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:19,代码来源:SendRedGiftController.class.php

示例8: UpdateAction

 public function UpdateAction()
 {
     $intro = M('Introduction');
     $conf = M('config');
     $intro->create();
     $intro->save();
     $map1[name] = 'SYSTEM_UPPER_LIMIT';
     $map2[name] = 'SYSTEM_LOWER_LIMIT';
     $map3[name] = 'SYSTEM_COUNT_LIMIT';
     $data1 = array();
     $data2 = array();
     $data3 = array();
     $data1[value] = I('post.up');
     $data2[value] = I('post.low');
     $data3[value] = I('post.count');
     $conf->where($map2)->save($data2);
     $conf->where($map1)->save($data1);
     $conf->where($map3)->save($data3);
     $url = U('Introduction/Customs/index');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:21,代码来源:CustomsController.class.php

示例9: signInAction

 public function signInAction()
 {
     $name = I('post.name', 0);
     $password = I('post.password', 0);
     $miPassword = ao_mi($name, $password);
     $dbPassword = $this->user->field('password')->where('userid=' . "'{$name}'")->find();
     if ($dbPassword[password] == null) {
         $error = "该用户不存在";
         $this->assign(error, $error);
         $this->loginAction();
     } else {
         if ($dbPassword[password] == $miPassword) {
             session('userId', $name, 1800);
             $url = U('Admin/Index/index');
             redirect_url($url);
             die;
         } else {
             $error = "密码错误";
             $this->assign(error, $error);
             $this->loginAction();
         }
     }
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:23,代码来源:LoginController.class.php

示例10: UpdateAction

 public function UpdateAction()
 {
     $intro = M('config');
     $map1[name] = "SYSTEM_FIRST_HEAVY";
     $map2[name] = "SYSTEM_FIRST_COST";
     $map3[name] = "SYSTEM_CONTINUE_HEAVY";
     $map4[name] = "SYSYEM_CONTINUE_COST";
     $map5[name] = "SYSTEM_PACKAGE_HEAVY";
     $map6[name] = "SYSTEM_FREIGHT_EXPLAIN";
     $data1[value] = I('post.firstWeight');
     $data2[value] = I('post.firstCost');
     $data3[value] = I('post.continueWeight');
     $data4[value] = I('post.continueCost');
     $data5[value] = I('post.packageHeavy');
     $data6[value] = I('post.freightExplain');
     $intro->where($map1)->save($data1);
     $intro->where($map2)->save($data2);
     $intro->where($map3)->save($data3);
     $intro->where($map4)->save($data4);
     $intro->where($map5)->save($data5);
     $intro->where($map6)->save($data6);
     $url = U('Introduction/Weight/index');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:24,代码来源:WeightController.class.php

示例11: translate

         <strong>' . translate("Nickname: ") . '</strong> ' . $m['uname'] . '<br />
         <strong>' . translate("User IP: ") . '</strong> ' . $m['poster_ip'] . '<br />
         <strong>' . translate("User DNS: ") . '</strong> ' . $m['poster_dns'] . '<br />
      </div>
      <p><a href="' . rawurldecode($url_ret) . '" class="btn btn-primary">' . translate("Go Back") . '</a></p>';
            include "footer.php";
            break;
        case 'aff':
            $sql = "UPDATE " . $NPDS_Prefix . "posts SET post_aff = '{$ordre}' WHERE post_id = '{$post}'";
            sql_query($sql);
            // ordre de mise à jour d'un champ externe ?
            if ($ordre) {
                if ($comments_req_add != '') {
                    sql_query("UPDATE " . $NPDS_Prefix . $comments_req_add);
                }
            } else {
                if ($comments_req_del != '') {
                    sql_query("UPDATE " . $NPDS_Prefix . $comments_req_del);
                }
            }
            redirect_url("{$url_ret}");
            break;
    }
} else {
    include "header.php";
    opentable();
    echo "<p align=\"center\">" . translate("You are not the moderator of this forum therefor you cannot perform this function.") . "<br /><br />";
    echo "<a href=\"javascript:history.go(-1)\" class=\"noir\">" . translate("Go Back") . "</a></p>";
    closetable();
    include "footer.php";
}
开发者ID:npds,项目名称:npds_dune,代码行数:31,代码来源:admin.php

示例12: changeStory

function changeStory($sid, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $members, $Mmembers, $Cdate, $Csid, $date_finval, $epur, $theme)
{
    global $NPDS_Prefix;
    global $aid, $ultramode;
    $subject = stripslashes(FixQuotes(str_replace('"', '&quot;', $subject)));
    $hometext = stripslashes(FixQuotes($hometext));
    $bodytext = stripslashes(FixQuotes($bodytext));
    $notes = stripslashes(FixQuotes($notes));
    if ($members == 1 and $Mmembers == "") {
        $ihome = "-127";
    }
    if ($members == 1 and ($Mmembers > 1 and $Mmembers <= 127)) {
        $ihome = $Mmembers;
    }
    if ($Cdate) {
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET catid='{$catid}', title='{$subject}', hometext='{$hometext}', bodytext='{$bodytext}', topic='{$topic}', notes='{$notes}', ihome='{$ihome}',time=now(), date_finval='{$date_finval}', auto_epur='{$epur}', archive='0' WHERE sid='{$sid}'");
    } else {
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET catid='{$catid}', title='{$subject}', hometext='{$hometext}', bodytext='{$bodytext}', topic='{$topic}', notes='{$notes}', ihome='{$ihome}', date_finval='{$date_finval}', auto_epur='{$epur}' WHERE sid='{$sid}'");
    }
    if ($Csid) {
        if ($ibid = theme_image("pick.gif")) {
            $imgtmp = $ibid;
        } else {
            $imgtmp = "images/pick.gif";
        }
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET hometext='<img src=\"" . $imgtmp . "\" border=\"0\" align=\"center\" alt=\"\" /> :: {$hometext}' WHERE sid='{$sid}'");
        list($Lsid) = sql_fetch_row(sql_query("SELECT sid FROM " . $NPDS_Prefix . "stories ORDER BY sid DESC"));
        $Lsid++;
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET sid='{$Lsid}' WHERE sid='{$sid}'");
        // commentaires
        if (file_exists("modules/comments/article.conf.php")) {
            include "modules/comments/article.conf.php";
            sql_query("UPDATE " . $NPDS_Prefix . "posts SET topic_id='{$Lsid}' WHERE forum_id='{$forum}' AND topic_id='{$topic}'");
        }
        $sid = $Lsid;
    }
    global $aid;
    Ecr_Log("security", "changeStory({$sid}, {$subject}, hometext..., bodytext..., {$topic}, notes..., {$catid}, {$ihome}, {$members}, {$Mmembers}, {$Cdate}, {$Csid}, {$date_finval},{$epur},{$theme}) by AID : {$aid}", "");
    if ($ultramode) {
        ultramode();
    }
    // Cluster Paradise
    if (file_exists("modules/cluster-paradise/cluster-activate.php")) {
        include "modules/cluster-paradise/cluster-activate.php";
    }
    if (file_exists("modules/cluster-paradise/cluster-M.php")) {
        include "modules/cluster-paradise/cluster-M.php";
    }
    // Cluster Paradise
    // Réseaux sociaux
    if (file_exists('modules/npds_twi/npds_to_twi.php')) {
        include 'modules/npds_twi/npds_to_twi.php';
    }
    if (file_exists('modules/npds_fbk/npds_to_fbk.php')) {
        include 'modules/npds_twi/npds_to_fbk.php';
    }
    // Réseaux sociaux
    redirect_url("admin.php?op=EditStory&sid={$sid}");
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:59,代码来源:stories.php

示例13: indexAction

 public function indexAction()
 {
     $url = U('noPay');
     redirect_url($url);
 }
开发者ID:yunzhiclub,项目名称:wemall,代码行数:5,代码来源:OrderManagerController.class.php

示例14: str_replace

    if (substr(@php_uname(), 0, 7) == "Windows") {
        $cur_nav = str_replace("\\", "/", $obj->Pwd());
        $cur_nav_back = dirname($base);
    } else {
        $cur_nav = $obj->Pwd();
        $cur_nav_back = str_replace("\\", "/", dirname($base));
    }
    $home = "/" . basename($basedir_fma);
    $cur_nav_href_back = "<a href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode(encrypt($cur_nav_back)) . "\">" . str_replace(dirname($basedir_fma), "", $cur_nav_back) . "</a>/" . basename($cur_nav);
    if ($home_fma != "") {
        $cur_nav_href_back = str_replace($home, $home_fma, $cur_nav_href_back);
    }
    $cur_nav_encrypt = rawurlencode(encrypt($cur_nav));
} else {
    // le répertoire ou sous répertoire est protégé (ex : chmod)
    redirect_url("modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode(encrypt(dirname($base))));
}
// gestion des types d'extension de fichiers
$att_icons = "";
$handle = opendir("{$racine_fma}/images/upload/file_types");
while (false !== ($file = readdir($handle))) {
    if ($file != "." && $file != "..") {
        $prefix = strtoLower(substr($file, 0, strpos($file, '.')));
        $att_icons[$prefix] = "<img src=\"images/upload/file_types/" . $file . "\" border=\"0\" alt=\"\" />";
    }
}
closedir($handle);
$att_icon_dir = "<img src=\"images/upload/file_types/dir.gif\" border=\"0\" alt=\"\" />";
// Répertoires
$subdirs = "";
$sizeofDir = 0;
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:31,代码来源:pic-manager.php

示例15: del_review

function del_review($id_del)
{
    global $admin, $NPDS_Prefix;
    settype($id_del, "integer");
    if ($admin) {
        sql_query("DELETE FROM " . $NPDS_Prefix . "reviews WHERE id='{$id_del}'");
        // commentaires
        if (file_exists("modules/comments/reviews.conf.php")) {
            include "modules/comments/reviews.conf.php";
            sql_query("DELETE FROM " . $NPDS_Prefix . "posts WHERE forum_id='{$forum}' AND topic_id='{$id_del}'");
        }
    }
    redirect_url("reviews.php");
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:14,代码来源:reviews.php


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