Backup
|
@ -1,6 +1,7 @@
|
||||||
# Alias /hedera-web /usr/share/hedera-web/
|
# Alias /hedera-web /usr/share/hedera-web/web/
|
||||||
|
# Alias /vn-image-data /var/cache/hedera-web/image/
|
||||||
|
|
||||||
<Directory /usr/share/hedera-web/>
|
<Directory /usr/share/hedera-web/web/>
|
||||||
|
|
||||||
Options -Indexes -FollowSymLinks
|
Options -Indexes -FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -20,3 +21,14 @@
|
||||||
|
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
<Directory /var/cache/hedera-web/image/>
|
||||||
|
|
||||||
|
Options Indexes FollowSymLinks MultiViews
|
||||||
|
AllowOverride FileInfo Options
|
||||||
|
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow From All
|
||||||
|
Require all granted
|
||||||
|
|
||||||
|
</Directory>
|
||||||
|
|
|
@ -19,11 +19,11 @@ return [
|
||||||
* Database parameters.
|
* Database parameters.
|
||||||
**/
|
**/
|
||||||
'db' => [
|
'db' => [
|
||||||
'host' => 'db.verdnatura.es'
|
'host' => 'localhost'
|
||||||
,'port' => 3306
|
,'port' => 3306
|
||||||
,'schema' => 'hedera-web'
|
,'schema' => 'hedera-web'
|
||||||
,'user' => 'hedera-web'
|
,'user' => 'hedera-web'
|
||||||
,'pass' => 'base64pass'
|
,'pass' => ''
|
||||||
]
|
]
|
||||||
|
|
||||||
];
|
];
|
|
@ -1,9 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Vn\Hedera;
|
require_once (__DIR__.'/../php-vn-lib/configure.php');
|
||||||
|
|
||||||
require_once (__DIR__.'/../php-vn-web/configure.php');
|
|
||||||
require_once (__DIR__.'/../vn-image/configure.php');
|
|
||||||
|
|
||||||
set_include_path
|
set_include_path
|
||||||
(
|
(
|
||||||
|
@ -14,5 +11,6 @@ set_include_path
|
||||||
const _DEVELOPER_MODE = TRUE;
|
const _DEVELOPER_MODE = TRUE;
|
||||||
const _CONFIG_DIR = '/home/juan/.config';
|
const _CONFIG_DIR = '/home/juan/.config';
|
||||||
const _LOG_DIR = '/tmp';
|
const _LOG_DIR = '/tmp';
|
||||||
|
const _DATA_DIR = '/tmp';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,4 +1,17 @@
|
||||||
debian/conf/* etc/hedera-web
|
conf/* etc/hedera-web
|
||||||
vn usr/share/php
|
vn usr/share/php
|
||||||
doc/* usr/share/doc/hedera-web
|
doc/* usr/share/doc/hedera-web
|
||||||
web/* usr/share/hedera-web
|
forms usr/share/hedera-web/web
|
||||||
|
image usr/share/hedera-web/web
|
||||||
|
js usr/share/hedera-web/web
|
||||||
|
locale usr/share/hedera-web/web
|
||||||
|
pages usr/share/hedera-web/web
|
||||||
|
reports usr/share/hedera-web/web
|
||||||
|
rest usr/share/hedera-web/web
|
||||||
|
rest-json usr/share/hedera-web/web
|
||||||
|
index.php usr/share/hedera-web/web
|
||||||
|
rest.php usr/share/hedera-web/web
|
||||||
|
rest-json.php usr/share/hedera-web/web
|
||||||
|
hedera.php usr/share/hedera-web/bin
|
||||||
|
tasks usr/share/hedera-web/bin
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 109 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 182 KiB After Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 298 KiB After Width: | Height: | Size: 298 KiB |
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 285 KiB After Width: | Height: | Size: 285 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 426 KiB After Width: | Height: | Size: 426 KiB |
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 297 KiB After Width: | Height: | Size: 297 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
|
@ -0,0 +1,44 @@
|
||||||
|
|
||||||
|
Vn.Contact = new Class
|
||||||
|
({
|
||||||
|
Extends: Vn.Form
|
||||||
|
|
||||||
|
,activate: function ()
|
||||||
|
{
|
||||||
|
var self = this;
|
||||||
|
var form = this.$('contact-form').onsubmit = function ()
|
||||||
|
{ self.onSubmit (); return false; };
|
||||||
|
|
||||||
|
this.refreshCaptcha ();
|
||||||
|
}
|
||||||
|
|
||||||
|
,refreshCaptcha: function ()
|
||||||
|
{
|
||||||
|
var url = 'rest.php?method=captcha';
|
||||||
|
this.$('captcha-img').src = url +'&stamp='+ new Date ().getTime ();
|
||||||
|
}
|
||||||
|
|
||||||
|
,onSubmit: function ()
|
||||||
|
{
|
||||||
|
var request = new Vn.JsonRequest ();
|
||||||
|
request.sendForm (this.$('contact-form'),
|
||||||
|
this.onResponse.bind (this));
|
||||||
|
}
|
||||||
|
|
||||||
|
,onResponse: function (request, json, error)
|
||||||
|
{
|
||||||
|
var form = this.$('contact-form');
|
||||||
|
|
||||||
|
if (json)
|
||||||
|
{
|
||||||
|
form.reset ();
|
||||||
|
Htk.Toast.showMessage (_('DataSentSuccess'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Htk.Toast.showError (_('ErrorSendingData'));
|
||||||
|
|
||||||
|
form['captcha'].value = '';
|
||||||
|
this.refreshCaptcha ();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
@ -46,10 +46,10 @@
|
||||||
.captcha img
|
.captcha img
|
||||||
{
|
{
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
.captcha input
|
.captcha input
|
||||||
{
|
{
|
||||||
margin-left: 1em;
|
|
||||||
max-width: 8em;
|
max-width: 8em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,10 @@
|
||||||
<p>
|
<p>
|
||||||
<t>OrCallUs</t>
|
<t>OrCallUs</t>
|
||||||
</p>
|
</p>
|
||||||
<form action="forms/cms/contact/send-data.php" method="post" id="contact-form">
|
<form
|
||||||
|
id="contact-form"
|
||||||
|
method="post"
|
||||||
|
action="rest.php?method=contact">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><t>Name</t></label>
|
<label><t>Name</t></label>
|
||||||
<input type="text" name="name"/>
|
<input type="text" name="name"/>
|
|
@ -15,8 +15,7 @@
|
||||||
<htk-repeater form-id="new">
|
<htk-repeater form-id="new">
|
||||||
<db-model property="model">
|
<db-model property="model">
|
||||||
<custom>
|
<custom>
|
||||||
SELECT title, date_time, text, image, id FROM news
|
SELECT title, date_time, text, image, id FROM news
|
||||||
WHERE tag != 'course'
|
|
||||||
ORDER BY priority, date_time DESC
|
ORDER BY priority, date_time DESC
|
||||||
</custom>
|
</custom>
|
||||||
</db-model>
|
</db-model>
|
|
@ -17,6 +17,11 @@ Vn.Basket = new Class
|
||||||
if (isOk)
|
if (isOk)
|
||||||
this.loadUi ();
|
this.loadUi ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
,activate: function ()
|
||||||
|
{
|
||||||
|
this.$('items').setInfo ('i', 'basket_item', 'hedera');
|
||||||
|
}
|
||||||
|
|
||||||
,onConfigureClick: function ()
|
,onConfigureClick: function ()
|
||||||
{
|
{
|
|
@ -2,15 +2,13 @@
|
||||||
Vn.Invoices = new Class
|
Vn.Invoices = new Class
|
||||||
({
|
({
|
||||||
Extends: Vn.Form
|
Extends: Vn.Form
|
||||||
|
|
||||||
,activate: function () {}
|
|
||||||
|
|
||||||
,onDownloadClick: function (column, invoiceId)
|
,onDownloadClick: function (column, invoiceId)
|
||||||
{
|
{
|
||||||
if (!invoiceId)
|
if (!invoiceId)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var url = '//www.verdnatura.es/hedera-web/forms/ecomerce/invoices/download.php?invoice='+ invoiceId;
|
var url = 'rest.php?method=invoice&invoice='+ invoiceId;
|
||||||
window.open (url, '_blank');
|
window.open (url, '_blank');
|
||||||
}
|
}
|
||||||
});
|
});
|