What exactly is the Dragonborn template?

I’m completely unfamiliar with the Dragonborn template, as I’ve never read the sourcebook it has come from, could someone enlighten me as to what it means to be a dragonborn character? Can you summarize?

In what way can it be applied to a character to enhance their roleplaying? Can you choose the type of dragon, or is it randomized? Does it change your physical appearance? Are there any bonuses that would make the character seem special by comparison to the spell slinging rage-wizard?

What are the benefits to being a dragonborn? I already know about the +2 con, -2 Dex and I’m thinking of using it with an elf to eliminate their con penalty. While I know it is sub-optimal to make an elf, the character I’m making is actually an Elf cleric ( Elf domain, Celerity domain ) of Ehlonna. ( She’s a cohort. )

Part of my reason for asking this is that I’m at work and a lot of stuff I have access to is actually firewalled, but the other half is that I’m really interested in hearing others thoughts concerning Dragonborn.

Can server side template injection lead to RCE or other severe consquences in Django?

During a penetration test, I found server side template injection in a Django application that sends templated emails. As far as I can tell, apart from some sensitive information disclosure (thanks to {% debug %} ) and the possibility of custom tags or filters, there isn’t really much I can do with this vulnerability. I tried {% ssi %} but it was not configured to allow any paths.

The Django version is 1.11

Is there any way to leverage the SSTI to make the server do something like SSRF, disclose the config, or gain RCE like in other template languages?

Use of public typedefs in template class types

Recently I picked up the habit of typedefing various types within template classes, as is done in the standard library. For example, a container class might look something along the lines of:

