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


PHP makeurl函数代码示例

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


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

示例1: adminheader

function adminheader()
{
    ?>
  
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
	<html xmlns="http://www.w3.org/1999/xhtml" >
	<head>
	   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<title>open - lifestyle linking</title>
		<meta name="description" content="Main Page" />
		<meta name="page-topic" content="Homepage" />
		
		<meta name="robots" content="all" />
		<meta name="author" content="" />
		<meta name="author" content="" />
		<meta name="Keywords" content="" /> 	
		
		<!--Main Style Sheet-->
		<!--session selector to pick which stylesheet based on context if this header is in a php function-->
		<link href="<?php 
    makeurl('controlpanel/css/admin.css');
    ?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		
	</head>
	
	<?php 
}
开发者ID:aboynejames,项目名称:phplifestylelinking,代码行数:30,代码来源:controlhead.php

示例2: send

 function send($sn, $subject, $content)
 {
     $this->order_sn = $sn;
     $this->subject = $subject;
     $this->content = $content;
     $this->service = "{$this->mode}/index.php";
     $this->notify_url = "{$this->mode}/{$this->by}.php";
     if (!is_dir(PAY_DIR . $this->mode) || !is_file(PAY_DIR . $this->service) || !is_file(PAY_DIR . $this->notify_url)) {
         $this->message(array('title' => '调用错误', 'content' => '指定支付接口不在在或不完整!'));
     }
     if (!$this->getData()) {
         $this->message(array('title' => '调用错误', 'content' => '获取指定参数失败!'));
     }
     $this->notify_url = PAY_PATH . $this->notify_url;
     $this->return_url = PAY_PATH . "{$this->mode}/return_{$this->by}.php";
     require_once PAY_DIR . $this->service;
     if (!function_exists('makeurl')) {
         $this->message(array('title' => '调用错误', 'content' => '未定义指定支付接口函数 makeurl!'));
     }
     if (!($url = makeurl($this))) {
         $this->message(array('title' => '调用错误', 'content' => '指定支付接口函数 makeurl 返回网关地址失败!'));
     }
     ob_end_clean();
     $GLOBALS['gzipenable'] ? ob_start('ob_gzhandler') : ob_start();
     $this->show($url);
 }
开发者ID:polarlight1989,项目名称:08cms,代码行数:26,代码来源:pay_base.php

示例3: ac_index

 function ac_index()
 {
     global $cfg_soft_lang;
     $row = 8;
     //推荐问题
     $digests = $this->question->get_digests(7);
     //待解决的问题
     $notoks = $this->question->get_all('status=0', 'ORDER BY disorder DESC, dateline DESC', $row);
     //新解决的问题
     $solutions = $this->question->get_all('status=1', 'ORDER BY solvetime DESC', $row);
     //高分悬赏问题
     $rewards = $this->question->get_all('status=0', 'ORDER BY reward DESC', $row);
     //获取问题数
     $solvenum = $this->question->get_total();
     //首页幻灯片
     if (file_exists(DEDEASK . "/data/cache/slide.inc")) {
         require_once DEDEASK . "/data/cache/slide.inc";
         if ($cfg_soft_lang == 'utf-8') {
             $row = AutoCharset(unserialize(utf82gb($data)));
         } else {
             $row = unserialize($data);
         }
     }
     //处理链接地址
     if ($GLOBALS['cfg_ask_rewrite'] == 'Y') {
         $digests = makerewurl($digests, 'id');
         $notoks = makerewurl($notoks, 'id');
         $solutions = makerewurl($solutions, 'id');
         $rewards = makerewurl($rewards, 'id');
     } else {
         $digests = makeurl($digests, 'id');
         $notoks = makeurl($notoks, 'id');
         $solutions = makeurl($solutions, 'id');
         $rewards = makeurl($rewards, 'id');
     }
     //设定变量值
     $GLOBALS['row'] = $row;
     $GLOBALS['digests'] = $digests;
     $GLOBALS['notoks'] = $notoks;
     $GLOBALS['rewards'] = $rewards;
     $GLOBALS['solutions'] = $solutions;
     $GLOBALS['solvenum'] = $solvenum;
     //载入模板
     $this->SetTemplate('index.htm');
     $this->Display();
 }
