SMF - Installazione appena completata!
sudo apt-get install curlftpfs
sudo curlftpfs -o user=[utente]:[password] [server_ftp] [punto_di_mount]
fusermount -u [punto_di_mount]
return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
if (VISUALIZZA_PREZZI == 'true') {
return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
}
return '';
if (VISUALIZZA_PREZZI == 'false') {
return '';
}
if ( (substr(basename($PHP_SELF), 0, 8) != 'checkout') && tep_not_null(MODULE_BOXES_CARD_ACCEPTANCE_LOGOS) ) {
$output = '<div class="ui-widget infoBoxContainer">' .
' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CARD_ACCEPTANCE_BOX_TITLE . '</div>' .
' <div class="ui-widget-content infoBoxContents" style="text-align: center;">';
foreach ( explode(';', MODULE_BOXES_CARD_ACCEPTANCE_LOGOS) as $logo ) {
$output .= tep_image(DIR_WS_IMAGES . 'card_acceptance/' . basename($logo));
}
$output .= ' </div>' .
'</div>';
$oscTemplate->addBlock($output, $this->group);
}
if (VISUALIZZA_PREZZI == 'si') {
if ( (substr(basename($PHP_SELF), 0, 8) != 'checkout') && tep_not_null(MODULE_BOXES_CARD_ACCEPTANCE_LOGOS) ) {
$output = '<div class="ui-widget infoBoxContainer">' .
' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CARD_ACCEPTANCE_BOX_TITLE . '</div>' .
' <div class="ui-widget-content infoBoxContents" style="text-align: center;">';
foreach ( explode(';', MODULE_BOXES_CARD_ACCEPTANCE_LOGOS) as $logo ) {
$output .= tep_image(DIR_WS_IMAGES . 'card_acceptance/' . basename($logo));
}
$output .= ' </div>' .
'</div>';
$oscTemplate->addBlock($output, $this->group);
}
}
$this->calculate();
return $this->total;
if (VISUALIZZA_PREZZI > 0) {
$this->calculate();
return $this->total;
} else {
return '';
}
elseif (isset($entry['entry_gender'])) {
$male = ($entry['entry_gender'] == 'm') ? true : false;
$female = !$male;
}
</tr>
<tr>
<td class="fieldKey"><?php echo ENTRY_PARTITAIVA; ?></td>
<td class="fieldValue"><?php echo tep_draw_input_field('partitaIVA', (isset($entry['entry_gender']) ? $entry['entry_gender'] : '')) . ' ' . (tep_not_null(ENTRY_PARTITAIVA_TEXT) ? '<span class="inputRequirement">' . ENTRY_PARTITAIVA_TEXT . '</span>': ''); ?></td>
</tr>
if (ACCOUNT_GENDER == 'true') $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
if (ACCOUNT_COMPANY == 'true') $partitaIVA = tep_db_prepare_input($HTTP_POST_VARS['partitaIVA']);
if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_gender'] = $partitaIVA;
$entry_company = tep_db_prepare_input($HTTP_POST_VARS['entry_company']);
$entry_partitaIVA = tep_db_prepare_input($HTTP_POST_VARS['entry_partitaIVA']);
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $entry_company;
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_gender'] = $entry_partitaIVA;
$customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob, c.customers_email_address, a.entry_company, a.entry_street_address, a.entry_suburb, a.entry_postcode, a.entry_city, a.entry_state, a.entry_zone_id, a.entry_country_id, c.customers_telephone, c.customers_fax, c.customers_newsletter, c.customers_default_address_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_default_address_id = a.address_book_id where a.customers_id = c.customers_id and c.customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "'");
$customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob, c.customers_email_address, a.entry_company, a.entry_street_address, a.entry_suburb, a.entry_postcode, a.entry_city, a.entry_state, a.entry_zone_id, a.entry_country_id, c.customers_telephone, c.customers_fax, c.customers_newsletter, c.customers_default_address_id, a.entry_gender from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_default_address_id = a.address_book_id where a.customers_id = c.customers_id and c.customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "'");
</tr>
<tr>
<td class="main"><?php echo ENTRY_PARTITAIVA; ?></td>
<td class="main">
<?php
if ($error == true) {
echo $cInfo->entry_gender . tep_draw_hidden_field('entry_partitaIVA');
} else {
echo tep_draw_input_field('entry_partitaIVA', $cInfo->entry_gender, 'maxlength="16"');
}
?></td>
</tr>
f (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
if (ACCOUNT_COMPANY == 'true') $partitaIVA = tep_db_prepare_input($HTTP_POST_VARS['partitaIVA']);
if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_gender'] = $partitaIVA;
</tr>
<tr>
<td class="fieldKey"><?php echo ENTRY_PARTITAIVA; ?></td>
<td class="fieldValue"><?php echo tep_draw_input_field('partitaIVA') . ' ' . (tep_not_null(ENTRY_PARTITAIVA_TEXT) ? '<span class="inputRequirement">' . ENTRY_PARTITAIVA_TEXT . '</span>': ''); ?></td>
</tr>
if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
define('ENTRY_PARTITAIVA', 'Partita IVA / Codice Fiscale');
define('ENTRY_PARTITAIVA_TEXT', '');
define('ENTRY_PARTITAIVA_CORTO'), 'P.IVA/C.F.');
if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) {
$address = $company . $cr . $address;
if (tep_not_null($partitaIVA)) {
$address .= $cr . ENTRY_PARTITAIVA_CORTO . ': ' . $partitaIVA;
}
}
$address_query = tep_db_query("select entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customers_id . "' and address_book_id = '" . (int)$address_id . "'");
$address_query = tep_db_query("select entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id, entry_gender as partitaIVA from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customers_id . "' and address_book_id = '" . (int)$address_id . "'");
DELETE FROM zones;
DELETE FROM geo_zones;
INSERT INTO `geo_zones` (`geo_zone_id`, `geo_zone_name`, `geo_zone_description`, `last_modified`, `date_added`) VALUES (1, 'Italia', 'Italia', NULL, '2016-04-24 11:26:32');
DELETE FROM zones_to_geo_zones;
INSERT INTO `zones_to_geo_zones` (`association_id`, `zone_country_id`, `zone_id`, `geo_zone_id`, `last_modified`, `date_added`) VALUES (1, 105, NULL,1, NULL, '2016-04-19 23:43:46');
DELETE FROM tax_class;
INSERT INTO `tax_class` (`tax_class_id`, `tax_class_title`, `tax_class_description`, `last_modified`, `date_added`) VALUES (1, 'Iva', 'Iva Italia', '2016-04-19 23:43:46', '2016-04-19 23:43:46'),(2, 'Conai', 'Conai Italia', '2016-04-19 23:43:46', '2016-04-19 23:43:46');
INSERT INTO `configuration` SET `configuration_title` = 'Catalogo', `configuration_key` = 'VISUALIZZA_PREZZI', `configuration_value` = 'true', `configuration_description` = 'Abilita o disabilitala visualizzazione dei prezzi', `configuration_group_id` = '1', `sort_order` = '22', `set_function` = 'tep_cfg_select_option(array(\'true\', \'false\'), ' WHERE `configuration`.`configuration_id` = 369;
ALTER TABLE `products` CHANGE `products_model` `products_model` VARCHAR(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
ALTER TABLE `address_book` CHANGE `entry_gender` `entry_gender` VARCHAR(16) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
UPDATE `countries` SET `address_format_id` = '5' WHERE `countries`.`countries_id` = 105;
INSERT INTO `zones` (`zone_id`, `zone_country_id`, `zone_code`, `zone_name`) VALUES (1, 105, 'IT', 'NA');
INSERT INTO `zones_to_geo_zones` (`association_id`, `zone_country_id`, `zone_id`, `geo_zone_id`, `last_modified`, `date_added`) VALUES (2, 105, 1, 1, NULL, '2016-04-19 23:43:46');
mysql -u root -p
SELECT User, Host FROM mysql.user;
desc mysql.user;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
username e password da scegliere CREATE DATABASE dbname;
dbname: da scegliereGRANT permessi ON nomedatabase.nometabella TO username@localhost;
username: da scegliereFLUSH PRIVILEGES;
per aggiornare i privilegiSHOW GRANTS FOR username;
username: da scegliereREVOKE permessi ON nomedatabase.nometabella FROM username@localhost;
UPDATE mysql.user SET password=PASSWORD('NuovaPass') WHERE user='NomeUtente';
NuovaPass = scegli la nuova passwordnmap -sT [IP ADRESS]
netstat -ntupl | grep :443
telnet localhost 443
a2enmod ssl
a2ensite [file.conf]
a2dissite [file.conf]
systemctl restart apache2
systemctl reload apache2
systemctl status apache2.service
allow_url_fopen = On
service httpd restart
php --ini
per sapere l' ubicazione precisa.