• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getURL函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: RemindPassword

function RemindPassword($Email)
{
    global $Db, $Logs, $nsProduct, $nsLang, $LangConfig, $Lang;
    $Query = "SELECT * FROM " . PFX . "_system_user WHERE EMAIL = ?";
    $User = $Db->Select($Query, false, $Email);
    if (!ValidId($User->ID)) {
        $Logs->Err($Lang['NoEmail']);
        return false;
    }
    $NewPass = substr(md5(uniqid(rand())), 0, 10);
    $Query = "UPDATE " . PFX . "_system_user SET PWD= '" . md5($NewPass) . "' WHERE ID = " . $User->ID;
    $Db->Query($Query);
    $Query = "SELECT LANG FROM " . PFX . "_system_user2lang WHERE PROD_ID=" . $nsProduct->ID . " AND UID = " . $User->ID;
    $ULang = $Db->ReturnValue($Query);
    if ($ULang && $ULang != $nsLang->CurrentLang) {
        $LConfig = $nsLang->ReturnConfig($ULang);
        $nsLang->TplInc("admin.remind", $ULang);
    } else {
        $LConfig = $LangConfig;
    }
    $Query = "SELECT FROM_EMAIL FROM " . PFX . "_tracker_config WHERE COMPANY_ID=0";
    $FromEmail = $Db->ReturnValue($Query);
    $FromEmail = $FromEmail ? $FromEmail : $Email;
    $Message = $Lang['MsgBody'];
    $Message = str_replace("{LOGIN}", $User->LOGIN, $Message);
    $Message = str_replace("{PASS}", $NewPass, $Message);
    $Message = str_replace("{LINK}", getURL("login", "", "admin"), $Message);
    $Subject = $Lang['MsgSubject'];
    $Headers = "From: {$FromEmail}\n";
    $Headers .= "Content-Type: text/plain; charset=" . $LConfig['charset'] . "\n";
    mail($Email, $Subject, $Message, $Headers);
    $Logs->Msg(str_replace("{EMAIL}", $Email, $Lang['PasswordSent']));
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:33,代码来源:pub.remind.php


示例2: do_url

 public function do_url()
 {
     if (!isset(Vars::$get['blogname']) || trim(Vars::$get['blogname']) == '') {
         throw new PluginException('パラメータが足りません。', $this);
     }
     $blogname = trim(Vars::$get['blogname']);
     $num = isset(Vars::$get['recent']) && Vars::$get['recent'] > 0 ? (int) Vars::$get['recent'] : 15;
     $db = DataBase::getinstance();
     $_exp = $db->escape('^' . mb_ereg_quote($blogname) . '/\\d{4}-\\d{2}-\\d{2}/');
     $query = "SELECT pagename,timestamp FROM page";
     $query .= " WHERE php('mb_ereg', '{$_exp}', pagename)";
     $query .= " ORDER BY timestamp DESC, pagename ASC LIMIT {$num}";
     $result = $db->query($query);
     $list = array();
     $prefixsize = mb_strlen($blogname . '/9999-99-99/');
     while ($row = $db->fetch($result)) {
         $item['timestamp'] = $row['timestamp'];
         $item['pagename'] = mb_substr($row['pagename'], $prefixsize);
         $item['url'] = getURL(Page::getinstance($row['pagename']));
         $list[] = $item;
     }
     $smarty = $this->getSmarty();
     $smarty->assign('rssurl', SCRIPTURL . '?' . htmlspecialchars($_SERVER['QUERY_STRING']));
     $smarty->assign('sitename', SITENAME);
     $smarty->assign('blogurl', getURL(Page::getinstance($blogname)));
     $smarty->assign('blogname', $blogname);
     $smarty->assign('list', $list);
     header('Content-Type: application/xml; charset=UTF-8');
     header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $item['timestamp'][0]) . ' GMT');
     $smarty->display('blogrss10.tpl.htm');
     exit;
 }
开发者ID:kaz6120,项目名称:BitWiki,代码行数:32,代码来源:blogrss10.inc.php