开发者ID:healthguo,项目名称:PHP,代码行数:46,代码来源:index.php

示例4: tname

 $avatarfeedstr = '<ul>';
 $query = $_SGLOBAL['db']->query("SELECT * FROM " . tname('feed') . " WHERE uid='{$updateuid}' AND friend='0' ORDER BY dateline DESC LIMIT 0,{$num}");
 while ($value = $_SGLOBAL['db']->fetch_array($query)) {
     if (ckfriend($value['uid'], $value['friend'], $value['target_ids'])) {
         if (!$updatetime) {
             $updatetime = $_SGLOBAL['timestamp'] - $value['dateline'];
         }
         $havefeed = true;
         realname_set($value['uid'], $value['username']);
         $value = mkfeed($value);
         if (!$value['appid']) {
             $src = "http://appicon.manyou.com/icons/{$value['icon']}";
         } else {
             $src = $siteurl . 'image/icon/' . $value['icon'] . '.gif';
         }
         $avatarfeedstr .= '<li><img class="appicon" src="' . $src . '" /> ' . makeurl($value['title_template']) . '</li>';
     }
 }
 $avatarfeedstr .= '</ul>';
 if (!$havefeed) {
     $avatarfeedstr = '';
 }
 if ($_GET['pagetype'] == 'profile' && $viewpro) {
     //统计相应的数值
     $albumnum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('album') . " WHERE uid='{$updateuid}'"), 0);
     $doingnum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('doing') . " WHERE uid='{$updateuid}'"), 0);
     $blognum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('blog') . " WHERE uid='{$updateuid}'"), 0);
     $threadnum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('thread') . " WHERE uid='{$updateuid}'"), 0);
     $tagspacenum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('tagspace') . " WHERE uid='{$updateuid}'"), 0);
     $contstr = '';
     if ($albumnum) {
开发者ID:shiyake,项目名称:php-ihome,代码行数:31,代码来源:js.php

示例5: makeurl

         if ($cur_topic['has_posted'] == $pun_user['id']) {
             $subject = '<strong>&middot;</strong>&nbsp;' . $subject;
         } else {
             $subject = '&nbsp;&nbsp;' . $subject;
         }
     }
 } else {
     // No poll
     //var_dump( $cur_topic['t.subject'] );
     if ($cur_topic['moved_to'] != 0) {
         $subject = $lang_forum['Moved'] . ': <a href="' . makeurl("t", $cur_topic['moved_to'], $cur_topic['subject']) . '">' . pun_htmlspecialchars($cur_topic['subject']) . '</a> <span class="byuser">' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($cur_topic['poster']) . '</span>';
     } else {
         if ($cur_topic['closed'] == '0') {
             $subject = '<a href="' . makeurl("t", $cur_topic['id'], $cur_topic['subject']) . '">' . pun_htmlspecialchars($cur_topic['subject']) . '</a> <span class="byuser">' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($cur_topic['poster']) . '</span>';
         } else {
             $subject = '<a href="' . makeurl("t", $cur_topic['id'], $cur_topic['subject']) . '">' . pun_htmlspecialchars($cur_topic['subject']) . '</a> <span class="byuser">' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($cur_topic['poster']) . '</span>';
             $icon_text = $lang_common['Closed icon'];
             $item_status = 'iclosed';
         }
     }
     if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null) {
         $icon_text .= ' ' . $lang_common['New icon'];
         $item_status .= ' inew';
         $icon_type = 'icon inew';
         $subject = '<strong>' . $subject . '</strong>';
         $subject_new_posts = '<span class="newtext">[&nbsp;<a href="viewtopic.php?id=' . $cur_topic['id'] . '&amp;action=new" title="' . $lang_common['New posts info'] . '">' . $lang_common['New posts'] . '</a>&nbsp;]</span>';
     } else {
         $subject_new_posts = null;
     }
     // Should we display the dot or not? :)
     if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1') {
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:viewforum.php

