* @author JTL-Software <*****@*****.**>
 * @copyright 2006, JTL-Software
 * @link http://jtl-software.de/eazysales.php
 * @version v1.0 / 28.06.06
*/
define('OOS_VALID_MOD', 'yes');
require 'syncinclude.php';
$return = 3;
$_POST['userID'] = $_POST['euser'];
$_POST['userPWD'] = $_POST['epass'];
if (auth()) {
    $return = 0;
    //nur BildNr 1 wird bercksichtigt
    if (intval($_POST['kArtikelBild']) > 0 && intval($_POST['nNr']) == 1 && $_FILES['bild']) {
        //hol products_id
        $products_id = getFremdArtikel(intval($_POST['kArtikelBild']));
        $bildname = $products_id . "_" . (intval($_POST['nNr']) - 1) . ".jpg";
        move_uploaded_file($_FILES['bild']['tmp_name'], DIR_FS_CATALOG_ORIGINAL_IMAGES . $bildname);
        $im = @ImageCreateFromJPEG(DIR_FS_CATALOG_ORIGINAL_IMAGES . $bildname);
        if ($im) {
            //bild skalieren
            list($width, $height) = getimagesize(DIR_FS_CATALOG_ORIGINAL_IMAGES . $bildname);
            $ratio = $width / $height;
            //thumbnail
            $configurationtable = $oostable['configuration'];
            $cur_query = xtc_db_query("SELECT configuration_value\n                                                   FROM {$configurationtable}\n                                                   WHERE configuration_key=\"PRODUCT_IMAGE_THUMBNAIL_WIDTH\"");
            $width_obj = mysql_fetch_object($cur_query);
            $new_width = 120;
            if ($width_obj->configuration_value > 0) {
                $new_width = $width_obj->configuration_value;
            }
Example #2
0
 * 
 * @author JTL-Software <*****@*****.**>
 * @copyright 2006, JTL-Software
 * @link http://jtl-software.de/eazysales.php
 * @version v1.0 / 16.06.06
*/
define('OOS_VALID_MOD', 'yes');
require 'syncinclude.php';
$return = 3;
if (auth()) {
    if (intval($_POST['action']) == 1 && intval($_POST['KeyEigenschaft'])) {
        $Eigenschaft->kEigenschaft = intval($_POST["KeyEigenschaft"]);
        $Eigenschaft->kArtikel = intval($_POST['KeyArtikel']);
        $Eigenschaft->cName = realEscape($_POST["Name"]);
        //hole products_id
        $products_id = getFremdArtikel($Eigenschaft->kArtikel);
        if ($products_id > 0) {
            //hole einstellungen
            $eazysales_einstellungenstable = $oostable['eazysales_einstellungen'];
            $cur_query = xtc_db_query("SELECT languages_id FROM {$eazysales_einstellungenstable}");
            $einstellungen = mysql_fetch_object($cur_query);
            //hol products_options_id
            $products_optionstable = $oostable['products_options'];
            $cur_query = xtc_db_query("SELECT products_options_id\n                                                   FROM {$products_optionstable}\n                                                   WHERE language_id=" . $einstellungen->languages_id . "\n                                                     AND products_options_name=\"{$Eigenschaft->cName}\"");
            $options_id = mysql_fetch_object($cur_query);
            if (!$options_id->products_options_id) {
                //erstelle eigenschaft
                //hole max PK
                $products_optionstable = $oostable['products_options'];
                $cur_query = xtc_db_query("SELECT max(products_options_id) FROM {$products_optionstable}");
                $max_id_arr = mysql_fetch_row($cur_query);
Example #3
0
 * Synchronisationsscript
 * 
 * Es gelten die Nutzungs- und Lizenzhinweise unter http://www.jtl-software.de/eazysales.php
 * 
 * @author JTL-Software <*****@*****.**>
 * @copyright 2006, JTL-Software
 * @link http://jtl-software.de/eazysales.php
 * @version v1.01 / 27.06.06
*/
define('OOS_VALID_MOD', 'yes');
require 'syncinclude.php';
$return = 3;
if (auth()) {
    if (intval($_POST['action']) == 1 && intval($_POST['KeyAttribut'])) {
        $return = 0;
        $Attribut->products_id = getFremdArtikel(intval($_POST['KeyArtikel']));
        $Attribut->name = $_POST["Name"];
        $Attribut->content = $_POST["StringWert"];
        if (strlen($_POST["TextWert"]) > 0) {
            $Attribut->content = $_POST["TextWert"];
        }
        attributBearbeiten($Attribut);
    }
}
echo $return;
logge($return);
//Attribut wird verarbeitet / in DB insertet
function attributBearbeiten($Attribut)
{
    if ($Attribut->content && $Attribut->products_id > 0) {
        //hole einstellungen