• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Assets_View类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: page_access_level

function page_access_level($level)
{
    $session_logic = Session_Logic::getInstance();
    if ($level > $session_logic->currentLevel()) {
        $header = new Assets_Header("Privileges");
        $header->setLogin();
        $header->run();
        $view = new Assets_View(__FILE__);
        $view->render("privileges.php");
        Assets_Page::footer();
        die;
    }
}
开发者ID:alerque,项目名称:bibledit,代码行数:13,代码来源:bootstrap.php


示例2: Assets_Header

        echo "{$key}\n";
    }
    die;
}
@($id = $_GET['id']);
if (isset($id)) {
    // Get the and passage for this identifier.
    $passage = Filter_Books::integer2passage($id);
    $book = $passage[0];
    $chapter = $passage[1];
    $verse = $passage[2];
    // Get the plain text.
    $text = $database_search->getBibleVerseText($bible, $book, $chapter, $verse);
    // Format it.
    $link = Filter_Books::linkForOpeningEditorAt($book, $chapter, $verse);
    $output = "<div>{$link} {$text}</div>";
    // Output to browser.
    echo $output;
    // Done.
    die;
}
$header = new Assets_Header(Locale_Translate::_("Search"));
$header->run();
$view = new Assets_View(__FILE__);
$view->view->bible = $bible;
$script = <<<EOD
var searchBible = "{$bible}";
EOD;
$view->view->script = $script;
$view->render("originals.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:originals.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: page_access_level

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);
$header = new Assets_Header(Locale_Translate::_("Order"));
$header->jQueryUIOn("sortable");
$header->run();
$view = new Assets_View(__FILE__);
$database_config_bible = Database_Config_Bible::getInstance();
$database_books = Database_Books::getInstance();
$database_bibles = Database_Bibles::getInstance();
$bible = Access_Bible::clamp($_GET['bible']);
$view->view->bible = Filter_Html::sanitize($bible);
@($reset = $_GET["reset"]);
if (isset($reset)) {
    $database_config_bible->setBookOrder($bible, "");
}
@($order = $_POST['order']);
if (isset($order)) {
    $order = explode(",", $order);
    $ids = array();
    foreach ($order as $english) {
        $id = $database_books->getIdFromEnglish($english);
开发者ID:alerque,项目名称:bibledit,代码行数:30,代码来源:order.php


示例5: page_access_level

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) {
    $ids = $database_modifications->getNotificationIdentifiers($user);
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:manage.php


示例6: 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


示例7: page_access_level

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();
        $config_general->setSiteMailName($sitename);
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:mail.php


示例8: footer

 public static function footer()
 {
     $view = new Assets_View(__FILE__);
     $view->render('footer.php');
     $view->render('xhtml_finish.php');
 }
开发者ID:alerque,项目名称:bibledit,代码行数:6,代码来源:page.php


示例9: 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);
$database_notes = Database_Notes::getInstance();
$header = new Assets_Header(Locale_Translate::_("Notes status"));
$header->run();
$view = new Assets_View(__FILE__);
$statuses = $database_notes->getPossibleStatuses();
$view->view->statuses = $statuses;
$view->render("status-n.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:29,代码来源:status-n.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::ADMIN_LEVEL);
$view = new Assets_View(__FILE__);
$object = $_GET['object'];
$view->view->object = $object;
$database_config_bible = Database_Config_Bible::getInstance();
$url = $database_config_bible->getRemoteRepositoryUrl($object);
$view->view->url = $url;
$ready = false;
$database_shell = Database_Shell::getInstance();
$output = "";
$contents = array();
switch ($database_shell->logic("collaboration_take_repo", 0, $output)) {
    case 1:
        $workingdirectory = dirname(__FILE__);
        $object = escapeshellarg($object);
        shell_exec("cd {$workingdirectory}; php collaboration_take_repo-cli.php {$object} > {$output} 2>&1 &");
        break;
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:collaboration_take_repo.php


示例11: page_access_level

Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::CONSULTANT_LEVEL);
$database_history = Database_History::getInstance();
$session_logic = Session_Logic::getInstance();
$ipc_focus = Ipc_Focus::getInstance();
$username = $session_logic->currentUser();
$focused_book = $ipc_focus->getBook();
$focused_chapter = $ipc_focus->getChapter();
$focused_verse = $ipc_focus->getVerse();
$header = new Assets_Header(Locale_Translate::_("Change History"));
$header->setNavigator();
$header->setStylesheet();
$header->run();
$view = new Assets_View(__FILE__);
// Bits for the display state.
$state = array();
// Where to start displaying items.
// It displays a limited number of items for performance reasons.
@($start = $_GET['start']);
if (!isset($start)) {
    $start = 0;
}
if (!is_numeric($start)) {
    $start = 0;
}
$state['start'] = $start;
// Filter on Bible / book / chapter / verse.
@($passage = $_GET['passage']);
if (!isset($passage)) {
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:history.php


示例12: Assets_View

}
// Note unassign handler.
@($unassign = $_POST['unassign']);
if (isset($unassign)) {
    $notes_logic->unassignUser(Filter_Numeric::integer_in_string($unassign), $session_logic->currentUser());
    die;
}
// Note mark for deletion handler.
@($delete = $_POST['delete']);
if (isset($delete)) {
    $identifier = Filter_Numeric::integer_in_string($delete);
    $notes_logic->markForDeletion($identifier);
    die;
}
// From here on the script will produce output.
$view = new Assets_View(__FILE__);
$session_logic = Session_Logic::getInstance();
$username = $session_logic->currentUser();
$level = $session_logic->currentLevel();
$view->view->level = $level;
// The identifier of the change notification.
@($id = $_GET["get"]);
$view->view->id = $id;
// Get old text, modification, new text.
$old_text = $database_modifications->getNotificationOldText($id);
$view->view->old_text = $old_text;
$modification = $database_modifications->getNotificationModification($id);
$view->view->modification = $modification;
$new_text = $database_modifications->getNotificationNewText($id);
$view->view->new_text = $new_text;
// Bibles and passage.
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:change.php


示例13: page_access_level

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::CONSULTANT_LEVEL);
$database_notes = Database_Notes::getInstance();
$notes_logic = Notes_Logic::getInstance();
$id = $_GET['id'];
if (isset($_POST['submit'])) {
    $summary = $_POST['entry'];
    $notes_logic->setSummary($id, $summary);
    Filter_Url::redirect("note.php?id={$id}");
    die;
}
$header = new Assets_Header(Locale_Translate::_("Note summary"));
$header->setBodyOnload('document.form.entry.focus();');
$header->run();
$view = new Assets_View(__FILE__);
$view->view->id = $id;
$summary = $database_notes->getSummary($id);
$summary = Filter_Html::sanitize($summary);
$view->view->summary = $summary;
$view->render("summary.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:30,代码来源:summary.php


示例14: page_access_level

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) {
        $database_mappings->import($name, $data);
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:map.php


示例15: page_access_level

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);
$database_resources = Database_Resources::getInstance();
$database_offlineresources = Database_OfflineResources::getInstance();
@($add = $_POST['entry']);
if (isset($add)) {
    $database_resources->save($add, '<?php $output = "dummy"; ?>');
}
@($delete = $_GET['delete']);
if (isset($delete)) {
    // User cannot delete Resources in an open demo.
    include "config/open.php";
    if (!$open_installation) {
        $database_resources->delete($delete);
        $database_offlineresources->delete($delete);
    }
}
$database_resources = Database_Resources::getInstance();
$header = new Assets_Header(Locale_Translate::_("Resources"));
$header->jQueryUIOn("dialog");
$header->run();
$view = new Assets_View(__FILE__);
$resources = $database_resources->getNames();
$view->view->resources = $resources;
$view->render("admin.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:30,代码来源:admin.php


示例16: page_access_level

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::_("Sentence Structure"));
$view = new Assets_View(__FILE__);
$database_config_user = Database_Config_User::getInstance();
$database_config_bible = Database_Config_Bible::getInstance();
$bible = Access_Bible::clamp($database_config_user->getBible());
if (isset($_POST['capitals'])) {
    $database_config_bible->setSentenceStructureCapitals($bible, $_POST['capitals']);
    $view->view->success = Locale_Translate::_("The capitals were stored");
}
if (isset($_POST['smallletters'])) {
    $database_config_bible->setSentenceStructureSmallLetters($bible, $_POST['smallletters']);
    $view->view->success = Locale_Translate::_("The small letters were stored");
}
if (isset($_POST['endpunctuationmarks'])) {
    $database_config_bible->setSentenceStructureEndPunctuation($bible, $_POST['endpunctuationmarks']);
    $view->view->success = Locale_Translate::_("The punctuation marks at the ends of sentences were stored");
}
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:settingssentences.php


示例17: 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);
$view = new Assets_View(__FILE__);
$database_resources = Database_Resources::getInstance();
$database_offlineresources = Database_OfflineResources::getInstance();
$database_versifications = Database_Versifications::getInstance();
@($name = $_GET['name']);
$view->view->name = $name;
if (isset($_GET['download'])) {
    $versification = "English";
    $books = $database_versifications->getBooks($versification);
    foreach ($books as $book) {
        // Schedule the task with low priority so it does not get in the way of regular tasks.
        Tasks_Logic::queue(Tasks_Logic::PHP, array(__DIR__ . "/downloadcli.php", $name, $book));
    }
    Filter_Url::redirect("../journal/index.php");
    die;
}
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:download.php


