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

PHP getSiteName函数代码示例

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

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



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

示例1: displayHeader

 /**
  * displayHeader 
  * 
  * @return void
  */
 function displayHeader()
 {
     $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Members'), 'pageId' => 'members', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
     displayPageHeader($params);
     $order = isset($_GET['order']) ? $_GET['order'] : 'alphabetical';
     $alpha = $age = $part = $act = $join = '';
     if ($order == 'alphabetical') {
         $alpha = 'class="selected"';
     } elseif ($order == 'age') {
         $age = 'class="selected"';
     } elseif ($order == 'participation') {
         $part = 'class="selected"';
     } elseif ($order == 'activity') {
         $act = 'class="selected"';
     } elseif ($order == 'joined') {
         $join = 'class="selected"';
     }
     echo '
         <div id="leftcolumn">
             <h3>' . T_('Views') . '</h3>
             <ul>
                 <li ' . $alpha . '><a href="?order=alphabetical">' . T_('Alphabetical') . '</a></li>
                 <li ' . $age . '><a href="?order=age">' . T_('Age') . '</a></li>
                 <li ' . $part . '><a href="?order=participation">' . T_('Participation') . '</a></li>
                 <li ' . $act . '><a href="?order=activity">' . T_('Last Seen') . '</a></li>
                 <li ' . $join . '><a href="?order=joined">' . T_('Joined') . '</a></li>
             </ul>
         </div>
         <div id="maincolumn">';
 }
开发者ID:lmcro,项目名称:fcms,代码行数:35,代码来源:members.php


