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


PHP Url::build_all方法代码示例

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


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

示例1: draw

 function draw()
 {
     //xoa 1 id
     if (Url::get("act") == "del" && Url::get('id')) {
         DB::query('DELETE FROM ban_ip WHERE id=' . Url::get('id'));
         Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'act', 'id')));
     }
     global $display;
     //list
     $this->beginForm();
     $items = array();
     $sql = "SELECT * FROM ban_ip Order by id desc";
     $result = DB::query($sql);
     while ($row = mysql_fetch_assoc($result)) {
         $row['create_time'] = date('d/m - h:i', $row['create_time']);
         $items[$row['id']] = $row;
         $arr_mem_cache[$row['ip']] = $row;
     }
     // cho mang vao memcache
     AZMemcache::do_put('list_ban_ip', $arr_mem_cache);
     $display->add('items', $items);
     $display->add('items_json', json_encode($items));
     $display->output('ManageBanIp');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:25,代码来源:ManageBanIp.php

示例2: ManageSupport

 function ManageSupport($row)
 {
     Module::Module($row);
     if (User::is_admin() || User::have_permit(support_all_perm)) {
         CGlobal::$website_title = 'Quản lý thư góp ý của khách hàng';
         switch (Url::get('cmd')) {
             case 'delete':
                 DB::query('DELETE FROM support WHERE id=' . EClassApi::getParam('id'));
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id')));
                 break;
             case "edit":
                 /*case "add":
                 		require_once 'forms/edit.php';		
                 		$this->add_form(new EditBadWordForm());
                 		break;*/
             /*case "add":
             		require_once 'forms/edit.php';		
             		$this->add_form(new EditBadWordForm());
             		break;*/
             default:
                 require_once 'forms/list.php';
                 $this->add_form(new ManageSupportForm());
                 break;
         }
     } else {
         Url::access_denied();
     }
 }
开发者ID:hqd276,项目名称:bigs,代码行数:28,代码来源:class.php