示例6: array

if(!defined('IN_UCHOME')) {
	exit('Access Denied');
}

$wherearr = $doinglist = array();
$sql = '';
$uid = !empty($_GET['uid']) ? trim($_GET['uid']) : '';

$mood = !empty($_GET['mood']) ? intval($_GET['mood']) : 0;
$start = !empty($_GET['start']) ? intval($_GET['start']) : 0;
$limit = !empty($_GET['limit']) ? intval($_GET['limit']) : 10;

$uids = getdotstring($uid, 'int');
if($uids) $wherearr[] = 'uid IN ('.$uids.')';
if($mood)  $wherearr[] = 'mood>\'0\'';

if($wherearr)	$sql = 'WHERE '.implode(' AND ', $wherearr);

$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname('doing')." $sql  ORDER BY dateline DESC LIMIT $start,$limit");
while($value = $_SGLOBAL['db']->fetch_array($query)) {
	$value['message'] = makeurl($value['message']);
	$value['userlink'] = $siteurl.'space.php?uid='.$value['uid'];
	$value['link'] = $siteurl.'space.php?uid='.$value['uid'].'&do=doing&doid='.$value['doid'];
	$value['photo'] = ckavatar($value['uid']) ? avatar($value['uid'], 'small',true) : UC_API.'/images/noavatar_small.gif';
	$value['dateline'] = sgmdate('m-d H:i', $value['dateline']);
	$value = sstripslashes($value);
	$doinglist[] = $value;
}

echo serialize($doinglist);
?>
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:doing.php

示例7: makeurl

		  </div><!-- end #topTitle -->
		 
		  <div id="topNav">
		  	<!--Site Functions Navigation-->
				<ul>
					<li><a href="<?php 
makeurl('index.php');
?>
">Home</a> </li>
					<!-- <li><a href="<?php 
makeurl('');
?>
" id="current">Sign-in/openID</a></li> -->
					<!-- <li><a href="<?php 
makeurl('register.php');
?>
" >Register</a> </li>  -->
				    <li><a href="<?php 
makeurl('help.php');
?>
">Help</a></li>
				</ul>
			
			<h2 class="clear">Welcome to lifestylelinking</h2>         
			
		  </div><!-- end #topNav -->
	
	 </div><!-- end #header -->

	   
	 
开发者ID:aboynejames,项目名称:phplifestylelinking,代码行数:28,代码来源:header.php

示例8: IN

    $wherearr[] = "uid IN ('0',{$space['feedfriend']})";
}
if ($wherearr) {
    $sql = 'WHERE ' . implode(' AND ', $wherearr);
}
$feed_list = array();
$query = $_SGLOBAL['db']->query("SELECT * FROM " . tname('feed') . " {$sql} ORDER BY dateline DESC LIMIT {$start},{$limit}");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
    if (ckfriend($value['uid'], $value['friend'], $value['target_ids'])) {
        realname_set($value['uid'], $value['username']);
        $feed_list[] = $value;
    }
}
//КµГыґ¦Ан
realname_get();
foreach ($feed_list as $value) {
    $value = mkfeed($value);
    $value['dateline'] = sgmdate('m-d H:i', $value['dateline']);
    if (!$value['appid']) {
        $value['iconurl'] = "http://appicon.manyou.com/icons/{$value['icon']}";
    } else {
        $value['iconurl'] = $siteurl . 'image/icon/' . $value['icon'] . '.gif';
    }
    $value['title_template'] = makeurl($value['title_template']);
    $value['body_template'] = makeurl($value['body_template']);
    $value['userlink'] = $siteurl . 'space.php?uid=' . $value['uid'];
    $value['photo'] = ckavatar($value['uid']) ? avatar($value['uid'], 'small', true) : UC_API . '/images/noavatar_small.gif';
    $value = sstripslashes($value);
    $feedlist[] = $value;
}
echo serialize($feedlist);
开发者ID:shiyake,项目名称:php-ihome,代码行数:31,代码来源:feed.php

