本文整理汇总了PHP中show_title函数的典型用法代码示例。如果您正苦于以下问题:PHP show_title函数的具体用法?PHP show_title怎么用?PHP show_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_title函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unsubscribe
function unsubscribe($forum, $thread, $user)
{
BoincSubscription::delete($user->id, $thread->id);
if (!BoincSubscription::lookup($user->id, $thread->id)) {
page_head(tra("Unsubscription successful"));
show_forum_header($user);
show_title($forum, $thread);
echo "<p>" . tra("You are no longer subscribed to %1. You will no longer receive notifications for this thread.", "<b>" . cleanup_title($thread->title) . "</b>");
} else {
page_head(tra("Unsubscription failed"));
echo "<p>" . tra("We are currently unable to unsubscribe you from %1. Please try again later..", "<b>" . cleanup_title($thread->title) . "</b>");
}
echo "</p><p><br /><a href=\"forum_thread.php?id=" . $thread->id . "\">" . tra("Return to thread") . "</a></p>";
page_tail();
}
示例2: isset
#---------------------------------------------#
# ********* RotorCMS ********* #
# Author : Vantuz #
# Email : visavi.net@mail.ru #
# Site : http://visavi.net #
# ICQ : 36-44-66 #
# Skype : vantuzilla #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
show_title('Галерея аватаров');
if (is_user()) {
switch ($act) {
############################################################################################
## Главная страница ##
############################################################################################
case 'index':
echo '<b>Выбрать</b> или <a href="avatars.php?act=load">Загрузить</a><br /><br />';
$total = DB::run()->querySingle("SELECT count(*) FROM `avatars`;");
if ($total > 0) {
if ($start >= $total) {
$start = 0;
}
$queryav = DB::run()->query("SELECT * FROM `avatars` ORDER BY `avatars_id` ASC LIMIT " . $start . ", " . $config['avlist'] . ";");
while ($data = $queryav->fetch()) {
echo '<img src="/images/avatars/' . $data['avatars_name'] . '" alt="" />
示例3: isset
<?php
#---------------------------------------------#
# ********* RotorCMS ********* #
# Author : Vantuz #
# Email : visavi.net@mail.ru #
# Site : http://visavi.net #
# ICQ : 36-44-66 #
# Skype : vantuzilla #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
show_title('Регистрация');
if ($config['openreg'] == 1) {
if (!is_user()) {
if (empty($_SESSION['reguser'])) {
switch ($act) {
############################################################################################
## Главная страница ##
############################################################################################
case 'index':
echo 'Регистрация на сайте означает что вы ознакомлены и согласны с <b><a href="rules.php">правилами</a></b> нашего сайта<br />';
echo 'Длина логина или пароля должна быть от 3 до 20 символов<br />';
echo 'В полях логин и пароль разрешено использовать только знаки латинского алфавита и цифры, а также знак дефис!<br />';
if ($config['regkeys'] == 1 && !empty($config['regmail'])) {
echo '<img src="/images/img/warning.gif" alt="image" /> <span style="color:#ff0000"><b>Включено подтверждение регистрации!</b> Вам на почтовый ящик будет выслан мастер-ключ, который необходим для подтверждения регистрации!</span><br />';
}
if ($config['regkeys'] == 2) {
示例4: Copyright
<?php
##################################################################
# Karnaf HelpDesk System - Copyright (C) 2001-2015 Kobi Shmueli. #
# See the LICENSE file for more information. #
##################################################################
require_once "karnaf_header.php";
CheckOperSession();
$id = $_GET['id'];
if (empty($id) || !is_numeric($id)) {
safe_die("Invalid Ticket ID!");
}
show_title("Ticket #" . $id);
make_menus("Karnaf (HelpDesk)");
$query = squery("SELECT t.id,t.randcode,t.status,t.description,t.unick,t.ufullname,t.uemail,t.uphone,t.uip,t.rep_u,\nt.rep_g,t.open_time,t.opened_by,t.is_real,t.is_private,t.email_upd,t.memo_upd,c1.name AS cat1_name,c2.name AS cat2_name,c3.name AS\ncat3_name,s.status_name,up.priority_name AS upriority,sp.priority_name AS priority,g.private_actions,t.merged_to,t.cc,up.priority_id \nAS upriority_id, sp.priority_id,t.ext1,t.ext2,t.ext3,t.title \nFROM (karnaf_tickets AS t INNER JOIN karnaf_cat3 AS c3 ON c3.id=t.cat3_id INNER JOIN karnaf_cat2 AS c2 ON c2.id=c3.parent\nINNER JOIN karnaf_cat1 AS c1 ON c1.id=c2.parent INNER JOIN karnaf_statuses AS s ON s.status_id=t.status INNER JOIN karnaf_priorities AS up ON\nup.priority_id=t.upriority INNER JOIN karnaf_priorities AS sp ON sp.priority_id=t.priority LEFT JOIN groups AS g ON g.name=t.rep_g) WHERE t.id=%d", $id);
if (!($result = sql_fetch_array($query))) {
safe_die("Invalid Ticket ID!");
}
if (!IsGroupMember($result['rep_g']) && !IsKarnafAdminSession()) {
AccessDenied("Ticket is assigned to another team.");
}
$autoload = 1;
if (isset($_GET['reassign'])) {
$autoload = 5;
}
$autostatus = "";
if (isset($_POST['is_private']) && $_POST['is_private'] == "on") {
$is_private = 1;
} else {
$is_private = 0;
}
示例5: show_error
show_error('Ошибка! Неверный идентификатор сессии, повторите действие!');
}
} else {
show_login('Вы не авторизованы, чтобы участвовать в голосованиях, необходимо');
}
echo '<img src="/images/img/back.gif" alt="image" /> <a href="index.php?act=poll&id=' . $id . '">Вернуться</a><br />';
echo '<img src="/images/img/reload.gif" alt="image" /> <a href="index.php">К голосованиям</a><br />';
break;
############################################################################################
## Голосование ##
############################################################################################
############################################################################################
## Голосование ##
############################################################################################
case 'voters':
show_title('Последние проголосовавшие');
$votes = DB::run()->queryFetch("SELECT * FROM `vote` WHERE `vote_id`=? LIMIT 1;", array($id));
if (!empty($votes)) {
$config['newtitle'] = $votes['vote_title'];
echo '<img src="/images/img/stat.gif" alt="image" /> <b>' . $votes['vote_title'] . '</b> (Голосов: ' . $votes['vote_count'] . ')<br /><br />';
$querypoll = DB::run()->query("SELECT `poll_user`, `poll_time` FROM `votepoll` WHERE `poll_vote_id`=? ORDER BY `poll_time` DESC LIMIT 20;", array($id));
$polls = $querypoll->fetchAll();
foreach ($polls as $poll) {
echo user_gender($poll['poll_user']) . profile($poll['poll_user']) . ' (' . date_fixed($poll['poll_time']) . ')<br />';
}
echo '<br />';
} else {
show_error('Ошибка! Данного голосования не существует!');
}
echo '<img src="/images/img/back.gif" alt="image" /> <a href="index.php?act=poll&id=' . $id . '">Вернуться</a><br />';
echo '<img src="/images/img/reload.gif" alt="image" /> <a href="index.php">К голосованиям</a><br />';
示例6: render
$querytopic = DB::run()->query("SELECT `topics`.*, `forums_title` FROM `topics` LEFT JOIN `forums` ON `topics`.`topics_forums_id`=`forums`.`forums_id` ORDER BY `topics_last_time` DESC LIMIT " . $start . ", " . $config['forumtem'] . ";");
$topics = $querytopic->fetchAll();
render('forum/new_themes', array('topics' => $topics));
page_strnavigation('new.php?act=themes&', $config['forumtem'], $start, $total);
} else {
show_error('Созданных тем еще нет!');
}
break;
############################################################################################
## Последние сообщения ##
############################################################################################
############################################################################################
## Последние сообщения ##
############################################################################################
case 'posts':
show_title('Список последних сообщений');
$total = DB::run()->querySingle("SELECT count(*) FROM `posts`;");
if ($total > 0) {
if ($total > 100) {
$total = 100;
}
if ($start >= $total) {
$start = last_page($total, $config['forumpost']);
}
$querypost = DB::run()->query("SELECT `posts`.*, `topics_title`, `topics_posts` FROM `posts` LEFT JOIN `topics` ON `posts`.`posts_topics_id`=`topics`.`topics_id` ORDER BY `posts_time` DESC LIMIT " . $start . ", " . $config['forumpost'] . ";");
$posts = $querypost->fetchAll();
render('forum/new_posts', array('posts' => $posts, 'start' => $start));
page_strnavigation('new.php?act=posts&', $config['forumpost'], $start, $total);
} else {
show_error('Сообщений еще нет!');
}
示例7: Copyright
<?php
##################################################################
# Karnaf HelpDesk System - Copyright (C) 2001-2015 Kobi Shmueli. #
# See the LICENSE file for more information. #
##################################################################
$title = "New Ticket";
require_once "karnaf_header.php";
show_title("New Ticket");
if (IsKarnafOperSession()) {
$isoper = 1;
} else {
$isoper = 0;
}
if (isset($_POST['cat3'])) {
if ($isoper) {
$uip = $_POST['uip'];
} else {
$uip = get_session_ip();
}
$randstr = RandomNumber(10);
$priority = 0;
$rep_u = "";
/* It would make sense to have the helpdesk team get tickets by default (unless the category assigns them to another team) */
$rep_g = KARNAF_DEFAULT_GROUP;
$query = squery("SELECT id,name,default_group,default_priority FROM karnaf_cat3 WHERE id=%d", $_POST['cat3']);
if ($result = sql_fetch_array($query)) {
if (!empty($result['default_group'])) {
$rep_g = $result['default_group'];
}
$priority = (int) $result['default_priority'];
示例8: set_time_limit
# Skype : vantuzilla #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
if (function_exists('set_time_limit')) {
set_time_limit(600);
}
if (isset($_GET['act'])) {
$act = check($_GET['act']);
} else {
$act = 'index';
}
if (is_admin(array(101))) {
show_title('Backup базы данных');
switch ($act) {
############################################################################################
## Главная страница ##
############################################################################################
case 'index':
$globfiles = glob(DATADIR . "/backup/*.{zip,gz,bz2,sql}", GLOB_BRACE);
$total = count($globfiles);
if (is_array($globfiles) && $total > 0) {
arsort($globfiles);
foreach ($globfiles as $value) {
echo '<img src="/images/img/zip.gif" alt="image" /> <b>' . basename($value) . '</b> (' . read_file($value) . ') (<a href="backup.php?act=del&backup=' . basename($value) . '&uid=' . $_SESSION['token'] . '">Удалить</a>)<br />';
}
echo '<br />Всего бэкапов: <b>' . $total . '</b><br /><br />';
} else {
show_error('Бэкапов еще нет!');
示例9: mt_rand
# ********* ROTORCMS ********* #
# Made by : VANTUZ #
# E-mail : visavi.net@mail.ru #
# Site : http://pizdec.ru #
# WAP-Site : http://visavi.net #
# ICQ : 36-44-66 #
# Вы не имеете право вносить изменения в код скрипта #
# для его дальнейшего распространения #
#-----------------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$rand = mt_rand(100, 999);
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
show_title('Наперстки');
if (is_user()) {
switch ($act) {
# ###########################################################################################
# # Главная страница ##
# ###########################################################################################
case "index":
echo '<img src="/images/naperstki/1.gif" alt="image" /><br /><br />';
echo '<b><a href="/games/naperstki.php?act=choice">Играть</a></b><br /><br />';
echo 'В наличии: ' . moneys($udata['users_money']) . '<br /><br />';
echo '<img src="/images/img/faq.gif" alt="image" /> <a href="/games/naperstki.php?act=faq">Правила</a><br />';
break;
# ###########################################################################################
# # Выбор наперстка ##
# ###########################################################################################
# ###########################################################################################
示例10: check
# Site : http://pizdec.ru #
# WAP-Site : http://visavi.net #
# ICQ : 36-44-66 #
# Вы не имеете право вносить изменения в код скрипта #
# для его дальнейшего распространения #
#-----------------------------------------------------#
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/" . $config['themes'] . "/index.php";
if (isset($_GET['action'])) {
$action = check($_GET['action']);
} else {
$action = "";
}
show_title('partners.gif', 'Восстановление пароля');
if (!is_user()) {
############################################################################################
## Главная страница ##
############################################################################################
if ($action == "") {
if (isset($_COOKIE['cookname'])) {
$cookname = check($_COOKIE['cookname']);
} else {
$cookname = "";
}
echo 'Введите свой логин и код для проверки<br />';
echo 'Инструкция по восстановлению будет выслана на электронный адрес указанный в профиле<br />';
echo 'Восстанавливать пароль можно не чаще чем раз в 12 часов<br /><br />';
echo '<form method="post" action="lostpassword.php?action=send&' . SID . '">';
echo 'Логин:<br />';
示例11: show_title
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<?php
echo show_title($_GET[id]);
?>
<link rel="stylesheet" href="/styles/all.css">
<script src="/scripts/scripts.js"></script>
<script src="/scripts/dd_menu.js"></script>
<script src="/scripts/banner.js"></script>
<script type="text/javascript" src="/scripts/jquery-1.9.0.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="/scripts/autocomplete.js"></script>
<script type="text/javascript" src="/scripts/prototype.js"></script>
<script type="text/javascript" src="/scripts/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/scripts/lightbox.js"></script>
<link rel="stylesheet" href="/styles/lightbox.css" type="text/css" media="screen" />
<link rel="icon" type="image/png" href="tool.png" />
<link rel="shortcut icon" href="tool.png" type="image/png">
</head>
<body>
<center>
<table id="Table_Top" width="100%" border="0" cellpadding="0" height="100%" style="min-height:100%" cellspacing="0" align="center">
<tr valign="top" height="83px">
示例12: abs
$start = abs(intval($_GET['start']));
} else {
$start = 0;
}
if (isset($_GET['id'])) {
$id = abs(intval($_GET['id']));
} else {
$id = 0;
}
if (isset($_GET['type'])) {
$type = abs(intval($_GET['type']));
} else {
$type = 0;
}
if (is_admin(array(101, 102))) {
show_title('Предложения и проблемы');
switch ($act) {
############################################################################################
## Главная страница ##
############################################################################################
case 'index':
$type2 = empty($type) ? 1 : 0;
$total = DB::run()->querySingle("SELECT count(*) FROM `offers` WHERE `offers_type`=?;", array($type));
$total2 = DB::run()->querySingle("SELECT count(*) FROM `offers` WHERE `offers_type`=?;", array($type2));
echo '<img src="/images/img/document.gif" alt="image" /> ';
if (empty($type)) {
echo '<b>Предложения</b> (' . $total . ') / <a href="offers.php?type=1">Проблемы</a> (' . $total2 . ')';
} else {
echo '<a href="offers.php?type=0">Предложения</a> (' . $total2 . ') / <b>Проблемы</b> (' . $total . ')';
}
echo ' / <a href="/pages/offers.php?type=' . $type . '&start=' . $start . '">Обзор</a><hr />';
示例13: isset
<?php
#---------------------------------------------#
# ********* RotorCMS ********* #
# Author : Vantuz #
# Email : visavi.net@mail.ru #
# Site : http://visavi.net #
# ICQ : 36-44-66 #
# Skype : vantuzilla #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
show_title('Кто-где');
$total = DB::run()->querySingle("SELECT count(*) FROM `visit`;");
if ($total > 0) {
if ($total > $config['lastusers']) {
$total = $config['lastusers'];
}
if ($start >= $total) {
$start = 0;
}
$queryvisit = DB::run()->query("SELECT * FROM `visit` ORDER BY `visit_nowtime` DESC LIMIT " . $start . ", " . $config['showuser'] . ";");
while ($data = $queryvisit->fetch()) {
if (SITETIME - $data['visit_nowtime'] < 600) {
$lastvisit = '<span style="color:#00ff00">Oнлайн</span>';
} else {
$lastvisit = formattime(SITETIME - $data['visit_nowtime'], 0) . ' назад';
}
示例14: check
$act = check($_GET['act']);
} else {
$act = 'index';
}
if (isset($_GET['start'])) {
$start = abs(intval($_GET['start']));
} else {
$start = 0;
}
if (isset($_GET['id'])) {
$id = abs(intval($_GET['id']));
} else {
$id = 0;
}
if (is_admin()) {
show_title('Просмотр новых файлов');
switch ($act) {
############################################################################################
## Главная страница ##
############################################################################################
case 'index':
$total = DB::run()->querySingle("SELECT count(*) FROM `downs` WHERE `downs_active`=?;", array(0));
if ($total > 0) {
if ($start >= $total) {
$start = 0;
}
$querynew = DB::run()->query("SELECT `downs`.*, `cats_name` FROM `downs` LEFT JOIN `cats` ON `downs`.`downs_cats_id`=`cats`.`cats_id` WHERE `downs_active`=? ORDER BY `downs_app` DESC, `downs_time` DESC LIMIT " . $start . ", " . $config['downlist'] . ";", array(0));
echo '<form action="newload.php?act=deldown&start=' . $start . '&uid=' . $_SESSION['token'] . '" method="post">';
while ($data = $querynew->fetch()) {
echo '<div class="b">';
echo '<input type="checkbox" name="del[]" value="' . $data['downs_id'] . '" /> ';
示例15: abs
$id = abs(intval($_GET['id']));
} else {
$id = 0;
}
if (isset($_GET['cid'])) {
$cid = abs(intval($_GET['cid']));
} else {
$cid = 0;
}
if (isset($_GET['start'])) {
$start = abs(intval($_GET['start']));
} else {
$start = 0;
}
if (is_admin()) {
show_title('Управление блогами');
switch ($act) {
############################################################################################
## Главная страница ##
############################################################################################
case 'index':
$queryblog = DB::run()->query("SELECT * FROM `catsblog` ORDER BY `cats_order` ASC;");
$blogs = $queryblog->fetchAll();
if (count($blogs) > 0) {
foreach ($blogs as $data) {
echo '<img src="/images/img/dir.gif" alt="image" /> ';
echo '<b>' . $data['cats_order'] . '. <a href="blog.php?act=blog&cid=' . $data['cats_id'] . '">' . $data['cats_name'] . '</a></b> (' . $data['cats_count'] . ')<br />';
if (is_admin(array(101))) {
echo '<a href="blog.php?act=editcats&cid=' . $data['cats_id'] . '">Редактировать</a> / ';
echo '<a href="blog.php?act=prodelcats&cid=' . $data['cats_id'] . '">Удалить</a>';
}