示例18: page_access_level

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::_("Signup"));
$view = new Assets_View(__FILE__);
/**
* Set of security questions.
*/
$questions[] = Locale_Translate::_("To which city was Paul travelling when a light from heaven shone round about him?");
$answers[] = Locale_Translate::_("Damascus");
$passages[] = Locale_Translate::_('And while he travelled, he came near Damascus; and suddenly a light from heaven shone round about him.');
$questions[] = Locale_Translate::_("What is the name of the brother of Aaron the high priest?");
$answers[] = Locale_Translate::_("Moses");
$passages[] = Locale_Translate::_('And the anger of Jehova was kindled against Moses, and he said: Is not Aaron the Levite your brother?');
$questions[] = Locale_Translate::_("What is the name of the city where Jesus was born?");
$answers[] = Locale_Translate::_("Bethlehem");
$passages[] = Locale_Translate::_('When Jesus was born in Bethlehem of Judaea in the days of Herod the king, behold, wise men from the east came to Jerusalem.');
$questions[] = Locale_Translate::_("What is the name of the island where John was sent to?");
$answers[] = Locale_Translate::_("Patmos");
$passages[] = Locale_Translate::_('I, John, your brother and companion in the persecution, and in the kingdom and endurance of Jesus Christ, was in the island which is called Patmos, because of the word of God, and because of the testimony of Jesus Christ.');
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:signup.php