示例9: pageheader

function pageheader()
{
    ?>
  
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
	<html xmlns="http://www.w3.org/1999/xhtml" >
	<head>
	   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<title>mepath - lifestyle linking</title>
		<meta name="description" content="Main Page" />
		<meta name="page-topic" content="Homepage" />
		
		<meta name="robots" content="all" />
		<meta name="author" content="" />
		<meta name="author" content="" />
		<meta name="Keywords" content="" /> 	
		
		<!--Main Style Sheet-->
		<!--session selector to pick which stylesheet based on context if this header is in a php function-->
		<link href="<?php 
    makeurl('display/css/style.css');
    ?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		<?php 
    if ($_SESSION[metext] == 5) {
        ?>
    
		<link href="<?php 
        makeurl('display/css/mepathmake.css');
        ?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		<?php 
    }
    ?>
		
		<!--Javascript -->
		<script type="text/javascript" language="javascript" src="<?php 
    makeurl('display/javascript/mepathjs.js');
    ?>
"></script>  
		
    </head>
	
	<?php 
}
开发者ID:aboynejames,项目名称:phplifestylelinking,代码行数:47,代码来源:startpage.php

示例10: makeurl

                                                        </div>
                                                </div>
                                        </td>
                                        <td class="tc2"><?php 
                echo $forum;
                ?>
</td>
                                        <td class="tc3"><?php 
                echo $search_set[$i]['num_replies'];
                ?>
</td>
                                        <?php 
                if ($search_set[$i]['question'] == "") {
                    ?>
<td class="tcr"><?php 
                    echo '<a href="' . makeurl("p", $search_set[$i]['last_post_id'], format_time($search_set[$i]['last_post'])) . '#p' . $search_set[$i]['last_post_id'] . '">' . format_time($search_set[$i]['last_post']) . '</a> ' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($search_set[$i]['last_poster']);
                    ?>
</td><?php 
                } else {
                    ?>
<td class="tcr"><?php 
                    echo '<a href="viewpoll.php?pid=' . $search_set[$i]['last_post_id'] . '#p' . $search_set[$i]['last_post_id'] . '">' . format_time($search_set[$i]['last_post']) . '</a> ' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($search_set[$i]['last_poster']);
                    ?>
</td><?php 
                }
                ?>
                                </tr>