template<typename T> class custom_container { public:     typedef T value_type;     typedef value_type* pointer;     typedef value_type& reference;     typedef std::size_t size_type;      reference operator[](size_type);      // etc... }; 

However, after a while of using this, I began to question if it’s really such a good idea, despite supposedly increasing readability and expression of intent.

It seems counter-intuitive that one would alias, say, T to another type, since isn’t anyone using the class expecting the value_type to be T, and only ever T anyway (it is a custom_container<T> after all)? Similarly, would users of such a class not always expect pointer to be T* and reference to be T&?

We make use of typedefs to allow for ease of changing some aliased type to another if required, yet in the majority of the cases I come across, said typedefs are redundant, and almost confusing, as it would never make sense to have the alias synonymise any other type. custom_container probably wouldn’t be fulfilling its expectations if value_type was changed to anything else than T – the user expects it is some sort of container of Ts.

Therefore, is it still useful and/or good design to make heavy use of typedefs in template classes as done in the standard library?

Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working

I’m trying to customize the template of the Media Browser (when clicking on “Add Media” button within Edit Post page), by adding a caption with the filename on each thumbnail so I don’t need to select the image to check its filename on the Attachment Details panel.

What I have done so far is a version of the solution described in here: https://stackoverflow.com/a/25948448/8717608

I’m using the “tmpl-attachment” template, from line 506 of media-template.php which is exactly what I need to customize: https://github.com/WordPress/WordPress/blob/master/wp-includes/media-template.php

By clicking the Add Media button I was expecting to see all the thumbs with its filename in a black background on the bottom of the image, but nothing is happening. Looks like I’m missing something and I would appreciate any help to find out what is wrong.

add_action( 'wp_enqueue_media', 'add_media_overrides' ); function add_media_overrides() {     add_action( 'admin_footer-post.php', 'override_media_templates' ); } function override_media_templates(){     ?>      <script type="text/html" id="tmpl-attachment_custom">         <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">             <div class="thumbnail">                 <# if ( data.uploading ) { #>                     <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div>                 <# } else if ( 'image' === data.type && data.sizes ) { #>                     <div class="centered">                         <img src="{{ data.size.url }}" draggable="false" alt=""  style="height: 90%; transform: translate(-50%,-55%);"/>                         <div style="                             transform: translate(-50%,-100%);                             background-color: black;                             color: white;                             margin-top: 50%;                             font-size: 80%;                             z-index: 9999;                             position: relative;                             vertical-align: middle;                         ">{{ data.filename }}</div>                     </div>                 <# } else { #>                     <div class="centered">                         <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>                             <img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />                         <# } else if ( data.sizes && data.sizes.medium ) { #>                             <img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />                         <# } else { #>                             <img src="{{ data.icon }}" class="icon" draggable="false" alt="" />                         <# } #>                     </div>                     <div class="filename">                         <div>{{ data.filename }}</div>                     </div>                 <# } #>             </div>             <# if ( data.buttons.close ) { #>                 <button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text"><?php _e( 'Remove' ); ?></span></button>             <# } #>         </div>         <# if ( data.buttons.check ) { #>             <button type="button" class="check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text"><?php _e( 'Deselect' ); ?></span></button>         <# } #>         <#         var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';         if ( data.describe ) {             if ( 'image' === data.type ) { #>                 <input type="text" value="{{ data.caption }}" class="describe" data-setting="caption"                     placeholder="<?php esc_attr_e( 'Caption this image&hellip;' ); ?>" {{ maybeReadOnly }} />             <# } else { #>                 <input type="text" value="{{ data.title }}" class="describe" data-setting="title"                     <# if ( 'video' === data.type ) { #>                         placeholder="<?php esc_attr_e( 'Describe this video&hellip;' ); ?>"                     <# } else if ( 'audio' === data.type ) { #>                         placeholder="<?php esc_attr_e( 'Describe this audio file&hellip;' ); ?>"                     <# } else { #>                         placeholder="<?php esc_attr_e( 'Describe this media file&hellip;' ); ?>"                     <# } #> {{ maybeReadOnly }} />             <# }         } #>     </script>     <script>         jQuery(document).ready( function($  ) {             if( typeof wp.media.view.Attachment != 'undefined' ){                 wp.media.view.Attachment.prototype.template = wp.media.template( 'attachment-custom' );             }         });     </script>     <?php } 

Magento 2 include template with form in CMS Block

I have been struggling trying to put a template functionally working inside a CMS Block. When I put this code inside my CMS block the template is correctly implemented

{{block class="Experius\DonationProduct\Block\Donation\ListProduct" name="cms.donation.list" template="Experius_DonationProduct::donation.phtml"}} 

However , the template has a pop up window that comes up when you click a button, and that pop up has a form. The problem is that the pop up window does not comes up when its in the CMS block, its like if JS functions were not working.

The template is located in app/design/frontend/Vendor/Theme/Experius_DonationProduct/templates/donation.phtml its override from the original module. What can I do? Thank you and greetings!

Template is missing

Eu estou tentando fazer com que um form chame meu seguinte método na controller

<form accept-charset="UTF-8" action="/back_office/reports/show" method="post" id="myForm" role="form"> 

E logo em seguida chame novamente a mesma tela que estava, só que atualizando ela com os métodos passados pela controller

/back_office/reports/_generalreports.html.erb 

Create a site from a saved template not available

The option for creating a site template isn’t available for me.

enter image description here

So what I did is go to SharePoint Designer and in the “Site” tab under “Site Options”, I set “SaveSiteAsTemplateEnabled” to “true”. Then I navigated to “/_layouts/15/savetmpl.aspx” directly to save my template and then downloaded it from the SiteCollectionGallery.

Now I want to create a site using this template but my template isn’t appearing int the template list.

enter image description here

Note : When I go to Site Settings -> Site Administration -> Click Create in the Sites and Workspaces dialog, I see for a brief moment other templates before being redirected to the page without my template. I copied the link before being redirected and got this message :

An error occurred while processing your request.

Thank you for your help.

Magento 2.2.5: Email Template Order Admin

I’m looking for explanation about email template in admin.

As you can see, this button will send an email to my gmail account.

enter image description here And as far as i know, magento use order_new.html to render html to email, but even when i changed it, the html is still the same, am i missing something here?

C:\xampp\htdocs\magento\vendor\magento\module-sales\view\frontend\email\order_new.html

<!-- /**  * Copyright © Magento, Inc. All rights reserved.  * See COPYING.txt for license details.  */ --> <!--@subject {{trans "Your %store_name order confirmation" store_name=$  store.getFrontendName()}} @--> <!--@vars { "var formattedBillingAddress|raw":"Billing Address", "var order.getEmailCustomerNote()":"Email Order Note", "var order.increment_id":"Order Id", "layout handle=\"sales_email_order_items\" order=$  order area=\"frontend\"":"Order Items Grid", "var payment_html|raw":"Payment Details", "var formattedShippingAddress|raw":"Shipping Address", "var order.getShippingDescription()":"Shipping Description", "var shipping_msg":"Shipping message" } @-->  {{template config_path="design/email/header_template"}}  <table>     <tr class="email-intro">         <td>             <p class="greeting">{{trans "%customer_name," customer_name=$  order.getCustomerName()}}</p>             <p>                 {{trans "Thank you for your order from %store_name." store_name=$  store.getFrontendName()}}                 {{trans "Once your package ships we will send you a tracking number."}}                 {{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$  this.getUrl($  store,'customer/account/',[_nosid:1]) |raw}}             </p>             <p>                 {{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$  store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$  store_phone |raw}}{{/depend}}.                 {{depend store_hours}}                     {{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$  store_hours |raw}}                 {{/depend}}             </p>         </td>     </tr>     <tr class="email-summary">         <td>             <h1>{{trans 'Your Order <span class="no-link">#%increment_id</span>' increment_id=$  order.increment_id |raw}}</h1>             <p>{{trans 'Placed on <span class="no-link">%created_at</span>' created_at=$  order.getCreatedAtFormatted(2) |raw}}</p>         </td>     </tr>     <tr class="email-information">         <td>             {{depend order.getEmailCustomerNote()}}             <table class="message-info">                 <tr>                     <td>                         {{var order.getEmailCustomerNote()|escape|nl2br}}                     </td>                 </tr>             </table>             {{/depend}}             <table class="order-details">                 <tr>                     <td class="address-details">                         <h3>{{trans "Billing Info"}}</h3>                         <p>{{var formattedBillingAddress|raw}}</p>                     </td>                     {{depend order.getIsNotVirtual()}}                     <td class="address-details">                         <h3>{{trans "Shipping Info"}}</h3>                         <p>{{var formattedShippingAddress|raw}}</p>                     </td>                     {{/depend}}                 </tr>                 <tr>                     <td class="method-info">                         <h3>{{trans "Payment Method"}}</h3>                         {{var payment_html|raw}}                     </td>                     {{depend order.getIsNotVirtual()}}                     <td class="method-info">                         <h3>{{trans "Shipping Method"}}</h3>                         <p>{{var order.getShippingDescription()}}</p>                         {{if shipping_msg}}                         <p>{{var shipping_msg}}</p>                         {{/if}}                     </td>                     {{/depend}}                 </tr>             </table>             {{layout handle="sales_email_order_items" order=$  order area="frontend"}}         </td>     </tr> </table>  {{template config_path="design/email/footer_template"}} 

enter image description here