本文整理汇总了PHP中tpl_get_current_page函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_get_current_page函数的具体用法?PHP tpl_get_current_page怎么用?PHP tpl_get_current_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_get_current_page函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: myUrlEncode
<?php
//prepare the templates and include all neccessary
if (!isset($rootpath)) {
$rootpath = '';
}
require_once './lib/common.inc.php';
global $stat_menu, $mnu_siteid;
//Preprocessing
if ($error == false) {
//user logged in?
if ($usr == false) {
$target = myUrlEncode(tpl_get_current_page());
tpl_redirect('login.php?target=' . $target);
} else {
// check for old-style parameters
if (isset($_REQUEST['userid'])) {
$user_id = $_REQUEST['userid'];
} else {
$user_id = $usr['userid'];
}
tpl_set_var('userid', $user_id);
require $stylepath . '/viewprofile.inc.php';
require $stylepath . '/lib/icons.inc.php';
$tplname = 'viewprofile';
if ($user_id != $usr['userid']) {
// do not highlight My stats menu item if browsing other users stats
$mnu_siteid = 'start';
}
$stat_menu = array('title' => tr('Statictics'), 'menustring' => tr('Statictics'), 'siteid' => 'statlisting', 'navicolor' => '#E8DDE4', 'visible' => false, 'filename' => 'viewprofile.php?userid=' . $user_id, 'submenu' => array(array('title' => tr('graph_find'), 'menustring' => tr('graph_find'), 'visible' => true, 'filename' => 'ustatsg2.php?userid=' . $user_id, 'newwindow' => false, 'siteid' => 'findstat', 'icon' => 'images/actions/stat'), array('title' => tr('graph_created'), 'menustring' => tr('graph_created'), 'visible' => true, 'filename' => 'ustatsg1.php?userid=' . $user_id, 'newwindow' => false, 'siteid' => 'createstat', 'icon' => 'images/actions/stat')));
$content = "";
开发者ID:pawelzielak,项目名称:opencaching-pl,代码行数:31,代码来源:viewprofile.php
示例2: urlencode
<?php
//prepare the templates and include all neccessary
require_once './lib/common.inc.php';
//Preprocessing
if ($error == false) {
//user logged in?
if ($usr == false) {
$target = urlencode(tpl_get_current_page());
tpl_redirect('login.php?target=' . $target);
} else {
$tplname = 'removemp3';
// gibt es nicht ...
require_once $stylepath . '/removemp3.inc.php';
$uuid = isset($_REQUEST['uuid']) ? $_REQUEST['uuid'] : '';
$allok = true;
if ($uuid == '') {
$allok = false;
}
if ($allok == true) {
$rs = sql("SELECT `object_type`, `object_id`, `user_id`, `id`, `url` FROM `mp3` WHERE `uuid`='&1'", $uuid);
if (mysql_num_rows($rs) == 0) {
$allok = false;
}
}
if ($allok == true) {
$r = sql_fetch_array($rs);
mysql_free_result($rs);
$type = $r['object_type'];
$objectid = $r['object_id'];
$user_id = $r['user_id'];
开发者ID:pawelzielak,项目名称:opencaching-pl,代码行数:31,代码来源:removemp3.php
示例3: handleUserLogged
function handleUserLogged()
{
// check if user logged in - $usr is set in common.inc.php
global $usr;
if ($usr == false) {
// user not logged - redirect to login page...
$target = urlencode(tpl_get_current_page());
tpl_redirect('login.php?target=' . $target);
exit;
}
}
开发者ID:kojoty,项目名称:opencaching-pl,代码行数:11,代码来源:cachemap3_common.php
注:本文中的tpl_get_current_page函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论