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


PHP AZLib::getParam方法代码示例

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


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

示例1: piclens_gallery

 function piclens_gallery()
 {
     $item_id = AZLib::getParam('item_id');
     $entry = '';
     if ($item_id) {
         $sql = 'select id, img_url, title, position from item_image where item_id = ' . intval($item_id) . ' ORDER BY position ';
         DB::query($sql);
         if (DB::num_rows()) {
             $entry = '';
             while ($rows = DB::fetch_row()) {
                 $rows['title'] = $rows['title'] ? $rows['title'] : "Image {$rows['position']}";
                 $rows['title'] = trim(XMLLib::_xml_encode_attribute($rows['title']));
                 if (ereg('/', $rows['img_url'])) {
                     $url = trim(XMLLib::_xml_encode_attribute("http://" . IMAGE_PATH . "{$rows['img_url']}"));
                 } else {
                     $url = trim(XMLLib::_xml_encode_attribute("http://" . IMAGE_PATH . "uploaded/items/{$rows['img_url']}"));
                 }
                 $entry .= "\r\n\t\t \t \t<item>\r\n\t\t \t \t\t\t<title>" . stripslashes($rows['title']) . "</title>\r\n\t\t\t\t\t\t<link>{$url}</link>\r\n\t\t\t\t\t\t<guid>Image {$rows['position']}</guid>\r\n\t\t\t\t\t\t<media:thumbnail url=\"{$url}\" />\r\n\t\t\t\t\t\t<media:content url=\"{$url}\" />\r\n\t\t\t\t</item>\r\n\t\t \t \t";
             }
             @header("Content-type: text/xml");
             echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n\t\t\t <rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss\">\r\n\t\t\t <channel>\t\t\t\r\n\t\t\t <title>Enbac.com</title>\r\n\t\t\t <link>http://www.enbac.com/</link>\r\n\t\t\t <description>Enbac.com - </description>\r\n\t\t\t <logo url=\"style/images/logo.piclens.png\" />\r\n\t\t\t";
             echo $entry;
             echo "\r\n\t\t \t </channel>\r\n\t\t\t </rss>\r\n\t\t\t";
         } else {
             die("no_info");
         }
     } else {
         die("no_info");
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:30,代码来源:xml_item.xml.php

示例2: draw

 function draw()
 {
     $this->beginForm();
     if (Url::get('cmd') == 'edit' && ($row = DB::select('bad_words', 'id=' . intval(AZLib::getParam('id'))))) {
         $contents = $row['contents'];
         $reason = $row['reason'];
         $exact = $row['exact'];
         if ($row['is_phone'] == 1) {
             $contents = BadWord::filter_badword_show($contents);
         }
         $is_phone = $row['is_phone'];
     } else {
         $contents = '';
         $exact = '';
         $is_phone = '';
         $reason = '';
     }
     global $display;
     $display->add('msg', $this->showFormErrorMessages());
     $display->add('contents', $contents);
     $display->add('reason', $reason);
     $display->add('exact', $exact);
     $display->add('is_phone', $is_phone);
     $display->add('cmd', Url::get('cmd'));
     $display->output('edit');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:27,代码来源:edit.php

示例3: on_submit

 function on_submit()
 {
     $user_name = AZLib::getParam('user_name');
     $content = AZLib::getParam('content');
     $active = (int) Url::get('active');
     $expire = (int) Url::get('expire', 7);
     $id = (int) Url::get('id');
     $cmd = Url::get('cmd');
     $sql = "SELECT id FROM user WHERE user_name='{$user_name}'";
     $row = DB::fetch($sql);
     $user_id = (int) $row["id"];
     if (!$user_id) {
         $this->setFormError('user_name', 'Không tồn tại thành viên này!');
     } elseif (!$user_name || !$content) {
         $this->setFormError('content', 'Dữ liệu không hợp lệ!');
     } else {
         if ($cmd == "add") {
             $item_array = array('content' => $content, 'user_name' => $user_name, 'user_id' => $user_id, 'admin_add' => User::user_name(), 'active' => $active, 'time_add' => TIME_NOW, 'expire_date' => TIME_NOW + 86400 * $expire);
             DB::insert('admin_notice_user', $item_array);
         } elseif ($cmd == "edit" && $id) {
             $item_array = array('content' => $content, 'user_name' => $user_name, 'user_id' => $user_id, 'admin_edit' => User::user_name(), 'active' => $active, 'time_edit' => TIME_NOW, 'expire_date' => TIME_NOW + 86400 * $expire);
             DB::update_id('admin_notice_user', $item_array, $id);
         }
         User::getAdminNoticeUser($user_id, 0, 1);
         Url::redirect_current(array('act'));
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:27,代码来源:EditAdminNoticeUser.php

示例4: playme

 function playme()
 {
     $code = AZLib::getParam('code');
     switch ($code) {
         case 'ebd_payment':
             $this->ebd_payment();
             break;
         case 'ebu_payment':
             $this->ebu_payment();
             break;
         case 'ebd_premium_payment':
             $this->ebd_premium_payment();
             break;
         case 'ebu_premium_payment':
             $this->ebu_premium_payment();
             break;
         case 'check_item_id':
             $this->check_item_id();
             break;
         case 'payment_vip_finish':
             $this->payment_vip_finish();
             break;
         case 'check_slot_vip':
             $this->check_slot_vip();
             break;
         case 'display_date_ordered':
             $this->display_date_ordered();
             break;
         case 'card_payment':
             $this->card_payment();
             break;
         case 'card_payment_item':
             $this->card_payment_item();
             break;
         case 'payment_bill':
             $this->payment_bill();
             break;
         case 'get_cart':
             $this->get_cart();
             break;
         case 'add_to_cart':
             $this->add_to_cart();
             break;
         case 'update_to_cart':
             $this->update_to_cart();
             break;
         case 'del_cart':
             $this->del_cart();
             break;
         default:
             $this->home();
             break;
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:54,代码来源:ajax_payment.ajax.php

示例5: playme

 function playme()
 {
     $code = AZLib::getParam('code');
     switch ($code) {
         case 'trans':
             $this->transaction();
             break;
         default:
             $this->home();
             break;
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:12,代码来源:xml_user.xml.php

示例6: playme

 function playme()
 {
     $code = AZLib::getParam('code');
     switch ($code) {
         case 'home':
             $this->home();
             break;
         default:
             $this->home();
             break;
     }
     //$print->html = $skin->index();
     //$print->display();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:14,代码来源:index.ajax.php

示例7: on_submit

 function on_submit()
 {
     AZLib::getCats();
     $item_id = (int) Url::get("item_id", 0);
     $time_s = Url::get("time_start", '');
     $time_e = Url::get("time_end", '');
     $category = (int) Url::get("category", 0);
     $num_contract = Url::get("num_contract", '');
     $item = Item::get_item($this->booking_vip['item_id']);
     if (!$this->errNum) {
         $time_start = 0;
         if ($time_s != '') {
             $arr = explode('-', $time_s);
             if (count($arr) == 3) {
                 $time_start = mktime(0, 0, 0, $arr[1], $arr[0], $arr[2]);
             }
         }
         if (!$time_start) {
             $time_start = mktime(0, 0, 0, date('m', TIME_NOW), date('d', TIME_NOW), date('Y', TIME_NOW));
         }
         $time_end = 0;
         if ($time_e != '') {
             $arr = explode('-', $time_e);
             if (count($arr) == 3) {
                 $time_end = mktime(23, 59, 59, $arr[1], $arr[0], $arr[2]);
             }
         }
         if (!$time_end) {
             $this->setFormError('time_end', 'Bạn chưa nhập vào thời gian kết thúc!');
             return;
         }
         if ($time_end < $time_start) {
             $this->setFormError('time_end', 'Thời gian kết thúc phải lớn hơn thời gian bắt đầu!');
             return;
         }
         $item = Item::get_item($item_id);
         // xac dinh xem co hien thi o danh muc cha khong
         $top_cat = 0;
         $cat_id = 0;
         if ($category == 1) {
             $top_cat = $item['level_1_catid'];
         } else {
             if ($category == 2) {
                 $cat_id = $item['category_id'];
             }
         }
         $id = DB::update("bookings_vip", array('item_id' => $item_id, 'cat_id' => $cat_id, 'top_cat' => $top_cat, 'note' => AZLib::getParam('note'), 'time_start' => $time_start, 'time_end' => $time_end, 'time_edit' => TIME_NOW, 'user_edit' => User::user_name(), 'num_contract' => $num_contract), "id=" . $this->booking_vip['id']);
         Url::redirect_current();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:50,代码来源:EditBookingVip.php

示例8: playme

 function playme()
 {
     $code = AZLib::getParam('code');
     switch ($code) {
         case 'piclens_gallery':
             $this->piclens_gallery();
             break;
         case 'flash_view_gallery':
             $this->flash_view_gallery();
             break;
         default:
             $this->home();
             break;
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:15,代码来源:xml_gallery.xml.php

示例9: on_submit

 function on_submit()
 {
     $title = AZLib::getParam('title');
     $sapo = AZLib::getParam('sapo');
     $link = AZLib::getParam('link', '');
     $active = (int) Url::get('active');
     $id = (int) Url::get('id');
     $cmd = Url::get('cmd');
     if (!$title || !$sapo) {
         $this->setFormError('title', 'Dữ liệu không hợp lệ!');
     } else {
         if ($cmd == "add") {
             $item_array = array('title' => $title, 'sapo' => $sapo, 'link' => $link, 'admin_add' => User::user_name(), 'active' => $active, 'time_add' => TIME_NOW);
             DB::insert('admin_notice', $item_array);
         } elseif ($cmd == "edit" && $id) {
             $item_array = array('title' => $title, 'sapo' => $sapo, 'link' => $link, 'admin_edit' => User::user_name(), 'active' => $active, 'time_edit' => TIME_NOW);
             DB::update_id('admin_notice', $item_array, $id);
         }
         User::getAdminNotice(0, 1);
         Url::redirect_current();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:22,代码来源:EditAdminNotice.php

示例10: playme

 function playme()
 {
     $code = AZLib::getParam('code');
     switch ($code) {
         case 'modifyStatus':
             $this->modifyStatus();
             break;
         case 'edit_ad_item':
             $this->edit_ad_item();
             break;
         case 'submit_ad_item':
             $this->submit_ad_item();
             break;
         case 'change_to_edit':
             $this->change_to_edit();
             break;
         case 'active_ad':
             $this->active_ad();
             break;
         case 'updateContract':
             $this->updateContract();
             break;
         case 'updateAdminNote':
             $this->updateAdminNote();
             break;
         case 'updateTT':
             $this->updateTT();
             break;
         case 'upload':
             $this->upload();
             break;
         default:
             $this->home();
             break;
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:36,代码来源:ajax_ad.ajax.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: draw2

 function draw2()
 {
     $keywords = AZLib::getParam('keywords');
     $total_item = 0;
     $search_result = false;
     $items = array();
     $paging = '';
     $cmd = '';
     $cat_search_id = 0;
     $item_array = array();
     $listCat = array();
     if ($keywords) {
         //AZLib::getCats();
         require "./includes/sphinxapi.class.php";
         foreach (CGlobal::$allCategories as $value) {
             if ($value['parent_id'] == 0) {
                 $cat_list[$value['id']] = $value['brief_name'];
             }
         }
         $category = $this->getTotalPerCategory($keywords);
         foreach ($category as $row) {
             $row['brief_name'] = isset($cat_list[$row['level_1_catid']]) && $cat_list[$row['level_1_catid']] ? $cat_list[$row['level_1_catid']] : "Khác";
             $listCat[$row['level_1_catid']] = array("level_1_catid" => $row["level_1_catid"], "brief_name" => $row['brief_name'], "count_ad" => $row['@count']);
         }
         $total = 0;
         $catid = 0;
         $catActive = '';
         $total_cat = 0;
         if ($listCat) {
             $first_val = array_slice($listCat, 0, 1);
             $total = $first_val[0]['count_ad'];
             $catid = $first_val[0]['level_1_catid'];
             $catActive = $first_val[0]['brief_name'];
             $total_cat = count($listCat);
         }
         $i = 0;
         $allrecord = 0;
         $otherCat = '';
         $cat_content = "";
         foreach ($listCat as $cat) {
             if ($i < 3) {
                 $active = $i == 0 ? "class=\"active\"" : "";
                 $cat_content .= "<li id=\"tab_{$i}\" {$active} onclick=\"javascript:acive_tab_cat(this);\"><a href=\"javascript:void(0);\" onclick=\"javascript:search_cat({$cat['level_1_catid']},{$cat['count_ad']},1,0);\"><span id=\"kby_{$cat['level_1_catid']}\">" . $cat['brief_name'] . " <font style=\"color: #5a7e92;font-weight: normal;\">(" . $cat['count_ad'] . ")</font></span></a></li>";
             } else {
                 $otherCat .= "<div class=\"other\"><a href=\"javascript:void(0);\" onclick=\"javascript:search_cat({$cat['level_1_catid']},{$cat['count_ad']},1,0);acive_tab_cat(this);\" id=\"tab_{$i}\"><span id=\"kby_{$cat['level_1_catid']}\">" . $cat['brief_name'] . " <font style=\"color: #5a7e92;font-weight: normal;\">(" . $cat['count_ad'] . ")</font></span></a></div>";
             }
             $i++;
             $allrecord = $allrecord + $cat['count_ad'];
         }
         $display->add("cat_content", $cat_content);
         $display->add("CatActiveId", $catid);
         $display->add("catActive", $catActive);
         $display->add("listCat", $listCat);
         $display->add("allrecord", $allrecord);
         $display->add("otherCat", str_replace(array(chr(13), chr(10)), "", $otherCat));
         $display->add("total_cat", $total_cat);
         //Init for sphinx search paging
         $pager = new Pager();
         //config
         $limit = SEARCH_LIMIT;
         $pager->type = "search";
         $pager->catid = $catid;
         $pager->total = $total;
         $pager->limit = $limit;
         $pager->page_param = 'page';
         $pager->page = 1;
         $offset = $pager->get_offset();
         $limit_from = $pager->limit_from();
         $limit_to = $pager->limit_to();
         //Sphinx search by Nova
         $q = $keywords;
         $mode = SPH_MATCH_EXTENDED2;
         //Init config
         $host = SPHINX_SERVER;
         $port = SPHINX_PORT;
         //$index 		= SPHINX_INDEX;
         $index = "enbac delta";
         $filtervals = array();
         $ranker = SPH_RANK_WORDCOUNT;
         $cl = new SphinxClient();
         $cl->SetServer($host, $port);
         $cl->SetConnectTimeout(1);
         $cl->SetWeights(array(100, 1));
         $cl->SetMatchMode($mode);
         //filter
         if ($catid) {
             $cl->SetFilter('level_1_catid', array($catid));
         }
         $cl->SetFilter('status', array('1'));
         $cl->SetFieldWeights(array('user_name' => 10000, 'name' => 1000, 'description' => 1));
         //$cl->SetSortMode( SPH_SORT_EXTENDED, 'up_time DESC' );
         //$cl->SetSortMode( SPH_SORT_RELEVANCE);//Sort theo kq chính xác nhất
         //$cl->SetSortMode ( SPH_SORT_EXPR, "@weight + ( user_karma + ln(pageviews) )*0.1");
         $cl->SetSortMode(SPH_SORT_EXPR, "@weight");
         //Sort theo trọng số
         //SPH_RANK_WORDCOUNT
         //SPH_MATCH_EXTENDED2
         //end filter
         $cl->SetLimits($offset, $limit, 10000);
         $cl->SetRankingMode($ranker);
//.........这里部分代码省略.........
开发者ID:duynhan07,项目名称:elink,代码行数:101,代码来源:sphinx_search.php

示例13: draw

 function draw()
 {
     //$tbl_source     = "category_bk";
     $tbl_source = "category";
     global $display;
     $keywords = AZLib::getParam('searchKeyword');
     $src_catid = (int) Url::get('sourceCategories');
     $src_l1_catid = 0;
     $src_l2_catid = 0;
     $src_l3_catid = 0;
     if ($src_catid) {
         //Kiểm tra danh mục nguồn
         $src_cat = DB::select("{$tbl_source}", "id={$src_catid}");
         if ($src_cat) {
             if ($src_cat && $src_cat['parent_id']) {
                 //DM cấp 2
                 /*$src_l1_catid = $src_cat['parent_id'];
                 		$src_l2_catid = $src_catid;
                 		*/
                 $src_cat_parent = DB::select("{$tbl_source}", "id={$src_cat['id']}");
                 if (!$src_cat_parent || $src_cat_parent && $src_cat_parent['parent_id']) {
                     //DM cấp 3
                     $src_l1_catid = $src_cat_parent['parent_id'];
                     $src_l2_catid = $src_cat['parent_id'];
                     $src_l3_catid = $src_catid;
                 } else {
                     $src_l1_catid = $src_cat['parent_id'];
                     $src_l2_catid = $src_catid;
                 }
             } else {
                 $src_l1_catid = $src_catid;
             }
         }
     }
     $des_catid = (int) AZLib::getParam('desCategories');
     $search_result = false;
     $items = array();
     $total = 0;
     if ($keywords) {
         //Nếu tìm theo từ khóa
         $q = $keywords;
         $mode = SPH_MATCH_ALL;
         //Init config
         $host = SPHINX_SERVER;
         $port = SPHINX_PORT;
         $index = SPHINX_INDEX;
         $ranker = SPH_RANK_PROXIMITY_BM25;
         $cl = new SphinxClient();
         $cl->SetServer($host, $port);
         $cl->SetConnectTimeout(1);
         $cl->_limit = 50000;
         $cl->_maxmatches = 50000;
         $cl->SetWeights(array(100, 1));
         $cl->SetMatchMode($mode);
         if ($src_l2_catid) {
             $cl->SetFilter('category_id', array($src_catid));
         } elseif ($src_l1_catid) {
             $cl->SetFilter('level_1_catid', array($src_catid));
         }
         //$cl->SetLimits( $offset , $limit, 10000 );
         $cl->SetRankingMode($ranker);
         $cl->SetArrayResult(true);
         $res = $cl->Query($q, $index);
         if ($res && isset($res["matches"])) {
             if (is_array($res["matches"])) {
                 $itemIDs = '';
                 $count = 0;
                 foreach ($res["matches"] as $results) {
                     $itemIDs .= ($itemIDs != '' ? ',' : '') . $results['id'];
                 }
                 if ($itemIDs != '') {
                     //Đếm lại số bản ghi chính xác
                     $sql = 'SELECT count(*) AS totalItem FROM item WHERE id IN(' . $itemIDs . ')';
                     if ($src_catid) {
                         if ($src_l3_catid) {
                             // Nếu tìm kiếm theo từ khóa trong danh mục cấp 3
                             $sql .= ' AND category_id = ' . $src_l3_catid;
                         } elseif ($src_l2_catid) {
                             // Nếu tìm kiếm theo từ khóa trong danh mục nào đó
                             $sql .= ' AND level_2_catid = ' . $src_l2_catid;
                         } elseif ($src_l1_catid) {
                             $sql .= ' AND level_1_catid = ' . $src_l1_catid;
                         }
                     }
                     if ($des_catid) {
                         $sql .= ' AND category_id != ' . $des_catid;
                     }
                     $re = DB::Query($sql);
                     if ($re) {
                         $row = mysql_fetch_assoc($re);
                         $total += (int) $row['totalItem'];
                     }
                     $display->add('itemids', $itemIDs);
                 }
             }
         }
     } elseif ($src_catid) {
         // Nếu giới hạn theo danh mục
         $sql = "SELECT count(*) AS itemTotal FROM item";
         if ($src_l3_catid) {
//.........这里部分代码省略.........
开发者ID:duynhan07,项目名称:elink,代码行数:101,代码来源:ManageContentCategory.php

示例14: on_submit

 function on_submit()
 {
     $item_id = (int) Url::get("item_id", 0);
     $category = (int) Url::get("category", 0);
     $num_contract = Url::get("num_contract", '');
     $time_s = Url::get("time_start", '');
     $time_e = Url::get("time_end", '');
     if ($item_id <= 0) {
         $this->setFormError('item_id', 'Bạn chưa nhập vào ID tin!');
         return;
     }
     $item = Item::get_item($item_id);
     if (!$item || $item && $item['status'] == -1) {
         $this->setFormError('item_id', 'Tin bạn nhập vào không tồn tại!');
         return;
     }
     if (!$this->errNum) {
         $time_start = 0;
         if ($time_s != '') {
             $arr = explode('-', $time_s);
             if (count($arr) == 3) {
                 $time_start = mktime(0, 0, 0, $arr[1], $arr[0], $arr[2]);
             }
         }
         if (!$time_start) {
             $time_start = mktime(0, 0, 0, date('m', TIME_NOW), date('d', TIME_NOW), date('Y', TIME_NOW));
         }
         $time_end = 0;
         if ($time_e != '') {
             $arr = explode('-', $time_e);
             if (count($arr) == 3) {
                 $time_end = mktime(23, 59, 59, $arr[1], $arr[0], $arr[2]);
             }
         }
         if (!$time_end) {
             $this->setFormError('time_end', 'Bạn chưa nhập vào thời gian kết thúc!');
             return;
         }
         if ($time_end < $time_start) {
             $this->setFormError('time_end', 'Thời gian kết thúc phải lớn hơn thời gian bắt đầu!');
             return;
         }
         // xac dinh xem co hien thi o danh muc cha khong
         $top_cat = 0;
         $cat_id = 0;
         if ($category == 1) {
             $top_cat = $item['level_1_catid'];
         } else {
             if ($category == 2) {
                 $cat_id = $item['category_id'];
             }
         }
         $id = DB::insert("bookings_vip", array('item_id' => $item_id, 'cat_id' => $cat_id, 'top_cat' => $top_cat, 'note' => AZLib::getParam('note'), 'time_start' => $time_start, 'time_end' => $time_end, 'time_add' => TIME_NOW, 'user_add' => User::user_name(), 'time_edit' => TIME_NOW, 'user_edit' => User::user_name(), 'num_contract' => $num_contract));
         if ($id) {
             $content_email = "Có tin vip mới, id={$id}";
             $email_managa_vip = 'longphamthanh@vccorp.vn';
             if (System::sendEBEmail($email_managa_vip, 'Có booking vip mới', $content_email)) {
                 //                    DB::update('bookings_vip', array('note' => 'Gửi mail thành công'), "id=$id");
             }
         }
         Url::redirect_current();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:63,代码来源:AddBookingVip.php

示例15: array

<?php

//TuấnNK add (20080617_10h):
//Các xử lý cho ajax:
//echo basename($_SERVER['PHP_SELF']);
require_once 'core/Debug.php';
//System Debug...
require_once 'core/config.php';
//System Config...
require_once 'core/Init.php';
//System Init...
//System process & output for ajax request
$choice = array("index" => "index", "user" => "ajax_user", "item" => "ajax_item", "comment" => "ajax_comment", "misc" => "ajax_misc", "personal" => "ajax_personal", "admin" => "ajax_admin", "manage" => "ajax_manage", "upload" => "ajax_upload", "shop_giaodich" => "ajax_shop_giaodich", "shop" => "ajax_shop", "ad" => "ajax_ad", "payment" => "ajax_payment");
$action = AZLib::getParam('act');
if ($action == "" || $choice[$action] == "") {
    $choice[$action] = "index";
}
require_once ROOT_PATH . "includes/ajax_action/" . $choice[$action] . ".ajax.php";
$run_me = new $choice[$action]();
$run_me->playme();
//End process & ouput
//Stop System
System::halt();
开发者ID:duynhan07,项目名称:elink,代码行数:23,代码来源:ajax.php


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