Add IMAP webmail tag, admin/opensource subpage tiers, store/cart, htmleditor, uploads

New __imap*/__smtpsend/__eval Jet tags give templates real IMAP
(list/message/flag/delete/move/search/folders/accounts) and SMTP-send
capability, backing the new /email webmail client (email.jet/
email.menu, assets/images/email.js + newemail.js) and its
mainpagetemplate.jet-based page shell. Most of this tag family's
source was already being built into the live site (Tag.cpp already
registered __imap/__imaplist/__imapmessage/__imapflag/__imapdelete/
__eval) but had never actually been committed; this also registers
and commits the remaining five (__imapmove/__imapfolders/
__imapsearch/__smtpsend/__imapaccounts).

admin.page/admin.menu gain a real subpage tier (admin-email,
admin-newemail, admin-invoices, admin-products, admin-users) replacing
several previously top-level pages, mirrored by a similar
opensource.page subpage tier (opensource-overview/asm1802/barantmail/
jet/serverframework/synthmax) - old top-level pages retired via git
rename (asm1802.page, jet.page, serverframework.page,
admin_invoices.page); barantmail.page is dropped outright, folded into
opensource-barantmail.subpage.

New storefront (store.page, store-createstore.subpage,
barantstore.page) and cart flow (cart.jet, updatecartqty.proc,
removecartitem.proc, editproduct.page/selectproduct.proc/
update_product.proc for inventory maintenance against the barant
database).

New document upload/download manager (documents.jet, documents_api.jet,
documents_upload.proc, documents_delete.proc,
assets/images/documents.js + documents-page.js) with a persistent
floating panel, and a rich-text page editor (htmleditor.jet/.page,
createhtmleditor.proc, savehtmleditor.proc, assets/images/htmleditor.js
+ its icon/logo assets).

SESSIONCTL.tag: login now redirects back to the originally-requested
page instead of always landing on /account ($[start:0] vs $[start]
variable-name mismatch).

main.css/menu.bar/invoices.menu/jet_overview.section/login.menu:
styling and navigation updates for the above; new site assets (fonts,
images, audio) referenced by them.

jetc/build-assets.sh, list_jet_files.sh, lowercase_jet.py,
strip_fragments.py: small dev tooling used while building the above.
This commit is contained in:
Brad Arant committed 2026-09-06 04:14:00 +00:00
1 parent b0cadc3f08
commit c1491b044b
115 files changed
+6174 -137

No files matched your search