示例3: ManageUserLock

 function ManageUserLock($row)
 {
     CGlobal::$website_title = 'Quản lý thành viên bị khóa';
     Module::Module($row);
     if (User::have_permit(ADMIN_USER)) {
         switch (Url::get('cmd')) {
             case 'unban_nick':
                 $id = (int) Url::get('id', 0);
                 $user_id = (int) Url::get('user_id', 0);
                 if ($id) {
                     DB::update('user', array('block_time' => 0), 'id="' . $user_id . '"');
                     DB::update('user_lock', array('unlock_time' => TIME_NOW, 'unlock_user' => User::user_name()), 'id = ' . $id);
                     User::getUser($id, 0, 1);
                 }
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac')));
                 break;
             default:
                 require_once 'forms/ManageUserLock.php';
                 $this->add_form(new ListUserLockForm());
                 break;
         }
     } else {
         Url::access_denied();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:25,代码来源:class.php

示例4: draw

 function draw()
 {
     $this->beginForm();
     global $display;
     $item_per_page = 20;
     $sql_count = 'SELECT COUNT(*) AS total_item FROM support';
     $total = DB::fetch($sql_count, 'total_item', 0);
     $items = array();
     if ($total) {
         $limit = '';
         require_once ROOT_PATH . 'core/ECPagging.php';
         $paging = ECPagging::pagingSE($limit, $total, $item_per_page, 10, 'page_no', true, 'Tin', 'Trang');
         $sql = 'SELECT * FROM support ORDER BY id DESC ' . $limit;
         $result = DB::query($sql);
         if ($result) {
             while ($row = mysql_fetch_assoc($result)) {
                 $row['del_link'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'contents'), 'cmd=delete&id=' . $row['id']);
                 if ($row['created']) {
                     $row['created'] = date("d/m/Y", $row['created']);
                 }
                 $items[$row['id']] = $row;
             }
         }
     } else {
         $paging = '';
     }
     $display->add('items', $items);
     $display->add('contents', Url::get('contents'));
     $display->add('paging', $paging);
     $display->output('list');
     $this->endForm();
 }
开发者ID:hqd276,项目名称:bigs,代码行数:32,代码来源:list.php

示例5: draw

 function draw()
 {
     $this->beginForm();
     global $display;
     $user_id = intval(Url::get('user_id'));
     $user_info = DB::select('account', 'id="' . $user_id . '"');
     $display->add('created_time_from', Url::get('created_time_from'));
     $display->add('created_time_to', Url::get('created_time_to'));
     //search theo ngay thang nam
     $created_time_from = 0;
     $created_time_to = 0;
     if (Url::get('created_time_from')) {
         $date_arr = explode('-', Url::get('created_time_from'));
         if (isset($date_arr[0]) && isset($date_arr[1]) && isset($date_arr[2])) {
             $created_time_from = mktime(0, 0, 0, (int) $date_arr[1], (int) $date_arr[0], (int) $date_arr[2]);
         }
     }
     if (Url::get('created_time_to')) {
         $date_arr = explode('-', Url::get('created_time_to'));
         if (isset($date_arr[0]) && isset($date_arr[1]) && isset($date_arr[2])) {
             $created_time_to = mktime(23, 59, 59, (int) $date_arr[1], (int) $date_arr[0], (int) $date_arr[2]);
         }
     }
     $search_value = ' 1 ';
     if ($created_time_from) {
         $search_value .= ' AND created_time >= ' . $created_time_from;
     }
     if ($created_time_to) {
         $search_value .= ' AND created_time <= ' . $created_time_to;
     }
     $item_per_page = 50;
     $sql_count = 'SELECT COUNT(id) AS total_item FROM item WHERE user_id = "' . $user_id . '" AND ' . $search_value;
     $total = DB::fetch($sql_count, 'total_item', 0);
     $items = array();
     if ($total) {
         $limit = '';
         require_once ROOT_PATH . 'core/ECPagging.php';
         $paging = ECPagging::pagingSE($limit, $total, $item_per_page, 10, 'page_no', true, 'Giao dịch', 'Trang');
         $sql = 'SELECT id,name,created_time,up_time,up_count,user_id,user_name,status FROM item WHERE user_id = "' . $user_id . '" AND ' . $search_value . ' ORDER BY up_time  DESC ' . $limit;
         $result = DB::query($sql);
         if ($result) {
             while ($row = mysql_fetch_assoc($result)) {
                 $row['ebname'] = EClassApi::safe_title($row['name']);
                 $row['up_time'] = date('d/m/y H:i', $row['up_time']);
                 $row['created_time'] = date('d/m/y H:i', $row['created_time']);
                 $row['del_link'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac'), 'cmd=delete&id=' . $row['id'] . '&user_id=' . $row['user_id']);
                 $items[$row['id']] = $row;
             }
         }
     } else {
         $paging = '';
     }
     $display->add('user_info', $user_info);
     $display->add('total_item', $total);
     $display->add('items', $items);
     $display->add('paging', $paging);
     $display->output('item_list');
     $this->endForm();
 }
开发者ID:hqd276,项目名称:bigs,代码行数:59,代码来源:item_list.php

示例6: on_submit

 function on_submit()
 {
     $ids = isset($_POST['chk_id']) ? $_POST['chk_id'] : array();
     if (count($ids) > 0) {
         $all_id = '';
         for ($i = 0; $i < count($ids); $i++) {
             $all_id .= $ids[$i] . ',';
         }
         $all_id = substr($all_id, 0, -1);
         AdminNotice::delNoticeUser($all_id);
         Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id')));
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:13,代码来源:AdminNoticeUser.php

示例7: draw

 function draw()
 {
     global $display;
     $survey_config = @CGlobal::$configs['survey_config']['conf_val'];
     if ($survey_config != '') {
         $survey_config = unserialize(stripslashes($survey_config));
     } else {
         $survey_config = array();
     }
     $id_survey = @(int) $survey_config[Module::$block_id];
     $admin = '';
     if (User::is_admin()) {
         $admin = '<a href="' . Url::build('admin_survey', array('href' => urlencode(Url::build_all()), 'block_id' => Module::$block_id)) . '"><img src="style/images/nav_right_arrow.gif"  border="0" title="Chọn thăm dò ý kiến" /></a>';
         $display->add('is_admin', 1);
     }
     $public_survey = DB::select("public_survey", "id={$id_survey}");
     if ($public_survey) {
         if ($public_survey['view'] == 1) {
             $display->add('show_survey', 1);
             $display->add('title', stripslashes($public_survey['title']));
             $display->add('question', stripslashes($public_survey['question']));
             $display->add('id', $public_survey['id']);
             $opts = array();
             $re = DB::query('SELECT * FROM public_survey_opinion WHERE `id_survey`=' . $public_survey['id']);
             $i = 0;
             if ($re) {
                 while ($opt = mysql_fetch_assoc($re)) {
                     $i++;
                     if ($public_survey['type'] == 1) {
                         $opt['control'] = '<input name="survey_id[]" type="radio" value="' . $opt['id'] . '" id="survey_id_' . $opt['id'] . '">';
                     } else {
                         $opt['control'] = '<input name="survey_id[]" type="checkbox" value="' . $opt['id'] . '" id="survey_id_' . $opt['id'] . '">';
                     }
                     $opts[$opt['id']] = $opt;
                 }
             }
             $display->add('opts', $opts);
             $url_detail = Url::build('view_survey', array('id' => $public_survey['id']));
             $display->add('onclick_rate', Url::open_popup($url_detail . "&ids='+survey_list('survey_id[]')+'", 600, 100 + 50 * $i, false, false, false, false, false, 1, false, false, false));
             $display->add('onclick_view', Url::open_popup($url_detail, 600, 100 + 50 * $i, false, false, false, false, false, 1, false, false, false));
         }
         $display->add('edit', AZLib::button(Url::build('admin_survey', array('cmd' => 'edit', 'id_survey' => $public_survey['id'])), 'style/images/edit.gif', "Sửa Thăm dò ý kiến"));
         $display->add('delete', AZLib::buttonDel(Url::build_current(array('cmd' => 'remove_survey', 'id_survey' => $public_survey['id'], 'block_id' => Module::$block_id)), 'style/images/delete.gif', "Bỏ chọn dò ý kiến"));
     }
     $display->add('admin', $admin);
     $display->output('PublicSurvey');
 }
开发者ID:duynhan07,项目名称:elink,代码行数:47,代码来源:class.php

示例8: draw

 function draw()
 {
     $this->beginForm();
     global $display;
     $str_badword = stripslashes(Url::get("bad_word"));
     $show_bw = array();
     if (Url::get("submit") == "Kiểm tra" && $str_badword) {
         $show_bw = array();
         $show_bw = AZLib::checkBadWord($str_badword, true, false, true);
         $display->add('show_bw', $show_bw);
     }
     $display->add('bad_word', $str_badword);
     $search_value = ' contents <>"" ';
     if (Url::get('contents')) {
         $search_value .= ' AND contents like "%' . Url::get('contents') . '%"  OR reason like "%' . Url::get('contents') . '%" ';
     }
     $item_per_page = 100;
     $sql_count = 'SELECT COUNT(*) AS total_item FROM bad_words WHERE ' . $search_value;
     $total = DB::fetch($sql_count, 'total_item', 0);
     $items = array();
     if ($total) {
         $limit = '';
         $paging = AZPagging::pagingSE($limit, $total, $item_per_page, 10, 'page_no', true, 'Tin', 'Trang');
         $sql = 'SELECT * FROM bad_words WHERE ' . $search_value . ' ORDER BY exact DESC, id DESC ' . $limit;
         $result = DB::query($sql);
         if ($result) {
             while ($row = mysql_fetch_assoc($result)) {
                 $row['del_link'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'contents'), 'cmd=delete&id=' . $row['id']);
                 if ($row['is_phone'] == 1) {
                     $row['contents'] = BadWord::filter_badword_show($row['contents']);
                 }
                 $items[$row['id']] = $row;
             }
         }
     } else {
         $paging = '';
     }
     $display->add('items', $items);
     $display->add('url_add', WEB_DIR . AZRewrite::formatUrl('?page=manage_badword&cmd=add'));
     $display->add('contents', Url::get('contents'));
     $display->add('paging', $paging);
     $display->output('list');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:44,代码来源:list.php

示例9: ManageBadContent

 function ManageBadContent($row)
 {
     echo 'a';
     Module::Module($row);
     if (User::is_admin()) {
         CGlobal::$website_title = 'Quản lý thông báo nội dung xấu';
         switch (Url::get('cmd')) {
             case 'delete':
                 DB::query('DELETE FROM bad_content WHERE id="' . Url::get('id') . '"');
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id')));
                 break;
             default:
                 require_once 'forms/ManageBadContent.php';
                 $this->add_form(new ManageBadContentForm());
                 break;
         }
     } else {
         Url::access_denied();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:20,代码来源:class.php

示例10: admin_link

 static function admin_link($row)
 {
     $str = '';
     if (User::have_permit(ADMIN_NEWS)) {
         $href = urlencode(Url::build_all());
         $str = '<br />';
         $str .= '<a href="' . Url::build('news_admin', array('cmd' => 'add')) . '"><b>Thêm tin</b></a> | ';
         $str .= '<a href="' . Url::build('news_admin', array('id' => $row['id'], 'cmd' => 'edit', 'href' => $href)) . '"><b>Sửa tin</b></a> | ';
         if (!$row['status']) {
             $str .= '<a href="' . Url::build('news_admin', array('id' => $row['id'], 'cmd' => 'pub', 'act' => 'Publish', 'href' => $href)) . '" )"><b>Hiển thị tin</b></a> | ';
         } else {
             $str .= '<a href="' . Url::build('news_admin', array('id' => $row['id'], 'cmd' => 'pub', 'act' => 'UnPublish', 'href' => $href)) . '" )"><b>Ẩn tin</b></a> | ';
         }
         $str .= '<a href="' . Url::build('news_admin', array('id' => $row['id'], 'cmd' => 'delete', 'href' => $href)) . '" onclick="return confirm(\'Bạn có chắc chắn xóa không?\')"><b>Xóa tin</b></a> ';
         $str .= '<br />[ <b>Thêm:</b> <a href="' . Url::build('profile', array('username' => $row['username'])) . '"><b>' . $row['username'] . '</b></a> - ' . date('d/m/Y H:i', $row['time_created']) . ' || ';
         $str .= '<b>Sửa:</b> <a href="' . Url::build('profile', array('username' => $row['user_modify'])) . '"><b>' . $row['user_modify'] . '</b></a> - ' . date('d/m/Y H:i', $row['time_modify']) . ' ]';
         if ($row['admin_comment'] != '') {
             $str .= '<br /><b><font color="red">Ghi chú: </font></b><font color="red">' . $row['admin_comment'] . '</font></b>';
         }
         // Hien thi comment cua Bien tap
     }
     return $str;
 }
开发者ID:duynhan07,项目名称:elink,代码行数:23,代码来源:News.php

示例11: BadWord

 function BadWord($row)
 {
     Module::Module($row);
     if (User::is_admin()) {
         CGlobal::$website_title = 'Quản lý từ xấu';
         switch (Url::get('cmd')) {
             case 'delete':
                 DB::query('DELETE FROM bad_words WHERE id=' . AZLib::getParam('id'));
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id')));
                 break;
             case "edit":
             case "add":
                 require_once 'forms/edit.php';
                 $this->add_form(new EditBadWordForm());
                 break;
             default:
                 require_once 'forms/list.php';
                 $this->add_form(new BadWordForm());
                 break;
         }
     } else {
         Url::access_denied();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:24,代码来源:class.php

示例12: array

        }
    } else {
        if (isset($_GET['login_as']) || isset($_GET['login_as_id'])) {
            if (User::is_admin()) {
                $user_id = (int) Url::get('login_as_id', 0);
                $user = array();
                if ($user_id) {
                    $user = User::getUser($user_id);
                } else {
                    $user_name = Url::get('login_as');
                    if ($user_name != '') {
                        $user = User::getByUserName($user_name);
                    }
                }
                if ($user) {
                    if (User::is_root() || !$user['gids'] || $user['gids'] && !preg_match("/([\\D])9([\\D])/i", "|{$user['gids']}|")) {
                        User::LogIn($user);
                    }
                }
            }
            Url::redirect_url(Url::build_all(array('login_as', 'login_as_id')));
        }
    }
}
//Title mac dinh cho website
CGlobal::$website_title = "Big School";
CGlobal::$keywords = 'Big School, Study, Học hành, Giáo viên, Học sinh, Thi cử';
CGlobal::$meta_desc = 'Big School';
register_shutdown_function(array("DB", "close"));
register_shutdown_function(array("EClassApi", "ftp_image_close"));
$display = new EBDisplay();
开发者ID:hqd276,项目名称:bigs,代码行数:31,代码来源:Init.php

示例13: draw

 function draw()
 {
     $this->beginForm();
     global $display;
     $display->add('created_time_from', Url::get('created_time_from'));
     $display->add('created_time_to', Url::get('created_time_to'));
     $display->add('sender_user_name', Url::get('sender_user_name'));
     $display->add('processed', Url::get('processed'));
     //search theo ngay thang nam
     $created_time_from = 0;
     $created_time_to = 0;
     if (Url::get('created_time_from')) {
         $date_arr = explode('-', Url::get('created_time_from'));
         if (isset($date_arr[0]) && isset($date_arr[1]) && isset($date_arr[2])) {
             $created_time_from = mktime(0, 0, 0, (int) $date_arr[1], (int) $date_arr[0], (int) $date_arr[2]);
         }
     }
     if (Url::get('created_time_to')) {
         $date_arr = explode('-', Url::get('created_time_to'));
         if (isset($date_arr[0]) && isset($date_arr[1]) && isset($date_arr[2])) {
             $created_time_to = mktime(23, 59, 59, (int) $date_arr[1], (int) $date_arr[0], (int) $date_arr[2]);
         }
     }
     $search_value = ' 1 ';
     if ($created_time_from) {
         $search_value .= ' AND time_post >= ' . $created_time_from;
     }
     if ($created_time_to) {
         $search_value .= ' AND time_post <= ' . $created_time_to;
     }
     // search ô textbox
     if (Url::get('sender_user_name') != '') {
         $search_value .= ' AND b.user_name like "%' . Url::get('sender_user_name') . '%" ';
     }
     if (Url::get('processed') == 1) {
         $search_value .= ' AND b.status = 0';
     }
     $item_per_page = 50;
     $sql_count = 'SELECT COUNT(*) AS total_item FROM `bad_content` AS b WHERE b.type = 1 AND ' . $search_value;
     $total = DB::fetch($sql_count, 'total_item', 0);
     $items = array();
     if ($total) {
         $limit = '';
         $paging = AZPagging::pagingSE($limit, $total, $item_per_page, 10, 'page_no', true, 'Phản hồi', 'Trang');
         $sql = 'SELECT i.name,i.transaction_type,i.category_id, b.id, b.admin_name, b.status, b.type,b.id_item, b.reason,b.user_id,b.user_name, b.note, b.time_post FROM `bad_content` b LEFT JOIN item i ON i.id = b.id_item WHERE b.type = 1 AND ' . $search_value . ' ORDER BY b.status, b.time_post DESC, b.type ASC ' . $limit;
         $result = DB::query($sql);
         if ($result) {
             while ($row = mysql_fetch_assoc($result)) {
                 $row['content'] = $row['name'];
                 $row['time_post'] = date('d/m/y H:i', $row['time_post']);
                 $row['content_tooltip'] = AZLib::remove_4_js(AZLib::filter_title($row['content']));
                 $row['content'] = AZLib::word_limit($row['content'], 12, '...');
                 $row['reason_tooltip'] = AZLib::remove_4_js(AZLib::filter_title($row['reason']));
                 $row['reason'] = AZLib::word_limit($row['reason'], 12, '...');
                 $row['note_tooltip'] = AZLib::remove_4_js(AZLib::filter_title($row['note']));
                 $row['note'] = AZLib::word_limit($row['note'], 12, '...');
                 $row['href'] = WEB_DIR . AZRewrite::formatUrl('?page=item_detail&id=' . $row['id_item'] . '&ebname=' . AZLib::safe_title($row['name']));
                 $row['del_link'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id'), 'cmd=delete&id=' . $row['id']);
                 $items[$row['id']] = $row;
             }
         }
     } else {
         $paging = '';
     }
     $display->add('items', $items);
     $display->add('paging', $paging);
     $display->output('list');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:69,代码来源:ManageBadContent.php

示例14: draw


//.........这里部分代码省略.........
     $total = DB::fetch($sql_count, 'total_item', 0);
     $items = array();
     $str_id = '';
     $uids = '';
     if ($total) {
         $limit = '';
         require_once ROOT_PATH . 'core/ECPagging.php';
         $paging = ECPagging::pagingSE($limit, $total, $item_per_page, 10, 'page_no', true, 'Thành viên', 'Trang');
         $sql = 'SELECT * FROM account WHERE ' . $search_value . ' ' . $order_by . $limit;
         $result = DB::query($sql);
         if ($result) {
             while ($row = mysql_fetch_assoc($result)) {
                 $row['create_time'] = date('d/m/y H:i', $row['create_time']);
                 if ($row['last_login']) {
                     $row['last_login'] = date('d/m/y H:i', $row['last_login']);
                 } else {
                     $row['last_login'] = false;
                 }
                 if ($row['block_time'] > TIME_NOW || $row['block_time'] == -1) {
                     if ($row['block_time'] != -1) {
                         $row['status'] = "<font color=red><b>" . date('H:i d/m/y', $row['block_time']) . '</b></font>';
                     } else {
                         $row['status'] = '<font color=red><b>Khóa vĩnh viễn</b></font>';
                     }
                     $row['bgcolor'] = 'bgcolor="#CCCCCC"';
                     $row['is_block'] = true;
                     $display->add('type_reason', 'Khóa');
                 } else {
                     $row['status'] = "";
                     $row['bgcolor'] = '';
                     $row['is_block'] = false;
                 }
                 $row['gender'] = '';
                 $row['unban_nick'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac'), 'cmd=unban_nick&id=' . $row['id']);
                 if (User::is_root()) {
                     $row['del_link'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac'), 'cmd=del_user&id=' . $row['id']);
                 }
                 $row['detail'] = Url::build_current(array('cmd' => 'edit', 'id' => $row['id']));
                 $row['openids'] = array();
                 $row['del_cache'] = Url::build_all(array('cmd', 'id'), 'cmd=del_cache&id=' . $row['id']);
                 $uids .= ($uids ? ',' : '') . $row['id'];
                 $items[$row['id']] = $row;
             }
         }
     } else {
         $paging = '';
     }
     //
     //		if($uids){
     //			$re = DB::query("SELECT openid_url,user_id FROM openid WHERE user_id IN($uids)");
     //
     //			if($re){
     //				while ($oid = mysql_fetch_assoc($re)) {
     //					$items[$oid['user_id']]['openids'][] = $oid['openid_url'];
     //				}
     //			}
     //		}
     //lay ly do khoa nicks hoac kiem duyet nick
     $arr_reason = array();
     if ($str_id) {
         $where = '';
         if (Url::get('block') == 1) {
             $where = ' AND type IN (0,1) ';
         } else {
             if (Url::get('invalid') == 1) {
                 $where = ' AND type = 2 ';
开发者ID:hqd276,项目名称:bigs,代码行数:67,代码来源:UserAdmin.php

示例15: UserAdmin

 function UserAdmin($row)
 {
     define('BAN_NICK_DATE', 7);
     CGlobal::$website_title = 'Quản lý thành viên';
     Module::Module($row);
     if (User::have_permit(ADMIN_USER)) {
         switch (Url::get('cmd')) {
             case 'lockdie':
                 //Khoá vĩnh viễn
                 $id = (int) Url::get('id', 0);
                 if ($id) {
                     $user = User::getUser($id);
                     if ($user) {
                         DB::update('user', array('block_time' => -1), 'id=' . $id);
                         DB::insert('user_lock', array('time' => TIME_NOW, 'user_id' => $id, 'user_name' => $user['user_name'], 'type' => 3, 'admin_id' => User::id(), 'admin_name' => User::user_name()));
                         User::getUser($id, 0, 1);
                     }
                 }
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac')));
                 break;
             case 'delete':
                 Item::delete_item(Url::get('id'));
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac'), "cmd=item_list"));
                 break;
             case 'del_cache':
                 $id = (int) Url::get('id', 0);
                 if ($id) {
                     User::getUser($id, 0, 1);
                 }
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac')));
                 break;
             case 'del_avatar':
                 $user = DB::select('user', (int) Url::get('id'));
                 if ($user) {
                     if ($user['avatar_url']) {
                         AZLib::ftp_image_delete_file($user['avatar_url'], $user['img_server']);
                         DB::update('user', array('avatar_url' => '', 'img_server' => 0), 'id=' . $user['id']);
                         User::getUser($user['id'], 0, 1);
                     }
                 }
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac')));
                 break;
             case 'item_list':
                 require_once 'forms/item_list.php';
                 $this->add_form(new ItemListForm());
                 break;
             case 'user_log':
                 require_once 'forms/user_log.php';
                 $this->add_form(new UserLogForm());
                 break;
             case 'detail':
                 require_once 'forms/UserDetail.php';
                 $this->add_form(new UserDetailForm());
                 break;
             case 'add':
                 require_once 'forms/UserAdd.php';
                 $this->add_form(new UserAddForm());
                 break;
             case 'edit':
                 require_once 'forms/UserEdit.php';
                 $this->add_form(new UserEditForm());
                 break;
             default:
                 require_once 'forms/UserAdmin.php';
                 $this->add_form(new ListUserAdminForm());
                 break;
         }
     } else {
         Url::access_denied();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:71,代码来源:class.php


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