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


PHP Assets_Page::header方法代码示例

本文整理汇总了PHP中Assets_Page::header方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets_Page::header方法的具体用法?PHP Assets_Page::header怎么用?PHP Assets_Page::header使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Assets_Page的用法示例。


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

示例1: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Import BibleWorks"));
$view = new Assets_View(__FILE__);
$database_bibles = Database_Bibles::getInstance();
$database_books = Database_Books::getInstance();
$success_message = "";
$error_message = "";
// The name of the Bible.
$bible = Access_Bible::clamp($_GET['bible']);
$view->view->bible = Filter_Html::sanitize($bible);
// Data submission.
if (isset($_POST['submit'])) {
    // Whether to keep the grammatical tags.
    $tags = isset($_POST['tags']);
    // The BibleWorks text.
    $data = $_POST['data'];
    $data = trim($data);
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:import_bibleworks.php

示例2: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Changes"));
$view = new Assets_View(__FILE__);
$database_modifications = Database_Modifications::getInstance();
$config_general = Database_Config_General::getInstance();
$database_logs = Database_Logs::getInstance();
@($clear = $_GET['clear']);
if (isset($clear)) {
    // Just in case there are many change notifications to clear, be sure the script does not time out or abort.
    ignore_user_abort(true);
    set_time_limit(0);
    $database_modifications->clearNotificationsUser($clear);
}
$users = Access_User::assignees();
$pendingUsers = array();
$pendingCount = array();
foreach ($users as $user) {
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:manage.php

示例3: Copyright

<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Navigation"));
$view = new Assets_View(__FILE__);
$view->render("navigation.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:25,代码来源:navigation.php

示例4: Copyright

<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
// Page bootstrapping.
require_once "../bootstrap/bootstrap.php";
Assets_Page::header("Bibledit-Web");
$view = new Assets_View(__FILE__);
$view->render("index.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:25,代码来源:index.php

示例5: Copyright

<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Import"));
$file = $_GET['file'];
$folder = Filter_Archive::uncompress($file, true);
$view = new Assets_View(__FILE__);
$view->view->folder = $folder;
$view->render("import3.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:28,代码来源:import3.php

示例6: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::GUEST_LEVEL);
Assets_Page::header(Locale_Translate::_("Password"));
$view = new Assets_View(__FILE__);
// Form submission handler.
if (isset($_POST['submit'])) {
    $form_is_valid = true;
    $user = $_POST['user'];
    if (strlen($user) < 4) {
        $view->view->error_message = Locale_Translate::_("Username or email address is too short");
        $form_is_valid = false;
    }
    $database_users = Database_Users::getInstance();
    if ($form_is_valid) {
        $form_is_valid = false;
        $email = $database_users->getUserToEmail($user);
        if ($email != "") {
            $form_is_valid = true;
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:password.php

示例7: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Verse mappings"));
$view = new Assets_View(__FILE__);
$database_mappings = Database_Mappings::getInstance();
$session_logic = Session_Logic::getInstance();
$username = $session_logic->currentUser();
$userlevel = $session_logic->currentLevel();
$name = $_GET['name'];
$view->view->name = Filter_Html::sanitize($name);
//$write = $database_styles->hasWriteAccess ($username, $name);
$write = true;
if ($userlevel >= Filter_Roles::ADMIN_LEVEL) {
    $write = true;
}
if (isset($_POST['submit'])) {
    $data = $_POST['data'];
    if ($write) {
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:map.php

示例8: foreach

        // Feedback.
        $view->view->success = Locale_Translate::_("Demo connection is okay.");
    } else {
        $view->view->error = Locale_Translate::_("Could not connect to the demo server.");
    }
}
$view->view->client = Filter_Client::enabled();
$address = $database_config_general->getServerAddress();
$view->view->address = $address;
$users = $database_users->getUsers();
foreach ($users as $user) {
    $level = $database_users->getUserLevel($user);
    $view->view->role = Filter_Roles::text($level);
}
$view->view->demo = Filter_Demo::client_demo_warning();
Assets_Page::header(Locale_Translate::_("Client mode"));
$view->render("client.php");
Assets_Page::footer();
function remove_all_users()
{
    $database_users = Database_Users::getInstance();
    $existingusers = $database_users->getUsers();
    foreach ($existingusers as $existinguser) {
        $database_users->removeUser($existinguser);
    }
}
function enable_client($username, $password, $level)
{
    // Enable client mode upon a successful connection.
    Filter_Client::set(true);
    // Remove all users from the database, and add the current one.
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:client.php

示例9: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MEMBER_LEVEL);
Assets_Page::header(Locale_Translate::_("Account"));
$view = new Assets_View(__FILE__);
$session_logic = Session_Logic::getInstance();
$username = $session_logic->currentUser();
$database_users = Database_Users::getInstance();
$email = $database_users->getUserToEmail($username);
$actions_taken = false;
$success_messages = array();
// Form submission handler.
if (isset($_POST['submit'])) {
    $form_is_valid = true;
    $currentpassword = $_POST['currentpassword'];
    $newpassword = $_POST['newpassword'];
    $newpassword2 = $_POST['newpassword2'];
    $newemail = $_POST['newemail'];
    if ($newpassword != "" || $newpassword2 != "") {
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:account.php

示例10: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Stylesheet"));
$view = new Assets_View(__FILE__);
$database_styles = Database_Styles::getInstance();
$session_logic = Session_Logic::getInstance();
$name = $_GET['name'];
$view->view->name = Filter_Html::sanitize($name);
$username = $session_logic->currentUser();
$userlevel = $session_logic->currentLevel();
$write = $database_styles->hasWriteAccess($username, $name);
if ($userlevel >= Filter_Roles::ADMIN_LEVEL) {
    $write = true;
}
if (isset($_POST['new'])) {
    $new = $_POST['entry'];
    if (in_array($new, $database_styles->getMarkers($name))) {
        Assets_Page::error(Locale_Translate::_("This style already exists"));
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:sheetm.php

示例11: Copyright

<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::ADMIN_LEVEL);
Assets_Page::header(Locale_Translate::_("Removing duplicate consultation notes"));
set_time_limit(0);
$workingdirectory = dirname(__FILE__);
Tasks_Logic::queue(Tasks_Logic::PHP, array("{$workingdirectory}/cleancli.php"));
$view = new Assets_View(__FILE__);
$view->render("clean.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:28,代码来源:clean.php

示例12: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::TRANSLATOR_LEVEL);
Assets_Page::header(Locale_Translate::_("Font and text direction"));
$view = new Assets_View(__FILE__);
$database_config_bible = Database_Config_Bible::getInstance();
// The name of the Bible.
$bible = Access_Bible::clamp($_GET['bible']);
$view->view->bible = Filter_Html::sanitize($bible);
// Data submission.
if (isset($_POST['submit'])) {
    $font = $_POST["font"];
    $font = trim($font);
    $database_config_bible->setTextFont($bible, $font);
    $direction = $_POST["direction"];
    $direction = Filter_CustomCSS::directionValue($direction);
    $mode = $_POST["mode"];
    $mode = Filter_CustomCSS::writingModeValue($mode);
    $database_config_bible->setTextDirection($bible, $mode * 10 + $direction);
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:css.php

示例13: isset

        } else {
            $field_terminate = $_POST['import_csv_fieldsterminated'];
            $field_enclosed = $_POST['import_csv_fieldsenclosed'];
            $field_escaped = $_POST['import_csv_fieldsescaped'];
            $null = $_POST['import_csv_replacenull'];
            $fields_in_first_row = isset($_POST['import_csv_fieldnames']);
            $importSuccess = $db->import_csv($_FILES["file"]["tmp_name"], $_POST['single_table'], $field_terminate, $field_enclosed, $field_escaped, $null, $fields_in_first_row);
        }
    }
}
header('Content-Type: text/html; charset=utf-8');
// Displaying the Bibledit-Web heder and menu is postponed till here.
// This fixes the following:
// Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at assets/view.php:57) in phpliteadmin/index.php on line 464
// With headers, it forgets which table it has selected.
Assets_Page::header("phpLiteAdmin");
// here begins the HTML.
?>
<!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" xml:lang="en" lang="en">
<head>
<!-- Copyright <?php 
echo date("Y") . ' ' . PROJECT . ' (' . PROJECT_URL . ')';
?>
 -->
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<link rel="shortcut icon" href="?resource=favicon" />
<title><?php 
echo PROJECT;
?>
</title>
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:index.php

示例14: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::MANAGER_LEVEL);
Assets_Page::header(Locale_Translate::_("Versifications"));
$view = new Assets_View(__FILE__);
$database_versifications = Database_Versifications::getInstance();
if (isset($_GET['delete'])) {
    $name = $_GET['delete'];
    $confirm = $_GET['confirm'];
    if ($confirm != "") {
        $database_versifications->delete($name);
    } else {
        $dialog_yes = new Dialog_Yes(NULL, Locale_Translate::_("Would you like to delete this versification system?"), "delete");
        die;
    }
}
if (isset($_POST['new'])) {
    $name = $_POST['entry'];
    $database_versifications->createSystem($name);
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:index.php

示例15: page_access_level

it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::ADMIN_LEVEL);
Assets_Page::header(Locale_Translate::_("Mail"));
$view = new Assets_View(__FILE__);
// Email form submission.
if (isset($_POST['email'])) {
    $form_is_valid = true;
    $sitename = $_POST['sitename'];
    $sitemail = $_POST['sitemail'];
    if (strlen($sitemail) > 0) {
        $validator = new Zend_Validate_EmailAddress();
        if (!$validator->isValid($sitemail)) {
            $form_is_valid = false;
            $view->view->site_name_error = Locale_Translate::_("The email address does not appear to be valid");
        }
    }
    if ($form_is_valid) {
        $config_general = Database_Config_General::getInstance();
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:mail.php


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