<!DOCTYPE html>
<html>
<head>
<meta name="Copyright" content="Copyright © 2018 AXEL. All worldwide rights reserved.">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>AXEL</title>
<link rel="icon" href="/favicon.ico?v=3" sizes="48x48" />
<link rel="icon" href="/favicon.ico?v=3" sizes="32x32" />
<link rel="shortcut icon" href="/favicon.ico?v=3" />
<!-- require opus.ui.projects.Viacubemedia styles -->
<!-- used for dijit.Tooltip (!!!) styles -->
<!-- require opus.ui.file.Manager styles -->
<script>
(function () {
var h = document.getElementsByTagName('head')[0],
l = document.createElement('link');
l.rel = 'stylesheet';
l.href = 'simplestorage_combined_0.css';
h.appendChild(l);
})();
</script>
</head>
<body>
<div id="fb-root"></div>
<div id="storage_place"></div>
<script>
var dojoConfig = {
theme: 'amigo',
async: true
},
locale = location.href.match(/[?&]lang=([a-z]{2}(?:-[a-z]{2})?)/);
var b = document.getElementsByTagName('body')[0];
b.className = ['tundra', dojoConfig.theme].join(' ');
if (locale && locale.length > 1) {
dojoConfig.locale = locale[1];
} else if (getCookie('locale')) {
dojoConfig.locale = getCookie('locale');
}
function getCookie(name) {
var c = document.cookie,
_name = name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, function(ch) {
return "\\" + ch;
}),
matches = c.match(new RegExp("(?:^|; )" + _name + "=([^;]*)"));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
</script>
<script type="text/javascript" src="j/dojo/dojo.js" onerror="alert('Error loading ' + this.src)"></script>
<script>
require(['opus/ui/projects/StorageFactory', 'opus/lib/engine'], function (StorageFactory, engine) {
engine.init(null, function () {
var pathname = location.pathname,
app = /^axelpay/.test(location.host) ? 'paidlink' : /^\/tag\//.test(pathname) ? 'dogtag' : 'share',
id = pathname.replace(/\/(item|tag)\//, ''),
id_type = {
paidlink: 'pid',
dogtag: 'did',
share: 'rid'
},
systemname = engine.getCompany('systemname'),
url = engine._config.links[systemname] ? engine._config.links[systemname].login : engine._config.links.def.login,
email = engine.getUser('email'),
params = ['redirect_to=' + encodeURIComponent(location.href)],
proceed = function (data) {
app == 'dogtag' && (data.rid = data.shareuser_id);
data[id_type[app]] = id;
if (data.need_login || data.is_private == 'Y' && data.invitee != email || data.code == 'dogtag-501' && !email) {
params.push('reauth=1');
if (data.icode) {
params.push('code=' + encodeURIComponent(data.icode));
}
if (data.invitee) {
params.push('email=' + encodeURIComponent(data.invitee));
}
location.href = url + '?' + params.join('&');
} else {
new StorageFactory({
data: data
}, document.getElementById('storage_place'));
}
};
engine.loadServerData(app, {
__skip_errors: true,
_a: 'get_simple_storage_data',
id: id
}).then(
function (response) {
proceed(response.data || {});
},
function (response) {
proceed({
code: response.code,
error: response.data
});
}
)
});
});
</script>
</body>
</html>