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


PHP goto_url函数代码示例

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


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

示例1: step2

 function step2()
 {
     if (!$this->input->post('w')) {
         goto_url('/');
     }
     $not_mb_id = $this->input->post('not_mb_id');
     if ($not_mb_id) {
         $title = '회원아이디 찾기 결과';
     } else {
         if (!$not_mb_id || $this->session->flashdata('mb_idpwd')) {
             $title = '비밀번호 찾기 2단계';
         }
     }
     $mb = $this->Member_forget_model->check();
     if (isset($mb['mb_id'])) {
         if ($mb['mb_id'] == ADMIN) {
             alert('관리자 아이디는 접근 불가합니다.');
         }
     } else {
         alert('입력하신 내용으로는 회원정보가 존재하지 않습니다.', 'member/forget_idpwd');
     }
     $this->load->helper('textual');
     $mb['mb_password_q'] = get_text($mb['mb_password_q']);
     $head = array('title' => $title);
     $data = array('time' => time(), 'mb_id' => $mb['mb_id'], 'mb_password_q' => $mb['mb_password_q']);
     widget::run('head', $head);
     $this->load->view('member/forget_' . ($not_mb_id ? 'id' : 'pwd'), $data);
     widget::run('tail');
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:29,代码来源:forget_idpwd.php

示例2: memo_delete

 function memo_delete()
 {
     $me_no = $this->input->post('me_no');
     $flag = $this->input->post('flag');
     check_token('member/memo/lists/' . $flag);
     if (!IS_MEMBER) {
         alert_close("회원만 이용하실 수 있습니다.");
     }
     if (!($flag && $me_no)) {
         alert_close("잘못된 접근입니다.");
     }
     $member = unserialize(MEMBER);
     $this->load->model('Member_memo_model');
     if ($flag == 'R') {
         $result = $this->Member_memo_model->get_del_memo($me_no, $flag, $member['mb_id']);
         $cnt = 0;
         foreach ($result as $row) {
             if ($row['me_check'] == '0000-00-00 00:00:00') {
                 $cnt++;
             }
         }
         if ($cnt > 0) {
             $this->Member_memo_model->memo_count($member['mb_id'], $cnt);
         }
     }
     $this->Member_memo_model->memo_delete($me_no, $flag, $member['mb_id']);
     goto_url('member/memo/lists/' . $flag);
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:28,代码来源:member.php

示例3: out

 function out()
 {
     if (IS_MEMBER) {
         $this->session->sess_destroy();
         delete_cookie('ck_mb_id');
     }
     goto_url('/');
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:8,代码来源:login.php

示例4: index

 function index()
 {
     $seg =& $this->seg;
     $w = $seg->get('w');
     // 모드
     $wr_id = $seg->get('wr_id');
     // 게시물아이디
     $comment_id = $seg->get('comment_id');
     // 코멘트아이디
     $qstr = $seg->output();
     switch ($w) {
         case 'u':
             $action = 'board/' . BO_TABLE . '/write' . $qstr;
             break;
         case 'd':
             $qstr = $seg->replace('wr_id', '', $qstr);
             $action = '_trans/board_write/delete';
             break;
         case 'x':
             $action = '_trans/board_comment/delete';
             break;
         case 's':
             if (IS_ADMIN) {
                 // 관리자 통과
                 goto_url('board/' . BO_TABLE . '/view/wr_id/' . $wr_id);
             }
             $write = $this->Basic_model->get_write(BO_TABLE, $wr_id, 'mb_id');
             // 회원의 글이라면
             if ($write['mb_id']) {
                 $member =& $this->member;
                 if (IS_MEMBER && $member['mb_id'] == $write['mb_id']) {
                     // 자신의 글
                     goto_url('board/' . BO_TABLE . '/view/wr_id/' . $wr_id);
                 } else {
                     $msg = '글을 읽을 권한이 없습니다.';
                     if (!IS_MEMBER) {
                         $msg .= '\\n\\n답글의 경우 비회원은 본인글을 읽은 후 읽어 주시기 바랍니다.';
                     }
                     alert($msg);
                 }
             } else {
                 // 비회원
                 $action = '_trans/board_password/check';
             }
             break;
         default:
             alert('잘못된 접근입니다.');
             break;
     }
     $head = array('title' => '비밀번호 확인');
     $data = array('w' => $w, 'wr_id' => $wr_id, 'comment_id' => $comment_id, 'action' => $action, 'qstr' => $seg->replace('w,comment_id', '', $qstr));
     widget::run('head', $head);
     $this->load->view('board/password', $data);
     widget::run('tail');
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:55,代码来源:password.php

示例5: update

 function update()
 {
     if ($this->input->post('chk')) {
         $pu_ids = $this->input->post('chk');
         $pu_names = $this->input->post('pu_name');
         $pu_uses = $this->input->post('pu_use');
     } else {
         alert('잘못된 접근입니다.');
     }
     $this->Popup_model->list_update($pu_ids, $pu_names, $pu_uses);
     goto_url(URL);
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:12,代码来源:popup.php

示例6: update

 function update()
 {
     if ($this->input->post('chk')) {
         $gr_ids = $this->input->post('chk');
         $gr_subjects = $this->input->post('gr_subject');
         $gr_admins = $this->input->post('gr_admin');
     } else {
         alert("잘못된 접근입니다.");
     }
     foreach ($gr_ids as $gr_id) {
         $this->Boardgroup_model->list_update($gr_id, $gr_subjects[$gr_id], $gr_admins[$gr_id]);
     }
     goto_url(URL);
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:14,代码来源:boardgroup.php

示例7: delete

 function delete()
 {
     if ($this->input->post('chk')) {
         $po_ids = $this->input->post('chk');
         $mb_ids = array_unique($this->input->post('mb_ids'));
     } else {
         alert('잘못된 접근입니다.');
     }
     $this->Point_model->point_delete($po_ids);
     foreach ($mb_ids as $mb_id) {
         $this->Point_model->point_reset($mb_id);
     }
     goto_url(URL);
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:14,代码来源:point.php

示例8: alert

function alert($msg = '', $url = '')
{
    if (!$msg) {
        $msg = '올바른 방법으로 이용해 주십시오.';
    }
    echo "<script language='javascript'>alert('{$msg}');";
    echo "</script>";
    if ($url) {
        goto_url($url);
    } else {
        echo "<script language='javascript'>history.back();";
        echo "</script>";
    }
    exit;
}
开发者ID:Hsue66,项目名称:WEBfarm,代码行数:15,代码来源:lib.php

示例9: password

 function password()
 {
     $this->db->select('mb_id, mb_password');
     $result = $this->db->get_where('ki_member', array('mb_level >=' => 2))->result_array();
     $key = md5($this->config->item('encryption_key'));
     $data = array();
     foreach ($result as $row) {
         $password = $this->encrypt->_xor_decode(base64_decode($row['mb_password']), $key);
         if (strlen($password) != 32) {
             exit('구 버전 암호가 아닐 수 있습니다.');
         }
         $data[] = array('mb_id' => $row['mb_id'], 'mb_password' => $this->encrypt->encode($password));
     }
     $this->db->update_batch('ki_member', $data, 'mb_id');
     goto_url('/');
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:16,代码来源:make.php

示例10: check

 function check()
 {
     if ($this->input->post('w') == 's') {
         $bo_table = $this->input->post('bo_table');
         $wr = $this->Basic_model->get_write($bo_table, $this->input->post('wr_id'), 'wr_num, wr_password');
         $this->load->library('encrypt');
         if (md5($this->input->post('password')) != $this->encrypt->decode($wr['wr_password'])) {
             alert("비밀번호가 맞지 않습니다.");
         }
         // 세션에 아래 정보를 저장. 하위번호는 패스워드없이 보아야 하기 때문
         $ss_name = "ss_secret_" . $bo_table . "_" . $wr['wr_num'];
         $this->session->set_userdata($ss_name, TRUE);
     } else {
         alert("잘못된 접근입니다.");
     }
     goto_url('board/' . $bo_table . '/view' . $this->input->post('qstr'));
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:17,代码来源:board_password.php

示例11: alert

function alert($msg = '', $url = '')
{
    $CI =& get_instance();
    if (!$msg) {
        $msg = '올바른 방법으로 이용하세요.';
    }
    echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=" . $CI->config->item('charset') . "\">";
    echo "<script type='text/javascript'>alert('" . $msg . "');";
    if (!$url) {
        echo "history.go(-1);";
    }
    echo "</script>";
    if ($url) {
        goto_url($url);
    }
    exit;
}
开发者ID:ubiopen,项目名称:KI_Board,代码行数:17,代码来源:basic_helper.php

示例12: update

 function update()
 {
     if ($this->input->post('chk')) {
         $bo_tables = $this->input->post('chk');
         $bo_subjects = $this->input->post('bo_subject');
         $gr_ids = $this->input->post('gr_id');
         $bo_skins = $this->input->post('bo_skin');
         $bo_use_searchs = $this->input->post('bo_use_search');
         $bo_order_searchs = $this->input->post('bo_order_search');
     } else {
         alert('잘못된 접근입니다.');
     }
     foreach ($bo_tables as $bo_table) {
         $bo_use_search = isset($bo_use_searchs[$bo_table]) ? $bo_use_searchs[$bo_table] : '';
         $this->Board_model->list_update($bo_table, $bo_subjects[$bo_table], $gr_ids[$bo_table], $bo_skins[$bo_table], $bo_use_search, $bo_order_searchs[$bo_table]);
     }
     goto_url(URL);
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:18,代码来源:board.php

示例13: alert

function alert($msg = '', $url = '')
{
    if (!$msg) {
        $msg = '올바른 방법으로 이용해 주십시오.';
    }
    //header("Content-Type: text/html; charset=$g4[charset]");
    echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">";
    echo "<script language='javascript'>alert('{$msg}');";
    if (!$url) {
        echo "history.go(-1);";
    }
    echo "</script>";
    if ($url) {
        // 4.06.00 : 불여우의 경우 아래의 코드를 제대로 인식하지 못함
        //echo "<meta http-equiv='refresh' content='0;url=$url'>";
        goto_url($url);
    }
    exit;
}
开发者ID:jmp7786,项目名称:eclipse,代码行数:19,代码来源:inc.lib.php

示例14: update

 function update()
 {
     if ($this->input->post('chk')) {
         $mb_ids = $this->input->post('chk');
         $mb_levels = $this->input->post('mb_levels');
     } else {
         alert('잘못된 접근입니다.');
     }
     if (SU_ADMIN != ADMIN) {
         $key = array_search(ADMIN, $mb_ids);
         if ($key !== FALSE) {
             unset($mb_ids[$key]);
             $msg = '최고관리자는 수정할 수 없습니다.';
             echo "<script type='text/javascript'>alert('" . $msg . "');</script>";
         }
     }
     foreach ($mb_ids as $mb_id) {
         $this->Member_model->list_update($mb_id, $mb_levels[$mb_id]);
     }
     goto_url(URL);
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:21,代码来源:member.php

示例15: form

 function form($w = '', $ma_id = '')
 {
     $this->load->library('form_validation');
     $config = array(array('field' => 'ma_subject', 'label' => '제목', 'rules' => 'trim|required'), array('field' => 'ma_content', 'label' => '내용', 'rules' => 'trim|required'));
     $this->form_validation->set_rules($config);
     if ($this->form_validation->run() == FALSE) {
         if (!$w) {
             $title = "입력";
             $ma = FALSE;
         } else {
             if ($w == 'u') {
                 $title = "수정";
                 $ma = $this->Mail_model->get_mail($ma_id, 'ma_id,ma_subject,ma_content');
                 if (!isset($ma['ma_id'])) {
                     alert("등록된 자료가 없습니다.");
                 }
             } else {
                 alert("잘못된 접근입니다.");
             }
         }
         $head = array('title' => '회원메일 ' . $title);
         $data = array('w' => $w, 'ma_id' => $ma['ma_id'], 'subject' => $ma['ma_subject'], 'content' => $ma['ma_content'], 'token' => get_token());
         widget::run('head', $head);
         $this->load->view(ADM_F . '/mail_form', $data);
         widget::run('tail');
     } else {
         check_token();
         $w = $this->input->post('w');
         if (!$w) {
             $this->Mail_model->insert();
         } else {
             if ($w == 'u') {
                 $this->Mail_model->update();
             } else {
                 alert("잘못된 접근입니다.");
             }
         }
         goto_url(ADM_F . '/mail/lists');
     }
 }
开发者ID:ubiopen,项目名称:KI_Board,代码行数:40,代码来源:mail.php


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