<?php 
            }
            /*			else
            			{
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:search_chatbox.php

示例11: lifestylesummary

</div> <!-- closes lifestyle_menu-->	
    
<!--from display/me/homstart.php-->
<div id="magtext">
    <h3 class="left"> <?php 
lifestylesummary();
?>
</h3>

<h3 class="right">Last 24hrs
     	<a href="http://75.101.138.19/lifestylelinking/rsscode/index.php?lifestyleid=<?php 
echo $lifestylelid;
?>
">
      	<img src="<?php 
makeurl('display/images/rssicon.gif');
?>
" alt="rss icon" title="rssicon"/></a>
      </h3>
      
<?php 
streamstyle();
?>
					  
		     
<?php 
displayphotos();
?>
   
<?php 
displayvideo();
开发者ID:aboynejames,项目名称:phplifestylelinking,代码行数:31,代码来源:index.php

示例12: makeurl

<div id="footer">
		<span class="copyright-notice">
			<a href="<?php 
makeurl('termsofuse.php');
?>
">Terms &amp; Conditions</a> &middot;  
			<a href="<?php 
makeurl('privacy.php');
?>
">Privacy Policy</a>

			&copy; 2010 
		</span> 
		<a href="<?php 
makeurl('about.php');
?>
">About  LL</a> &middot; 
		<a href="<?php 
makeurl('contact.php');
?>
">Contact</a>
 </div><!-- end #footer -->
 </div><!-- end #container -->

</body>
</html>
开发者ID:aboynejames,项目名称:phplifestylelinking,代码行数:26,代码来源:footer.php

示例13: makeurl

	<head>
	   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<title>open - lifestyle linking</title>
		<meta name="description" content="Main Page" />
		<meta name="page-topic" content="Homepage" />
		
		<meta name="robots" content="all" />
		<meta name="author" content="" />
		<meta name="author" content="" />
		<meta name="Keywords" content="" /> 	
		
		<!--Main Style Sheet-->
		<!--session selector to pick which stylesheet based on context if this header is in a php function-->
		<link href="<?php 
makeurl('controlpanel/css/admin.css');
?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		
	</head>


<body>

<?php 
// include the page header
include_once ABSPATH . 'header.php';
?>
  

<div class="mid-wrapper">
开发者ID:aboynejames,项目名称:phplifestylelinking,代码行数:31,代码来源:login.php

示例14: pun_htmlspecialchars

		<p class="postlink conr"><?php 
echo $post_link;
?>
</p>
		<p class="pagelink conl"><?php 
echo $paging_links;
?>
</p>
<?php 
if ($cur_topic['parent_forum']) {
    echo "\t\t" . '<ul><li><a href="index.php">' . $lang_common['Index'] . '</a>&#160;</li><li>&raquo;&#160;<a href="viewforum.php?id=' . $cur_topic['parent_forum_id'] . '">' . pun_htmlspecialchars($cur_topic['parent_forum']) . '</a>&#160;</li><li>&raquo;&#160;<a href="viewforum.php?id=' . $cur_topic['forum_id'] . '">' . pun_htmlspecialchars($cur_topic['forum_name']) . '</a>&#160;</li><li>&raquo;&#160;' . pun_htmlspecialchars($cur_topic['subject']) . '</li></ul>';
} else {
    echo "\t\t" . '<ul><li><a href="index.php">' . $lang_common['Index'];
    ?>
 </a></li><li>&nbsp;&raquo;&nbsp;<a href="<?php 
    echo makeurl("f", $cur_topic['forum_id'], $cur_topic['forum_name']);
    ?>
"><?php 
    echo pun_htmlspecialchars($cur_topic['forum_name']);
    ?>
</a></li><li>&nbsp;&raquo;&nbsp;<?php 
    echo pun_htmlspecialchars($cur_topic['subject']);
    ?>
</li></ul>
<?php 
}
?>
		<?php 
echo $subscraction;
?>
	</div>
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:viewtopic.php

示例15: unserialize

    } else {
        $last_post = '&nbsp;';
    }
    if ($cur_forum['moderators'] != '') {
        $mods_array = unserialize($cur_forum['moderators']);
        $moderators = array();
        while (list($mod_username, $mod_id) = @each($mods_array)) {
            $moderators[] = '<a href="profile.php?id=' . $mod_id . '">' . pun_htmlspecialchars($mod_username) . '</a>';
        }
        $moderators = "\t\t\t\t\t\t\t\t" . '<p><em>(' . $lang_common['Moderated by'] . '</em> ' . implode(', ', $moderators) . ')</p>' . "\n";
    }
    $liste_sous_forums = array();
    if (!empty($tab_sous_forums)) {
        foreach ($tab_sous_forums as $sous_forums) {
            if ($cur_forum['fid'] == $sous_forums[2]) {
                $liste_sous_forums[] = '<a href="' . makeurl("f", $sous_forums[0], $sous_forums[1]) . '">' . pun_htmlspecialchars($sous_forums[1]) . '</a>';
            }
        }
        if (!empty($liste_sous_forums)) {
            $liste_sous_forums = "\t\t\t\t\t\t\t\t" . '<p><em>' . $lang_index['subforums'] . ' :</em> ' . implode(', ', $liste_sous_forums) . '</p>' . "\n";
        }
    }
    ?>
                 <tr<?php 
    if ($item_status != '') {
        echo ' class="' . $item_status . '"';
    }
    ?>
>
                    <td class="tcl">
                        <div class="intd">
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:index.php


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