示例3: smarty_function_online_payment_link

function smarty_function_online_payment_link($params, &$smarty)
{
    global $LANG;
    $domain_id = domain_id::get($params['domain_id']);
    $url = getURL();
    if (in_array("paypal", explode(",", $params['type']))) {
        $link = "<a \n\t\t\t\thref=\"https://www.paypal.com/xclick/?business=" . urlencode($params['business']) . "&item_name=" . urlencode($params['item_name']) . "&invoice=" . urlencode($params['invoice']) . "&amount=" . urlencode(number_format($params['amount'], 2, '.', '')) . "&currency_code=" . urlencode($params['currency_code']) . "&notify_url=" . urlencode($params['notify_url']) . "&return=" . urlencode($params['return_url']) . "&no_shipping=1&no_note=1&custom=domain_id:" . urlencode($domain_id) . "; \">";
        if ($params['include_image'] == "true") {
            $link .= "<img border='0' src='" . urlsafe($url) . "/images/common/pay_with_paypal.gif'/>";
        } else {
            $link .= htmlsafe($params['link_wording']);
        }
        $link .= "</a>";
        echo $link;
    }
    if (in_array("eway_shared", explode(",", $params['type']))) {
        $link = "<a \n\t\t\t\thref=\"https://www.paypal.com/xclick/?business=" . urlencode($params['business'] . "\n\t\t\t\t&item_name=" . urlencode($params['item_name']) . "&invoice=" . urlencode($params['invoice']) . "\n\t\t\t\t&amount=" . urlencode(number_format($params['amount'], 2, '.', '')) . "&currency_code=" . $params['currency_code']) . "\n\t\t\t\t&return=http://vcsweb.com.au&no_shipping=1&no_note=1\">";
        if ($params['include_image'] == "true") {
            $link .= "<img border='0' src='" . urlsafe($url) . "/images/common/pay_with_eway.gif'/>";
        } else {
            $link .= htmlsafe($params['link_wording']);
        }
        $link .= "</a>";
        echo $link;
    }
}
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:26,代码来源:function.online_payment_link.php


示例4: GetCampTree

