本文整理汇总了PHP中_setTitle函数的典型用法代码示例。如果您正苦于以下问题:PHP _setTitle函数的具体用法?PHP _setTitle怎么用?PHP _setTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_setTitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _setView
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
$collectionID = get_id(2);
$collectionsClass = new collections();
$collection = $collectionsClass->get($collectionID);
if (!is_array($collection) || $collection['public'] == 'false' && check_login_bool() && $collection['user_id'] != $_SESSION['user']['user_id']) {
refresh('/' . $languageURL . 'collections/', $langArray['wrong_collection'], 'error');
}
_setTitle($collection['name']);
abr('checkItemsType', 'yes');
require_once ROOT_PATH . '/apps/users/models/users.class.php';
$usersClass = new users();
$collection['user'] = $usersClass->get($collection['user_id']);
if (check_login_bool()) {
$collection['rate'] = $collectionsClass->isRate($collectionID);
}
abr('collection', $collection);
#删除作品
if (isset($_GET['delete']) && check_login_bool() && $collection['user_id'] == $_SESSION['user']['user_id']) {
$collectionsClass->deleteBookmark($collectionID, $_GET['delete']);
refresh('/' . $languageURL . 'collections/view/' . $collectionID, $langArray['complete_delete_bookmark'], 'complete');
}
#更新书签集
if (check_login_bool() && isset($_POST['edit']) && $collection['user_id'] == $_SESSION['user']['user_id']) {
示例2: refresh
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
if (!isset($_GET['type']) || !in_array($_GET['type'], array('other', 'buyers', 'authors', 'referrals', 'system'))) {
refresh('?m=' . $_GET['m'] . '&c=badges&type=system', '', 'error');
}
_setView(__FILE__);
_setTitle($langArray['badges'] . ' › ' . ucfirst($_GET['type']));
$types = array('system', 'other', 'buyers', 'authors', 'referrals');
$tmp = array();
foreach ($types as $type) {
$tmp[] = array('name' => ucfirst($type), 'href' => '?m=' . $_GET['m'] . '&c=badges&type=' . $type);
}
abr('types', $tmp);
require_once ROOT_PATH . '/apps/system/models/badges.class.php';
$badges = new badges();
$data = $badges->getAll(START, LIMIT, "`type`='" . $_GET['type'] . "'");
abr('data', $data);
$p = paging("?m=" . $_GET['m'] . "&c=badges&type=" . $_GET['type'] . "&p=", "", PAGE, LIMIT, $badges->foundRows);
abr('paging', $p);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
示例3: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['add']);
$cms = new system();
if (isset($_POST['add'])) {
$status = $cms->add();
if ($status !== true) {
abr('error', $status);
} else {
refresh("?m=" . $_GET['m'] . "&c=list", $langArray['add_complete']);
}
}
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
示例4: _setView
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
$itemID = get_id(2);
$itemsClass = new items();
$item = $itemsClass->get($itemID);
if (!is_array($item) || check_login_bool() && $item['status'] == 'unapproved' && $item['user_id'] != $_SESSION['user']['user_id'] || $item['status'] == 'queue' || $item['status'] == 'extended_buy') {
header("HTTP/1.0 404 Not Found");
header("Location: http://" . DOMAIN . "/" . $languageURL . "error");
}
_setTitle($item['name']);
abr('meta_description', substr(strip_tags($item['description']), 0, 255));
require_once ROOT_PATH . '/apps/users/models/users.class.php';
$usersClass = new users();
$item['user'] = $usersClass->get($item['user_id']);
abr('item', $item);
#添加FAQ条目
if (check_login_bool() && $item['user_id'] == $_SESSION['user']['user_id'] && isset($_POST['add'])) {
$faqClass = new faq();
$s = $faqClass->add($itemID);
if ($s === true) {
refresh('/' . $languageURL . 'items/faq/' . $itemID . '/', $langArray['complete_add_faq'], 'complete');
} else {
$message = '<ul>';
foreach ($s as $e) {
$message .= '<li>' . $e . '</li>';
示例5: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['template']);
$arr = getDirList(ROOT_PATH . "/templates/admin");
abr("templates", $arr);
$template = $meta["admin_template"];
abr("template", $template);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
示例6: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['downloads_setTitle']);
if (!check_login_bool()) {
$_SESSION['temp']['golink'] = '/' . $languageURL . 'download/';
refresh('/' . $languageURL . 'sign_in/');
}
require_once ROOT_PATH . '/apps/items/models/orders.class.php';
$ordersClass = new orders();
#下载作品
$itemID = get_id(2);
if (is_numeric($itemID)) {
require_once ROOT_PATH . '/apps/items/models/items.class.php';
$itemsClass = new items();
$item = $itemsClass->get($itemID);
if (!is_array($item) || check_login_bool() && $item['status'] == 'unapproved' && $item['user_id'] != $_SESSION['user']['user_id'] || $item['status'] == 'queue') {
header("HTTP/1.0 404 Not Found");
header("Location: http://" . DOMAIN . "/" . $languageURL . "error");
}
if (isset($_POST['rating'])) {
$_GET['rating'] = $_POST['rating'];
示例7: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['collections']);
$collectionsClass = new collections();
$limit = 20;
$start = (PAGE - 1) * $limit;
$order = '';
if (!isset($_GET['sort_by'])) {
$_GET['sort_by'] = '';
}
switch ($_GET['sort_by']) {
case 'name':
$order = '`name`';
break;
case 'average_rating':
$order = '`rating`';
break;
default:
$order = '`datetime`';
break;
}
示例8: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['deposit_cash_set']);
$command = get_id(2);
$depositID = get_id(3);
if (!check_login_bool() && $command != 'success' && $command != 'notify') {
$_SESSION['temp']['golink'] = '/' . $languageURL . 'deposit/';
refresh('/' . $languageURL . 'sign_in/');
}
if (isset($_SESSION['tmp']['deposit_id']) && $_SESSION['tmp']['deposit_id']) {
$_SESSION['tmp']['deposit_id'] = 0;
}
if ($command == 'success' && $depositID) {
$depositClass = new deposit();
$info = $depositClass->get($depositID);
if ($info && $info['paid'] == 'true') {
refresh('http://' . $config['domain'] . '/' . $languageURL . 'deposit/', $langArray['complete_deposit'], 'complete');
} else {
refresh('http://' . $config['domain'] . '/' . $languageURL . 'deposit/', $langArray['error_deposit'], 'error');
}
}
示例9: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['signup_setTitle']);
//重新发送邮件
if (isset($_POST['res_send']) && $_POST['res_send'] == 'yes' && isset($_POST['user_id']) && !empty($_POST['user_id'])) {
$usersClass = new users();
$res = $usersClass->res_send($_POST['user_id']);
if ($res) {
die('success');
}
}
if (check_login_bool()) {
refresh('/' . $languageURL . 'edit/');
}
if (get_id(2) == 'verify') {
abr('verify', 'yes');
} elseif (get_id(2) == 'complete') {
abr('complete', 'yes');
} else {
require_once ROOT_PATH . '/apps/pages/models/pages.class.php';
$pagesClass = new pages();
示例10: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['percents']);
if (isset($_POST['report'])) {
$reportClass = new report();
$reportData = $reportClass->getReport();
$depositData = $reportClass->getDeposits();
$withdrawData = $reportClass->getWithdraws();
$data = array();
if (is_array($reportData)) {
foreach ($reportData as $date => $v) {
$data[$date] = array();
}
}
if (is_array($depositData)) {
foreach ($depositData as $date => $v) {
$data[$date] = array();
}
}
if (is_array($withdrawData)) {
foreach ($withdrawData as $date => $v) {
示例11: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['make_payment_setTitle']);
$deposit_id = 0;
if (isset($_SESSION['tmp']['deposit_id'])) {
$deposit_id = (int) $_SESSION['tmp']['deposit_id'];
}
require_once ROOT_PATH . '/apps/users/models/deposit.class.php';
$cms = new deposit();
$deposit_info = $cms->get($deposit_id);
//充值信息
if ($deposit_info) {
$payments = glob(dirname(dirname(dirname(__FILE__))) . '/payments/controllers/*.php');
$payments_data = array();
//充值方式
if ($payments) {
$order_obj = array();
$key = 'chinabank';
require_once ROOT_PATH . '/apps/payments/models/' . $key . '.class.php';
$order_obj[$key] = new $key();
$payments_data[$key] = array('title' => '网银在线', 'description' => '网银在线订单支付', 'form' => $order_obj[$key]->generateDepositForm($deposit_info), 'logo' => '');
示例12: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['sendmail']);
$system = new system();
$smtp = $system->is_smtp();
$is_smtp = false;
if ($smtp) {
$is_smtp = true;
}
abr('is_smtp', $is_smtp);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
示例13: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['free_file']);
$usersClass = new users();
$limit = 60;
$start = (PAGE - 1) * $limit;
abr('number', $start + 1);
//$users = $usersClass->getAll($start, $limit, " `items` > 0 AND `status` = 'activate' ", "`sales` DESC");
//免费作品
$freeItem = $itemsClass->getAll($start, $limit, " `status` = 'active' AND `free_file` = 'true' ");
abr('freeItem', $freeItem);
abr('paging', paging('/' . $languageURL . 'free_file/?p=', '', PAGE, $limit, $itemsClass->foundRows));
#面包屑
abr('breadcrumb', '<a href="/' . $languageURL . '" title="">' . $langArray['home'] . '</a> \\ <a href="/' . $languageURL . 'users/free_file/" title="">' . $langArray['free_file'] . '</a>');
示例14: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['items']);
//快速改变作品状态
if (isset($_POST['action']) && $_POST['action'] == 'ajax_edit' && isset($_POST['status']) && isset($_POST['item'])) {
require_once ROOT_PATH . '/apps/items/models/items.class.php';
$itemsClass = new items();
//改变作品免费状态
$res_status = '';
$_POST['status'] == 'false' ? $res_status = 'true' : ($res_status = 'false');
$res = $itemsClass->ajax_edit_free_file_status($_POST['item'], $res_status);
if ($res) {
$pic = '';
$_POST['status'] == 'false' ? $pic = "http://" . $_SERVER['SERVER_NAME'] . "/static//admin/images/icons/24x24/accept.png" : ($pic = "http://" . $_SERVER['SERVER_NAME'] . "/static///img/question.png");
//构造返回数据
$res_arr = array('status' => $res_status, 'pic' => $pic);
die(json_encode($res_arr));
} else {
die;
}
}
示例15: _setView
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['view']);
if (!isset($_GET['id']) || !is_numeric($_GET['id'])) {
refresh('?m=' . $_GET['m'] . '&c=list', 'WRONG ID', 'error');
}
require_once ROOT_PATH . "/apps/bulletin/models/bulletin.class.php";
$cms = new bulletin();
$data = $cms->get($_GET['id']);
if ($data['send_to'] == 'city') {
$cities = loadCities();
$data['send_city'] = $cities[$data['send_id']]['name'];
} elseif ($data['send_to'] == 'group') {
$bulletinGroupsClass = new bulletinGroups();
$bGroup = $bulletinGroupsClass->get($data['send_id']);
$data['send_group'] = $bGroup['name'];
}
abr('data', $data);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';