示例19: 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::CONSULTANT_LEVEL);
$database_notes = Database_Notes::getInstance();
$notes_logic = Notes_Logic::getInstance();
$database_users = Database_Users::getInstance();
$header = new Assets_Header(Locale_Translate::_("Severity"));
$header->run();
$view = new Assets_View(__FILE__);
$severities = $database_notes->getPossibleSeverities();
$view->view->severities = $severities;
$view->render("severity-n.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:severity-n.php


示例20: foreach

    foreach ($bibles as $bible) {
        if ($font == $database_config_bible->getTextFont($bible)) {
            $font_in_use = true;
        }
    }
    if (!$font_in_use) {
        unlink($font);
    } else {
        Assets_Page::error(Locale_Translate::_("The font could not be deleted because it is in use."));
    }
}
// Upload a font.
if (isset($_POST['upload'])) {
    // Upload may take time in case the file is large or the network is slow.
    ignore_user_abort(true);
    set_time_limit(0);
    $filename = $_FILES['data']['name'];
    $tmpfile = $_FILES['data']['tmp_name'];
    if (move_uploaded_file($tmpfile, $filename)) {
        Assets_Page::success(Locale_Translate::_("The font has been uploaded."));
    } else {
        Assets_Page::error(Filter_Upload::error2text($_FILES['data']['error']));
    }
}
$header = new Assets_Header(Locale_Translate::_("Fonts"));
$header->run();
$view = new Assets_View(__FILE__);
$view->view->upload_max_filesize = ini_get("upload_max_filesize");
$view->view->fonts = Fonts_Logic::getFonts();
$view->render("index.php");
Assets_Page::footer();
开发者ID:alerque,项目名称:bibledit,代码行数:31,代码来源:index.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP AssociationFactory类代码示例发布时间:2022-05-23
下一篇:
PHP Assets_Page类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap