Jump to content

Gyakutsuki

♥Ambassador
  • Content count

    727
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Gyakutsuki

  1. Gyakutsuki

    Newsletter & Subscribtion for MS2

    You can download v0.44. Just a little update. I would say that this newsletter is different that original, and simplify, some options for the users are deleted and optimised. Indeed, a customers want stay an anonymous and don't want to insert this address .... I think today the difference between the anonymous and the members are importants, and you can have now marketing strategy. If you use this contribution on your local computer you can have an error email when you sent a newsletter. If you use on your provider, you haven't problem. I don't know why. -------- There, an import email module in cvs (excel) : This is module is in devlopment and i have just little pb. For an expert, it's simply to resolve this pb. This module must realised : If the email does'nt exist in base, it's inserted (ok) If the email exist in database, it's updated (not ok). I don't know if my code is perfect, but you can upload a new mail now, but if you want update a mail, it' doesn't work, he is added. Coul you help me to solve this problem . Thanks. installation : In admin, create a file called newsletters_import.php In admin/includes/finames.php => define('FILENAME_NEWSLETTERS_IMPORT','newsletters_import.php'); In the boxe add : // '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_IMPORT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_NEWSLETTER_IMPORT. '</a>'); <?php /* $Id: newsletters.php,v 1.17 2003/06/29 22:50:52 Gyakutsuki Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // on v?rifie l'adresse e-mail function EmailOK($subscribers_email_address) { return( ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'. '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $subscribers_email_address) ); } switch($action) { /* LECTURE ET AJOUT DES DONNEES DANS LA TABLE */ case "ajouter": /* On ouvre le fichier ? importer en lecture seulement */ if (file_exists($fichier)) $fp = fopen("$fichier", "r"); else /* le fichier n'existe pas */ { echo "Fichier introuvable !<br>Importation stopp?e."; exit(); } // on importe while (!feof($fp)) { // Tant qu'on n'atteint pas la fin du fichier $ligne = fgets($fp,4096); // On lit une ligne // On r?cup?re les champs s?par?s par; dans liste $liste = explode( ";",$ligne); // On assigne les variables $subscribers_lastname = $liste[0]; $subscribers_firstname = $liste[1]; $subscribers_email_address = $liste[2]; $customers_newsletter = $liste[3]; $subscribers_blacklist = $liste[4]; // Changement des valeurs afin de pouvoir contacter ces personnes via la newsletter ou le mail des anonymes if ($customers_newsletter=='') { $customers_newsletter = '1'; } if ($subscribers_blacklist=='') { $subscribers_blacklist = '0'; } // V?rification du formatage de l'email if(EmailOK($subscribers_email_address)) { $requete="select subscribers_id, subscribers_email_address from " . TABLE_SUBSCRIBERS . " where email='$subscribers_email_address'"; //elle n'existe pas, on l'ins?re if($subscribers_email_address == 0) { $query = "INSERT INTO " . TABLE_SUBSCRIBERS . " (subscribers_lastname, subscribers_firstname, subscribers_email_address, customers_newsletter, subscribers_blacklist) VALUES ('".$subscribers_lastname."','".$subscribers_firstname."','".$subscribers_email_address."','".$customers_newsletter."','".$subscribers_blacklist."') "; $result= MYSQL_QUERY($query); } else { // elle existe, on la met ? jour echo htmlentities("Cet enregistrement existe d?j?, il a ?t? mis ? jour" ); $query = " UPDATE " . TABLE_SUBSCRIBERS . " (subscribers_lastname, subscribers_firstname, subscribers_email_address, customers_newsletter, subscribers_blacklist) VALUES ('".$subscribers_lastname."','".$subscribers_firstname."','".$subscribers_email_address."','".$customers_newsletter."','".$subscribers_blacklist."') where subscribers_email_address = '" . subscribers_email_address . "')"; $result= MYSQL_QUERY($query); } } if(mysql_error()) { /* Erreur dans la base de donnees, s?rement la table qu'il faut cr?er */ print "Erreur dans la base de donn?es : ".mysql_error(); print "<br>Importation stopp?e."; exit(); } /* Tout va bien */ else print "$subscribers_email_address / $subscribers_lastname <br>"; } echo "<br>Importation termin?e, avec succ?s. <br> Les adresses email imcompl?tes n\'ont pas ?t? import?es."; /* Fermeture */ fclose($fp); break; /* FORMULAIRE DE CHOIX D'IMPORTATION */ default: ?> <?php // echo "<form method=\"post\" action=\"$PHP_SELF\">"; ?> <?php echo "<form action=\"$PHP_SELF\" method=\"post\" enctype=\"multipart/form-data\">";?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> Pour ajouter ton serveur il suffit de remplir ce formulaire <table border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <tr> <td>Fichier :</td> <td> <input type="file" name="fichier"> </td> </tr> <tr> <td></td> <td> <input type="submit" name="submit" value="Ajouter"> </td> </tr> </table> <input type="hidden" name="action" value="ajouter"> </form> </table> <?php break; } ?> </body> </html>
  2. Gyakutsuki

    Newsletter & Subscribtion for MS2

    Sorry for my absence. I don't receive a mail in this post, i don't know why. This contribution work only with html code. You find in admin../functions directory, the files mail.php and a function called add_html_newsletter /** * Adds a html part to the mail. * Also replaces image names with * content-id's. */ // #################### Changed Newsletter & Subscriber ?#################"" ? ?function add_html_newsletter($html, $text = NULL, $images_dir = NULL) { ? ? ? ?$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html); // ? ? ?$this->html = ?$html; // #################### End Changed Newsletter & Subscriber ?#################"" ? ? ?$this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); ? ? ?if (isset($images_dir)) $this->find_html_images($images_dir); ? ?} // #################### End Changed Newsletter & Subscriber ?#################"" ? ?function add_html($html, $text = NULL, $images_dir = NULL) { // #################### Changed Newsletter & Subscriber ?#################"" ? ? ?$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); // ? ? ? ?$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html); // #################### End Changed Newsletter & Subscriber ?#################"" ? ? ?$this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); ? ? ?if (isset($images_dir)) $this->find_html_images($images_dir); i created this new function, because when you send an sheet, you have a <br> every lines but all the newsletter is in html. This function delete the <br>. if you want to comeback with the last function you change in newsletter module or unsubscriber newsletter this function add_html_newsletter by add_html. That's all. note : you have the site the 4.2 or 4.3 version
  3. Gyakutsuki

    Newsletter & Subscribtion for MS2

    yes it's not birirectionnal and it 's not possible to insert an anonymous in members client (logical), you need several fields. You can upload the v0.42. I developped this contribution with the french law and optimize the files. When a members or an anonymous subsriber want to unsubscribe, this account is deleted but not deleted in members. This latest can receive a members newsletter. regards
  4. I found a solution for the newsletter in oscommerc. If you want include a sheet in the newsletter, you have a problem. You can solve it by that : function add_html($html, $text = NULL, $images_dir = NULL) { ############### Changed "################ // $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html); // $this->html = $html; // ############## End changed ###########
  5. Gyakutsuki

    Send order html email, as?

    You have an update for this contribuion and i created the V5. Regards,
  6. Gyakutsuki

    PDF Catalog v.1.5

    I will try ... Have you checked the www.fpdf.org site? If not, download this file and add it to you osC+PDF_Catalog installation! With a little bit of luck, this is what you are looking for ... if not ... Houston we have a problem! :-) Yes i know this site and i try to implement the code, but my knwoledge are limited and all my modification are bad. this contribution is not very simple.
  7. Gyakutsuki

    PDF Catalog v.1.5

    I try to develop an "html" pdf catalog. I would to take <b>,<p>,<br>. But i don't arrive to create this. could you help. The example below does'nt wok very well.
  8. Gyakutsuki

    Send order html email, as?

    I have been fogotten to delete this code. Put /* and */ before the // ################### Added ############### // check for terms and conditions agreement /* if ($HTTP_POST_VARS['agree'] != 'true') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode('You must agree to the terms and conditions to finish your order'), 'SSL')); } */ // ################ End Added #############
  9. Gyakutsuki

    PDF Catalog v.1.5

    If you want increase this contribution you can add this code : near 692 ? $model=rtrim(strip_tags($products_new_array[$nb]['model'])); // ################ added <br> ############### // $description=rtrim(strip_tags($products_new_array[$nb]['description'])); $description= str_replace(" ","",rtrim(strip_tags($products_new_array[$nb]['description']))); // ################ End added <br> ############### If you have in your HTML code <p> or <br>, the new pdf can take it. near 724 function TitreChapitre($lib) { //Titre $this->SetFont('Arial','',12); $titles_color_table=explode(",",HIGHT_TITLES_CELL_COLOR); $this->SetFillColor($titles_color_table[0], $titles_color_table[1], $titles_color_table[2]); $this->Cell(0,6,$lib,0,1,'L',1); $this->Ln(4); //Sauvegarde de l'ordonn?e $this->y0=$this->GetY(); } // ################# Imprimer la couverture ################# function CouvertureFace() { $this->AddPage(); // $this->Image('logo.gif',5,60,200); $this->SetY(-180); $this->SetFont('Arial','B',30); $this->SetTextColor(0); $this->Cell(80); $this->Cell(30,10,PDF_TITLE,0,0,'C'); $this->Ln(20); } // ##################### End Added ############## } $languages = tep_get_languages(); $languages_string = ''; for ($i=0; $i<sizeof($languages); $i++) { $pdf=new PDF(); $pdf->Open(); $pdf->SetDisplayMode("real"); // ##################### Imprimer la couverture ############## $pdf->CouvertureFace(); // ##################### End Added ############## create a new first presentation page. It's really interesting. you can see this contribution in action on http://www.bleu-lavande.com It's not perfect for the moment.
  10. Thank you for this contribution. I have installed ultrapics on https server. I can easy upload the image in the directory https://site/images/ but when I want to see the image (in image manager pop up), i haven't nothing, image and icon. Just the image name When i click on the image name, the url link does'nt appear in url link fields. When i want go in the subdirectory, it's not possible. But if i install the same contribution on http, I haven't problem. I need use this contribution on https, could you help to resolve this problem, please.
  11. Gyakutsuki

    PDF Catalog v.1.5

    A little error on pdf_catalogue. You have forget a ].
  12. Gyakutsuki

    Send order html email, as?

    Look you configure account if all the fields are corrects. if your installation was manual, you have maybe forgotten a "/"
  13. Gyakutsuki

    B2BSuite V087

    I test this contrib but there is a problem when you create a discount and a categorie discount. Example : Create a disount: 20% for all categories Create another discount for a subcategories : ex dvd movies : 80% Now look the the results : Categories discount result good discount dvdmovies 80% 80% dvdadventure 25% 20% hardware 25% 20% Where is the pb, i have seen the code but i haven'd found the problem.
  14. Gyakutsuki

    Send order html email, as?

    Ths contribution works correctly, but you must becarefull in the installation. There is now the 4.2 available on os.com. I modified a little bug.
  15. Gyakutsuki

    installed v 1.2

    This contribution is great but it's not possible in the fax to have the product and the attributs. How do you do to have in the fax the order detail with the products name, quantity and attributs . thank you
  16. Gyakutsuki

    Recover Cart Sales

    I try this add on but i have a problem. When the mail is sending, i receive always an english message and not a french message. I don't know why all my mail are in english and not in the french if my administration is in french ? Could you help me ? Thanks
  17. Gyakutsuki

    Recover Cart Sales

    I try this add on but i have a problem. When the mail is sending, i receive always an english message and not a french message. I don't know why all my mail are in english and not in the french if my administration is in french ? Could you help me ? Thanks
  18. When i am in image manager I dont' see the files after images root. When i want to upload an image, i have this message "File 'booster.gif' could not be created. My catalog/images directory is in 777 chmod. Could you help me to solve this problem. Thanks
  19. I am on ms2 but when i want to upload a image (on my desk computer), i have a response : "you can't upload". how can i solve this problem. All my directory in ctalog/image are in write.
  20. This script doesn't work on macintosh with IE. Do you have a solution ?
  21. Gyakutsuki

    [Contribution] Pollbooth v2.0

    I have a problem with admin/polls on the bouton private/public and open /closed (red and green) When i click on the bouton, he stay always green but the script is correct. We can open or close a sondage for example but the button are always green. line 367 // ############## pb couleur ######################### if ($polls['poll_type']==1) { echo '<a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_type&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', _ALT_PUBLIC) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_type&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', _ALT_PRIVATE) . '</a>'; } ?> </td> <td class="dataTableContent" align="center"> <?php if ($polls['poll_open']==1) { echo '<a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_open&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', _ALT_REOPEN) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_open&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', _ALT_CLOSE) . '</a>'; } // ################### fin ######################## if you change : if ($polls['poll_type']==1){ by if ($polls['poll_type']==0) { you have a red button. i think they have bug on variable but i don't know where !!!!!
  22. I am on ms2 and i have this problem in admin Fatal error: Call to undefined function: tep_array_merge() in g:\easyphp 1.7\www\oscmax\admin\exchange_links_links.php on line 432 Can i have this function or i htink this function doesn't exist on ms2 or has been changed. Could you help me ?
  23. Define_mainpage problem with ssl and non ssl : If you are with two server, one on ssl and on on nonssl, defin_mainpage write only on ssl. The problem is developp a code : If you are no ssl : no change If you are ssl : no change If you are ssl and nonssl : write mainpage in ssl and non ssl directory I am not a developper but i studied the code of mainpage. Here my observations and my proposition to developp a new code on mainpage.php with include ssl and nonssl Could you help me to develop a new code on these observations : Regards ###################################################################### The identified files in configure.php and mainpage.php admin/includes/Configure.php example with admin is in ssl and catalog is in nonssl in admin/includes/configure.php: ?define('DIR_WS_CATALOG', '/catalog/'); // absolute path required ?define('DIR_FS_CATALOG', '/home/httpd/vhosts/mysite.com/httpsdocs/catalog/'); // absolute path required httpdocs=ssl httpdoc=nonssl ?define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); ?define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); Original (if admin=nonssl and catalog=nonssl or admin=ssl and catalog=ssl only): No change line 45 at 47 (Files identifiction) ? ? ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']; ? ? ? ?} else { ? ? ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; line 133 / 135 (130/148) Write mode verification ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']; ? ?} else { ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; line 227 : Save the modification ? ? ? ? ? ?<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>'; ?></td> [/code] ------------------------------------------------------------------------------ My proposition if the catalog is included in ssl and nonssl include in configure.php ?define('DIR_WS_CATALOG_NONSSL', '/catalog/'); // absolute path required ?define('DIR_FS_CATALOG_NONSSL', '/home/httpd/vhosts/mysite.com/httpdoc/catalog/'); // absolute path required [/code] httpdoc = nonssl ?define('DIR_WS_CATALOG_LANGUAGES_NONSSL', DIR_WS_CATALOG . 'includes/languages/'); ?define('DIR_FS_CATALOG_LANGUAGES_NONSSL', DIR_FS_CATALOG . 'includes/languages/'); [/code] if admin=ssl and catalog=nonssl then write mainpage in ssl and mainpage nonssl line 45 at 47 ((Files identifiction) ? ? ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']; ? ? ? ?} else { ? ? ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; + line 45 at 47 (idenitification du fichier) ? ? ? ? ?$file = DIR_FS_CATALOG_LANGUAGES_NONSSL . $HTTP_GET_VARS['filename']; ? ? ? ?} else { ? ? ? ? ?$file = DIR_FS_CATALOG_LANGUAGES_NONSSL . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; line 133 / 135 (130/148) Write mode verification ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']; ? ?} else { ? ? ?$file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; + line 133 / 135 (130/148) Files write verification ? ? ?$file = DIR_FS_CATALOG_LANGUAGES_NONSSL . $HTTP_GET_VARS['filename']; ? ?} else { ? ? ?$file = DIR_FS_CATALOG_LANGUAGES_NONSSL . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; ? line 227 : Save the modification ? ? ? ? ? ?<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>'; ?></td> + ? ? ? ? ? ?<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES_NONSSL . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>'; ?></td> #############################################################################
  24. Gyakutsuki

    Main page with ssl and nonssl

    Here the files code of define_mainpage.php in admin. <?php /* $Id: define_mainpage.php,v 1.2 2002/04/06 00:00:00 mattice Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ////////////////////////////////////////////////////////////////////////// define_mainpage.php Version 1.2 DESCRIPTION: An extremely simple hack of define_languages.php, this file ALWAYS looks for the file mainpage.php in the language directory. This is a nice example to show how easy you can adapt existing code to your needs; apart from the translation and filename(s) I only had to add ONE SINGLE LINE to define_languages.php to make it into this. 06/04/02 Matthijs (mattice@xs4all.nl) This file has been edit to be up to date with the current snapshot...some minor and slight additions where added and simple little things where fixed: July 29, 2002 Steven Pignataro (steven_joseph_p@yahoo.com) ///////////////////////////////////////////////////////////////////////// Released under the GNU General Public License */ require('includes/application_top.php'); // This will cause it to look for 'mainpage.php' $HTTP_GET_VARS['filename'] = 'mainpage.php'; switch ($HTTP_GET_VARS['action']) { case 'save': if ( ($HTTP_GET_VARS['lngdir']) && ($HTTP_GET_VARS['filename']) ) { if ($HTTP_GET_VARS['filename'] == $language . '.php') { $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']; } else { $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; } if (file_exists($file)) { if (file_exists('bak' . $file)) { @unlink('bak' . $file); } @rename($file, 'bak' . $file); $new_file = fopen($file, 'w'); $file_contents = stripslashes($HTTP_POST_VARS['file_contents']); fwrite($new_file, $file_contents, strlen($file_contents)); fclose($new_file); } tep_redirect(tep_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir'])); } break; } if (!$HTTP_GET_VARS['lngdir']) $HTTP_GET_VARS['lngdir'] = $language; $languages_array = array(); $languages = tep_get_languages(); $lng_exists = false; for ($i=0; $i<sizeof($languages); $i++) { if ($languages[$i]['directory'] == $HTTP_GET_VARS['lngdir']) $lng_exists = true; $languages_array[] = array('id' => $languages[$i]['directory'], 'text' => $languages[$i]['name']); } if (!$lng_exists) $HTTP_GET_VARS['lngdir'] = $language; ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="Javascript1.2"><!-- // load htmlarea //MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.5 Products Description HTML - Head _editor_url = "<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_ADMIN; ?>htmlarea/"; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } <?php if (HTML_AREA_WYSIWYG_BASIC_DEFINE == 'Basic'){ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_basic.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php } else{ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_advanced.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php }?> // --></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo tep_draw_form('lng', FILENAME_DEFINE_MAINPAGE, '', 'get'); ?> <td class="pageHeading"><?php echo BOX_CATALOG_DEFINE_MAINPAGE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '1', HEADING_IMAGE_HEIGHT); ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_pull_down_menu('lngdir', $languages_array, '', 'onChange="this.form.submit();"'); ?></td> </form></tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ( ($HTTP_GET_VARS['lngdir']) && ($HTTP_GET_VARS['filename']) ) { if ($HTTP_GET_VARS['filename'] == $language . '.php') { $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']; } else { $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir'] . '/' . $HTTP_GET_VARS['filename']; } if (file_exists($file)) { $file_array = @file($file); $file_contents = @implode('', $file_array); $file_writeable = true; if (!is_writeable($file)) { $file_writeable = false; $messageStack->reset(); $messageStack->add(sprintf(ERROR_FILE_NOT_WRITEABLE, $file), 'error'); echo $messageStack->output(); } ?> <tr><?php echo tep_draw_form('language', FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir'] . '&filename=' . $HTTP_GET_VARS['filename'] . '&action=save'); ?> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo $HTTP_GET_VARS['filename']; ?></b></td> </tr> <tr> <td class="main"><?php echo tep_draw_textarea_field('file_contents', 'soft', '80', '20', $file_contents, (($file_writeable) ? '' : 'readonly')); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td align="right"><?php if ($file_writeable) { echo tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; } ?></td> </tr> </table></td> </form></tr> <?php if (HTML_AREA_WYSIWYG_DISABLE_DEFINE == 'Disable') {} else { ?> <script language="JavaScript1.2" defer> // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.5 Products Description HTML - Body var config = new Object(); // create new config object config.width = "<?php echo DEFINE_MAINPAGE_WYSIWYG_WIDTH; ?>px"; config.height = "<?php echo DEFINE_MAINPAGE_WYSIWYG_HEIGHT; ?>px"; config.bodyStyle = 'background-color: <?php echo HTML_AREA_WYSIWYG_BG_COLOUR; ?>; font-family: "<?php echo HTML_AREA_WYSIWYG_FONT_TYPE; ?>"; color: <?php echo HTML_AREA_WYSIWYG_FONT_COLOUR; ?>; font-size: <?php echo HTML_AREA_WYSIWYG_FONT_SIZE; ?>pt;'; config.debug = <?php echo HTML_AREA_WYSIWYG_DEBUG; ?>; // More Configs can added here: // Dreamscape added Dynamic Language Function editor_generate('file_contents',config); <?php } ?> </script> <?php } else { ?> <tr> <td class="main"><b><?php echo TEXT_FILE_DOES_NOT_EXIST; ?></b></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir']) .' ">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> </tr> <?php } } else { $filename = $HTTP_GET_VARS['lngdir'] . '.php'; ?> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="smallText"><a href="<?php echo tep_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td> <?php $dir = dir(DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']); $left = false; if ($dir) { $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); while ($file = $dir->read()) { if (substr($file, strrpos($file, '.')) == $file_extension) { echo ' <td class="smallText"><a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir'] . '&filename=' . $file) . '">' . $file . '</a></td>' . "\n"; if (!$left) { echo ' </tr>' . "\n" . ' <tr>' . "\n"; } $left = !$left; } } $dir->close(); } ?> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>'; ?></td> </tr> <?php } ?> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  25. Hello ! I have a problem with mainpage and ssl. My files are on 2 differents server one on http://www.bleu-lavande.com another on https://www.bleu-lavande.com (ssl server) When I try to change a text via my administration panel with mainpage. The update text is on https://www.bleu-lavande.com and no on http://www.bleu-lavande.com You can have the difference on this page http://www.bleu-lavande.com.eu/catalog/ https://www.bleu-lavande.com/eu/catalog/ The difference between the two is '.' after 'directeur' Could you help me solve this problem. Is it a bug on mainpage on just a little pb to solve ? How to save the text in the same time at NONSSL and SSL ? Thanks for your explanation and your help. It's importnat for me to solve this problem.
×