示例2: __construct

 function __construct()
 {
     $guid = getInput("guid");
     $reply = getInput("reply");
     if (!$reply) {
         new SystemMessage("Message body cannot be left empty.");
         forward();
     }
     $message = getEntity($guid);
     $to = getLoggedInUserGuid() == $message->to ? $message->from : $message->to;
     $from = getLoggedInUserGuid();
     $to_user = getEntity($to);
     $from_user = getEntity($from);
     $message_element = new Messageelement();
     $message_element->message = $reply;
     $message_element->to = $to;
     $message_element->from = $from;
     $message_element->container_guid = $guid;
     $message_element->save();
     $link = getSiteURL() . "messages";
     notifyUser("message", $to, getLoggedInUserGuid(), $to);
     sendEmail(array("to" => array("name" => $to_user->full_name, "email" => $to_user->email), "from" => array("name" => getSiteName(), "email" => getSiteEmail()), "subject" => "You have a new message from " . getLoggedInUser()->full_name, "body" => "You have received a new message from " . getLoggedInUser()->full_name . "<br/><a href='{$link}'>Click here to view it.</a>", "html" => true));
     new SystemMessage("Your message has been sent.");
     forward("messages/" . $message->guid);
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:25,代码来源:MessageReplyActionHandler.php


示例3: __construct

 /**
  * Constructor
  * 
  * @return void
  */
 public function __construct($fcmsError, $fcmsDatabase, $fcmsUser)
 {
     $this->fcmsError = $fcmsError;
     $this->fcmsDatabase = $fcmsDatabase;
     $this->fcmsUser = $fcmsUser;
     $this->fcmsTemplate = array('sitename' => cleanOutput(getSiteName()), 'nav-link' => getAdminNavLinks(), 'pagetitle' => T_('Administration: YouTube'), 'path' => URL_PREFIX, 'displayname' => $fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
     $this->control();
 }
开发者ID:sauravpratihar,项目名称:fcms,代码行数:13,代码来源:youtube.php


示例4: action

 function action($data = array(), $post = array(), $id)
 {
     $ci =& get_instance();
     $ci->load->library('session');
     if (isset($this->ini['sandbox']) && isset($this->ini['api_login_id']) && isset($this->ini['transaction_key']) && isset($post['card_num']) && isset($post['exp_date'])) {
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetRequest.php';
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetTypes.php';
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetXMLResponse.php';
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetResponse.php';
         require dirname(__FILE__) . '/lib/AuthorizeNetAIM.php';
         define("AUTHORIZENET_API_LOGIN_ID", $this->ini['api_login_id']);
         define("AUTHORIZENET_TRANSACTION_KEY", $this->ini['transaction_key']);
         define("AUTHORIZENET_SANDBOX", $this->ini['sandbox']);
         $sale = new AuthorizeNetAIM();
         $sale->amount = number_format($data['amount'], 2);
         $sale->card_num = $post['card_num'];
         $sale->exp_date = $post['exp_date'];
         $response = $sale->authorizeAndCapture();
         if ($response->approved) {
             $ci =& get_instance();
             $ci->load->model('order_m');
             $order = $ci->order_m->getOrderNumber($data['item_number']);
             if (count($order) > 0) {
                 $update['status'] = 'completed';
                 $updatehis['order_id'] = $order->id;
                 $updatehis['label'] = 'order_status';
                 $updatehis['content'] = json_encode(array($order->order_number => 'completed'));
                 $updatehis['date'] = date('Y-m-d H:i:s');
                 $ci->order_m->_table_name = 'orders';
                 if ($ci->order_m->save($update, $order->id)) {
                     $ci->order_m->_table_name = 'orders_histories';
                     $ci->order_m->save($updatehis);
                     $ci->load->helper('cms');
                     $user = $ci->session->userdata('user');
                     //params shortcode email.
                     $params = array('username' => $user['username'], 'email' => $user['email'], 'date' => date('Y-m-d H:i:s'), 'shop' => getSiteName(config_item('site_name')), 'shop_url' => site_url(), 'total' => number_format($data['amount'], 2), 'order_number' => $data['item_number'], 'status' => 'completed');
                     //config email.
                     $config = array('mailtype' => 'html');
                     $subject = configEmail('sub_order_status', $params);
                     $message = configEmail('order_status', $params);
                     $ci->load->library('email', $config);
                     $ci->email->from(getEmail(config_item('admin_email')), getSiteName(config_item('site_name')));
                     $ci->email->to($user['email']);
                     $ci->email->subject($subject);
                     $ci->email->message($message);
                     $ci->email->send();
                 }
             }
             $ci->session->set_flashdata('msg', 'Thanks you for payment!');
             if (isset($this->ini['message'])) {
                 $ci->session->set_flashdata('message', $this->ini['message']);
             }
         } else {
             $ci->session->set_flashdata('error', 'Your payment not success!');
         }
     }
     redirect(site_url('payment/confirm'));
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:58,代码来源:authorize.php


示例5: displayHeader

 /**
  * displayHeader 
  * 
  * Displays the header of the page, including the leftcolumn navigation.
  * 
  * @return void
  */
 function displayHeader()
 {
     $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => cleanOutput(getSiteName()), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Polls'), 'pageId' => 'poll', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
     displayPageHeader($params);
     $navParams = array('navigation' => array(array('url' => 'polls.php', 'textLink' => T_('Latest')), array('url' => 'polls.php?action=pastpolls', 'textLink' => T_('Past Polls'))));
     if ($this->fcmsUser->access < 2) {
         $navParams['actions'] = array(array('url' => 'admin/polls.php', 'textLink' => T_('Administrate')));
     }
     loadTemplate('global', 'page-navigation', $navParams);
 }
开发者ID:lmcro,项目名称:fcms,代码行数:17,代码来源:polls.php


示例6: getEmailHeaders

/**
 * getEmailHeaders 
 * 
 * @param string $name 
 * @param string $email 
 * 
 * @return string
 */
function getEmailHeaders($name = '', $email = '')
{
    if (empty($name)) {
        $name = getSiteName();
    }
    if (empty($email)) {
        $email = getContactEmail();
    }
    return "From: {$name} <{$email}>\r\n" . "Reply-To: {$email}\r\n" . "Content-Type: text/plain; charset=UTF-8;\r\n" . "MIME-Version: 1.0\r\n" . "X-Mailer: PHP/" . phpversion();
}
开发者ID:lmcro,项目名称:fcms,代码行数:18,代码来源:utils.php


示例7: displayHeader

    /**
     * displayHeader 
     * 
     * @return void
     */
    function displayHeader()
    {
        $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Notifications'), 'pageId' => 'notifications', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
        $params['javascript'] = '
<script type="text/javascript">
$(document).ready(function() {
    initChatBar(\'' . T_('Chat') . '\', \'' . URL_PREFIX . '\');
});
</script>';
        loadTemplate('global', 'header', $params);
    }
开发者ID:lmcro,项目名称:fcms,代码行数:16,代码来源:notifications.php


示例8: __construct

 public function __construct()
 {
     gateKeeper();
     $email_users = array();
     $container_guid = getInput("container_guid");
     $topic = getEntity($container_guid);
     $category_guid = $topic->container_guid;
     $category = getEntity($category_guid);
     $description = getInput("comment");
     $comment = new Forumcomment();
     $comment->description = $description;
     $comment->container_guid = $container_guid;
     $comment->category_guid = $category_guid;
     $comment->owner_guid = getLoggedInUserGuid();
     $comment->save();
     new SystemMessage("Your comment has been posted.");
     new Activity(getLoggedInUserGuid(), "forum:comment:posted", array(getLoggedInUser()->getURL(), getLoggedInUser()->full_name, $topic->getURL(), $topic->title, truncate($comment->description)), $container_guid, $category->access_id);
     $all_comments = getEntities(array("type" => "Forumcomment", "metadata_name" => "container_guid", "metadata_value" => $container_guid));
     $notify_users = array($topic->owner_guid);
     $container_owner_guid = $topic->owner_guid;
     $container_owner = getEntity($container_owner_guid);
     if ($container_owner->notify_when_forum_comment_topic_i_own == "email" || $container_owner->notify_when_forum_comment_topic_i_own == "both") {
         $email_users[] = $container_guid;
     }
     foreach ($all_comments as $comment) {
         $user_guid = $comment->owner_guid;
         $user = getEntity($user_guid);
         switch ($user->notify_when_forum_comment_topic_i_own) {
             case "both":
                 $notify_users[] = $comment->owner_guid;
                 $email_users[] = $comment->owner_guid;
                 break;
             case "email":
                 $email_users[] = $comment->owner_guid;
                 break;
             case "site":
                 $notify_users[] = $comment->owner_guid;
                 break;
             case "none":
                 break;
         }
     }
     $notify_users = array_unique($notify_users);
     foreach ($notify_users as $user_guid) {
         notifyUser("forumcomment", $container_guid, getLoggedInUserGuid(), $user_guid);
     }
     foreach ($email_users as $user) {
         $params = array("to" => array($user->full_name, $user->email), "from" => array(getSiteName(), getSiteEmail()), "subject" => "You have a new comment.", "body" => "You have a new comment.  Click <a href='{$url}'>Here</a> to view it.", "html" => true);
         sendEmail($params);
     }
     forward();
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:52,代码来源:AddForumCommentActionHandler.php


示例9: __construct

 public function __construct($data = NULL)
 {
     gateKeeper();
     $logged_in_user = getLoggedInUser();
     if (!$data) {
         // Get the comment body
         $comment_body = getInput("comment");
         // Get container url
         $container_guid = getInput("guid");
     } else {
         $comment_body = $data['comment_body'];
         $container_guid = $data['container_guid'];
     }
     $container = getEntity($container_guid);
     $container_owner_guid = $container->owner_guid;
     if ($container_owner_guid) {
         $container_owner = getEntity($container_owner_guid);
     }
     $url = $container->getURL();
     if (!$url) {
         $url = getSiteURL();
     }
     // Create the comment
     CommentsPlugin::createComment($container_guid, $comment_body);
     if ($container_owner_guid) {
         if ($container_owner_guid != getLoggedInUserGuid()) {
             $params = array("to" => array($container_owner->full_name, $container_owner->email), "from" => array(getSiteName(), getSiteEmail()), "subject" => "You have a new comment.", "body" => "You have a new comment.  Click <a href='{$url}'>Here</a> to view it.", "html" => true);
             switch ($logged_in_user->getSetting("notify_when_comment")) {
                 case "email":
                     sendEmail($params);
                     break;
                 case "none":
                     break;
                 case "site":
                     notifyUser("comment", $container_guid, getLoggedInUserGuid(), $container_owner_guid);
                     break;
                 case "both":
                     sendEmail($params);
                     notifyUser("comment", $container_guid, getLoggedInUserGuid(), $container_owner_guid);
                     break;
             }
         }
     }
     runHook("add:comment:after");
     if (getLoggedInUserGuid() != $container_owner_guid && $container_owner_guid) {
         new Activity(getLoggedInUserGuid(), "activity:comment", array(getLoggedInUser()->getURL(), getLoggedInUser()->full_name, $container_owner->getURL(), $container_owner->full_name, $container->getURL(), translate($container->type), truncate($comment_body)));
     } elseif (!$container_owner_guid) {
         new Activity(getLoggedInUserGuid(), "activity:comment:own", array(getLoggedInUser()->getURL(), getLoggedInUser()->full_name, $container->getURL(), $container->title, translate($container->type), truncate($comment_body)));
     }
     // Return to container page.
     forward();
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:52,代码来源:AddCommentActionHandler.php


示例10: sendVerificationEmail

 static function sendVerificationEmail($user)
 {
     if ($user->verified == "true") {
         return false;
     }
     $user->email_verification_code = randString(70);
     $user->save();
     if (sendEmail(array("from" => array("email" => getSiteEmail(), "name" => getSiteName()), "to" => array("email" => $user->email, "name" => $user->first_name . " " . $user->last_name), "subject" => display("email/verify_email_subject", array("user_guid" => $user->guid)), "body" => display("email/verify_email_body", array("user_guid" => $user->guid))))) {
         return true;
     }
     $user->email_verification_code = NULL;
     $user->save();
     return false;
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:14,代码来源:Email.php


示例11: termSearchByUrl

 public function termSearchByUrl(Request $request)
 {
     $url = $request['url'];
     $connection = getSiteName(getDomain($url));
     $path_alias = getUri($url);
     if (empty($connection) || empty($path_alias)) {
         return AJAX::argumentError();
     }
     $termModule = new TermModule($connection);
     $result = $termModule->getTermInfo(array('path_alias' => $path_alias));
     if (count($result) > 0) {
         return AJAX::success(array('info' => $result));
     } else {
         return AJAX::notExist();
     }
 }
开发者ID:nosun,项目名称:laravel_base,代码行数:16,代码来源:TermController.php


示例12: productSearchByURL

 public function productSearchByURL(Request $request)
 {
     $url = $request['url'];
     $connection = getSiteName(getDomain($url));
     $sn = getSn($url);
     if (empty($connection) || empty($sn)) {
         return AJAX::argumentError();
     }
     $termModule = new ProductModule($connection);
     $result = $termModule->getProductInfo(array('sn' => $sn));
     if (count($result) > 0) {
         return AJAX::success(array('info' => $result));
     } else {
         return AJAX::notExist();
     }
 }
开发者ID:nosun,项目名称:laravel_base,代码行数:16,代码来源:ProductController.php


示例13: __construct

 function __construct()
 {
     gateKeeper();
     $to = getInput("to");
     $from = getLoggedInUserGuid();
     $subject = getInput("subject");
     $message_body = getInput("message");
     if (!$message_body) {
         new SystemMessage("Message body cannot be left blank.");
         forward();
     }
     // Make sure recipient is a user
     $to_user = getEntity($to);
     classGateKeeper($to_user, "User");
     // Make sure logged in user and to user are friends
     if (!FriendsPlugin::friends(getLoggedInUserGuid(), $to)) {
         forward();
     }
     // Create a new message
     $message = new Message();
     $message->to = $to;
     $message->from = $from;
     $message->subject = $subject;
     $message->save();
     $message_element = new Messageelement();
     $message_element->to = $to;
     $message_element->from = $from;
     $message_element->subject = $subject;
     $message_element->message = $message_body;
     $message_element->container_guid = $message->guid;
     $message_element->save();
     $link = getSiteURL() . "messages";
     $notify = $to_user->notify_when_message;
     if (!$notify) {
         $notify = "both";
     }
     if ($notify == "both" || $notify == "site") {
         notifyUser("message", $to, $from, $to);
     }
     if ($notify == "both" || ($notify = "email")) {
         sendEmail(array("to" => array("name" => $to_user->full_name, "email" => $to_user->email), "from" => array("name" => getSiteName(), "email" => getSiteEmail()), "subject" => "You have a new message from " . getLoggedInUser()->full_name, "body" => "You have received a new message from " . getLoggedInUser()->full_name . "<br/><a href='{$link}'>Click here to view it.</a>", "html" => true));
     }
     new SystemMessage("Your message has been sent.");
     forward();
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:45,代码来源:SendMessageActionHandler.php


示例14: displayHeader

    /**
     * displayHeader 
     * 
     * @return void
     */
    function displayHeader()
    {
        $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Help'), 'pageId' => 'help', 'path' => URL_PREFIX, 'displayname' => getUserDisplayName($this->fcmsUser->id), 'version' => getCurrentVersion());
        displayPageHeader($params);
        echo '
            <div id="leftcolumn">
                <h3>' . T_('Topics') . '</h3>
                <ul class="menu">
                    <li><a href="?topic=photo">' . T_('Photo Gallery') . '</a></li>
                    <li><a href="?topic=video">' . T_('Video Gallery') . '</a></li>
                    <li><a href="?topic=settings">' . T_('Personal Settings') . '</a></li>
                    <li><a href="?topic=address">' . T_('Address Book') . '</a></li>
                    <li><a href="?topic=admin">' . T_('Administration') . '</a></li>
                </ul>
            </div>

            <div id="maincolumn">';
    }
开发者ID:lmcro,项目名称:fcms,代码行数:23,代码来源:help.php


示例15: displayHeader

    /**
     * displayHeader 
     * 
     * @return void
     */
    function displayHeader()
    {
        echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . getSiteName() . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<script type="text/javascript" src="ui/js/jquery.js"></script>
<script type="text/javascript" src="ui/js/fcms.js"></script>
<link rel="stylesheet" type="text/css" href="ui/css/fcms-core.css" />
<script type="text/javascript">
$(document).ready(function() {
    initAttendingEvent();
});
</script>
</head>
<body id="invitation" class="clearfix">
    <img id="logo" src="ui/img/logo.gif" alt="' . getSiteName() . '"/>';
    }
开发者ID:lmcro,项目名称:fcms,代码行数:24,代码来源:invitation.php


示例16: __construct

 public function __construct()
 {
     new CSS("videos", getSitePath() . "core_plugins/videos/vendor/mediaelement/build/mediaelementplayer.css");
     new FooterJS("video", getSiteURL() . "core_plugins/videos/assets/js/video.js", 5001, true);
     new FooterJS("video_player", getSiteURL() . "core_plugins/videos/vendor/mediaelement/build/mediaelement-and-player.min.js", 5000);
     new StorageType("Video", "description", "text");
     new StorageType("Video", "url", "text");
     new StorageType("Videoalbum", "description", "text");
     new StorageType("Videoalbum", "icon_filename", "text");
     new ViewExtension("header:after", "page_elements/video_selector");
     new ViewExtension("page_elements/site_js", "videos/video_footer");
     new ViewExtension("profile/right", "videos/profile");
     new ViewExtension("tinymce/buttons", "videos/tinymce_button");
     new Hook("cron:minute", "VideoConvertHook");
     new Admintab("video_settings", 1000, array());
     new Setting("allow_video_uploads", "dropdown", array("no" => "No", "yes" => "Yes"), "video_settings");
     new Setting("ffmpeg_ffmprobe_executable_path", "text", array(), "video_settings", shell_exec("which ffmpeg"));
     new Metatag("Video", "title", getSiteName() . " | Videos");
     new MenuItem(array("name" => "videos", "href" => "videos", "label" => "Videos", "menu" => "header_left", "list_class" => "visible-xs hidden-sm visible-md visible-lg"));
     new MenuItem(array("name" => "videos2", "href" => "videos", "label" => "Videos", "menu" => "tools", "page" => "videos"));
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:21,代码来源:VideosPlugin.php


示例17: __construct

 public function __construct()
 {
     new CSS("photo", getSitePath() . "core_plugins/photos/assets/css/photos.css");
     new StorageType("Photo", "description", "text");
     new StorageType("Photoalbum", "description", "text");
     new StorageType("Photoalbum", "icon_filename", "text");
     new FooterJS("photo", getSiteURL() . "core_plugins/photos/assets/js/photo.js", 5000, true);
     new ViewExtension("header:after", "page_elements/photo_selector");
     new ViewExtension("profile/middle", "photos/profile");
     new ViewExtension('pages/home_stats', "pages/photo_stats");
     new ViewExtension("page_elements/site_js", "photos/photo_footer");
     new ViewExtension("tinymce/buttons", "photos/tinymce_button");
     if (isEnabledPlugin("groups")) {
         new ViewExtension("groups/right", "photos/group_photos");
     } else {
         removeViewExtension("groups/right", "photos/group_photos");
     }
     new Metatag("Photo", "title", getSiteName() . " | Photos");
     new MenuItem(array("name" => "photos", "href" => "photos", "label" => "Photos", "menu" => "header_left", "list_class" => "visible-xs hidden-sm visible-md visible-lg"));
     new MenuItem(array("name" => "photos2", "href" => "photos", "label" => "Photos", "menu" => "tools", "page" => "photos"));
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:21,代码来源:PhotosPlugin.php


示例18: displayHeader

/**
 * displayHeader 
 * 
 * @return void
 */
function displayHeader()
{
    echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . getSiteName() . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Ryan Haudenschilt" />
<link rel="stylesheet" type="text/css" href="' . URL_PREFIX . 'ui/themes/default/style.css"/>
<link rel="shortcut icon" href="' . URL_PREFIX . 'ui/themes/favicon.ico"/>';
    // TODO
    // Move css to fcms-core
    echo '
<style type="text/css">
html { background: #fff; }
body { width: 600px; margin: 0; padding: 20px; text-align: left; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; border: none; background: #fff; }
form div, form { display: inline; }
td.n { padding: 2px; text-align: right; width: 75px; }
td.v { text-align: center; width: 30px; }
td.file { padding: 0 5px;  text-align: left; width: 150px; }
tr.alt { background-color: #f4f4f4; }
.delbtn, .viewbtn { padding: 0 }
</style>
<script type="text/javascript">
//<![CDATA[
function insertUpImage(str) {
    var textarea = window.opener.document.getElementById(\'post\');
    if (textarea) {
        if (textarea.value == "message") { textarea.value = str + " "; } else { textarea.value += str + " "; }
        textarea.focus();
    }
    javascript:window.close();
    return true;
}
//]]>
</script>
</head>
<body>';
}
开发者ID:lmcro,项目名称:fcms,代码行数:45,代码来源:upimages.php


示例19: sendPasswordResetLink

 public function sendPasswordResetLink()
 {
     $this->password_reset_code = Security::generateToken();
     $this->save();
     try {
         $mail = new \PHPMailer(true);
         $mail->From = getSiteEmail();
         $mail->FromName = getSiteName();
         $mail->addAddress($this->email);
         $mail->isHTML(true);
         $mail->Subject = display("email/forgot_password_subject");
         $mail->Body = display("email/forgot_password_body", array("user_guid" => $this->guid));
         $mail->From = getSiteEmail();
         $mail->FromName = getSiteName();
         $mail->isHTML(true);
         // Set email format to HTML
         $mail->send();
         return true;
     } catch (\Exception $e) {
         return false;
     }
 }
开发者ID:socialapparatus,项目名称:socialapparatus,代码行数:22,代码来源:User.php


示例20: displayHeader

 /**
  * displayHeader 
  * 
  * @return void
  */
 function displayHeader()
 {
     $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Contact'), 'pageId' => 'contact', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion());
     displayPageHeader($params);
 }
开发者ID:lmcro,项目名称:fcms,代码行数:10,代码来源:contact.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getSiteURL函数代码示例发布时间:2022-05-15
下一篇:
PHP getSingular函数代码示例发布时间: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