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

PHP fusion_get_settings函数代码示例

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

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



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

示例1: __construct

 public function __construct()
 {
     if (empty(self::$locale)) {
         $locale = fusion_get_locale('', LOCALE . LOCALESET . "admin/errors.php");
         $locale += fusion_get_locale('', LOCALE . LOCALESET . "errors.php");
         self::$locale += $locale;
     }
     $this->error_status = filter_input(INPUT_POST, 'error_status', FILTER_VALIDATE_INT, array('min_range' => 0, 'max_range' => 2));
     $this->posted_error_id = filter_input(INPUT_POST, 'error_id', FILTER_VALIDATE_INT);
     $this->delete_status = filter_input(INPUT_POST, 'delete_status', FILTER_VALIDATE_INT, array('min_range' => 0, 'max_range' => 2));
     $this->rowstart = filter_input(INPUT_GET, 'rowstart', FILTER_VALIDATE_INT) ?: 0;
     $this->error_id = filter_input(INPUT_GET, 'error_id', FILTER_VALIDATE_INT);
     if (isnum($this->error_status) && $this->posted_error_id) {
         dbquery("UPDATE " . DB_ERRORS . " SET error_status='" . $this->error_status . "' WHERE error_id='" . $this->posted_error_id . "'");
         redirect(FUSION_REQUEST);
     }
     if (isset($_POST['delete_entries']) && isnum($this->delete_status)) {
         dbquery("DELETE FROM " . DB_ERRORS . " WHERE error_status='" . $_POST['delete_status'] . "'");
         $source_redirection_path = preg_replace("~" . fusion_get_settings("site_path") . "~", "", FUSION_REQUEST, 1);
         redirect(fusion_get_settings("siteurl") . $source_redirection_path);
     }
     $result = dbquery("SELECT * FROM " . DB_ERRORS . " ORDER BY error_timestamp DESC LIMIT " . $this->rowstart . ",20");
     while ($data = dbarray($result)) {
         $this->errors[$data['error_id']] = $data;
     }
     $this->rows = $this->errors ? dbcount('(error_id)', DB_ERRORS) : 0;
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:27,代码来源:Errors.php


示例2: showratings

function showratings($rating_type, $rating_item_id, $rating_link)
{
    global $locale, $userdata;
    $settings = \fusion_get_settings();
    if ($settings['ratings_enabled'] == "1") {
        if (iMEMBER) {
            $d_rating = dbarray(dbquery("SELECT rating_vote,rating_datestamp FROM " . DB_RATINGS . " WHERE rating_item_id='" . $rating_item_id . "' AND rating_type='" . $rating_type . "' AND rating_user='" . $userdata['user_id'] . "'"));
            if (isset($_POST['post_rating'])) {
                // Rate
                if (isnum($_POST['rating']) && $_POST['rating'] > 0 && $_POST['rating'] < 6 && !isset($d_rating['rating_vote'])) {
                    $result = dbquery("INSERT INTO " . DB_RATINGS . " (rating_item_id, rating_type, rating_user, rating_vote, rating_datestamp, rating_ip, rating_ip_type) VALUES ('{$rating_item_id}', '{$rating_type}', '" . $userdata['user_id'] . "', '" . $_POST['rating'] . "', '" . time() . "', '" . USER_IP . "', '" . USER_IP_TYPE . "')");
                    if ($result) {
                        defender::unset_field_session();
                    }
                }
                redirect($rating_link);
            } elseif (isset($_POST['remove_rating'])) {
                // Unrate
                $result = dbquery("DELETE FROM " . DB_RATINGS . " WHERE rating_item_id='{$rating_item_id}' AND rating_type='{$rating_type}' AND rating_user='" . $userdata['user_id'] . "'");
                if ($result) {
                    defender::unset_field_session();
                }
                redirect($rating_link);
            }
        }
        $ratings = array(5 => $locale['r120'], 4 => $locale['r121'], 3 => $locale['r122'], 2 => $locale['r123'], 1 => $locale['r124']);
        if (!iMEMBER) {
            $message = str_replace("[RATING_ACTION]", "<a href='" . BASEDIR . "login.php'>" . $locale['login'] . "</a>", $locale['r104']);
            if (fusion_get_settings("enable_registration") == TRUE) {
                $message = str_replace("[RATING_ACTION]", "<a href='" . BASEDIR . "login.php'>" . $locale['login'] . "</a> " . $locale['or'] . " <a href='" . BASEDIR . "register.php'>" . $locale['register'] . "</a>", $locale['r104']);
            }
            echo "<div class='text-center'>" . $message . "</div>\n";
        } elseif (isset($d_rating['rating_vote'])) {
            echo "<div class='display-block'>\n";
            echo openform('removerating', 'post', $rating_link, array('class' => 'display-block text-center'));
            echo sprintf($locale['r105'], $ratings[$d_rating['rating_vote']], showdate("longdate", $d_rating['rating_datestamp'])) . "<br /><br />\n";
            echo form_button('remove_rating', $locale['r102'], $locale['r102'], array('class' => 'btn-default', 'icon' => 'fa fa-times m-r-10'));
            echo closeform();
            echo "</div>\n";
        } else {
            echo "<div class='display-block'>\n";
            echo openform('postrating', 'post', $rating_link, array('max_tokens' => 1, 'notice' => 0, 'class' => 'm-b-20 text-center'));
            echo form_select('rating', $locale['r106'], '', array('options' => $ratings, 'class' => 'display-block text-center'));
            echo form_button('post_rating', $locale['r103'], $locale['r103'], array('class' => 'btn-primary btn-sm', 'icon' => 'fa fa-thumbs-up m-r-10'));
            echo closeform();
            echo "</div>\n";
        }
        $rating_votes = dbarray(dbquery("\n\t\tSELECT\n\t\tSUM(IF(rating_vote='5', 1, 0)) as r120,\n\t\tSUM(IF(rating_vote='4', 1, 0)) as r121,\n\t\tSUM(IF(rating_vote='3', 1, 0)) as r122,\n\t\tSUM(IF(rating_vote='2', 1, 0)) as r123,\n\t\tSUM(IF(rating_vote='1', 1, 0)) as r124\n\t\tFROM " . DB_RATINGS . " WHERE rating_type='" . $rating_type . "' and rating_item_id='" . intval($rating_item_id) . "'\n\t\t"));
        if (!empty($rating_votes)) {
            echo "<div id='ratings' class='rating_container'>\n";
            foreach ($rating_votes as $key => $num) {
                echo progress_bar($num, $locale[$key], FALSE, '10px', TRUE, FALSE);
            }
            echo "</div>\n";
        } else {
            echo "<div class='text-center'>" . $locale['r101'] . "</div>\n";
        }
    }
}
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:59,代码来源:ratings_include.php


示例3: replace_url

 function replace_url($m)
 {
     // Get input url if any, if not get the content as a url but check if has a schema, if not add one
     $this_url = !empty($m['url']) ? $m['url'] : (preg_match("#^((f|ht)tp(s)?://)#i", $m['content']) ? $m['content'] : "http://" . $m['content']);
     // Trim only the default url
     $content = empty($m['url']) ? trimlink($m['content'], 40) . (strlen($m['content']) > 40 ? substr($m['content'], strlen($m['content']) - 10, strlen($m['content'])) : '') : $m['content'];
     return (fusion_get_settings('index_url_bbcode') ? "" : "<!--noindex-->") . "<a href='{$this_url}' target='_blank' " . (fusion_get_settings('index_url_bbcode') ? "" : "rel='nofollow' ") . "title='" . urldecode($this_url) . "'>" . $content . "</a>" . (fusion_get_settings('index_url_bbcode') ? "" : "<!--/noindex-->");
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:8,代码来源:url_bbcode_include.php


示例4: handleOutput

 /**
  * Main Function : Handles the Output
  * This function will Handle the output by calling several functions
  * which are used in this Class.
  * @param string $output The Output from the Fusion
  * @access private
  */
 private function handleOutput()
 {
     $settings = \fusion_get_settings();
     // Buffers for Permalink - Using New Driver Pattern
     $this->handle_permalink_requests();
     // Output and Redirect 301 if NON-SEO url found
     $this->replace_output();
     // Prepend all the File/Images/CSS/JS etc Links with ROOT path
     $this->appendRootAll();
     // For Developer, to see what is happening behind
     if ($settings['debug_seo'] == "1") {
     }
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:20,代码来源:Permalinks.php


示例5: get_current_SiteLinks

 /**
  * Given a matching URL, fetch Sitelinks data
  * @param string $url - url to match (link_url) column
  * @param string $column - column data to output, blank for all
  * @return array|bool
  */
 public static function get_current_SiteLinks($url = "", $key = NULL)
 {
     $url = stripinput($url);
     static $data = array();
     if (empty($data)) {
         if (!$url) {
             $pathinfo = pathinfo($_SERVER['PHP_SELF']);
             $url = str_replace(fusion_get_settings("site_path"), "", $pathinfo['dirname']) . '/' . $pathinfo['basename'];
         }
         $result = dbquery("SELECT * FROM " . DB_SITE_LINKS . " WHERE link_url='" . $url . "' AND link_language='" . LANGUAGE . "'");
         if (dbrows($result) > 0) {
             $data = dbarray($result);
         }
     }
     return $key === NULL ? $data : (isset($data[$key]) ? $data[$key] : NULL);
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:22,代码来源:SiteLinks.php


示例6: showsidelinks

function showsidelinks(array $options = array(), $id = 0)
{
    global $userdata;
    static $data = array();
    $settings = fusion_get_settings();
    $acclevel = isset($userdata['user_level']) ? $userdata['user_level'] : 0;
    $res =& $res;
    if (empty($data)) {
        $data = dbquery_tree_full(DB_SITE_LINKS, "link_id", "link_cat", "WHERE link_position <= 2" . (multilang_table("SL") ? " AND link_language='" . LANGUAGE . "'" : "") . " AND " . groupaccess('link_visibility') . " ORDER BY link_cat, link_order");
    }
    if (!$id) {
        $res .= "<ul class='main-nav'>\n";
    } else {
        $res .= "<ul class='sub-nav p-l-10' style='display: none;'>\n";
    }
    foreach ($data[$id] as $link_id => $link_data) {
        $li_class = "";
        if ($link_data['link_name'] != "---" && $link_data['link_name'] != "===") {
            $link_target = $link_data['link_window'] == "1" ? " target='_blank'" : "";
            if (START_PAGE == $link_data['link_url']) {
                $li_class .= ($li_class ? " " : "") . "current-link";
            }
            if (preg_match("!^(ht|f)tp(s)?://!i", $link_data['link_url'])) {
                $item_link = $link_data['link_url'];
            } else {
                $item_link = BASEDIR . $link_data['link_url'];
            }
            $link_icon = "";
            if ($link_data['link_icon']) {
                $link_icon = "<i class='" . $link_data['link_icon'] . "'></i>";
            }
            $res .= "<li" . ($li_class ? " class='" . $li_class . "'" : "") . ">\n";
            $res .= "<a class='display-block p-5 p-l-0 p-r-0' href='{$item_link}' {$link_target}>\n";
            $res .= $link_icon . $link_data['link_name'];
            $res .= "</a>\n";
            if (isset($data[$link_id])) {
                $res .= showsidelinks($options, $link_data['link_id']);
            }
            $res .= "</li>\n";
        } elseif ($link_data['link_cat'] > 0) {
            echo "<li class='divider'></li>";
        }
    }
    $res .= "</ul>\n";
    return $res;
}
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:46,代码来源:css_navigation_panel.php


示例7: display_loginform

 /**
  * Display Login form
  * @param array $info
  */
 function display_loginform(array $info)
 {
     global $locale, $userdata, $aidlink;
     opentable($locale['global_100']);
     if (iMEMBER) {
         $msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='" . $userdata['user_id'] . "' AND message_read='0' AND message_folder='0'");
         opentable($userdata['user_name']);
         echo "<div style='text-align:center'><br />\n";
         echo THEME_BULLET . " <a href='" . BASEDIR . "edit_profile.php' class='side'>" . $locale['global_120'] . "</a><br />\n";
         echo THEME_BULLET . " <a href='" . BASEDIR . "messages.php' class='side'>" . $locale['global_121'] . "</a><br />\n";
         echo THEME_BULLET . " <a href='" . BASEDIR . "members.php' class='side'>" . $locale['global_122'] . "</a><br />\n";
         if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
             echo THEME_BULLET . " <a href='" . ADMIN . "index.php" . $aidlink . "' class='side'>" . $locale['global_123'] . "</a><br />\n";
         }
         echo THEME_BULLET . " <a href='" . BASEDIR . "index.php?logout=yes' class='side'>" . $locale['global_124'] . "</a>\n";
         if ($msg_count) {
             echo "<br /><br />\n";
             echo "<strong><a href='" . BASEDIR . "messages.php' class='side'>" . sprintf($locale['global_125'], $msg_count);
             echo ($msg_count == 1 ? $locale['global_126'] : $locale['global_127']) . "</a></strong>\n";
         }
         echo "<br /><br /></div>\n";
     } else {
         echo "<div id='login_form' class='panel panel-default text-center text-dark'>\n";
         if (fusion_get_settings("sitebanner")) {
             echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'><img src='" . BASEDIR . fusion_get_settings("sitebanner") . "' alt='" . fusion_get_settings("sitename") . "'/></a>\n";
         } else {
             echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'>" . fusion_get_settings("sitename") . "</a>\n";
         }
         echo "<div class='panel-body text-center'>\n";
         echo $info['open_form'];
         echo $info['user_name'];
         echo $info['user_pass'];
         echo $info['remember_me'];
         echo $info['login_button'];
         echo $info['registration_link'] . "<br/><br/>";
         echo $info['forgot_password_link'] . "<br/><br/>";
         echo $info['close_form'];
         echo "</div>\n";
         echo "</div>\n";
     }
     closetable();
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:46,代码来源:login.php


示例8: openform

/**
 * @param       $form_name
 * @param       $method - 'post' or 'get'
 * @param       $action_url - form current uri
 * @param array $options :
 *                          form_id = default as form_name
 *                          class = default empty
 *                          enctype = true or false , set true to allow file upload
 *                          max_tokens = store into session number of tokens , default as 1.
 * @return string
 */
function openform($form_name, $method, $action_url, array $options = array())
{
    global $defender;
    $method = strtolower($method) == 'post' ? 'post' : 'get';
    $options = array('form_id' => !empty($options['form_id']) ? $options['form_id'] : $form_name, 'class' => !empty($options['class']) ? $options['class'] : '', 'enctype' => !empty($options['enctype']) && $options['enctype'] == TRUE ? TRUE : FALSE, 'max_tokens' => !empty($options['max_tokens']) && isnum($options['max_tokens']) ? $options['max_tokens'] : 1);
    $class = "";
    if (!$defender->safe()) {
        $class .= "class='warning " . $options['class'] . "' ";
    } elseif (!empty($options['class'])) {
        $class .= "class='" . $options['class'] . "'";
    }
    $action_prefix = fusion_get_settings("site_seo") && !defined("ADMIN_PANEL") ? FUSION_ROOT : "";
    $html = "<form name='" . $form_name . "' id='" . $options['form_id'] . "' method='" . $method . "' action='" . $action_prefix . $action_url . "' " . $class . " " . ($options['enctype'] ? "enctype='multipart/form-data'" : '') . " >\n";
    if ($method == 'post') {
        $token = $defender->generate_token($options['form_id'], $options['max_tokens']);
        $html .= "<input type='hidden' name='fusion_token' value='" . $token . "' />\n";
        $html .= "<input type='hidden' name='form_id' value='" . $options['form_id'] . "' />\n";
    }
    return $html;
}
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:form_main.php


示例9: rewritePage

 /**
  * Call all the functions to process rewrite detection and further actions.
  * This will call all the other functions after all the included files have been included
  * and all the patterns have been made.
  * @access public
  */
 public function rewritePage()
 {
     // Import the required Handlers
     $this->importHandlers();
     // Include the Rewrites
     $this->includeRewrite();
     // Import Patterns from DB
     $this->importPatterns();
     // Check if there is any Alias matching with current URL
     if (!$this->checkAlias()) {
         // Check if any Alias Pattern is matching with current URL
         if (!$this->checkAliasPatterns()) {
             // Check if any Pattern is matching with current URL
             $this->checkPattern();
             $this->validateURI();
         }
     }
     // If path to File is empty, set a warning
     if ($this->pathtofile == "") {
         $this->setWarning(6);
     }
     if (fusion_get_settings("debug_seo") == 1) {
         $this->displayWarnings();
         // If any Warnings to be shown, or in Debug mode
     }
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:32,代码来源:Router.php


示例10: author

| Author: PHP-Fusion Development Team
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../maincore.php";
pageAccess('SB');
require_once THEMES . "templates/admin_header.php";
require_once INCLUDES . "html_buttons_include.php";
include LOCALE . LOCALESET . "admin/settings.php";
$settings = fusion_get_settings();
add_breadcrumb(array('link' => ADMIN . 'banners.php' . $aidlink, 'title' => $locale['850']));
$message = '';
if (isset($_GET['error'])) {
    switch ($_GET['error']) {
        case '1':
            $message = $locale['901'];
            $status = 'danger';
            $icon = "<i class='fa fa-alert fa-lg fa-fw'></i>";
            break;
        default:
            $message = $locale['900'];
            $status = 'success';
            $icon = "<i class='fa fa-check-square-o fa-lg fa-fw'></i>";
    }
    if ($message) {
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:31,代码来源:banners.php


示例11: verify_token

 /**
  * Plain Token Validation - executed at maincore.php through sniff_token() only.
  * Makes thorough checks of a posted token, and the token alone. It does not unset token.
  * @param int $post_time The time in seconds before a posted form is accepted,
  *                            this is used to prevent spamming post submissions
  * @return bool
  */
 private static function verify_token($post_time = 5)
 {
     global $locale, $userdata, $defender;
     $error = FALSE;
     $defender->debug = FALSE;
     $settings = fusion_get_settings();
     $token_data = explode(".", stripinput($_POST['fusion_token']));
     // check if the token has the correct format
     if (count($token_data) == 3) {
         list($tuser_id, $token_time, $hash) = $token_data;
         $user_id = iMEMBER ? $userdata['user_id'] : 0;
         $algo = $settings['password_algorithm'];
         $salt = md5(isset($userdata['user_salt']) && !isset($_POST['login']) ? $userdata['user_salt'] . SECRET_KEY_SALT : SECRET_KEY_SALT);
         // check if the logged user has the same ID as the one in token
         if ($tuser_id != $user_id) {
             $error = $locale['token_error_4'];
             // make sure the token datestamp is a number
         } elseif (!isnum($token_time)) {
             $error = $locale['token_error_5'];
             // check if the hash is valid
         } elseif ($hash != hash_hmac($algo, $user_id . $token_time . stripinput($_POST['form_id']) . SECRET_KEY, $salt)) {
             $error = $locale['token_error_7'];
             // check if a post wasn't made too fast. Set $post_time to 0 for instant. Go for System Settings later.
         } elseif (time() - $token_time < $post_time) {
             $error = $locale['token_error_6'];
         }
     } else {
         // token format is incorrect
         $error = $locale['token_error_8'];
     }
     // Check if any error was set
     if ($error !== FALSE) {
         $defender->stop();
         if ($defender->debug) {
             addNotice('danger', $error);
         }
         return FALSE;
     }
     // If we made it so far everything is good
     if ($defender->debug) {
         addNotice('info', 'The token for "' . stripinput($_POST['form_id']) . '" has been validated successfully');
     }
     return TRUE;
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:51,代码来源:defender.inc.php


示例12: fusion_get_settings

$locale['505'] = "Klik untuk menampilkan Mesej ini";
$locale['506'] = "Klik untuk menampilkan profil pengirim";
$locale['507'] = "Klik untuk menandai semua Mesej";
$locale['508'] = "Klik untuk tidak menandai semua Mesej";
$locale['509'] = "Klik untuk menampilkan Mesej dari semua pengirim";
$locale['510'] = "Klik untuk menampilkan Mesej dari pengirim dimulai dengan %s";
$locale['511'] = "Klik untuk memindah Mesej bertanda ke Arkib anda";
$locale['512'] = "Klik untuk memindah Mesej bertanda ke Peti Masuk anda";
$locale['513'] = "Klik untuk men-set Mesej bertanda sebagai terbaca";
$locale['514'] = "Klik untuk men-set Mesej bertanda sebagai belum terbaca";
$locale['515'] = "Klik untuk memadam Mesej bertanda";
$locale['516'] = "Klik untuk mengubah pengaturan Mesej";
$locale['520'] = "Asal";
$locale['521'] = "Jangan hubungi saya";
$locale['522'] = "Ya, sila hubungi saya";
$locale['523'] = "Jangan simpan rekod";
$locale['524'] = "Ya, simpan rekod mesej yang dihantar";
// Options
$locale['620'] = "Pengaturan";
$locale['621'] = "Beritahu saya melalui email jika saya menerima sebuah Mesej Peribadi baru:";
$locale['622'] = "Simpan Mesej yang dikirim secara automatik:";
$locale['623'] = "Simpan Konfigurasi";
$locale['624'] = "Konfigurasi Dikemaskinikan";
$locale['625'] = "Anda ada Mesej Peribadi yang menanti anda di " . fusion_get_settings('sitename');
$locale['626'] = ",\r\nAnda telah menerima Mesej Peribadi bertajuk [SUBJECT] dari [USER] di " . fusion_get_settings('sitename') . ". Anda dapat membaca Mesej anda di " . fusion_get_settings('siteurl') . "messages.php\r\n\r\nAnda dapat menon-aktifkan pemberitahuan email ini melalui panel pengaturan pada halaman Mesej Peribadi jika Anda tidak ingin menerima pemberithauan emel selanjut ini.";
$locale['627'] = "Kesalahan";
$locale['628'] = "Tidak dapat mengirim Mesej Peribadi. Peti Masuk User telah penuh.";
$locale['629'] = "Anda tidak dapat memindah Mesej terpilih ke folder ini kerana pindaan ini akan melampaui had maksimum folder Mesej tersebut.";
$locale['630'] = " Had Mesej";
$locale['631'] = "Ya";
$locale['632'] = "Tidak";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:messages.php


示例13: add_to_title

        add_to_title($locale['global_200'] . $locale['articles_0060']);
        echo "<div class='panel panel-default tbl-border'>\n<div class='panel-body'>\n";
        echo "<div class='alert alert-info m-b-20 submission-guidelines'>" . str_replace("[SITENAME]", fusion_get_settings("sitename"), $locale['articles_0063']) . "</div>\n";
        echo openform('submit_form', 'post', BASEDIR . "submit.php?stype=a");
        echo form_text('article_subject', $locale['articles_0304'], $criteriaArray['article_subject'], array("required" => TRUE, "inline" => TRUE));
        if (multilang_table("AR")) {
            echo form_select('article_language', $locale['global_ML100'], $criteriaArray['article_language'], array("options" => fusion_get_enabled_languages(), "placeholder" => $locale['choose'], "width" => "250px", "inline" => TRUE));
        } else {
            echo form_hidden('article_language', '', $criteriaArray['article_language']);
        }
        echo form_select('article_keywords', $locale['articles_0204'], $criteriaArray['article_keywords'], array("max_length" => 320, "inline" => TRUE, "placeholder" => $locale['articles_0204a'], "width" => "100%", "error_text" => $locale['articles_0204a'], "tags" => TRUE, "multiple" => TRUE));
        echo form_select_tree("article_cat", $locale['articles_0201'], $criteriaArray['article_cat'], array("width" => "250px", "inline" => TRUE, "no_root" => TRUE, "query" => multilang_table("AR") ? "WHERE article_cat_language='" . LANGUAGE . "'" : ""), DB_ARTICLE_CATS, "article_cat_name", "article_cat_id", "article_cat_parent");
        $textArea_opts = array("required" => TRUE, "type" => fusion_get_settings("tinymce_enabled") ? "tinymce" : "html", "tinymce" => fusion_get_settings("tinymce_enabled") && iADMIN ? "advanced" : "simple", "autosize" => TRUE, "form_name" => "submit_form");
        echo form_textarea('article_snippet', $locale['articles_0202'], $criteriaArray['article_snippet'], $textArea_opts);
        $textArea_opts['required'] = $article_settings['article_extended_required'] ? TRUE : FALSE;
        echo form_textarea('article_article', $locale['articles_0203'], $criteriaArray['article_article'], $textArea_opts);
        echo fusion_get_settings("site_seo") ? "" : form_button('preview_article', $locale['articles_0240'], $locale['articles_0240'], array('class' => 'btn-primary m-r-10'));
        echo form_button('submit_article', $locale['articles_0060'], $locale['articles_0060'], array('class' => 'btn-primary'));
        echo closeform();
        echo "</div>\n</div>\n";
    }
} else {
    echo "<div class='well text-center'>\n";
    if (!$cat_exist) {
        echo $locale['articles_0043a'];
    } else {
        echo $locale['articles_0043'];
    }
    echo "</div>\n";
}
closetable();
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:31,代码来源:article_submit.php


示例14: author

+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once dirname(__FILE__) . "../../../../../maincore.php";
$text = stripinput($_POST['text']);
// filter to relative path conversion
echo "<div class='preview-response clearfix p-20'>\n";
// Set get_image paths based on URI. This is ajax request file. It doesn't return a standard BASEDIR.
$prefix_ = "";
if (!fusion_get_settings("site_seo") && isset($_POST['url'])) {
    $uri = pathinfo($_POST['url']);
    $count = substr($_POST['url'], -1) == "/" ? substr_count($uri['dirname'], "/") : substr_count($uri['dirname'], "/") - 1;
    $prefix_ = str_repeat("../", $count);
    foreach (cache_smileys() as $smiley) {
        $smiley_path = "./" . $prefix_ . "images/smiley/" . $smiley['smiley_image'];
        \PHPFusion\ImageRepo::setImage("smiley_" . $smiley['smiley_text'], $smiley_path);
    }
}
if ($_POST['editor'] == 'html') {
    $text = parsesmileys(nl2br(html_entity_decode(stripslashes($text))));
    if (isset($_POST['mode']) && $_POST['mode'] == 'admin') {
        $images = str_replace('../../../', '', IMAGES);
        $text = str_replace(IMAGES, $images, $text);
        $text = str_replace(IMAGES_N, $images, $text);
        $text = parse_imageDir($text, $prefix_ . "images/");
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:preview.ajax.php


示例15: fusion_get_settings

$locale['forum_0620'] = "Make this Thread Sticky";
$locale['forum_0621'] = "Lock this Thread";
$locale['forum_0622'] = "Disable Smileys in this Post";
$locale['forum_0623'] = "Show My Signature in this Post";
$locale['forum_0624'] = "Delete this Post";
$locale['forum_0625'] = "Delete attachment -";
$locale['forum_0626'] = "Notify me when a reply is posted";
$locale['forum_0627'] = "Hide Edit";
$locale['forum_0628'] = "Lock Post";
// Forum Post Merger
$locale['forum_0640'] = "Merged on";
// Search Forum Form
$locale['forum_0650'] = 'Flood control nice message.';
// Forum Notification Email
$locale['forum_0660'] = "Thread Reply Notification - {THREAD_SUBJECT}";
$locale['forum_0661'] = "Hello {USERNAME},\n\nA reply has been posted in the forum thread '{THREAD_SUBJECT}' which you are tracking at " . fusion_get_settings('sitename') . ". You can use the following link to view the reply:\n\n{THREAD_URL}\n\nIf you no longer wish to watch this thread you can click the 'Stop tracking this thread' link located at the top of the thread.\n\nRegards,\n" . fusion_get_settings('siteusername') . ".";
// Delete Thread
$locale['forum_0700'] = "Delete Thread";
$locale['forum_0701'] = "The Thread has been deleted.";
$locale['forum_0702'] = "Return to Forum";
$locale['forum_0703'] = "Return to Forum Index";
$locale['forum_0704'] = "Are you sure you want to delete this Thread?";
// Lock Thread
$locale['forum_0710'] = "Lock Thread";
$locale['forum_0711'] = "The Thread has been locked.";
// Unlock Thread
$locale['forum_0720'] = "Unlock Thread";
$locale['forum_0721'] = "The Thread has been unlocked.";
// Make Thread Sticky
$locale['forum_0730'] = "Make Thread Sticky";
$locale['forum_0731'] = "The Thread has been made sticky.";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:forum.php


示例16: ob_end_clean

     ob_end_clean();
     echo "<div class='text-right display-block'>\n";
     echo form_button("pButton", $locale['help'], $locale['help'], array("input_id" => "pButton", "type" => "button"));
     echo form_button("savepermalinks", $locale['save_changes'], $locale['413'], array("class" => "m-l-10 btn-primary", "input_id" => "save_top"));
     echo "</div>\n";
     // Driver Rules Installed
     echo "<h4>\n" . $locale['409'] . "</h4>\n";
     $i = 1;
     foreach ($driver as $data) {
         echo "<div class='list-group-item m-b-20'>\n";
         $source = preg_replace("/%(.*?)%/i", "<kbd class='m-2'>%\$1%</kbd>", $data['pattern_source']);
         $target = preg_replace("/%(.*?)%/i", "<kbd class='m-2'>%\$1%</kbd>", $data['pattern_target']);
         echo "<p class='m-t-10 m-b-10'>\n                <label class='label' style='background:#ddd; color: #000; font-weight:normal; font-size: 1rem;'>\n                " . $target . "\n</label>\n";
         echo "</p>\n";
         // new text input
         echo form_text("permalink[" . $data['pattern_id'] . "]", "", $data['pattern_source'], array("prepend_value" => fusion_get_settings("siteurl"), "inline" => TRUE, "class" => "m-b-0"));
         echo "</div>\n";
         $i++;
     }
     echo form_button("savepermalinks", $locale['save_changes'], $locale['413'], array("class" => "btn-primary m-b-20"));
     echo closeform();
 } else {
     echo "<table class='table table-responsive table-hover table-striped m-t-20'>\n";
     if (!empty($permalink)) {
         echo "<tr>\n";
         echo "<th width='1%' style='white-space:nowrap'>" . $locale['402'] . "</th>\n";
         echo "<th style='white-space:nowrap'><strong>" . $locale['403'] . "</th>\n";
         echo "<th width='1%' style='white-space:nowrap'>" . $locale['404'] . "</th>\n";
         echo "</tr>\n";
         foreach ($permalink as $data) {
             echo "<tr>\n";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:permalink.php


示例17: die

                        if ($mime_types[$extension] != $each['type']) {
                            die('Prevented an unwanted file upload attempt!');
                        }
                    }
                }
                unset($file_info, $extension);
            }
        }
        unset($mime_types);
    }
}
$defender = new defender();
// Set admin login procedures
Authenticate::setAdminLogin();
$defender->debug_notice = FALSE;
// turn this off after beta.
$defender->sniff_token();
$dynamic = new dynamics();
$dynamic->boot();
$fusion_page_head_tags =& \PHPFusion\OutputHandler::$pageHeadTags;
$fusion_page_footer_tags =& \PHPFusion\OutputHandler::$pageFooterTags;
$fusion_jquery_tags =& \PHPFusion\OutputHandler::$jqueryTags;
// Set theme using $_GET as well.
// Set theme
if ($userdata['user_level'] == USER_LEVEL_SUPER_ADMIN && isset($_GET['themes']) && theme_exists($_GET['themes'])) {
    $newUserTheme = array("user_id" => $userdata['user_id'], "user_theme" => stripinput($_GET['themes']));
    dbquery_insert(DB_USERS, $newUserTheme, "update");
    redirect(clean_request("", array("themes"), FALSE));
}
set_theme(empty($userdata['user_theme']) ? fusion_get_settings("theme") : $userdata['user_theme']);
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:30,代码来源:maincore.php


示例18: fusion_get_settings

<?php

$locale['400'] = "Motore di ricerca in " . fusion_get_settings('sitename');
$locale['401'] = "Cerca per:";
$locale['402'] = "Cerca";
$locale['403'] = "Cerca una di queste parole";
$locale['404'] = "I risultati devono contenere queste parole";
$locale['405'] = "Dove:";
$locale['406'] = "Opzioni";
$locale['407'] = "Tutto il sito";
$locale['408'] = "Risultati ricerca";
//addition date
$locale['420'] = "Cerca:";
$locale['421'] = "tutto";
$locale['422'] = "Ultimo giorno";
$locale['423'] = "Ultima settimana";
$locale['424'] = "Ultime due settimane";
$locale['425'] = "Ultimo mese";
$locale['426'] = "Ultimi tre mesi";
$locale['427'] = "Ultimi sei mesi";
//where
$locale['430'] = "titolo e messaggio";
$locale['431'] = "solo messaggio";
$locale['432'] = "solo titolo";
//sort by
$locale['440'] = "Ordina per:";
$locale['441'] = "data inserimento";
$locale['442'] = "titolo";
$locale['443'] = "autore";
//
$locale['450'] = "discendente";
开发者ID:Creatium,项目名称:PHP-Fusion-9-Locale,代码行数:31,代码来源:search.php


示例19: addNotice

                    addNotice('warning', $locale['425']);
                }
            }
        } else {
            if (!sendemail($settings['siteusername'], $settings['siteemail'], $input['mailname'], $input['email'], $input['subject'], $input['message'])) {
                $defender->stop();
                addNotice('warning', $locale['425']);
            }
        }
        opentable($locale['400']);
        echo "<div class='alert alert-success' style='text-align:center'><br />\n" . $locale['440'] . "<br /><br />\n" . $locale['441'] . "</div><br />\n";
        closetable();
    }
}
opentable($locale['400']);
$message = str_replace("[SITE_EMAIL]", hide_email(fusion_get_settings('siteemail')), $locale['401']);
$message = str_replace("[PM_LINK]", "<a href='messages.php?msg_send=1'>" . $locale['global_121'] . "</a>", $message);
echo $message . "<br /><br />\n";
echo "<!--contact_pre_idx-->";
echo openform('contactform', 'post', FUSION_SELF, array('max_tokens' => 1));
echo "<div class='panel panel-default tbl-border'>\n";
echo "<div class='panel-body'>\n";
echo form_text('mailname', $locale['402'], $input['mail 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP fw函数代码示例发布时间:2022-05-15
下一篇:
PHP fusion_get_page_option函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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