function GetCampTree($ParentId = 0, $CompId = false)
{
    if (!ValidId($ParentId)) {
        return false;
    }
    global $Db, $Lang, $nsUser;
    if ($CompId) {
        $Where = " AND COMPANY_ID={$CompId} ";
    } else {
        $Where = "";
    }
    $Query = "SELECT * FROM " . PFX . "_tracker_campaign WHERE PARENT_ID = {$ParentId} AND COMPANY_ID={$CompId} ORDER BY NAME ASC";
    $Sql = new Query($Query);
    $Sql->ReadSkinConfig();
    $CampArr = array();
    while ($Row = $Sql->Row()) {
        if ($Sql->Position > 0) {
            $Row->_UP = true;
        } else {
            $Row->_UP = false;
        }
        $Row->_DOWN = true;
        $Row->NAME = stripslashes($Row->NAME);
        $Row->DESCRIPTION = stripslashes($Row->DESCRIPTION);
        $Row->_STYLE = $Sql->_STYLE;
        $SubCnt = $Db->CNT(PFX . "_tracker_campaign", "PARENT_ID=" . $Row->ID);
        $Row->CHILD_COUNT = $SubCnt > 0 ? $SubCnt : 0;
        $Row->_UPLINK = getURL("campaign", "SortId=" . $Row->ID . "&SortTo=Up&ParentId=" . $Row->PARENT_ID);
        $Row->_DOWNLINK = getURL("campaign", "SortId=" . $Row->ID . "&SortTo=Down&ParentId=" . $Row->PARENT_ID);
        if ($nsUser->Columns->ROI || $nsUser->Columns->CONVERSIONS) {
            $Row->Report = new Paid_v2();
            $Row->Report->GrpId = $Row->ID;
            $Row->Report->CpId = $Row->COMPANY_ID;
            $Row->Report->ShowPerClick = true;
            $Row->Report->ShowTotalCost = true;
            $Row->Report->DisableAll();
            if ($nsUser->Columns->ROI) {
                $Row->Report->ShowROI = true;
            }
            if ($nsUser->Columns->CONVERSIONS) {
                $Row->Report->ShowActionConv = true;
            }
            if ($nsUser->Columns->CONVERSIONS) {
                $Row->Report->ShowSaleConv = true;
            }
            $Row->Report->Calculate();
            //Dump($Row->Report);
            $Row->CampStat =& $Row->Report->CampStat;
        }
        $Row->_MOVE = true;
        $CampArr[$Sql->Position] = $Row;
        $PrevRow =& $CampArr[$Sql->Position];
    }
    $PrevRow->_DOWN = false;
    if (count($CampArr) < 1) {
        return false;
    }
    //if (count($CampArr)==1) $PrevRow->_MOVE=false;
    return $CampArr;
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:60,代码来源:campaign.func.php


示例5: isConnected

 function isConnected($URL = false)
 {
     if (!SESSION("ZanUser")) {
         redirect($URL !== false ? $URL : path("users/login/?return_to=" . urlencode(getURL())));
     }
     return true;
 }
开发者ID:jgianpiere,项目名称:ZanPHP,代码行数:7,代码来源:sessions.php


示例6: do_url

 public function do_url()
 {
     $num = isset(Vars::$get['recent']) && Vars::$get['recent'] > 0 ? (int) Vars::$get['recent'] : 15;
     $db = DataBase::getinstance();
     $query = "SELECT pagename,timestamp FROM page";
     if (isset(Vars::$get['exp']) && trim(Vars::$get['exp']) != '') {
         $_inc = $db->escape(Vars::$get['exp']);
         $query .= " WHERE php('mb_ereg', '{$_inc}', pagename)";
     } else {
         if (isset(Vars::$get['include']) && trim(Vars::$get['include']) != '') {
             $_inc = $db->escape(glob2ereg(Vars::$get['include']));
             $query .= " WHERE php('mb_ereg', '{$_inc}', pagename)";
         }
     }
     $query .= " ORDER BY timestamp DESC, pagename ASC LIMIT {$num}";
     $result = $db->query($query);
     $list = array();
     while ($row = $db->fetch($result)) {
         $item['timestamp'] = $row['timestamp'];
         $item['pagename'] = $row['pagename'];
         $item['url'] = getURL(Page::getinstance($row['pagename']));
         $list[] = $item;
     }
     $smarty = $this->getSmarty();
     $smarty->assign('rssurl', SCRIPTURL . '?' . htmlspecialchars($_SERVER['QUERY_STRING']));
     $smarty->assign('sitename', SITENAME);
     $smarty->assign('baseurl', SCRIPTURL);
     $smarty->assign('list', $list);
     header('Content-Type: application/xml; charset=UTF-8');
     header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $item['timestamp'][0]) . ' GMT');
     $smarty->display('rss10.tpl.htm');
     exit;
 }
开发者ID:riaf,项目名称:kinowiki,代码行数:33,代码来源:rss10.inc.php


示例7: getPage

 protected function getPage(array $data)
 {
     $data['alerts'] = System::alerts();
     $data['jumbotron'] = view('install.jumbotron', ['title' => 'Database connection', 'description' => 'Setup your default database connection.', 'logo' => asset('opis-colibri/system', 'opis-colibri.png'), 'button' => ['link' => getURL('/install/account'), 'text' => 'Skip this step']]);
     $data['supported'] = class_exists('\\PDO');
     return ['title' => 'Database', 'content' => view('install.page.database', $data)];
 }
开发者ID:opis-colibri,项目名称:install,代码行数:7,代码来源:Database.php


示例8: printHeadingImage