+7 -1
View File
@@ -29,7 +29,7 @@
<tag name="linkbutton" keywords="pagedir page process name name2 value value2 target class multipart">
<tag name="linkbutton" keywords="pagedir page subpage process name name2 value value2 target class multipart">
<A HREF="javascript:
@@ -48,6 +48,12 @@
document.forms[0].PAGE.value='#[PAGE]';
</IF>
<IF VALUE1="#[SUBPAGE]" VALUE2="" TYPE="EQ">
document.forms[0].SUBPAGE.value='';
<ELSE>
document.forms[0].SUBPAGE.value='#[SUBPAGE]';
</IF>
<IF VALUE1="#[NAME]" VALUE2="" TYPE="NE">
document.forms[0].#[NAME].value='#[VALUE]';
</IF>
+16
View File
@@ -0,0 +1,16 @@
<include file="SESSIONCTL.tag">
<include file="barant.tag">
<include file="project.tag">
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<sessionctl page="account">
<defaultnav>
<setpage name="account">
</defaultnav>
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/control.css">
</sessionctl>
</database>
+138
View File
@@ -0,0 +1,138 @@
<style>
#email-connect-form { max-width: 360px; margin: 40px auto; }
#email-connect-form input { display: block; width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 6px; }
#email-connect-error { color: #a00; min-height: 1.2em; margin-bottom: 10px; }
#email-app { height: 100%; }
#email-client { display: flex; flex-direction: column; max-height: 100%; }
#email-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1pt solid var(--bond-line-soft); margin-bottom: 6px; }
#email-toolbar-actions { display: flex; align-items: center; gap: 6px; }
#email-search-box { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
#email-search-input {
background: #101014; color: var(--bond-text);
border: 1px solid var(--bond-line-soft); border-radius: 4px;
padding: 4px 8px; font-size: 9pt; width: 150px;
}
#email-search-input:focus {
outline: none; border-color: var(--bond-gold-bright);
box-shadow: 0 0 0.6em rgba(197, 164, 90, 0.5), 0 0 0.2em rgba(227, 196, 126, 0.55);
}
#email-list-count { color: var(--bond-text-dim); font-size: 9pt; margin-left: 6px; }
#email-layout { display: flex; flex: 1; min-height: 0; }
#email-list { width: 340px; flex-shrink: 0; overflow-y: auto; border-right: 1pt solid var(--bond-line-soft); transition: opacity 0.18s ease; }
#email-reading-pane { flex: 1; min-width: 0; overflow-y: auto; padding: 0 12px; transition: opacity 0.18s ease; }
.email-fading { opacity: 0; }
.email-row {
display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 13px;
border-bottom: 1pt solid var(--bond-line-soft); border-left: 3px solid transparent; cursor: pointer;
overflow: hidden;
transition: opacity 0.2s ease,
height 0.22s ease 0.2s, padding-top 0.22s ease 0.2s, padding-bottom 0.22s ease 0.2s,
margin-top 0.22s ease 0.2s, margin-bottom 0.22s ease 0.2s, border-width 0.22s ease 0.2s;
}
.email-row:hover { background: rgba(255, 255, 255, 0.05); }
.email-row.unread {
font-weight: bold;
background: rgba(197, 164, 90, 0.12);
}
.email-row.selected { background: rgba(197, 164, 90, 0.16); border-left-color: var(--bond-gold); }
.email-row.selected:hover { background: rgba(197, 164, 90, 0.22); }
/* Per-row removal animation for the trash button (see trashMessage()
in email.js) - dissolves in place first (the opacity transition,
no delay), then collapses its own box to nothing (the delayed
height/padding/margin/border transitions kick in once the fade is
mostly done) so every row below it slides up smoothly to close the
gap, purely as a side effect of ordinary document-flow reflow - no
other row is touched, faded, or re-rendered to make that happen. */
.email-row.email-row-removing {
opacity: 0;
height: 0 !important;
padding-top: 0; padding-bottom: 0;
margin-top: 0; margin-bottom: 0;
border-width: 0;
}
.email-row-info { flex: 1; min-width: 0; }
.email-row .email-from { font-size: 10pt; }
.email-row .email-subject { font-size: 9pt; color: var(--bond-text-dim); }
.email-row .email-date { font-size: 8pt; color: var(--bond-text-dim); }
.email-row-trash-btn { flex-shrink: 0; width: 24px; height: 24px; opacity: 0.55; }
.email-row-trash-btn svg { width: 13px; height: 13px; }
.email-row-trash-btn:hover { opacity: 1; }
#email-reading-pane .email-header { border-bottom: 1pt solid var(--bond-line-soft); margin-bottom: 10px; padding-bottom: 10px; }
#email-reading-pane .email-body { white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; font-family: monospace; font-size: 9pt; }
#email-reading-pane .email-body-frame { width: 100%; height: 520px; border: none; border-radius: 4px; background: #fff; }
#email-reading-pane .email-actions { margin-top: 10px; }
#email-empty-state { color: var(--bond-text-dim); padding: 20px; }
#email-folder-list { display: flex; flex-direction: column; }
.email-folder-link { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; margin-bottom: 2px; border-radius: 4px; text-decoration: none; color: inherit; }
.email-folder-link:hover { background: rgba(255,255,255,0.08); }
.email-folder-link.email-folder-selected { background: rgba(255,255,255,0.14); font-weight: bold; }
.email-folder-count { font-size: 8pt; padding: 1px 6px; border-radius: 8px; background: rgba(197, 164, 90, 0.25); color: var(--bond-gold-bright); }
.email-folder-count:empty { display: none; }
.email-account-link { display: block; padding: 6px 8px; margin-bottom: 2px; border-radius: 4px; text-decoration: none; color: inherit; font-size: 9pt; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.email-account-link:hover { background: rgba(255,255,255,0.08); }
.email-account-link.email-account-selected { background: rgba(197, 164, 90, 0.16); color: var(--bond-gold-bright); font-weight: bold; }
#email-add-account-link { display: block; padding: 6px 8px; font-size: 9pt; color: var(--bond-text-dim); text-decoration: none; cursor: pointer; }
#email-add-account-link:hover { color: var(--bond-text); }
#email-add-account-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
#email-add-account-form input {
background: #101014; color: var(--bond-text);
border: 1px solid var(--bond-line-soft); border-radius: 4px;
padding: 5px 7px; font-size: 9pt; box-sizing: border-box; width: 100%;
}
#email-add-account-form input:focus {
outline: none; border-color: var(--bond-gold-bright);
box-shadow: 0 0 0.6em rgba(197, 164, 90, 0.5), 0 0 0.2em rgba(227, 196, 126, 0.55);
}
#email-add-account-error { color: #a00; font-size: 8pt; min-height: 1.1em; }
.icon-btn {
display: inline-flex; align-items: center; justify-content: center;
width: 30px; height: 30px; padding: 0; margin: 0; cursor: pointer;
border-radius: 6px; border: 1px solid var(--bond-gold);
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-gold-bright);
box-shadow: 0 0 0.4em rgba(197, 164, 90, 0.25);
transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
.icon-btn svg { width: 16px; height: 16px; display: block; }
.icon-btn:hover {
box-shadow: 0 0 0.8em rgba(197, 164, 90, 0.5), 0 0 0.25em rgba(227, 196, 126, 0.55);
background: linear-gradient(180deg, #24242e, #1a1a20);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn.icon-btn-active {
color: #131318;
background: linear-gradient(180deg, var(--bond-gold-bright), var(--bond-gold));
box-shadow: 0 0 0.7em rgba(197, 164, 90, 0.6);
}
</style>
<div id="email-app">
<if value1="$[@_imap_user]" value2="" type="eq">
<div id="email-connect-form">
<h3>Connect to Mailbox</h3>
<input type="text" id="email-user-input" placeholder="you@barant.com" autocomplete="username">
<input type="password" id="email-password-input" placeholder="Password" autocomplete="current-password">
<button type="button" id="email-connect-btn">Connect</button>
<div id="email-connect-error"></div>
</div>
<else>
<div id="email-client">
<div id="email-toolbar">
<span id="email-connected-as">$[@_imap_user]</span><span id="email-list-count"></span>
<span id="email-toolbar-actions">
<span id="email-search-box">
<input type="text" id="email-search-input" placeholder="Search mail&hellip;">
<button type="button" id="email-search-btn" class="icon-btn" title="Search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.35-4.35"/></svg></button>
</span>
<button type="button" id="email-compose-btn" class="icon-btn" title="New Mail"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6h13a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"/><path d="M2.5 7.5 12 14l9.5-6.5"/><path d="M18.5 3.5v5M16 6h5"/></svg></button>
<button type="button" id="email-refresh-btn" class="icon-btn" title="Refresh"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20 11a8 8 0 0 0-14.6-4.4M4 4v5h5"/><path d="M4 13a8 8 0 0 0 14.6 4.4M20 20v-5h-5"/></svg></button>
<button type="button" id="email-disconnect-btn" class="icon-btn" title="Disconnect"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><path d="M16 17l5-5-5-5"/><path d="M21 12H9"/></svg></button>
</span>
</div>
<div id="email-layout">
<div id="email-list"></div>
<div id="email-reading-pane"><div id="email-empty-state">Select a message to read it.</div></div>
</div>
</div>
</if>
</div>
<script src="/assets/email.js?v=20260905o"></script>
@@ -1,14 +1,5 @@
<page secure="yes" loggedin="yes" admin="true">
<title>ADMIN INVOICES</title>
<contents>
<eval name="_menu">
<include file="adminmenu.section">
</eval>
<retain name="invoice_id">
<h3>Invoices</h3>
<showtable page="admin_invoice" process="selectinvoice" name="invoice_id" value="X">
select invoices.id as X,invoices.id,user_id,name,invoices.created,amount,invoices.status from invoices join users on invoices.user_id=users.id
</showtable>
<br>
</contents>
</page>
@@ -0,0 +1,81 @@
<style>
#newemail-app { max-width: 720px; margin: 0 auto; }
#newemail-notconnected { color: var(--bond-text-dim); padding: 20px; }
#newemail-form { display: flex; flex-direction: column; gap: 10px; }
.newemail-field { display: flex; align-items: center; gap: 8px; }
.newemail-field label { width: 70px; flex-shrink: 0; color: var(--bond-text-dim); font-size: 9pt; }
.newemail-field input {
flex: 1; background: #101014; color: var(--bond-text);
border: 1px solid var(--bond-line-soft); border-radius: 4px;
padding: 6px 8px; font-size: 10pt; box-sizing: border-box;
}
.newemail-field input:focus {
outline: none; border-color: var(--bond-gold-bright);
box-shadow: 0 0 0.6em rgba(197, 164, 90, 0.5), 0 0 0.2em rgba(227, 196, 126, 0.55);
}
#newemail-from { color: var(--bond-text-dim); font-size: 9pt; }
#newemail-toolbar { display: flex; gap: 4px; margin-top: 4px; }
#newemail-toolbar button {
width: 30px; height: 30px; padding: 0; cursor: pointer;
border-radius: 6px; border: 1px solid var(--bond-gold);
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-gold-bright);
font-weight: bold; font-size: 11pt;
box-shadow: 0 0 0.4em rgba(197, 164, 90, 0.25);
transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
#newemail-toolbar button:hover {
box-shadow: 0 0 0.8em rgba(197, 164, 90, 0.5), 0 0 0.25em rgba(227, 196, 126, 0.55);
background: linear-gradient(180deg, #24242e, #1a1a20);
}
#newemail-toolbar button:active { transform: scale(0.94); }
#newemail-body {
min-height: 260px; background: #fff; color: #000;
border: 1px solid var(--bond-line-soft); border-radius: 4px;
padding: 10px; font-size: 10pt; box-sizing: border-box;
overflow-y: auto;
}
#newemail-body:focus { outline: none; border-color: var(--bond-gold-bright); }
#newemail-error { color: #a00; min-height: 1.2em; }
#newemail-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
#newemail-actions button {
padding: 8px 16px; cursor: pointer; border-radius: 6px;
border: 1px solid var(--bond-gold);
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-gold-bright);
box-shadow: 0 0 0.4em rgba(197, 164, 90, 0.25);
transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
#newemail-actions button:hover {
box-shadow: 0 0 0.8em rgba(197, 164, 90, 0.5), 0 0 0.25em rgba(227, 196, 126, 0.55);
background: linear-gradient(180deg, #24242e, #1a1a20);
}
#newemail-actions button:active { transform: scale(0.97); }
#newemail-send-btn.newemail-sending { opacity: 0.6; pointer-events: none; }
</style>
<div id="newemail-app">
<if value1="$[@_imap_user]" value2="" type="eq">
<div id="newemail-notconnected">Connect to your mailbox first (see the Email section) before composing a message.</div>
<else>
<h3>New Message</h3>
<div id="newemail-form">
<div class="newemail-field"><label>From</label><span id="newemail-from">$[@_imap_user]</span></div>
<div class="newemail-field"><label>To</label><input type="text" id="newemail-to" placeholder="recipient@example.com"></div>
<div class="newemail-field"><label>Subject</label><input type="text" id="newemail-subject" placeholder="Subject"></div>
<div id="newemail-toolbar">
<button type="button" data-cmd="bold" title="Bold"><b>B</b></button>
<button type="button" data-cmd="italic" title="Italic"><i>I</i></button>
<button type="button" data-cmd="underline" title="Underline"><u>U</u></button>
<button type="button" data-cmd="insertUnorderedList" title="Bulleted list">&#8226;</button>
<button type="button" data-cmd="createLink" title="Link">&#128279;</button>
</div>
<div id="newemail-body" contenteditable="true"></div>
<div id="newemail-error"></div>
<div id="newemail-actions">
<button type="button" id="newemail-cancel-btn">Cancel</button>
<button type="button" id="newemail-send-btn">Send</button>
</div>
</div>
</if>
</div>
<script src="/assets/newemail.js?v=20260905a"></script>
@@ -0,0 +1,4 @@
<h3>Products</h3>
<showtable page="editproduct" process="selectproduct" name="sku" value="X">
select sku as X,sku,type,description from products
</showtable>
+4
View File
@@ -0,0 +1,4 @@
<h3>Users</h3>
<showtable page="edituser" process="selectuser" name="selected_user_id" value="X">
select id as X,email,name,type,created,status from users
</showtable>
+16
View File
@@ -0,0 +1,16 @@
<include file="SESSIONCTL.tag">
<include file="barant.tag">
<include file="project.tag">
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<sessionctl page="admin">
<defaultnav>
<setpage name="admin">
</defaultnav>
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/control.css">
</sessionctl>
</database>
+9
View File
@@ -0,0 +1,9 @@
<sectionframe title="ADMINISTRATIVE SUPPORT">
<linkbutton page="admin" subpage="email">EMAIL</linkbutton><br>
<linkbutton page="admin" subpage="invoices">INVOICES</linkbutton><br>
<linkbutton page="admin" subpage="products">PRODUCTS</linkbutton><br>
<linkbutton page="admin" subpage="users">USERS</linkbutton><br>
</sectionframe>
<if value1="$[SUBPAGE]" value2="email" type="eq">
<include file="email.menu">
</if>
+38 -10
View File
@@ -1,17 +1,45 @@
<page secure="yes" loggedin="yes" admin="true">
<page secure="yes" loggedin="yes">
<title>ADMINISTRATION</title>
<contents>
<if value1="$[SUBPAGE]" value2="email" type="eq">
<include file="admin-email.subpage">
<else>
<if value1="$[SUBPAGE]" value2="newemail" type="eq">
<include file="admin-newemail.subpage">
<else>
<if value1="$[SUBPAGE]" value2="invoices" type="eq">
<if expr="('$[_login_type]'='user')">
<p>Requested page is not found.</p>
<else>
<include file="admin-invoices.subpage">
</if>
<else>
<if value1="$[SUBPAGE]" value2="users" type="eq">
<if expr="('$[_login_type]'='user')">
<p>Requested page is not found.</p>
<else>
<include file="admin-users.subpage">
</if>
<else>
<if value1="$[SUBPAGE]" value2="products" type="eq">
<if expr="('$[_login_type]'='user')">
<p>Requested page is not found.</p>
<else>
<include file="admin-products.subpage">
</if>
<else>
<if expr="('$[_login_type]'='user')">
<p>Requested page is not found.</p>
<else>
<eval name="_menu">
<include file="adminmenu.section">
</eval>
<h3>Users</h3>
<showtable page="edituser" process="selectuser" name="selected_user_id" value="X">
select id as X,email,name,type,created,status from users
</showtable>
<h3>Products</h3>
<showtable page="editproduct" process="selectproduct" name="sku" value="X">
select sku as X,sku,type,description from products
</showtable>
<br>
<p>Select an item from the menu.</p>
</if>
</if>
</if>
</if>
</if>
</if>
</contents>
</page>
-23
View File
@@ -1,23 +0,0 @@
<page>
<title>BARANTMAIL OPEN SOURCE PROJECT</title>
<contents>
<sectionframe title="BARANTMAIL OPEN SOURCE PROJECT">
<p>In the year 2000 I was extremely frustrated with the state of e-amil
systems available to Linux. Sendmail and q-mail were pretty much the two
mainstays. sendmail was prohibitively complex for the newly emerging
Internet method of using e-mail and q-mail was poorly maintained.</p>
<p>As a result, I embarked on a mission to write my own e-mail system that used
mysql as it's storage medium. I wanted to keep it simple and support
multiple users and domains with the simplest of configurations imaginable.
I also wanted a scalable multi-server capability.</p>
<p>The result is BARANTMAIL.</p>
<h2>Features</h2>
<p>Features of BARANTMAIL are:</p>
<ul>
<li>Fully compliant e-mail system.</li>
<li>Support for multiple domains.</li>
</ul>
<p></p>
</sectionframe>
</contents>
</page>
+42
View File
@@ -0,0 +1,42 @@
<page>
<title>BARANTSTORE</title>
<style>
#storefront-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.storefront-item { width: 220px; border: 1px solid var(--bond-line); border-radius: 8px; padding: 12px; background: var(--bond-bg-2); }
.storefront-item img { width: 100%; height: 140px; object-fit: contain; background: #fff; border-radius: 4px; }
.storefront-item h4 { margin: 8px 0 4px 0; font-size: 10pt; min-height: 26px; }
.storefront-price { color: var(--bond-gold-bright); font-weight: bold; margin-bottom: 8px; }
</style>
<contents>
<sectionframe title="BarantStore">
<h1>BarantStore</h1>
<p>A demonstration storefront built on BARANT's own e-commerce
platform - browse and purchase real products below.</p>
<sql sessionid="">
select product_list.sku as sku, product_list.sku_prefix as sku_prefix,
product_list.description as description, product_list.price as price,
products.image as image
from product_list
join products on products.sku=product_list.sku_prefix
order by product_list.category, product_list.description
</sql>$[sqlerror]
<ifrow sessionid="">
<div id="storefront-grid">
<whilerow sessionid="">
<div class="storefront-item">
<if value1="$[.image]" value2="" type="ne">
<img src="/assets/$[.image]">
</if>
<h4>$[.description]</h4>
<div class="storefront-price">$$[.price]</div>
<linkbutton process="addtocart" name="sku" value="$[.sku_prefix]"><div class="button">Add to Cart</div></linkbutton>
</div>
</whilerow>
</div>
<else>
<p>No products available right now.</p>
</ifrow>
</sectionframe>
</contents>
</page>
+16
View File
@@ -0,0 +1,16 @@
<include file="SESSIONCTL.tag">
<include file="barant.tag">
<include file="project.tag">
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<sessionctl page="cart">
<defaultnav>
<setpage name="cart">
</defaultnav>
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/control.css">
</sessionctl>
</database>
@@ -0,0 +1,8 @@
<set name="lettersdir" value="/home/barant/servercore-analysis/JetCore/jetc/barant-site/letters">
<if value1="$[filename]" value2="" type="ne">
<if expr="(locate('/','$[filename]') = 0) and (locate('..','$[filename]') = 0)">
<write file="$[lettersdir]/$[filename].jet" mode="overwrite" value="">
<set name="id" value="$[filename]">
</if>
</if>
<setpage name="htmleditor">
+2
View File
@@ -0,0 +1,2 @@
#api GET /documents/download
<if expr="locate('/documents/download','$[REQUEST_URI]') = 1"><if value1="$[@_login_id]" value2="" type="eq">Not authorized.<else><set name="host" value="localhost"><set name="database" value="barant"><set name="user" value="barant"><set name="password" value="uversa1960"><database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid=""><sql sessionid="">select id,name from documents where id=$[id] and user_id=$[@_login_id]</sql><ifrow sessionid=""><header name="Content-Type" value="application/octet-stream"><header name="Content-Disposition" value="attachment; filename=$[.name]"><read file="./documents-barant-site/$[@_login_id]_$[id]" name="_filedata">$[_filedata]<else>Document not found.</ifrow></database></if><else>Unknown route.</if>
+32 -3
View File
@@ -2,15 +2,35 @@
<title>Document Management</title>
<style>
.price {display: table-cell;
background-color: #fff;
background-color: #fff;
width: 100px;
height: 100px;
height: 100px;
text-align: center;
vertical-align: middle;
border: 1px solid #000;
border-radius: 20px;
}
.number {font-size: 30px;}
#documents-dropzone {
border: 2px dashed var(--bond-line);
border-radius: 8px;
padding: 24px;
text-align: center;
color: var(--bond-text-dim);
margin-top: 10px;
cursor: pointer;
transition: border-color 0.15s ease, background 0.15s ease;
}
#documents-dropzone:hover, #documents-dropzone.documents-dropzone-active {
border-color: var(--bond-gold);
background: rgba(197, 164, 90, 0.06);
}
#documents-list { width: 100%; border-collapse: collapse; margin-top: 14px; }
#documents-list th, #documents-list td { padding: 6px 8px; border-bottom: 1pt solid var(--bond-line-soft); text-align: left; }
#documents-list th { color: var(--bond-text-dim); font-weight: normal; font-size: 9pt; }
#documents-list td a, #documents-list td .documents-action { color: var(--bond-gold-bright); cursor: pointer; text-decoration: none; }
#documents-list td a:hover, #documents-list td .documents-action:hover { text-decoration: underline; }
#documents-empty { color: var(--bond-text-dim); padding: 10px 0; }
</style>
<contents>
<sectionframe title="Document Management">
@@ -23,5 +43,14 @@ upon department for internal documents use. Or if you are a service
group you can establish accounts and store correspondence and
documents for any activity with that account.</p>
</sectionframe>
<if value1="$[@_login_id]" value2="" type="ne">
<sectionframe title="Your Documents">
<input type="file" id="documents-file-input" multiple style="display:none;">
<div id="documents-dropzone">Drop files here, or click to choose files to upload</div>
<div id="documents-list-body"><div id="documents-empty">Loading&hellip;</div></div>
</sectionframe>
<script src="/assets/documents-page.js?v=20260906a"></script>
</if>
</contents>
</page>
</page>
+52
View File
@@ -0,0 +1,52 @@
#api POST /documents/api/upload
#api POST /documents/api/delete
#api POST /documents/api/list
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<if value1="$[REQUEST_URI]" value2="/documents/api/upload" type="eq">
<header name="Content-Type" value="application/json">
<if value1="$[@_login_id]" value2="" type="eq">
{"ok":false,"error":"Not authorized."}
<else>
<if value1="$[name]" value2="" type="eq">
{"ok":false,"error":"Name is required."}
<else>
<sql sessionid="">insert into documents set user_id=$[@_login_id], name="$[name]", created=now()</sql>
<sql sessionid="">select last_insert_id() as document_id</sql>
<write file="./documents-barant-site/$[@_login_id]_$[document_id]" mode="overwrite" value="$[filedata]">
{"ok":true,"id":$[document_id],"name":"$[name]"}
</if>
</if>
<else>
<if value1="$[REQUEST_URI]" value2="/documents/api/delete" type="eq">
<header name="Content-Type" value="application/json">
<if value1="$[@_login_id]" value2="" type="eq">
{"ok":false,"error":"Not authorized."}
<else>
<sql sessionid="">select id from documents where id=$[id] and user_id=$[@_login_id]</sql>
<ifrow sessionid="">
<sql sessionid="">delete from documents where id=$[id] and user_id=$[@_login_id]</sql>
{"ok":true}
<else>
{"ok":false,"error":"Document not found."}
</ifrow>
</if>
<else>
<if value1="$[REQUEST_URI]" value2="/documents/api/list" type="eq">
<header name="Content-Type" value="application/json">
<if value1="$[@_login_id]" value2="" type="eq">
{"ok":false,"error":"Not authorized."}
<else>
<sql sessionid="">select id,name,created from documents where user_id=$[@_login_id] order by created desc</sql>
<set name="_doc_count" value="0">
{"ok":true,"documents":[<whilerow sessionid=""><if value1="$[_doc_count]" value2="0" type="ne">,</if>{"id":$[.id],"name":"$[.name]","created":"$[.created]"}<set name="_doc_count" value="1"></whilerow>]}
</if>
<else>
{"ok":false,"error":"Unknown route."}
</if>
</if>
</if>
</database>
@@ -0,0 +1,11 @@
<process>
<if value1="$[@_login_id]" value2="" type="ne">
<if value1="$[delete_id]" value2="" type="ne">
<sql sessionid="">select id from documents where id=$[delete_id] and user_id=$[@_login_id]</sql>$[sqlerror]
<ifrow sessionid="">
<sql sessionid="">delete from documents where id=$[delete_id] and user_id=$[@_login_id]</sql>$[sqlerror]
</ifrow>
</if>
</if>
<setpage name="documents">
</process>
@@ -0,0 +1,10 @@
<process>
<if value1="$[@_login_id]" value2="" type="ne">
<if value1="$[name]" value2="" type="ne">
<sql sessionid="">insert into documents set user_id=$[@_login_id], name="$[name]", created=now()</sql>$[sqlerror]
<sql sessionid="">select last_insert_id() as document_id</sql>
<write file="./documents-barant-site/$[@_login_id]_$[document_id]" mode="overwrite" value="$[filedata]">
</if>
</if>
<setpage name="documents">
</process>
+31
View File
@@ -0,0 +1,31 @@
<page secure="yes" loggedin="yes" admin="true">
<title>EDIT PRODUCT</title>
<contents>
<database host="$[host]" name="$[database]" user="$[user]" password="$[password]" sessionid="1">
<eval name="_menu">
<include file="adminmenu.section">
</eval>
<sql sessionid="1">select * from products where sku='$[_product_sku]' and sku_suffix=''</sql>$[sqlerror]
<ifrow sessionid="1">
<h3>Product $[1.sku]</h3>
<entryform>
<tr><td class="fieldprompt">Type:</td><td>
<select name="type">
<option value="PHYSICAL" <if value1="$[1.type]" value2="PHYSICAL" type="eq">selected</if>>PHYSICAL</option>
<option value="STREAMING" <if value1="$[1.type]" value2="STREAMING" type="eq">selected</if>>STREAMING</option>
<option value="SUBSCRIPTION" <if value1="$[1.type]" value2="SUBSCRIPTION" type="eq">selected</if>>SUBSCRIPTION</option>
<option value="FILE" <if value1="$[1.type]" value2="FILE" type="eq">selected</if>>FILE</option>
</select>
</td></tr>
<field prompt="Description" type="text" name="description" size="50" maxlength="50" value="$[1.description]">
<field prompt="Details" type="multiline" name="text" value="$[1.text]">
<field prompt="Price" type="text" name="price" size="15" maxlength="15" value="$[1.price]">
<field prompt="Image" type="text" name="image" size="50" maxlength="255" value="$[1.image]">
<buttonbay>
<linkbutton process="update_product"><div class="button">Update Product</div></linkbutton>
</buttonbay>
</entryform>
</ifrow>
</database>
</contents>
</page>
+178
View File
@@ -0,0 +1,178 @@
#api POST /email/connect
#api POST /email/disconnect
#api POST /email/list
#api POST /email/message
#api POST /email/flag
#api POST /email/delete
#api POST /email/trash
#api POST /email/folders
#api POST /email/search
#api POST /email/send
#api POST /email/accounts
#api POST /email/switchaccount
<header name="Content-Type" value="application/json">
<if value1="$[REQUEST_URI]" value2="/email/connect" type="eq">
<try>
<imap config="./email.cfg" user="$[user]" password="$[password]" sessionid="">
<eval name="_imap_accounts"><imapaccounts action="add" list="$[@_imap_accounts]" user="$[user]" password="$[password]"></imapaccounts></eval>
<set name="@_imap_accounts" value="$[_imap_accounts]">
<set name="_imap_user" value="$[user]">
<set name="@_imap_user" value="$[user]">
<set name="_imap_password" value="$[password]">
<set name="@_imap_password" value="$[password]">
{"ok":true}
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/disconnect" type="eq">
<if value1="$[@_imap_user]" value2="" type="ne">
<imap config="./email.cfg" user="$[@_imap_user]" disconnect="yes" sessionid="">
</imap>
<eval name="_imap_accounts"><imapaccounts action="remove" list="$[@_imap_accounts]" user="$[@_imap_user]"></imapaccounts></eval>
<set name="@_imap_accounts" value="$[_imap_accounts]">
</if>
<eval name="_next_user"><imapaccounts action="firstuser" list="$[@_imap_accounts]"></imapaccounts></eval>
<if value1="$[_next_user]" value2="" type="eq">
<set name="@_imap_user" value="">
<set name="@_imap_password" value="">
{"ok":true,"active":""}
<else>
<try>
<eval name="_next_password"><imapaccounts action="getpassword" list="$[@_imap_accounts]" user="$[_next_user]"></imapaccounts></eval>
<imap config="./email.cfg" user="$[_next_user]" password="$[_next_password]" sessionid="">
<set name="@_imap_user" value="$[_next_user]">
<set name="@_imap_password" value="$[_next_password]">
{"ok":true,"active":"$[_next_user]"}
</imap>
<catch name="_disconnecterr">
<set name="@_imap_user" value="">
<set name="@_imap_password" value="">
{"ok":true,"active":""}
</catch>
</try>
</if>
<else>
<if value1="$[@_imap_user]" value2="" type="eq">
{"ok":false,"error":"Not connected to a mailbox."}
<else>
<if value1="$[folder]" value2="" type="eq">
<set name="folder" value="INBOX">
</if>
<if value1="$[REQUEST_URI]" value2="/email/list" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<if value1="$[limit]" value2="" type="eq">
<set name="limit" value="50">
</if>
<imaplist sessionid="" folder="$[folder]" limit="$[limit]">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/message" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<imapmessage sessionid="" folder="$[folder]" uid="$[uid]">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/flag" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<imapflag sessionid="" folder="$[folder]" uid="$[uid]" flag="$[flag]" set="$[set]">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/delete" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<imapdelete sessionid="" folder="$[folder]" uid="$[uid]">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/trash" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<imapmove sessionid="" folder="$[folder]" uid="$[uid]" destfolder="Trash">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/folders" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<imapfolders sessionid="">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/search" type="eq">
<try>
<imap config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" sessionid="">
<imapsearch sessionid="" folder="$[folder]" query="$[query]">
</imap>
<catch name="_imaperr">
{"ok":false,"error":"$[_imaperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/send" type="eq">
<try>
<smtpsend config="./email.cfg" user="$[@_imap_user]" password="$[@_imap_password]" to="$[to]" subject="$[subject]" html="$[body]">
<catch name="_smtperr">
{"ok":false,"error":"$[_smtperr]"}
</catch>
</try>
<else>
<if value1="$[REQUEST_URI]" value2="/email/accounts" type="eq">
<imapaccounts action="list" list="$[@_imap_accounts]" active="$[@_imap_user]"></imapaccounts>
<else>
<if value1="$[REQUEST_URI]" value2="/email/switchaccount" type="eq">
<try>
<eval name="_switch_password"><imapaccounts action="getpassword" list="$[@_imap_accounts]" user="$[user]"></imapaccounts></eval>
<if value1="$[_switch_password]" value2="" type="eq">
{"ok":false,"error":"That account is not connected."}
<else>
<imap config="./email.cfg" user="$[user]" password="$[_switch_password]" sessionid="">
<set name="@_imap_user" value="$[user]">
<set name="@_imap_password" value="$[_switch_password]">
{"ok":true}
</imap>
</if>
<catch name="_switcherr">
{"ok":false,"error":"$[_switcherr]"}
</catch>
</try>
<else>
{"ok":false,"error":"Unknown route."}
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
+17
View File
@@ -0,0 +1,17 @@
<sectionframe title="MAILBOX">
<div id="email-folder-list">
<a href="javascript:void(0);" class="email-folder-link" data-folder="Inbox" onclick="window.emailSelectFolder && window.emailSelectFolder('Inbox'); return false;"><span>Inbox</span><span class="email-folder-count" data-folder-count="Inbox"></span></a>
<a href="javascript:void(0);" class="email-folder-link" data-folder="Spam" onclick="window.emailSelectFolder && window.emailSelectFolder('Spam'); return false;"><span>Spam</span><span class="email-folder-count" data-folder-count="Spam"></span></a>
<a href="javascript:void(0);" class="email-folder-link" data-folder="Trash" onclick="window.emailSelectFolder && window.emailSelectFolder('Trash'); return false;"><span>Trash</span><span class="email-folder-count" data-folder-count="Trash"></span></a>
</div>
</sectionframe>
<sectionframe title="ACCOUNTS">
<div id="email-account-list"></div>
<div id="email-add-account-form" style="display:none;">
<input type="text" id="email-add-account-user" placeholder="you@barant.com" autocomplete="username">
<input type="password" id="email-add-account-password" placeholder="Password" autocomplete="current-password">
<button type="button" id="email-add-account-btn">Connect</button>
<div id="email-add-account-error"></div>
</div>
<a href="javascript:void(0);" id="email-add-account-link" onclick="window.emailShowAddAccount && window.emailShowAddAccount(); return false;">+ Add Account</a>
</sectionframe>
+16
View File
@@ -0,0 +1,16 @@
<include file="SESSIONCTL.tag">
<include file="barant.tag">
<include file="project.tag">
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<sessionctl page="htmleditor">
<defaultnav>
<setpage name="htmleditor">
</defaultnav>
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/control.css">
</sessionctl>
</database>
+154
View File
@@ -0,0 +1,154 @@
<page secure="yes" loggedin="yes">
<title>HTML EDITOR</title>
<contents>
<script src="/assets/htmleditor.js"></script>
<set name="sitedir" value="/home/barant/servercore-analysis/JetCore/jetc/barant-site">
<if value1="$[dir]" value2="" type="ne">
<if value1="$[file]" value2="" type="ne">
<if expr="(('$[dir]'='src') or ('$[dir]'='jet')) and (locate('/','$[file]') = 0) and (locate('..','$[file]') = 0)">
<try>
<read file="$[sitedir]/$[dir]/$[file]" name="mhtml">
<set name="letter_dir" value="$[dir]">
<set name="letter_file" value="$[file]">
<catch>
<set name="letter_file" value="">
</try>
<else>
<set name="letter_file" value="">
</if>
<else>
<set name="letter_file" value="">
</if>
<else>
<set name="letter_file" value="">
</if>
<if value1="$[letter_file]" value2="" type="eq">
<div style="max-width: 700px; margin: 40px auto; font-family: Helvetica;">
<h1>SITE .JET FILES</h1>
<p>These are the real source files compiled into this site's own routes. Editing and saving one overwrites it directly - a timestamped backup is made automatically before each save.</p>
<call pgm="$[sitedir]/list_jet_files.sh" name="filelist">
$[filelist]
</div>
<else>
<body ondragstart="return false;" ondrop="return false;" onload="init(); return true;">
<form method="post" action="$[REQUEST_URI]">
<input type="hidden" name="PROCESS" value="savehtmleditor">
<input type="hidden" name="html" value="">
<input type="hidden" name="exit" value="">
<input type="hidden" name="letter_dir" value="$[letter_dir]">
<input type="hidden" name="letter_file" value="$[letter_file]">
<div style="position: relative;">
<div id="window1" style="position: absolute; left: 0px; top: 0px; border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;"
onmousemove="window_mousemove(this, event); return true;"
onmousedown="window_mousedown(this, event); return true;"
onmouseup="window_mouseup(this, event); return true;">
<div style="background-color: #678; height: 21px; padding: 2px 2px 2px 2px;">
<div style="float: left;"><b style="padding: 2px 8px;">$[letter_dir]/$[letter_file]</b></div>
<div style="float: left;"><button type="button" onclick="save(this.form);">SAVE</button></div>
<div style="float: left;"><button type="button" onclick="savenexit(this.form);">SAVE AND EXIT</button></div>
<div style="float: right;"><button type="button" onclick="exitnosave(this.form);">EXIT NO SAVE</button></div>
</div>
<div style="background-color: #abc; padding: 0px 2px 6px 2px;">
<div style="float: left; display: inline-block; margin: 2px 2px 2px 0px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="return do_undo();"><img width="18" src="/assets/htmleditor_undo.png"></div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 0px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="return do_redo();"><img width="18" src="/assets/htmleditor_redo.png"></div>
&nbsp;
<div style="display: inline-block; float: left; margin: 2px 0px 0px 0px;">
<select style="border: 1pt solid #123; border-radius: 3px; background-color: #def;" onchange="document.execCommand('formatBlock',false,this.value);return true;">
<option value="p">Paragraph</option>
<option value="h1">Heading 1</option>
<option value="h2">Heading 2</option>
<option value="h3">Heading 3</option>
<option value="pre">Monospace</option>
</select>
</div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 5px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="document.execCommand('bold');return true;"><img width="14" style="padding: 2px;" src="/assets/htmleditor_bold.png"></div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 0px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="document.execCommand('underline');return true;"><img width="14" style="padding: 2px;" src="/assets/htmleditor_underline.png"></div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 5px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="document.execCommand('justifyLeft');return true;"><img width="14" style="padding: 2px;" src="/assets/htmleditor_jl.png"></div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 0px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="document.execCommand('justifyCenter');return true;"><img width="14" style="padding: 2px;" src="/assets/htmleditor_jc.png"></div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 0px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="document.execCommand('justifyRight');return true;"><img width="14" style="padding: 2px;" src="/assets/htmleditor_jr.png"></div>
<div style="float: left; display: inline-block; margin: 2px 2px 2px 0px; border-radius: 3px; width: 18px; height: 18px; border: 1px solid #012; background-color: #def; cursor: pointer;" onclick="document.execCommand('justifyFull');return true;"><img width="14" style="padding: 2px;" src="/assets/htmleditor_jj.png"></div>
<div id="map" style="display: inline-block; color: #012; font-size: 10px;"></div>
</div>
<div id="mainpage"
style="width: 1000px; height: 800px; border: 1px solid black; position: relative; background: #ffffffff; overflow: scroll; max-height: 800px; max-width: 1000px; cursor: crosshair;"
onmousedown="return mousedown(event);"
onmousemove="return mousemove(event);"
onmouseup="return mouseup(event); return true;">
$[mhtml]
</div>
<canvas id="grid" width="1000px" height="800px" style="position: absolute; left: 0px; top: 0px; alpha: 0.5; cursor: normal; pointer-events: none;"></canvas>
</div>
<div id="window3" style="position:absolute; top: 235px; left: 1010px;
border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;">
<span>Options</span>
<div style="width: 320px; color: #000000; border: 1px solid black; position: relative; background: #ffffff;">
<div id="controls">
<input type="checkbox" name="grid" onchange="showGrid = this.checked; drawGrid(); return true;"><span style="font-size: 12px; margin-bottom: 2px;">Show Grid</span><br>
<input type="checkbox" name="snaptogrid" onchange="snapToGrid = this.checked; return true;"><span style="font-size: 12px; margin-bottom: 2px;">Snap To Grid</span><br>
<span style="font-size: 12px; margin-bottom: 2px;">Grid Size: </span><input type="text" name="gridsize" id="gridsize" style="width: 20px;" size="3" onchange="gridSize = parseInt(this.value); drawGrid(); return true;"><br>
</div>
<div id="itemparameters" style="font-size: 12px;"></div>
<div id="data" style="font-size: 12px;">
<p>NO DATA</p>
</div>
</div>
</div>
<div id="window2" style="position:absolute; top: 0px; left: 1010px; border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;">
<span>Toolbar</span>
<div id="toolbar" style="overflow-y: auto; width: 200px; height: 300px; border: 1px solid black; position: relative; background: #ffffff;">
</div>
</div>
<div id="window4" style="position:absolute; top: 860px; left: 0px;
border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;">
<span>Images</span>
<div style="width: 1000px; height: 300px; color: #000000; border: 1px solid black; position: relative; background: #ffffff;">
<div id="controls" style="overflow-y: scroll; max-height: 275px; padding: 3px;">
<div style="display: inline-block;">
<div style="width: 100px; height: 100px; border: 1px solid #000; margin: 5px 0px 5px 5px; background-image: url('/assets/htmleditor_drinkwise_logo.png'); background-size: contain; background-repeat: no-repeat; cursor: pointer;" onmousedown="newImage('htmleditor_drinkwise_logo.png', event); return true;"></div>
<div style="font-size: 8px;">drinkwise_logo.png</div>
</div>
<div style="display: inline-block;">
<div style="width: 100px; height: 100px; border: 1px solid #000; margin: 5px 0px 5px 5px; background-image: url('/assets/htmleditor_dwbackground.png'); background-size: contain; background-repeat: no-repeat; cursor: pointer;" onmousedown="newImage('htmleditor_dwbackground.png', event); return true;"></div>
<div style="font-size: 8px;">dwbackground.png</div>
</div>
</div>
</div>
<div id="itemparameters" style="font-size: 12px;"></div>
</div>
</div>
</form>
</body>
</if>
</contents>
</page>
+1 -1
View File
@@ -1,6 +1,6 @@
<sectionframe title="INVOICE HISTORY">
<sql>select * from invoices where user_id=$[_user_id]</sql>$[sqlerror]
<whilerow>
<linkbutton page="barantmail">|$[created]|</linkbutton><br>
<linkbutton process="selectinvoice" page="account" name="invoice_id" value="$[.id]">|$[.created]|</linkbutton><br>
</whilerow>
</sectionframe>
+50 -10
View File
@@ -27,17 +27,57 @@ to.</p>
many expression handling functions are dependant on the mysql library
functions. Any expression that works in mysql will work in JET.</p>
<h3>JET Libraries</h3>
<p>You can make JET scripts and compile them into super fast
libraries. Scripts can be anything from web page functions and
concealers to session control, credit card processing and just about
anything. Libraries add some performance enhancements by pre parsing
many of the elements in the script.</p>
<h3>One Language, Two Speeds: The JET 2.0 Interpreter and Compiler</h3>
<p>Libraries allow you to make your own tags and implement them in
the scripts. JET does not have JSON or XML parsing but using a
libraries you can develop an XML parser operation that usually
suffices for most script processing.
<p>Every JET script runs two ways, and you never have to choose in
advance. Drop a file on disk and JET interprets it on the spot &mdash;
edit it, refresh, see the change. No build step, no deploy pipeline,
no waiting. That's the interpreter, and it's what makes JET feel less
like "compiling a website" and more like sketching one.</p>
<p>Then, when a page is ready to carry real traffic, the exact same
source compiles straight down to native machine code with the JET
compiler, <b>jetc</b>. Not bytecode. Not a virtual machine sitting
in the middle slowing things down. Real, compiled C++ &mdash; the
tags you wrote resolve once, at build time, instead of being
re-parsed on every single request.</p>
<p>That's the pitch in one line: write it fast, then make it fast.</p>
<p><b>What jetc gives you:</b></p>
<ul>
<li><b>Genuine compiled-code speed.</b> A compiled JET module isn't
an interpreted script pretending to be quick &mdash; it's a shared
library. Tag logic that would normally be walked and evaluated on
every hit is already resolved into executable code before the first
request ever arrives.</li>
<li><b>Zero-downtime deploys, by design.</b> Compiled modules are
loaded live and swapped out while the server keeps running. A
request already in flight finishes on the version it started with;
the very next request lands on the new one. No restart, no dropped
connections, no maintenance window.</li>
<li><b>Routes that declare themselves.</b> A compiled module carries
its own API routes right inside the source file. Drop it in the
plugin directory and it's live &mdash; there's no central routing
table to hand-edit and no separate registration step to forget.</li>
<li><b>Builds that only do the work that changed.</b> The compiler
toolchain tracks what's actually been touched and skips
recompiling everything else, so a large site with dozens of modules
still builds in seconds, not minutes.</li>
<li><b>Shared code costs nothing at runtime.</b> Common tag
definitions and includes get inlined directly into the compiled
output at build time &mdash; you write clean, reusable JET source,
and the compiler makes sure reusing it is free.</li>
</ul>
<p>The interpreter and the compiler aren't two different products
you have to pick between &mdash; they're two gears on the same
engine. Prototype in the interpreter, ship in the compiler, and
never rewrite a single tag to get there.</p>
<h3>Session Control (SESSIONCTL) Library</h3>
<p>For web sites, a session control library is provided with JET and
+16
View File
@@ -0,0 +1,16 @@
<include file="SESSIONCTL.tag">
<include file="barant.tag">
<include file="project.tag">
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<sessionctl page="login">
<defaultnav>
<setpage name="login">
</defaultnav>
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/control.css">
</sessionctl>
</database>
+1 -1
View File
@@ -1,5 +1,5 @@
<if value1="$[_login_id]" value2="" type="ne">
<div style="color: #444; margin-bottom: 3px;">Welcome $[_login_name]</div>
<div class="user-badge">Welcome $[_login_name]</div>
<div>
<linkbutton page="cart"><img style="margin-top: 0px; margin-right: 10px;" src="/assets/shopping_cart.png" width="30px" align="center"></linkbutton>
<linkbutton process="logout" class="button">Logout</linkbutton>
+7
View File
@@ -0,0 +1,7 @@
<sectionframe title="QUICK LINKS">
<linkbutton page="services">SERVICES</linkbutton><br>
<linkbutton page="hosting">HOSTING</linkbutton><br>
<linkbutton page="siptrunk">SIP TRUNKING</linkbutton><br>
<linkbutton page="opensource">OPEN SOURCE</linkbutton><br>
<linkbutton page="contact">CONTACT</linkbutton>
</sectionframe>
+149
View File
@@ -0,0 +1,149 @@
#api GET /
#api GET /{page}
#api GET /{page}/{subpage}
#api POST /
#api POST /{page}
#api POST /{page}/{subpage}
<include file="SESSIONCTL.tag">
<include file="barant.tag">
<include file="project.tag">
<set name="host" value="localhost">
<set name="database" value="barant">
<set name="user" value="barant">
<set name="password" value="uversa1960">
<database name="$[database]" host="$[host]" user="$[user]" password="$[password]" sessionid="">
<if value1="$[PROCESS]" value2="" type="ne">
<tag name="process" scope="local"><eval><container></eval></tag>
<eval name="_procout"><include file="./$[DIR]/$[PROCESS].proc"></eval>
</if>
<checksession>
<if value1="$[PAGE]" value2="" type="eq">
<if value1="$[page]" value2="" type="eq">
<set name="PAGE" value="main">
<else>
<set name="PAGE" value="$[page]">
</if>
</if>
<if value1="$[DIR]" value2="" type="eq">
<set name="DIR" value="">
</if>
<if value1="$[SUBPAGE]" value2="" type="eq">
<if value1="$[subpage]" value2="" type="ne">
<set name="SUBPAGE" value="$[subpage]">
</if>
</if>
<tag name="page" keywords="class onload secure loggedin admin" scope="local">
<tag name="contents" scope="local"><eval name="_BODY"><container></eval></tag>
<eval name="_leftover"><container></eval>
<if expr="('$[HTTPS]'!='on') and ('#[secure]'='yes')">
<if value1="$[_fragment]" value2="" type="eq">
<html><head><meta http-equiv="refresh" content="0; url=https://$[HTTP_HOST]$[REQUEST_URI]"></head></html>
<else>
<div data-spa-redirect="https://$[HTTP_HOST]$[REQUEST_URI]"></div>
</if>
<else>
<if expr="('$[_login_type]'='user') and ('#[admin]'='true')">
<p>Page not found.</p>
<else>
<if expr="('$[_login_id]'='') and ('#[loggedin]'='yes')">
<if value1="$[_fragment]" value2="" type="eq">
<html><head><meta http-equiv="refresh" content="0; url=https://$[HTTP_HOST]/login?start=$[PAGE]"></head></html>
<else>
<div data-spa-redirect="/login?start=$[PAGE]"></div>
</if>
<else>
<if expr="('$[_login_type]'='user') and ('#[admin]'='yes')">
<p>Page not found.</p>
<else>
$[_BODY]
</if>
</if>
</if>
</if>
</tag>
<if value1="$[_fragment]" value2="" type="eq">
<!DOCTYPE html>
<html lang="en">
<head>
<title>BARANT Technology Group</title>
<link rel="stylesheet" href="/assets/main.css?v=20260906a">
<link rel="stylesheet" href="/assets/control.css?v=20260902">
</head>
<body>
<form id="mainform" method="post" action="/$[PAGE]<if value1="$[SUBPAGE]" value2="" type="ne">/$[SUBPAGE]</if>" enctype="multipart/form-data">
<input type="hidden" name="_LASTPAGE" value="$[PAGE]">
<input type="hidden" name="PROCESS" value="">
<input type="hidden" name="EXITPROCESS" value="">
<input type="hidden" name="DIR" value="">
<input type="hidden" name="_CTLDIR" value="">
<input type="hidden" name="PAGE" value="$[PAGE]">
<input type="hidden" name="SUBPAGE" value="$[SUBPAGE]">
<input type="hidden" name="_TIMESTAMP" value="">
<div class="pageclass">
<div class="heading">
<div style="display: inline-block; width: 500px;">
<a href="https://barant.com"><img style="width: 60px; height: 60px; margin: 10px; background-color: #000; border-radius: 6px; padding: 4px; box-sizing: border-box;" align="left" src="/assets/btglogo.png"></a>
<div style="padding-top: 15px;">
<div style="left: 80px; color: #c5a45a; font-size: 20pt; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;">BARANT TECHNOLOGY GROUP</div>
</div>
</div>
<div id="loginmenu" style="float: right; text-align: right; margin-right: 10px; margin-top: 5px;"><include file="login.menu"></div>
</div>
<div class="menubar" id="menubar">
<include file="menu.bar">
</div>
<div style="display: flex; flex: 1; width: 100%; min-height: 0;">
<div style="display: flex; width: 100%;">
<div id="panelmenu" class="panel" style="width: 200px; flex-shrink: 0;">
<try><include file="$[PAGE].menu"><catch></try>
<include file="cart.menu">
</div>
<div id="panelmenu-resizer" title="Drag to resize"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M8 5 L3 12 L8 19"/><path d="M16 5 L21 12 L16 19"/></svg></div>
<div class="panel" id="content" style="flex: 1; min-width: 0;">
<try>
<eval><include file="./$[DIR]/$[PAGE].page"></eval>
<catch>
<p>Page not found.</p>
</try>
</div>
<div style="clear: both;"></div>
</div>
</div>
<div class="footer" style="clear: both;">&copy; 1999-2026 BARANT Systems, All Rights Reserved</div>
</div>
</form>
<div id="filemgr-panel" class="filemgr-collapsed">
<div id="filemgr-toggle" title="File Transfers">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V6M5 12l7-7 7 7"/><path d="M5 21h14"/></svg>
<span id="filemgr-badge"></span>
</div>
<div id="filemgr-body">
<div id="filemgr-header">
<span>Transfers</span>
<span id="filemgr-clear" title="Clear completed">Clear</span>
</div>
<div id="filemgr-list"><div id="filemgr-empty">No transfers yet.</div></div>
</div>
</div>
<script src="/assets/spa.js?v=20260906a"></script>
<script src="/assets/documents.js?v=20260906a"></script>
</body>
</html>
<else>
<div data-spa-page="$[PAGE]" data-spa-subpage="$[SUBPAGE]" style="display:none"></div>
<div id="_spa_panelmenu" style="display:none"><try><include file="$[PAGE].menu"><catch></try><include file="cart.menu"></div>
<div id="_spa_menubar" style="display:none"><include file="menu.bar"></div>
<div id="_spa_loginmenu" style="display:none"><include file="login.menu"></div>
<try>
<eval><include file="./$[DIR]/$[PAGE].page"></eval>
<catch>
<p>Page not found.</p>
</try>
</if>
</database>
+2 -4
View File
@@ -10,6 +10,7 @@
<tab page="main"><a href="/main">HOME</a></tab>
<tab page="services"><a href="/services">SERVICES</a></tab>
<tab page="hosting"><a href="/hosting">HOSTING</a></tab>
<tab page="store"><a href="/store/createstore">CREATE STORE</a></tab>
<tab page="documents"><a href="/documents">DOCUMENT MGMT</a></tab>
<tab page="siptrunk"><a href="/siptrunk">SIP TRUNKING</a></tab>
<tab page="vst"><a href="/vst">VST</a></tab>
@@ -26,10 +27,7 @@
</if>
<if value1="$[_login_id]" value2="" type="ne">
<tab page="account"><a href="/account">ACCOUNT</a></tab>
<tab page="email"><a href="/email">EMAIL</a></tab>
<if value1="$[_login_type]" value2="admin" type="eq">
<tab page="admin"><a href="/admin">ADMIN</a></tab>
</if>
<tab page="admin"><a href="/admin">ADMIN</a></tab>
<else>
<tab page="login"><a href="/login">LOGIN</a></tab>
</if>
+27
View File
@@ -0,0 +1,27 @@
<page>
<title>LOADED MODULES</title>
<contents>
<sectionframe title="LIVE JTC MODULES">
<p>This APIServer process is running as a small core loader with the
real functionality split into separately compiled <b>.jtc</b> modules.
Each one is dlopen()'d straight off disk by ApiModuleWatcher, and
watched live &mdash; drop a new build into the plugin directory and it's
serving requests within moments, with zero downtime and no restart.</p>
<p>Below is the actual, live list of every compiled module currently
attached to this process, read directly off disk at the moment this
page rendered.</p>
<table>
<tr><th>Module</th><th>File</th></tr>
<whiledir dir="/home/barant/servercore-analysis/APIServer/plugins-barant-site" name="filename" filenamenoextension="modname" sort="true">
<if expr="right('$[filename]',4) = '.jtc'">
<tr><td>$[modname]</td><td>$[filename]</td></tr>
</if>
</whiledir>
</table>
</sectionframe>
</contents>
</page>
@@ -1,6 +1,3 @@
<page>
<title>RCA1802 Micro-Controller Assembler/Emulator</title>
<contents>
<sectionframe title="RCA1802">
<h1>The RCA1802 Micro-Controller</h1>
<img src="/assets/rca1802chip.jpeg" align="right">
@@ -42,11 +39,8 @@ visibility and manipulation.</p>
</sectionframe>
<sectionframe title="RCA1802 Computer Device">
We are working to provide a hardware kit for the controller device.
We are working to provide a hardware kit for the controller device.
Current schematics are being layed out using Kicad. I have a full git
change environment going for the Kicad project as well as the source
code for the assembler and emulator components.
</sectionframe>
</contents>
</page>
@@ -0,0 +1,53 @@
<sectionframe title="BARANTMAIL OPEN SOURCE PROJECT">
<p>In the year 2000 I was extremely frustrated with the state of e-amil
systems available to Linux. Sendmail and q-mail were pretty much the two
mainstays. sendmail was prohibitively complex for the newly emerging
Internet method of using e-mail and q-mail was poorly maintained.</p>
<p>As a result, I embarked on a mission to write my own e-mail system that used
mysql as it's storage medium. I wanted to keep it simple and support
multiple users and domains with the simplest of configurations imaginable.
I also wanted a scalable multi-server capability.</p>
<p>The result is BARANTMAIL.</p>
<h2>Features</h2>
<p>BARANTMAIL is a complete mail server implementation, written from
scratch in C++ - no dependency on Sendmail, Postfix, Dovecot, or any
other existing mail server software.</p>
<h3>Protocols</h3>
<ul>
<li>SMTP (port 25) plus authenticated SMTP-over-TLS submission (port 465).</li>
<li>IMAP4rev1 over TLS (port 993) - LOGIN, SELECT, FETCH/UID FETCH, STORE/UID STORE, COPY/UID COPY, EXPUNGE, SEARCH/UID SEARCH, SUBSCRIBE, NOOP and more.</li>
<li>POP3 over TLS (port 995) - USER/PASS, STAT, LIST, RETR, DELE, TOP, UIDL.</li>
</ul>
<h3>Security</h3>
<ul>
<li>TLS/SSL on every protocol, backed by OpenSSL and real CA-issued certificates.</li>
<li>DKIM signing on outbound mail.</li>
<li>SPF verification on inbound mail.</li>
</ul>
<h3>Spam Filtering</h3>
<ul>
<li>Every inbound message is scanned by SpamAssassin (spoken directly over the spamd protocol, not shelled out to a binary) on the way into a mailbox.</li>
<li>Messages scoring above the configured threshold are automatically filed into a dedicated Spam folder rather than the Inbox - not just tagged and left mixed in with everything else.</li>
</ul>
<h3>Multi-Tenancy</h3>
<ul>
<li>Multiple domains on one server (virtual hosting).</li>
<li>Multiple independent mailboxes per domain, each with its own Inbox, Spam, and Trash folders, plus support for any additional folder a client creates.</li>
</ul>
<h3>Architecture</h3>
<ul>
<li>Asynchronous, EPoll-based I/O - handles many concurrent connections without a thread per connection.</li>
<li>Queue-based SMTP delivery - inbound mail is queued to disk, then either filed locally or relayed onward over SMTP on a background thread, so a slow remote host never blocks the server.</li>
</ul>
<h3>Companion Webmail Client</h3>
<p>A full browser-based email client (see <a href="/admin/email">Email</a>
under the Admin section) is built directly against BARANTMAIL's own IMAP
implementation - real proof the protocol support is complete enough to
drive a real application, not just a demonstration.</p>
</sectionframe>
@@ -1,13 +1,6 @@
<page>
<title>barant.com - JET Extension Tags</title>
<contents>
<if value1="$[ARGS]" value2="" type="eq">
<include file="jet_overview.section">
<else>
<set name="subpage" expr="substring('$[ARGS]', 2)">
<include file="jet_$[subpage].section">
</if>
</contents>
</page>
@@ -0,0 +1,49 @@
<sectionframe title="Open Source Projects">
<h1>Open Source Projects</h1>
<p>We have several open source projects that we have created.</p>
<ul>
<li><linkbutton page="opensource" subpage="jet">JET</linkbutton> - JET Extension Tags provides an amazingly versatile and
simple mechanism for generating output for muliple uses. Originally
designed in the early days of the Internet for generating web pages
containing dynamic data it has been adapted to many uses from Asterisk
dial plans to other generated output that requires templated protocols
with dynamic data from a mysql database. Jeff Gonzalez added the
ability to manage web site sessions and pretty URLs to JET with his
session manager library.</li><br>
<li><linkbutton page="opensource" subpage="barantmail">BARANTMAIL</linkbutton> - Designed out of frustration with qmail a decade ago
BARANTMAIL was developed on top of C++ and mySQL to provide an
extremely super simple e-mail server for the open-source
community.</li><br>
<li><linkbutton page="opensource" subpage="synthmax">SYNTHMAX</linkbutton> - I have been developing a fully modular synthesizer for
use in Linux. This is not your usual plaything and maybe someday will
be used professionally in my keyboard products.</li><br>
<li><linkbutton page="opensource" subpage="serverframework">C++ SERVER FRAMEWORK</linkbutton> - A core epoll server code for developing
all sorts of high performance TCP and UDP servers. Generic socket
objects allow tying into epoll handling for any socket based
communications including timers, files and network sockets.
Basic functional server frameworks are provided for:
<br><br>
<ul>
<li>HTTP(S) Server</li>
<li>Stream Server</li>
<li>E-Mail Server</li>
<li>Chat Server</li>
</ul>
</li><br>
<li><linkbutton page="opensource" subpage="asm1802">RCA1802 Micro-Controller
Emulator</linkbutton> - A fully operational assembler
and emulation environment for the development and deployment of
firmware code utilizing the RCA1802 micro-controller chip.</li>
</ul>
Check out our git server at <a href="https://git.barant.com">git.barant.com</a>.
</sectionframe>
@@ -1,6 +1,3 @@
<page>
<title>Server Core Framework</title>
<contents>
<sectionframe title="Server Core Framework">
<p>It is finally here! The Server Core Framework is now available. The
framework offers support for just about any server you can devise.</p>
@@ -8,7 +5,7 @@ framework offers support for just about any server you can devise.</p>
<p>Now why would I want to go and build a server when there are all
sorts of frameworks out there for supporting server activity? All I
can say is top notch performance. The Server Core is all C++ and is
built on the epoll structure of the Linux operating system.</p>
built on the epoll structure of the Linux operating system.</p>
<ul>
<li>TCP and/or UDP server capabilities.</li>
@@ -40,5 +37,3 @@ git clone https://barant.com/git@ServerCore.git
</code>
</sectionframe>
</contents>
</page>
@@ -0,0 +1,5 @@
<sectionframe title="SYNTHMAX">
<p>I have been developing a fully modular synthesizer for
use in Linux. This is not your usual plaything and maybe someday will
be used professionally in my keyboard products.</p>
</sectionframe>
+6 -5
View File
@@ -1,7 +1,8 @@
<sectionframe title="OPEN SOURCE PROJECTS">
<linkbutton page="barantmail">BARANTMAIL</linkbutton><br>
<linkbutton page="jet">JET</linkbutton><br>
<linkbutton page="synthmax">SYNTHMAX</linkbutton><br>
<linkbutton page="serverframework">SERVER CORE FRAMEWORK</linkbutton>
<linkbutton page="asm1802">ASM/MCH 1802 SIMULATOR</linkbutton><br>
<linkbutton page="opensource">OVERVIEW</linkbutton><br>
<linkbutton page="opensource" subpage="barantmail">BARANTMAIL</linkbutton><br>
<linkbutton page="opensource" subpage="jet">JET</linkbutton><br>
<linkbutton page="opensource" subpage="synthmax">SYNTHMAX</linkbutton><br>
<linkbutton page="opensource" subpage="serverframework">SERVER CORE FRAMEWORK</linkbutton>
<linkbutton page="opensource" subpage="asm1802">ASM/MCH 1802 SIMULATOR</linkbutton><br>
</sectionframe>
+11 -49
View File
@@ -1,54 +1,16 @@
<page>
<title>OPEN SOURCE</title>
<contents>
<sectionframe title="Open Source Projects">
<h1>Open Source Projects</h1>
<p>We have several open source projects that we have created.</p>
<ul>
<li><linkbutton page="jet">JET</linkbutton> - JET Extension Tags provides an amazingly versatile and
simple mechanism for generating output for muliple uses. Originally
designed in the early days of the Internet for generating web pages
containing dynamic data it has been adapted to many uses from Asterisk
dial plans to other generated output that requires templated protocols
with dynamic data from a mysql database. Jeff Gonzalez added the
ability to manage web site sessions and pretty URLs to JET with his
session manager library.</li><br>
<li>BARANTMAIL - Designed out of frustration with qmail a decade ago
BARANTMAIL was developed on top of C++ and mySQL to provide an
extremely super simple e-mail server for the open-source
community.</li><br>
<li>SYNTHMAX - I have been developing a fully modular synthesizer for
use in Linux. This is not your usual plaything and maybe someday will
be used professionally in my keyboard products.</li><br>
<li>C++ SERVER FRAMEWORK - A core epoll server code for developing
all sorts of high performance TCP and UDP servers. Generic socket
objects allow tying into epoll handling for any socket based
communications including timers, files and network sockets.
Basic functional server frameworks are provided for:
<br><br>
<ul>
<li>HTTP(S) Server</li>
<li>Stream Server</li>
<li>E-Mail Server</li>
<li>Chat Server</li>
</ul>
</li><br>
<li><linkbutton page="asm1802">RCA1802 Micro-Controller
Emulator</linkbutton> - A fully operational assembler
and emulation environment for the development and deployment of
firmware code utilizing the RCA1802 micro-controller chip.</li>
</ul>
Check out our git server at <a href="https://git.barant.com">git.barant.com</a>.
</sectionframe>
<div id="opensource-subpage">
<if value1="$[SUBPAGE]" value2="" type="eq">
<include file="opensource-overview.subpage">
<else>
<try>
<include file="opensource-$[SUBPAGE].subpage">
<catch>
<p>That open source category doesn't exist.</p>
</try>
</if>
</div>
</contents>
</page>
+1
View File
@@ -0,0 +1 @@
<sql>delete from cart_item where session_uuid='$[_session_id]' and sku='$[sku]'</sql>$[sqlerror]
+15
View File
@@ -0,0 +1,15 @@
<set name="sitedir" value="/home/barant/servercore-analysis/JetCore/jetc/barant-site">
<if value1="$[html]" value2="" type="ne">
<if expr="(('$[letter_dir]'='src') or ('$[letter_dir]'='jet')) and (locate('/','$[letter_file]') = 0) and (locate('..','$[letter_file]') = 0)">
<call pgm="/bin/date" arg1="+%Y%m%d%H%M%S" name="backupstamp">
<call pgm="/bin/cp" arg1="$[sitedir]/$[letter_dir]/$[letter_file]" arg2="$[sitedir]/$[letter_dir]/$[letter_file].pre-htmleditor-$[backupstamp]">
<write file="$[sitedir]/$[letter_dir]/$[letter_file]" mode="overwrite" value="$[html;frombase64]">
<set name="dir" value="$[letter_dir]">
<set name="file" value="$[letter_file]">
</if>
</if>
<if value1="$[exit]" value2="" type="ne">
<set name="dir" value="">
<set name="file" value="">
</if>
<setpage name="htmleditor">
+3
View File
@@ -0,0 +1,3 @@
<process>
<setenv name="_product_sku">$[sku]</setenv>
</process>
@@ -0,0 +1,12 @@
<sectionframe title="Build Your Own Online Store">
<h1>Create Your Own Store</h1>
<p>BARANT Technology Group's e-commerce platform lets you build and run
your own online store right here on this site - list physical
products, digital downloads, subscriptions, or streaming content, and
we handle checkout, payment processing, and order management for you.</p>
<p>Whether you're selling a handful of items or running a full catalog,
your store lives alongside everything else here - the same account,
document storage, and support tools you already use.</p>
<p>Want to see it in action? Take a look at <a href="/barantstore">BarantStore</a>,
our own storefront, built on the same platform we're offering you.</p>
</sectionframe>
+10
View File
@@ -0,0 +1,10 @@
<page>
<title>STORE</title>
<contents>
<if value1="$[SUBPAGE]" value2="createstore" type="eq">
<include file="store-createstore.subpage">
<else>
<p>Page not found.</p>
</if>
</contents>
</page>
+5
View File
@@ -0,0 +1,5 @@
<process>
<sql>update products set type='$[type]', description='$[description]', text='$[text]', price=$[price], image='$[image]' where sku='$[_product_sku]' and sku_suffix=''</sql>$[sqlerror]
<setpage name="admin">
<set name="SUBPAGE" value="products">
</process>
+5
View File
@@ -0,0 +1,5 @@
<if expr="$[qty] <= 0">
<sql>delete from cart_item where session_uuid='$[_session_id]' and sku='$[sku]'</sql>$[sqlerror]
<else>
<sql>update cart_item set quantity=$[qty] where session_uuid='$[_session_id]' and sku='$[sku]'</sql>$[sqlerror]
</if>