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


PHP app::load_lib方法代码示例

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


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

示例1: app

<?php

include "../../application.php";
$appx = new app();
$dbu = new db();
$appx->load_lib('url', 'msg', 'form', 'nav', 'admlib', 'lang.eng');
$formix = new form();
$admlib = new admlib();
$msgx = new msg();
$urlx = new url();
$appx->set_default($act, 'browse');
$appx->set_default($step, 1);
$dbu->connect();
$admlib->validate("tour");
/*******************************************************************************
* Action : browse
*******************************************************************************/
if ($act == "browse") {
    $admlib->set_aktip("tourcms_destinasi");
    $page = $_REQUEST['page'];
    // get the requested page
    $paging = 50;
    // get how many rows we want to have into the grid
    $sidx = $_REQUEST['sidx'];
    // get index row - i.e. user click to sort
    $sord = $_REQUEST['sord'];
    // get the direction
    $where = "WHERE 1=1 AND a.id_reff ='" . $p_id . "'";
    $tab_provinsi = "";
    if (isset($_REQUEST["kcari"])) {
        $_SESSION["kcari"] = $_REQUEST["kcari"];
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:index.php

示例2: app

<?php

include "../../application.php";
$appx = new app();
$dbu = new db();
$dbu->connect();
$appx->load_lib('url');
$uly = new url();
//Get our locations from the database.
$radius = 20;
// Search the rows in the markers table
$kat = "";
if ($_POST[kate] != "") {
    $kat = "WHERE a.id_kat ='" . $_POST[kate] . "'";
}
$lat = $_POST[lat];
$lng = $_POST[lng];
//$alamat = $_POST[alamat];
$urlnya = $dbu->lookup('nama', 'action', "action='21' and id_bahasa='" . $_SESSION[bhs] . "'");
$query = "SELECT distinct a.website, b.nama as dest,a.id_kat, b.slogan, b.alamat, a.pos_lat as lat , a.pos_long as lng, ( 3959 * acos( cos( radians('" . $lat . "') ) * cos( radians( a.pos_lat ) ) * cos( radians( a.pos_long ) - radians('" . $lng . "') ) + sin( radians('" . $lat . "') ) * sin( radians( a.pos_lat ) ) ) ) AS distance, a.thumb, a.icon_map ,LTRIM(' url') as urlc FROM " . $app[table][destinasi] . " as a LEFT JOIN " . $app[table][destinasi_bahasa] . " as b ON(a.id_reff = b.id_reff) " . $kat . " HAVING distance < '" . $radius . "' ORDER BY distance asc";
$dbu->query($query, $rnear, $hit_near);
$dnear = "";
if ($hit_near > 0) {
    $hit = 0;
    while ($nea = $dbu->fetch($rnear)) {
        $nea[urlc] = $app[www] . "/" . $urlnya . "/" . $uly->shortLink($nea[dest]) . "/";
        $nea[thumb] = $appx->cekFile('/destinasi/thumb/', $nea[thumb], 'default.jpg');
        $nea[thumb] = $app[data_www] . '/destinasi/thumb/' . $nea[thumb];
        $nea[icon_map] = $appx->cekFile('/destinasi/icon/', $nea[icon_map], 'default.png');
        $nea[icon_map] = $app[data_www] . '/destinasi/icon/' . $nea[icon_map];
        $dnear[$hit] = $nea;
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:nearby.php

示例3: stats

<?php

$stats = new stats();
$dbu = new db();
$appx = new app();
$appx->load_lib('feed');
$feedex = new feed();
$stats->log_stats($rs_act["nama"], $act, $p_id, $sub, $step, $cat, $status, $tab);
$app['nopage'] = $rs_act["action"];
//echo $p_id;exit;
$pid = str_replace("-", "%", $p_id);
$idnya = $dbu->lookup("id", $app[table][komunitas], "nama LIKE '%" . $pid . "%'");
$komm = $dbu->get_record($app[table][komunitas], "id = '" . $idnya . "'");
$komm[logo] = $appx->cekFile('/komunitas/logo/', $komm[logo], 'default.png');
$komm[logo] = $app[data_www] . '/komunitas/logo/' . $komm[logo];
include "fill/fill_community_detail.php";
开发者ID:salomay,项目名称:refreshin,代码行数:16,代码来源:coretan_community_detail.php

示例4: app

<?php

include "../application.php";
$appx = new app();
$appx->load_lib('stats', 'url', 'msg', 'form', 'nav', 'file', 'admlib', 'usrlib');
## START #######################################################################
$appx->set_default($act, '');
$appx->set_default($step, 1);
$admlibx = new admlib();
$dbu = new db();
$formix = new form();
$msgx = new msg();
$dbu->connect();
if ($act == "" || $act == 'traveler_friend') {
    $formix->populate($form);
    $pgconfig = $dbu->get_record("konfig", "id", 1);
    if ($_SESSION['adminsession']) {
        header("location: {$app['webmin']}/index.php?act=home");
    } elseif ($_SESSION['membersession']) {
        header("location: {$app['webmin']}/index.php?act=member");
    } else {
        include "dsp_login.php";
    }
    exit;
}
/*******************************************************************************
* login
* gambaran : validasi login
*******************************************************************************/
if ($act == "login") {
    $formix->init();
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:index.php


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