function printHeadingImage($randomImage)
{
    global $_zp_themeroot;
    $id = getAlbumId();
    echo '<div id="randomhead">';
    if (is_null($randomImage)) {
        echo '<img src="' . $_zp_themeroot . '/images/zen-logo.jpg" alt="' . gettext('There were no images from which to select the random heading.') . '" />';
    } else {
        $randomAlbum = $randomImage->getAlbum();
        $randomAlt1 = $randomAlbum->getTitle();
        if ($randomAlbum->getAlbumId() != $id) {
            $randomAlbum = $randomAlbum->getParent();
            while (!is_null($randomAlbum) && $randomAlbum->getAlbumId() != $id) {
                $randomAlt1 = $randomAlbum->getTitle() . ":\n" . $randomAlt1;
                $randomAlbum = $randomAlbum->getParent();
            }
        }
        $randomImageURL = html_encode(getURL($randomImage));
        if (getOption('allow_upscale')) {
            $wide = 620;
            $high = 180;
        } else {
            $wide = min(620, $randomImage->getWidth());
            $high = min(180, $randomImage->getHeight());
        }
        echo "<a href='" . $randomImageURL . "' title='" . gettext('Random picture...') . "'>";
        $html = "<img src='" . html_encode($randomImage->getCustomImage(NULL, $wide, $high, $wide, $high, NULL, NULL, !getOption('Watermark_head_image'))) . "' width='{$wide}' height='{$high}' alt=" . '"' . html_encode($randomAlt1) . ":\n" . html_encode($randomImage->getTitle()) . '" />';
        $html = zp_apply_filter('custom_image_html', $html, false);
        echo $html;
        echo '</a>';
    }
    echo '</div>';
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:33,代码来源:functions.php


示例9: printHeadingImage

function printHeadingImage($randomImage)
{
    global $_zp_themeroot;
    $id = getAlbumId();
    echo '<div id="randomhead">';
    if (is_null($randomImage) || checkforPassword(true)) {
        echo '<img src="' . $_zp_themeroot . '/images/zen-logo.jpg" alt="' . gettext('There were no images from which to select the random heading.') . '" />';
    } else {
        $randomAlbum = $randomImage->getAlbum();
        $randomAlt1 = $randomAlbum->getTitle();
        if ($randomAlbum->getAlbumId() != $id) {
            $randomAlbum = $randomAlbum->getParent();
            while (!is_null($randomAlbum) && $randomAlbum->getAlbumId() != $id) {
                $randomAlt1 = $randomAlbum->getTitle() . ":\n" . $randomAlt1;
                $randomAlbum = $randomAlbum->getParent();
            }
        }
        $randomImageURL = htmlspecialchars(getURL($randomImage));
        if (getOption('allow_upscale')) {
            $wide = 620;
            $high = 180;
        } else {
            $wide = min(620, $randomImage->getWidth());
            $high = min(180, $randomImage->getHeight());
        }
        echo "<a href='" . $randomImageURL . "' title='" . gettext('Random picture...') . "'><img src='" . htmlspecialchars($randomImage->getCustomImage(NULL, $wide, $high, $wide, $high, NULL, NULL, !getOption('Watermark_head_image'))) . "' width={$wide} height={$high} alt=" . '"' . htmlspecialchars($randomAlt1, ENT_QUOTES) . ":\n" . htmlspecialchars($randomImage->getTitle(), ENT_QUOTES) . '" /></a>';
    }
    echo '</div>';
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:29,代码来源:customfunctions.php


示例10: getLogo

function getLogo($biller)
{
    $url = getURL();
    if (!empty($biller['logo'])) {
        return $url . "/templates/invoices/logos/{$biller['logo']}";
    } else {
        return $url . "/templates/invoices/logos/_default_blank_logo.png";
    }
}
开发者ID:alachaum,项目名称:simpleinvoices,代码行数:9,代码来源:functions.php


示例11: visitT_Heading

 function visitT_Heading($e)
 {
     static $list = array('', '<h3 id=\\"{$id}\\"><a href=\\"{$link}#{$id}\\"><span class=\\"sanchor\\">■</span></a> {$str}</h3>', '<h4 id=\\"{$id}\\">{$str}</h4>', '<h5 id=\\"{$id}\\">{$str}</h5>', '<h6 id=\\"{$id}\\">{$str}</h6>');
     $level = $e->getlevel();
     $id = 'id' . substr(md5($level . $e->getsource()), 0, 6);
     $link = getURL($e->getcontext()->pagename);
     $str = $e->getelem()->accept($this);
     return eval("return \"{$list[$level]}\";");
 }
开发者ID:riaf,项目名称:kinowiki,代码行数:9,代码来源:htmlconverter.inc.php


示例12: getLogo

function getLogo($biller) {
	$url = getURL();

	if(!empty($biller['logo'])) {
		return $url."/images/logos/$biller[logo]";
	}
	else {
		return $url."/images/logos/_default_blank_logo.png";
	}
}
开发者ID:CalhounGaming,项目名称:simpleinvoices,代码行数:10,代码来源:functions.php


示例13: __construct

 public function __construct(array $form = [])
 {
     $form += array('id' => 'form-module-manager', 'method' => 'post', 'action' => getURL('/module-manager/module'));
     $modules = array();
     foreach (app()->getModules() as $module) {
         if (!$module->isHidden()) {
             $modules[$module->name()] = new ModuleInfo($module, $form['id']);
         }
     }
     ksort($modules);
     parent::__construct('manager.module.list', ['list' => $modules, 'form' => $form]);
 }
开发者ID:opis-colibri,项目名称:manager,代码行数:12,代码来源:ModuleList.php


示例14: smarty_function_online_payment_link

function smarty_function_online_payment_link($params, &$smarty)
{
    global $LANG;
    global $siUrl;
    global $config;
    global $siUrl;
    $domain_id = domain_id::get($params['domain_id']);
    $url = getURL();
    if (in_array("paypal", explode(",", $params['type']))) {
        $link = "<a \n            href=\"https://www.paypal.com/xclick/?business=" . urlencode($params['business']) . "&item_name=" . urlencode($params['item_name']) . "&invoice=" . urlencode($params['invoice']) . "&amount=" . urlencode(number_format($params['amount'], 2, '.', '')) . "&currency_code=" . urlencode($params['currency_code']) . "&notify_url=" . urlencode($params['notify_url']) . "&return=" . urlencode($params['return_url']) . "&no_shipping=1&no_note=1&custom=domain_id:" . urlencode($domain_id) . "; \">";
        if ($params['include_image'] == "true") {
            $link .= "<img border='0' src='" . urlsafe($url) . "/images/common/pay_with_paypal.gif'/>";
        } else {
            $link .= htmlsafe($params['link_wording']);
        }
        $link .= "</a>";
        echo $link;
    }
    if (in_array("eway_shared", explode(",", $params['type']))) {
        $link = "<a \n            href=\"https://www.paypal.com/xclick/?business=" . urlencode($params['business'] . "\n            &item_name=" . urlencode($params['item_name']) . "&invoice=" . urlencode($params['invoice']) . "\n            &amount=" . urlencode(number_format($params['amount'], 2, '.', '')) . "&currency_code=" . $params['currency_code']) . "\n            &return=http://vcsweb.com.au&no_shipping=1&no_note=1\">";
        if ($params['include_image'] == "true") {
            $link .= "<img border='0' src='" . urlsafe($url) . "/images/common/pay_with_eway.gif'/>";
        } else {
            $link .= htmlsafe($params['link_wording']);
        }
        $link .= "</a>";
        echo $link;
    }
    if (in_array("paymentsgateway", explode(",", $params['type']))) {
        // $today = date('Y-m-d',$x);
        /*
          $datetime1 = new DateTime('0001-01-01');
          $datetime2 = new DateTime('now', new DateTimeZone('UTC'));
          $interval = $datetime1->diff($datetime2);
                //$interval->format('%a %h %i %s ') ;
                $seconds = ( $interval->format('%a') * 24 * 60 * 60) + ( $interval->format('%h') * 60 * 60 )+  ($interval->format('%i') * 60) + ( $interval->format('%s') ) ;
        */
        //$time = time() + 62135596800;
        //$seconds =  $time . '0000000';
        //get biller secure trans key here
        // $hash_info = $params['api_id'] ."|1|1.0|". number_format($params['amount'], 2, '.', '') ."|". $seconds. "|". $params['invoice'] ;
        //$hash = hash_hmac('md5', $hash_info, $params['transaction_password']) ;
        $link = "<a \n            href='https://swp.paymentsgateway.net/co/default.aspx?pg_api_login_id=" . urlencode($params['api_id']) . "&pg_billto_postal_name_company=" . urlencode($params['customer']['name']) . "&pg_version_number=1.0&pg_total_amount=" . urlencode(number_format($params['amount'], 2, '.', '')) . "&pg_transaction_order_number=" . urlencode($params['invoice']) . "&pg_billto_postal_name_first=" . urlencode($params['customer']['attention']) . "&pg_billto_postal_name_last=-&pg_billto_postal_street_line1=" . urlencode($params['customer']['street_address']) . "&pg_billto_postal_street_line2=" . urlencode($params['customer']['street_address2']) . "&pg_billto_postal_city=" . urlencode($params['customer']['city']) . "&pg_billto_postal_stateprov=" . urlencode($params['customer']['state']) . "&pg_billto_postal_postalcode=" . urlencode($params['customer']['zip_code']) . "&pg_billto_telecom_phone_number=" . urlencode($params['customer']['phone']) . "&pg_billto_online_email=" . $params['customer']['email'] . "&pg_consumerorderid=" . $params['invoice'] . "&pg_return_url=" . $siUrl . "/api-ach&pg_save_client=2'>";
        if ($params['include_image'] == "true") {
            $link .= "<img border='0' src='" . urlsafe($url) . "/images/common/pay_with_ach.gif'/>";
        } else {
            $link .= htmlsafe($params['link_wording']);
        }
        $link .= "</a>";
        echo $link;
    }
}
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:52,代码来源:function.online_payment_link.php


示例15: isLoggedInFilter

 public static function isLoggedInFilter(Context $context)
 {
     if (session()->get('is_system_admin', false)) {
         if ($context->path() === '/module-manager/login') {
             redirect(getURL('/module-manager'));
         }
     } else {
         if ($context->path() !== '/module-manager/login') {
             redirect(getURL('/module-manager/login'));
         }
     }
     return true;
 }
开发者ID:opis-colibri,项目名称:manager,代码行数:13,代码来源:Callback.php


示例16: get

 public function get()
 {
     $messages = $this->getMessages();
     if ($messages['hasErrors']) {
         $description = 'Fix all issues marked in red, then refresh this page.';
         $button = ['link' => '', 'text' => 'Reload page'];
     } else {
         $description = 'Green light! You may proceed to the next step.';
         $button = ['link' => getURL('/install/timezone'), 'text' => 'Next step'];
     }
     $jumbotron = ['title' => 'Verify requirements', 'description' => $description, 'logo' => asset('opis-colibri/system', 'opis-colibri.png'), 'button' => $button];
     return ['title' => 'Requirements', 'content' => view('install.page.requirements', ['messages' => $messages['list'], 'jumbotron' => view('install.jumbotron', $jumbotron)])];
 }
开发者ID:opis-colibri,项目名称:install,代码行数:13,代码来源:Requirements.php


示例17: doHeader

function doHeader($pageName)
{
    echo '
  <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="' . $pageName . '">
    <meta name="author" content="Eric Ghildyal">
    <link rel="icon" href="../img/favicon.ico">

    <title>' . $pageName . ' | ergh.co</title>

    <!-- Bootstrap core CSS -->
    <link href="http://ergh.co/new/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="http://ergh.co/new/css/custom.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="' . getURL() . '">ergh.co</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class=""><a href="' . getURL("aboutme.php", "content") . '">About Me</a></li>
            <li class=""><a href="' . getURL("blog.php") . '">Blog</a></li>
          </ul>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
    <div class="container">
  ';
}
开发者ID:EricGhildyal,项目名称:ergh.co-Backend,代码行数:51,代码来源:functions.php


示例18: login

 public function login()
 {
     $this->title("Login");
     $this->CSS("login", "users");
     if (POST("connect")) {
         $this->Users_Controller = $this->controller("Users_Controller");
         $this->Users_Controller->login("cpanel");
     } else {
         $this->vars["URL"] = getURL();
         $this->vars["view"] = $this->view("login", TRUE);
     }
     $this->render("include", $this->vars);
     $this->rendering("header", "footer");
 }
开发者ID:no2key,项目名称:MuuCMS,代码行数:14,代码来源:cpanel.php


示例19: enhanceTweet

 public function enhanceTweet($tweet)
 {
     $imgs = array();
     $links = findURLs($tweet['text']);
     foreach ($links as $link => $l) {
         if (is_array($l) && array_key_exists("host", $l) && array_key_exists("path", $l)) {
             $domain = domain($l['host']);
             $imgid = imgid($l['path']);
             if ($imgid) {
                 if ($domain == "twitpic.com") {
                     $imgs[$link] = "http://twitpic.com/show/thumb/" . $imgid;
                 }
                 if ($domain == "yfrog.com" || $domain == "yfrog.us") {
                     $imgs[$link] = "http://yfrog.com/" . $imgid . ".th.jpg";
                 }
                 if ($domain == "tweetphoto.com" || $domain == "pic.gd" || $domain == "plixi.com") {
                     $imgs[$link] = "http://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=" . $link;
                 }
                 if ($domain == "twitgoo.com") {
                     $values = simplexml_load_string(getURL("http://twitgoo.com/api/message/info/" . $imgid));
                     $imgs[$link] = (string) $values->thumburl;
                 }
                 if ($domain == "img.ly") {
                     $imgs[$link] = "http://img.ly/show/thumb/" . $imgid;
                 }
                 if ($domain == "pict.mobi") {
                     $imgs[$link] = "http://pict.mobi/show/thumb/" . $imgid;
                 }
                 if ($domain == "imgur.com") {
                     $imgs[$link] = "http://i.imgur.com/" . $imgid . "s.jpg";
                 }
                 if ($domain == "twitvid.com") {
                     $imgs[$link] = "http://images.twitvid.com/" . $imgid . ".jpg";
                 }
                 if ($domain == "instagr.am") {
                     $html = (string) getURL($link);
                     preg_match('/<meta property="og:image" content="[^"]+"\\/>/i', $html, $matches);
                     if (isset($matches[0])) {
                         $imgs[$link] = substr($matches[0], 35, -3);
                     }
                 }
             }
         }
     }
     if (count($imgs) > 0) {
         $tweet['extra']['imgs'] = $imgs;
     }
     return $tweet;
 }
开发者ID:JKLFA,项目名称:tweetnest,代码行数:49,代码来源:images.php


示例20: index

 public function index()
 {
     //组装分享信息数组
     $shareinfo = array('sharetitle' => "哈这里是分享标题可以自定义", 'sharedesc' => "这里是分享描述可以自定义", 'sharelink' => getURL(), 'shareimg' => 'http://res.eqxiu.com/group3/M00/39/B4/yq0KZFYA3dyADBSjAABdkK-lZ5w964.png');
     //获得appid和appsecret
     $appId = C("appID");
     $appSecret = C("appsecret");
     //实例化对象Jssdk,
     $jssdk = new Jssdk($appId, $appSecret);
     //获得分享功能数组
     $data = $jssdk->getSignPackage();
     //组装视图所需要的必要信息
     $this->assign('signPackage', array_merge($shareinfo, $data));
     //展示视图,具有分享功能的视图需要用到公共视图,具体参见实例
     $this->display('share');
 }
开发者ID:lnmpoo,项目名称:wechat_tp,代码行数:16,代码来源:JssdkController.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getURLAddon函数代码示例发布时间:2022-05-15
下一篇:
PHP getTypes函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap