Code reformatting
authorNicole Cordes <cordes@cps-it.de>
Fri, 31 May 2013 20:20:50 +0000 (22:20 +0200)
committerNicole Cordes <cordes@cps-it.de>
Tue, 18 Jun 2013 07:55:10 +0000 (09:55 +0200)
ext_emconf.php
ext_localconf.php
ext_tables.php
flexform_ds.xml
locallang_tca.xml
pi1/class.tx_tipafriendplus_pi1.php
pi1/class.tx_tipafriendplus_pi1_wizicon.php
pi1/locallang.xml
res/tipafriend_plus.css

index 336d244..e34ed0f 100644 (file)
@@ -36,14 +36,11 @@ $EM_CONF[$_EXTKEY] = array(
                'depends' => array(
                        'php' => '4.0.0-0.0.0',
                ),
-               'conflicts' => array(
-               ),
-               'suggests' => array(
-               ),
+               'conflicts' => array(),
+               'suggests' => array(),
        ),
        '_md5_values_when_last_written' => 'a:21:{s:9:"ChangeLog";s:4:"703a";s:12:"ext_icon.gif";s:4:"3b63";s:17:"ext_localconf.php";s:4:"92c0";s:14:"ext_tables.php";s:4:"7d2b";s:28:"ext_typoscript_constants.txt";s:4:"6d7b";s:24:"ext_typoscript_setup.txt";s:4:"3fd8";s:15:"flexform_ds.xml";s:4:"38e5";s:13:"locallang.xml";s:4:"6037";s:16:"locallang_db.xml";s:4:"67b5";s:17:"locallang_tca.xml";s:4:"0f54";s:10:"README.txt";s:4:"9fa9";s:14:"doc/manual.sxw";s:4:"63ac";s:19:"doc/wizard_form.dat";s:4:"9960";s:20:"doc/wizard_form.html";s:4:"b82d";s:14:"pi1/ce_wiz.gif";s:4:"02b6";s:35:"pi1/class.tx_tipafriendplus_pi1.php";s:4:"e7c4";s:43:"pi1/class.tx_tipafriendplus_pi1_wizicon.php";s:4:"c8fe";s:13:"pi1/clear.gif";s:4:"cc11";s:17:"pi1/locallang.xml";s:4:"8516";s:28:"pi1/tipafriend_plus_css.tmpl";s:4:"be94";s:23:"res/tipafriend_plus.css";s:4:"9608";}',
-       'suggests' => array(
-       ),
+       'suggests' => array(),
 );
 
 ?>
\ No newline at end of file
index 203ca4f..139d5eb 100644 (file)
@@ -1,11 +1,13 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+if (!defined('TYPO3_MODE')) {
+       die ('Access denied.');
+}
 
-  ## Extending TypoScript from static template uid=43 to set up userdefined tag:
-t3lib_extMgm::addTypoScript($_EXTKEY,'editorcfg','
+// Extending TypoScript from static template uid=43 to set up userdefined tag:
+t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
        tt_content.CSS_editor.ch.tx_tipafriendplus_pi1 = < plugin.tx_tipafriendplus_pi1.CSS_editor
-',43);
+', 43);
 
+t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_tipafriendplus_pi1.php', '_pi1', 'list_type', 1);
 
-t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_tipafriendplus_pi1.php','_pi1','list_type',1);
 ?>
\ No newline at end of file
index ba30d50..172cd5b 100644 (file)
@@ -1,18 +1,19 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+if (!defined('TYPO3_MODE')) {
+       die ('Access denied.');
+}
 
 t3lib_div::loadTCA('tt_content');
-$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';
-$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform';
+$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key';
+$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
 
 
-t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1', 'FILE:EXT:tipafriend_plus/flexform_ds.xml'); 
+t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:tipafriend_plus/flexform_ds.xml');
 
-t3lib_extMgm::addPlugin(array('LLL:EXT:tipafriend_plus/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');
+t3lib_extMgm::addPlugin(array('LLL:EXT:tipafriend_plus/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'list_type');
 
+if (TYPO3_MODE == 'BE') {
+       $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_tipafriendplus_pi1_wizicon'] = t3lib_extMgm::extPath($_EXTKEY) . 'pi1/class.tx_tipafriendplus_pi1_wizicon.php';
+}
 
-//t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","Tip-A-Friend Plus");
-
-
-if (TYPO3_MODE=="BE")  $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_tipafriendplus_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi1/class.tx_tipafriendplus_pi1_wizicon.php';
 ?>
index a62edb7..a4767c1 100644 (file)
 <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <T3DataStructure>
-<meta>
-       <langDisable>1</langDisable> 
-</meta>
- <sheets>
-  <sDEF>
-   <ROOT>
-    <TCEforms>
-          <sheetTitle>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_common_sheet</sheetTitle>
-       </TCEforms>
-    <type>array</type>
-    <el>
-    <code_selector>
-          <TCEforms>   
-               <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_code</label>
-                                               <config>
-                                                       <type>select</type>
-                                                       <items type="array">
-                                                               <numIndex index="0" type="array">
-                                                                       <numIndex index="0">TIPFORM</numIndex>
-                                                                       <numIndex index="1">TIPFORM</numIndex>
-                                                               </numIndex>
-                                                           <numIndex index="1" type="array">
-                                                                       <numIndex index="0">TIPLINK</numIndex>
-                                                                   <numIndex index="1">TIPLINK</numIndex>
-                                                               </numIndex>
-                                                       </items>        
-                                               </config>
-         </TCEforms>
-       </code_selector>          
-    <checkbox_html>
-       <TCEforms>
-         <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_html_mail</label>
-         <config>
-           <type>check</type>
-         </config>
-       </TCEforms>
-    </checkbox_html>
-    <disclaimer_text>
-         <TCEforms>
-          <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_disclaimer</label>
-          <config>
-            <type>text</type>
-            <size>24</size>
-            <rows>4</rows>
-          </config>
-         </TCEforms>
-    </disclaimer_text>
-    </el>
-   </ROOT>
-  </sDEF>
-  <sEmail>
-   <ROOT>
-    <TCEforms>
-           <sheetTitle>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_sheet</sheetTitle>
-        </TCEforms>
-     <type>array</type>
-     <el>
-     <email_subject>
-      <TCEforms>
-          <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_subject</label>
-          <config>
-            <type>input</type>
-            <size>24</size>
-            <default></default>
-          </config>
-         </TCEforms>
-     </email_subject>
-     <email_link_text>
-      <TCEforms>
-          <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_link_text</label>
-          <config>
-            <type>text</type>
-            <cols>24</cols>
-            <rows>4</rows>
-            <default></default>
-          </config>
-         </TCEforms>
-     </email_link_text>
-     <email_message_text>
-      <TCEforms>
-          <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_message_text</label>
-          <config>
-            <type>text</type>
-            <cols>24</cols>
-            <rows>4</rows>
-            <default></default>
-          </config>
-         </TCEforms>
-     </email_message_text>
-     <email_footer_text>
-      <TCEforms>
-          <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_footer</label>
-          <config>
-            <type>text</type>
-            <cols>24</cols>
-            <rows>4</rows>
-            <default></default>
-          </config>
-         </TCEforms>
-     </email_footer_text>
+       <meta>
+               <langDisable>1</langDisable>
+       </meta>
+       <sheets>
+               <sDEF>
+                       <ROOT>
+                               <TCEforms>
+                                       <sheetTitle>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_common_sheet</sheetTitle>
+                               </TCEforms>
+                               <type>array</type>
+                               <el>
+                                       <code_selector>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_code</label>
+                                                       <config>
+                                                               <type>select</type>
+                                                               <items type="array">
+                                                                       <numIndex index="0" type="array">
+                                                                               <numIndex index="0">TIPFORM</numIndex>
+                                                                               <numIndex index="1">TIPFORM</numIndex>
+                                                                       </numIndex>
+                                                                       <numIndex index="1" type="array">
+                                                                               <numIndex index="0">TIPLINK</numIndex>
+                                                                               <numIndex index="1">TIPLINK</numIndex>
+                                                                       </numIndex>
+                                                               </items>
+                                                       </config>
+                                               </TCEforms>
+                                       </code_selector>
+                                       <checkbox_html>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_html_mail</label>
+                                                       <config>
+                                                               <type>check</type>
+                                                       </config>
+                                               </TCEforms>
+                                       </checkbox_html>
+                                       <disclaimer_text>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_disclaimer</label>
+                                                       <config>
+                                                               <type>text</type>
+                                                               <size>24</size>
+                                                               <rows>4</rows>
+                                                       </config>
+                                               </TCEforms>
+                                       </disclaimer_text>
+                               </el>
+                       </ROOT>
+               </sDEF>
+               <sEmail>
+                       <ROOT>
+                               <TCEforms>
+                                       <sheetTitle>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_sheet</sheetTitle>
+                               </TCEforms>
+                               <type>array</type>
+                               <el>
+                                       <email_subject>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_subject</label>
+                                                       <config>
+                                                               <type>input</type>
+                                                               <size>24</size>
+                                                       </config>
+                                               </TCEforms>
+                                       </email_subject>
+                                       <email_link_text>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_link_text</label>
+                                                       <config>
+                                                               <type>text</type>
+                                                               <cols>24</cols>
+                                                               <rows>4</rows>
+                                                       </config>
+                                               </TCEforms>
+                                       </email_link_text>
+                                       <email_message_text>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_message_text</label>
+                                                       <config>
+                                                               <type>text</type>
+                                                               <cols>24</cols>
+                                                               <rows>4</rows>
+                                                       </config>
+                                               </TCEforms>
+                                       </email_message_text>
+                                       <email_footer_text>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:tipafriend_plus/locallang_tca.xml:label_mail_footer</label>
+                                                       <config>
+                                                               <type>text</type>
+                                                               <cols>24</cols>
+                                                               <rows>4</rows>
+                                                       </config>
+                                               </TCEforms>
+                                       </email_footer_text>
 
-    
-     </el>
-   </ROOT>
-  </sEmail>
- </sheets>
+
+                               </el>
+                       </ROOT>
+               </sEmail>
      </sheets>
 </T3DataStructure>
 
index 34e3bb7..f596c90 100644 (file)
 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 <T3locallang>
-    <meta type="array">
-        <description>Language labels for tipafriend_plus</description>
-        <type>module</type>
-        <csh_table></csh_table>
-        <labelContext type="array">
-        </labelContext>
-    </meta>
-    <data type="array">
-        <languageKey index="default" type="array">
-            <label index="label_mail_subject">Email: Subject</label>
-            <label index="label_mail_link_text">Email: Text between sender and URL</label>
-            <label index="label_mail_message_text">Email: Text before Message</label>
-            <label index="label_mail_footer">Email: Footer</label>
-            <label index="label_disclaimer">Disclaimer</label>
-            <label index="label_html_mail">Admit Html-Mail Option </label>
-            <label index="label_code">CODE</label>
-            <label index="pi1_title">tipafriend</label>
-            <label index="pi1_description">E-Mail a page to a friend</label>
-            <label index="label_common_sheet">General</label>
-            <label index="label_mail_sheet">Email-Texts</label> 
-        </languageKey>
-        <languageKey index="dk" type="array">
-        </languageKey>
-        <languageKey index="de" type="array">
-            <label index="label_mail_subject">Email: Betreff</label>
-            <label index="label_mail_link_text">Email: Text zwischen Absender und URL</label>
-            <label index="label_mail_message_text">Email: Text vor Mitteilung</label>
-            <label index="label_mail_footer">Email: Footer</label>
-            <label index="label_disclaimer">Disclaimer</label>
-            <label index="label_html_mail">Html-Mail Option zulassen </label>
-            <label index="label_code">CODE</label>
-            <label index="pi1_title">tipafriend</label>
-            <label index="pi1_description">Seite weiterempfehlen</label>
-            <label index="label_common_sheet">Allgemein</label>
-            <label index="label_mail_sheet">Email-Texte</label>  
-        </languageKey>
-        <languageKey index="no" type="array">
-        </languageKey>
-        <languageKey index="it" type="array">
-        </languageKey>
-        <languageKey index="fr" type="array">
-        </languageKey>
-        <languageKey index="es" type="array">
-        </languageKey>
-        <languageKey index="nl" type="array">
-        </languageKey>
-        <languageKey index="cz" type="array">
-        </languageKey>
-        <languageKey index="pl" type="array">
-        </languageKey>
-        <languageKey index="si" type="array">
-        </languageKey>
-        <languageKey index="fi" type="array">
-        </languageKey>
-        <languageKey index="tr" type="array">
-        </languageKey>
-        <languageKey index="se" type="array">
-        </languageKey>
-        <languageKey index="pt" type="array">
-        </languageKey>
-        <languageKey index="ru" type="array">
-        </languageKey>
-        <languageKey index="ro" type="array">
-        </languageKey>
-        <languageKey index="ch" type="array">
-        </languageKey>
-        <languageKey index="sk" type="array">
-        </languageKey>
-        <languageKey index="lt" type="array">
-        </languageKey>
-        <languageKey index="is" type="array">
-        </languageKey>
-        <languageKey index="hr" type="array">
-        </languageKey>
-        <languageKey index="hu" type="array">
-        </languageKey>
-        <languageKey index="gl" type="array">
-        </languageKey>
-        <languageKey index="th" type="array">
-        </languageKey>
-        <languageKey index="gr" type="array">
-        </languageKey>
-        <languageKey index="hk" type="array">
-        </languageKey>
-        <languageKey index="eu" type="array">
-        </languageKey>
-        <languageKey index="bg" type="array">
-        </languageKey>
-        <languageKey index="br" type="array">
-        </languageKey>
-        <languageKey index="et" type="array">
-        </languageKey>
-        <languageKey index="ar" type="array">
-        </languageKey>
-        <languageKey index="he" type="array">
-        </languageKey>
-        <languageKey index="ua" type="array">
-        </languageKey>
-        <languageKey index="lv" type="array">
-        </languageKey>
-        <languageKey index="jp" type="array">
-        </languageKey>
-        <languageKey index="vn" type="array">
-        </languageKey>
-        <languageKey index="ca" type="array">
-        </languageKey>
-        <languageKey index="ba" type="array">
-        </languageKey>
-        <languageKey index="kr" type="array">
-        </languageKey>
-        <languageKey index="eo" type="array">
-        </languageKey>
-        <languageKey index="my" type="array">
-        </languageKey>
-        <languageKey index="hi" type="array">
-        </languageKey>
-    </data>
-    <orig_hash type="array">
-        <languageKey index="default" type="array">
-        </languageKey>
-        <languageKey index="dk" type="array">
-        </languageKey>
-        <languageKey index="de" type="array">
-        </languageKey>
-        <languageKey index="no" type="array">
-        </languageKey>
-        <languageKey index="it" type="array">
-        </languageKey>
-        <languageKey index="fr" type="array">
-        </languageKey>
-        <languageKey index="es" type="array">
-        </languageKey>
-        <languageKey index="nl" type="array">
-        </languageKey>
-        <languageKey index="cz" type="array">
-        </languageKey>
-        <languageKey index="pl" type="array">
-        </languageKey>
-        <languageKey index="si" type="array">
-        </languageKey>
-        <languageKey index="fi" type="array">
-        </languageKey>
-        <languageKey index="tr" type="array">
-        </languageKey>
-        <languageKey index="se" type="array">
-        </languageKey>
-        <languageKey index="pt" type="array">
-        </languageKey>
-        <languageKey index="ru" type="array">
-        </languageKey>
-        <languageKey index="ro" type="array">
-        </languageKey>
-        <languageKey index="ch" type="array">
-        </languageKey>
-        <languageKey index="sk" type="array">
-        </languageKey>
-        <languageKey index="lt" type="array">
-        </languageKey>
-        <languageKey index="is" type="array">
-        </languageKey>
-        <languageKey index="hr" type="array">
-        </languageKey>
-        <languageKey index="hu" type="array">
-        </languageKey>
-        <languageKey index="gl" type="array">
-        </languageKey>
-        <languageKey index="th" type="array">
-        </languageKey>
-        <languageKey index="gr" type="array">
-        </languageKey>
-        <languageKey index="hk" type="array">
-        </languageKey>
-        <languageKey index="eu" type="array">
-        </languageKey>
-        <languageKey index="bg" type="array">
-        </languageKey>
-        <languageKey index="br" type="array">
-        </languageKey>
-        <languageKey index="et" type="array">
-        </languageKey>
-        <languageKey index="ar" type="array">
-        </languageKey>
-        <languageKey index="he" type="array">
-        </languageKey>
-        <languageKey index="ua" type="array">
-        </languageKey>
-        <languageKey index="lv" type="array">
-        </languageKey>
-        <languageKey index="jp" type="array">
-        </languageKey>
-        <languageKey index="vn" type="array">
-        </languageKey>
-        <languageKey index="ca" type="array">
-        </languageKey>
-        <languageKey index="ba" type="array">
-        </languageKey>
-        <languageKey index="kr" type="array">
-        </languageKey>
-        <languageKey index="eo" type="array">
-        </languageKey>
-        <languageKey index="my" type="array">
-        </languageKey>
-        <languageKey index="hi" type="array">
-        </languageKey>
-    </orig_hash>
-    <orig_text type="array">
-        <languageKey index="default" type="array">
-        </languageKey>
-        <languageKey index="dk" type="array">
-        </languageKey>
-        <languageKey index="de" type="array">
-        </languageKey>
-        <languageKey index="no" type="array">
-        </languageKey>
-        <languageKey index="it" type="array">
-        </languageKey>
-        <languageKey index="fr" type="array">
-        </languageKey>
-        <languageKey index="es" type="array">
-        </languageKey>
-        <languageKey index="nl" type="array">
-        </languageKey>
-        <languageKey index="cz" type="array">
-        </languageKey>
-        <languageKey index="pl" type="array">
-        </languageKey>
-        <languageKey index="si" type="array">
-        </languageKey>
-        <languageKey index="fi" type="array">
-        </languageKey>
-        <languageKey index="tr" type="array">
-        </languageKey>
-        <languageKey index="se" type="array">
-        </languageKey>
-        <languageKey index="pt" type="array">
-        </languageKey>
-        <languageKey index="ru" type="array">
-        </languageKey>
-        <languageKey index="ro" type="array">
-        </languageKey>
-        <languageKey index="ch" type="array">
-        </languageKey>
-        <languageKey index="sk" type="array">
-        </languageKey>
-        <languageKey index="lt" type="array">
-        </languageKey>
-        <languageKey index="is" type="array">
-        </languageKey>
-        <languageKey index="hr" type="array">
-        </languageKey>
-        <languageKey index="hu" type="array">
-        </languageKey>
-        <languageKey index="gl" type="array">
-        </languageKey>
-        <languageKey index="th" type="array">
-        </languageKey>
-        <languageKey index="gr" type="array">
-        </languageKey>
-        <languageKey index="hk" type="array">
-        </languageKey>
-        <languageKey index="eu" type="array">
-        </languageKey>
-        <languageKey index="bg" type="array">
-        </languageKey>
-        <languageKey index="br" type="array">
-        </languageKey>
-        <languageKey index="et" type="array">
-        </languageKey>
-        <languageKey index="ar" type="array">
-        </languageKey>
-        <languageKey index="he" type="array">
-        </languageKey>
-        <languageKey index="ua" type="array">
-        </languageKey>
-        <languageKey index="lv" type="array">
-        </languageKey>
-        <languageKey index="jp" type="array">
-        </languageKey>
-        <languageKey index="vn" type="array">
-        </languageKey>
-        <languageKey index="ca" type="array">
-        </languageKey>
-        <languageKey index="ba" type="array">
-        </languageKey>
-        <languageKey index="kr" type="array">
-        </languageKey>
-        <languageKey index="eo" type="array">
-        </languageKey>
-        <languageKey index="my" type="array">
-        </languageKey>
-        <languageKey index="hi" type="array">
-        </languageKey>
-    </orig_text>
+       <meta type="array">
+               <description>Language labels for tipafriend_plus</description>
+               <type>module</type>
+               <csh_table />
+               <labelContext type="array" />
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="label_mail_subject">Email: Subject</label>
+                       <label index="label_mail_link_text">Email: Text between sender and URL</label>
+                       <label index="label_mail_message_text">Email: Text before Message</label>
+                       <label index="label_mail_footer">Email: Footer</label>
+                       <label index="label_disclaimer">Disclaimer</label>
+                       <label index="label_html_mail">Admit Html-Mail Option</label>
+                       <label index="label_code">CODE</label>
+                       <label index="pi1_title">tipafriend</label>
+                       <label index="pi1_description">E-Mail a page to a friend</label>
+                       <label index="label_common_sheet">General</label>
+                       <label index="label_mail_sheet">Email-Texts</label>
+               </languageKey>
+               <languageKey index="dk" type="array">
+               </languageKey>
+               <languageKey index="de" type="array">
+                       <label index="label_mail_subject">Email: Betreff</label>
+                       <label index="label_mail_link_text">Email: Text zwischen Absender und URL</label>
+                       <label index="label_mail_message_text">Email: Text vor Mitteilung</label>
+                       <label index="label_mail_footer">Email: Footer</label>
+                       <label index="label_disclaimer">Disclaimer</label>
+                       <label index="label_html_mail">Html-Mail Option zulassen</label>
+                       <label index="label_code">CODE</label>
+                       <label index="pi1_title">tipafriend</label>
+                       <label index="pi1_description">Seite weiterempfehlen</label>
+                       <label index="label_common_sheet">Allgemein</label>
+                       <label index="label_mail_sheet">Email-Texte</label>
+               </languageKey>
+               <languageKey index="no" type="array">
+               </languageKey>
+               <languageKey index="it" type="array">
+               </languageKey>
+               <languageKey index="fr" type="array">
+               </languageKey>
+               <languageKey index="es" type="array">
+               </languageKey>
+               <languageKey index="nl" type="array">
+               </languageKey>
+               <languageKey index="cz" type="array">
+               </languageKey>
+               <languageKey index="pl" type="array">
+               </languageKey>
+               <languageKey index="si" type="array">
+               </languageKey>
+               <languageKey index="fi" type="array">
+               </languageKey>
+               <languageKey index="tr" type="array">
+               </languageKey>
+               <languageKey index="se" type="array">
+               </languageKey>
+               <languageKey index="pt" type="array">
+               </languageKey>
+               <languageKey index="ru" type="array">
+               </languageKey>
+               <languageKey index="ro" type="array">
+               </languageKey>
+               <languageKey index="ch" type="array">
+               </languageKey>
+               <languageKey index="sk" type="array">
+               </languageKey>
+               <languageKey index="lt" type="array">
+               </languageKey>
+               <languageKey index="is" type="array">
+               </languageKey>
+               <languageKey index="hr" type="array">
+               </languageKey>
+               <languageKey index="hu" type="array">
+               </languageKey>
+               <languageKey index="gl" type="array">
+               </languageKey>
+               <languageKey index="th" type="array">
+               </languageKey>
+               <languageKey index="gr" type="array">
+               </languageKey>
+               <languageKey index="hk" type="array">
+               </languageKey>
+               <languageKey index="eu" type="array">
+               </languageKey>
+               <languageKey index="bg" type="array">
+               </languageKey>
+               <languageKey index="br" type="array">
+               </languageKey>
+               <languageKey index="et" type="array">
+               </languageKey>
+               <languageKey index="ar" type="array">
+               </languageKey>
+               <languageKey index="he" type="array">
+               </languageKey>
+               <languageKey index="ua" type="array">
+               </languageKey>
+               <languageKey index="lv" type="array">
+               </languageKey>
+               <languageKey index="jp" type="array">
+               </languageKey>
+               <languageKey index="vn" type="array">
+               </languageKey>
+               <languageKey index="ca" type="array">
+               </languageKey>
+               <languageKey index="ba" type="array">
+               </languageKey>
+               <languageKey index="kr" type="array">
+               </languageKey>
+               <languageKey index="eo" type="array">
+               </languageKey>
+               <languageKey index="my" type="array">
+               </languageKey>
+               <languageKey index="hi" type="array">
+               </languageKey>
+       </data>
+       <orig_hash type="array">
+               <languageKey index="default" type="array">
+               </languageKey>
+               <languageKey index="dk" type="array">
+               </languageKey>
+               <languageKey index="de" type="array">
+               </languageKey>
+               <languageKey index="no" type="array">
+               </languageKey>
+               <languageKey index="it" type="array">
+               </languageKey>
+               <languageKey index="fr" type="array">
+               </languageKey>
+               <languageKey index="es" type="array">
+               </languageKey>
+               <languageKey index="nl" type="array">
+               </languageKey>
+               <languageKey index="cz" type="array">
+               </languageKey>
+               <languageKey index="pl" type="array">
+               </languageKey>
+               <languageKey index="si" type="array">
+               </languageKey>
+               <languageKey index="fi" type="array">
+               </languageKey>
+               <languageKey index="tr" type="array">
+               </languageKey>
+               <languageKey index="se" type="array">
+               </languageKey>
+               <languageKey index="pt" type="array">
+               </languageKey>
+               <languageKey index="ru" type="array">
+               </languageKey>
+               <languageKey index="ro" type="array">
+               </languageKey>
+               <languageKey index="ch" type="array">
+               </languageKey>
+               <languageKey index="sk" type="array">
+               </languageKey>
+               <languageKey index="lt" type="array">
+               </languageKey>
+               <languageKey index="is" type="array">
+               </languageKey>
+               <languageKey index="hr" type="array">
+               </languageKey>
+               <languageKey index="hu" type="array">
+               </languageKey>
+               <languageKey index="gl" type="array">
+               </languageKey>
+               <languageKey index="th" type="array">
+               </languageKey>
+               <languageKey index="gr" type="array">
+               </languageKey>
+               <languageKey index="hk" type="array">
+               </languageKey>
+               <languageKey index="eu" type="array">
+               </languageKey>
+               <languageKey index="bg" type="array">
+               </languageKey>
+               <languageKey index="br" type="array">
+               </languageKey>
+               <languageKey index="et" type="array">
+               </languageKey>
+               <languageKey index="ar" type="array">
+               </languageKey>
+               <languageKey index="he" type="array">
+               </languageKey>
+               <languageKey index="ua" type="array">
+               </languageKey>
+               <languageKey index="lv" type="array">
+               </languageKey>
+               <languageKey index="jp" type="array">
+               </languageKey>
+               <languageKey index="vn" type="array">
+               </languageKey>
+               <languageKey index="ca" type="array">
+               </languageKey>
+               <languageKey index="ba" type="array">
+               </languageKey>
+               <languageKey index="kr" type="array">
+               </languageKey>
+               <languageKey index="eo" type="array">
+               </languageKey>
+               <languageKey index="my" type="array">
+               </languageKey>
+               <languageKey index="hi" type="array">
+               </languageKey>
+       </orig_hash>
+       <orig_text type="array">
+               <languageKey index="default" type="array">
+               </languageKey>
+               <languageKey index="dk" type="array">
+               </languageKey>
+               <languageKey index="de" type="array">
+               </languageKey>
+               <languageKey index="no" type="array">
+               </languageKey>
+               <languageKey index="it" type="array">
+               </languageKey>
+               <languageKey index="fr" type="array">
+               </languageKey>
+               <languageKey index="es" type="array">
+               </languageKey>
+               <languageKey index="nl" type="array">
+               </languageKey>
+               <languageKey index="cz" type="array">
+               </languageKey>
+               <languageKey index="pl" type="array">
+               </languageKey>
+               <languageKey index="si" type="array">
+               </languageKey>
+               <languageKey index="fi" type="array">
+               </languageKey>
+               <languageKey index="tr" type="array">
+               </languageKey>
+               <languageKey index="se" type="array">
+               </languageKey>
+               <languageKey index="pt" type="array">
+               </languageKey>
+               <languageKey index="ru" type="array">
+               </languageKey>
+               <languageKey index="ro" type="array">
+               </languageKey>
+               <languageKey index="ch" type="array">
+               </languageKey>
+               <languageKey index="sk" type="array">
+               </languageKey>
+               <languageKey index="lt" type="array">
+               </languageKey>
+               <languageKey index="is" type="array">
+               </languageKey>
+               <languageKey index="hr" type="array">
+               </languageKey>
+               <languageKey index="hu" type="array">
+               </languageKey>
+               <languageKey index="gl" type="array">
+               </languageKey>
+               <languageKey index="th" type="array">
+               </languageKey>
+               <languageKey index="gr" type="array">
+               </languageKey>
+               <languageKey index="hk" type="array">
+               </languageKey>
+               <languageKey index="eu" type="array">
+               </languageKey>
+               <languageKey index="bg" type="array">
+               </languageKey>
+               <languageKey index="br" type="array">
+               </languageKey>
+               <languageKey index="et" type="array">
+               </languageKey>
+               <languageKey index="ar" type="array">
+               </languageKey>
+               <languageKey index="he" type="array">
+               </languageKey>
+               <languageKey index="ua" type="array">
+               </languageKey>
+               <languageKey index="lv" type="array">
+               </languageKey>
+               <languageKey index="jp" type="array">
+               </languageKey>
+               <languageKey index="vn" type="array">
+               </languageKey>
+               <languageKey index="ca" type="array">
+               </languageKey>
+               <languageKey index="ba" type="array">
+               </languageKey>
+               <languageKey index="kr" type="array">
+               </languageKey>
+               <languageKey index="eo" type="array">
+               </languageKey>
+               <languageKey index="my" type="array">
+               </languageKey>
+               <languageKey index="hi" type="array">
+               </languageKey>
+       </orig_text>
 </T3locallang>
index e2debcb..40964ed 100644 (file)
@@ -1,44 +1,71 @@
 <?php
 /***************************************************************
-*  Copyright notice
-*
-*  (c) 2007  <>
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-
-require_once(PATH_tslib.'class.tslib_pibase.php');
-
+ *  Copyright notice
+ *
+ *  (c) 2007  <>
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
 
 /**
  * Plugin 'Tip-A-Friend Plus' for the 'tipafriend_plus' extension.
  *
- * @author      <>
- * @package    TYPO3
- * @subpackage tx_tipafriendplus
+ * @author     <>
+ * @package    TYPO3
+ * @subpackage    tx_tipafriendplus
  */
 class tx_tipafriendplus_pi1 extends tslib_pibase {
-       var $prefixId      = 'tx_tipafriendplus_pi1';           // Same as class name
-       var $scriptRelPath = 'pi1/class.tx_tipafriendplus_pi1.php';     // Path to this script relative to the extension dir.
-       var $extKey        = 'tipafriend_plus'; // The extension key.
+
+       /**
+        * Same as class name
+        *
+        * @var string
+        */
+       var $prefixId = 'tx_tipafriendplus_pi1';
+
+       /**
+        * Path to this script relative to the extension dir
+        *
+        * @var string
+        */
+       var $scriptRelPath = 'pi1/class.tx_tipafriendplus_pi1.php';
+
+       /**
+        * The extension key
+        *
+        * @var string
+        */
+       var $extKey = 'tipafriend_plus';
+
+       /**
+        * @var boolean
+        */
        var $pi_checkCHash = TRUE;
 
-       var $cObj;              // The backReference to the parent cObj object set at call time
+       /**
+        * @var array
+        */
+       var $config = array();
+
+       /**
+        * @var tx_srfreecap_pi2|NULL
+        */
+       var $freeCap = NULL;
 
        /**
         * @var string
@@ -46,81 +73,101 @@ class tx_tipafriendplus_pi1 extends tslib_pibase {
        var $hmacSalt = 'tipafriend_plus';
 
        /**
+        * @var array
+        */
+       var $typolink_conf = array();
+
+       /**
+        * @var string
+        */
+       var $templateCode = '';
+
+       /**
+        * @var string
+        */
+       var $theCode = '';
+
+       /**
         * The main method of the PlugIn
         *
-        * @param       string          $content: The PlugIn content
-        * @param       array           $conf: The PlugIn configuration
-        * @return      The content that is displayed on the website
+        * @param    string $content: The PlugIn content
+        * @param    array $conf: The PlugIn configuration
+        *
+        * @return string The content that is displayed on the website
         */
 
-        function main($content,$conf)  {
-
-       // code inserted to use free Captcha
-               if (t3lib_extMgm::isLoaded('sr_freecap') ) {
-             require_once(t3lib_extMgm::extPath('sr_freecap').'pi2/class.tx_srfreecap_pi2.php');
-             $this->freeCap = t3lib_div::makeInstance('tx_srfreecap_pi2');
-    }
-       // code inserted to use free Captcha
+       function main($content, $conf) {
 
-    $this->conf = $conf;
-    $this->pi_initPIflexForm();
-         $this->pi_loadLL();
+               // code inserted to use free Captcha
+               if (t3lib_extMgm::isLoaded('sr_freecap')) {
+                       require_once(t3lib_extMgm::extPath('sr_freecap') . 'pi2/class.tx_srfreecap_pi2.php');
+                       $this->freeCap = t3lib_div::makeInstance('tx_srfreecap_pi2');
+               }
 
-               $this->config['code'] = $this->cObj->stdWrap($this->conf['code'],$this->conf['code.']);
+               $this->conf = $conf;
+               $this->pi_initPIflexForm();
+               $this->pi_loadLL();
 
-                       // template is read.
-    $this->templateCode = $this->cObj->fileResource($this->conf['templateFile']);
-                       // globally substituted markers, fonts and colors.
-               $splitMark = md5(microtime());
+               $this->config['code'] = $this->cObj->stdWrap($this->conf['code'], $this->conf['code.']);
 
+               // template is read.
+               $this->templateCode = $this->cObj->fileResource($this->conf['templateFile']);
 
-                       // TYpoLink
+               // TYpoLink
                $this->typolink_conf = $this->conf['typolink.'];
-               $this->typolink_conf['additionalParams'] = $this->cObj->stdWrap($this->typolink_conf['additionalParams'],$this->typolink_conf['additionalParams.']);
+               $this->typolink_conf['additionalParams'] = $this->cObj->stdWrap($this->typolink_conf['additionalParams'], $this->typolink_conf['additionalParams.']);
                unset($this->typolink_conf['additionalParams.']);
 
-       $flexform_code = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'code_selector','sDEF');
-    if (count($flexform_code)) $codes = (array)$flexform_code;
-    else{
-                   $codes=t3lib_div::trimExplode(',', $this->config['code']?$this->config['code']:$this->conf['defaultCode'],1);
-        if (!count($codes))    $codes=array('');
-    }
-               while(list(,$theCode)=each($codes))     {
+               $flexform_code = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'code_selector', 'sDEF');
+               if (count($flexform_code)) {
+                       $codes = (array)$flexform_code;
+               } else {
+                       $codes = t3lib_div::trimExplode(',', $this->config['code'] ? $this->config['code'] : $this->conf['defaultCode'], 1);
+                       if (!count($codes)) {
+                               $codes = array('');
+                       }
+               }
+               while (list(, $theCode) = each($codes)) {
                        $theCode = (string)strtoupper(trim($theCode));
                        $this->theCode = $theCode;
-                       switch($theCode)        {
+                       switch ($theCode) {
                                case 'TIPFORM':
-                                       $content=$this->tipform();
-                               break;
+                                       $content = $this->tipform();
+                                       break;
                                case 'TIPLINK':
-                                       $content=$this->tiplink();
-                               break;
+                                       $content = $this->tiplink();
+                                       break;
                                default:
                                        $langKey = strtoupper($GLOBALS['TSFE']->config['config']['language']);
                                        $helpTemplate = $this->cObj->fileResource('EXT:tipafriend_plus/pi1/tipafriend_plus_help.tmpl');
 
-                                               // Get language version
-                                       $helpTemplate_lang='';
-                                       if ($langKey)   {$helpTemplate_lang = $this->cObj->getSubpart($helpTemplate,'###TEMPLATE_'.$langKey.'###');}
-                                       $helpTemplate = $helpTemplate_lang ? $helpTemplate_lang : $this->cObj->getSubpart($helpTemplate,'###TEMPLATE_DEFAULT###');
+                                       // Get language version
+                                       $helpTemplate_lang = '';
+                                       if ($langKey) {
+                                               $helpTemplate_lang = $this->cObj->getSubpart($helpTemplate, '###TEMPLATE_' . $langKey . '###');
+                                       }
+                                       $helpTemplate = $helpTemplate_lang ? $helpTemplate_lang : $this->cObj->getSubpart($helpTemplate, '###TEMPLATE_DEFAULT###');
 
-                                               // Markers and substitution:
+                                       // Markers and substitution:
                                        $markerArray['###CODE###'] = $this->theCode;
-                                       $content.=$this->cObj->substituteMarkerArray($helpTemplate,$markerArray);
-                               break;
+                                       $content .= $this->cObj->substituteMarkerArray($helpTemplate, $markerArray);
+                                       break;
                        }
                }
+
                return $content;
        }
 
-               /**
-        * [Describe function...]
+       /**
+        * Checks the tipUrl and returns the form.
         *
-        * @return      [type]          ...
+        * @return string
         */
-       function tipform()      {
+       function tipform() {
+               $content = '';
+
                $tipUrl = t3lib_div::_GP('tipUrl');
-               $tipHash = (string) t3lib_div::_GP('tipHash');
+               $tipHash = (string)t3lib_div::_GP('tipHash');
                $calculatedHmac = t3lib_div::hmac($tipUrl, $this->hmacSalt);
 
                if ($tipHash !== $calculatedHmac) {
@@ -129,238 +176,237 @@ class tx_tipafriendplus_pi1 extends tslib_pibase {
                } else {
                        $GLOBALS['TSFE']->set_no_cache();
 
-
-
                        $tipData = t3lib_div::_GP('TIPFORM');
                        $tipData['recipient'] = $this->getRecipients($tipData['recipient']);
-                       list($tipData['email']) = explode(',',$this->getRecipients($tipData['email']));
+                       list($tipData['email']) = explode(',', $this->getRecipients($tipData['email']));
                        $url = strip_tags($tipUrl);
 
-                               // Preparing markers
-                       $wrappedSubpartArray=array();
-                       $subpartArray=array();
+                       // Preparing markers
+                       $wrappedSubpartArray = array();
+                       $subpartArray = array();
 
-                       $markerArray=array();
-                       $markerArray['###FORM_URL###']=t3lib_div::getIndpEnv('REQUEST_URI');
-                       $markerArray['###URL###']=$url;
-                       $markerArray['###URL_ENCODED###']=rawurlencode($url);
-                       $markerArray['###URL_SPECIALCHARS###']=htmlspecialchars($url);
-                       $markerArray['###URL_DISPLAY###']=htmlspecialchars(strlen($url)>70 ? t3lib_div::fixed_lgd($url,30).t3lib_div::fixed_lgd($url,-30) : $url);
+                       $markerArray = array();
+                       $markerArray['###FORM_URL###'] = t3lib_div::getIndpEnv('REQUEST_URI');
+                       $markerArray['###URL###'] = $url;
+                       $markerArray['###URL_ENCODED###'] = rawurlencode($url);
+                       $markerArray['###URL_SPECIALCHARS###'] = htmlspecialchars($url);
+                       $markerArray['###URL_DISPLAY###'] = htmlspecialchars(strlen($url) > 70 ? t3lib_div::fixed_lgd_cs($url, 30) . t3lib_div::fixed_lgd_cs($url, -30) : $url);
 
-                       $markerArray['###HASH###']=t3lib_div::hmac($url, $this->hmacSalt);
-                       $markerArray['###HASH_ENCODED###']=t3lib_div::hmac(rawurlencode($url), $this->hmacSalt);
+                       $markerArray['###HASH###'] = t3lib_div::hmac($url, $this->hmacSalt);
+                       $markerArray['###HASH_ENCODED###'] = t3lib_div::hmac(rawurlencode($url), $this->hmacSalt);
                        // Because htmlspecialchared urls are resolved correctly (browsers convert the link themselves) we just need the normal hash
-                       $markerArray['###HASH_SPECIALCHARS###']=t3lib_div::hmac($url, $this->hmacSalt);
-
-               $markerArray['###TAF_LABEL_ERROR###']=$this->pi_getLL('error');
-               $markerArray['###TAF_ERROR_EXPL###']=$this->pi_getLL('error_expl');
-               $markerArray['###TAF_LABEL_NAME###']=$this->pi_getLL('name');
-               $markerArray['###TAF_LABEL_EMAIL###']=$this->pi_getLL('email');
-               $markerArray['###TAF_TITLE###']=$this->pi_getLL('title');
-               $markerArray['###TAF_LABEL_PATH###']=$this->pi_getLL('path');
-
-               $markerArray['###TAF_LABEL_EMAIL_RECIPENT###']=$this->pi_getLL('email_recipent');
-               $markerArray['###TAF_LABEL_MESSAGE###']=$this->pi_getLL('message');
-               $markerArray['###TAF_LABEL_HTML###']=$this->pi_getLL('html');
-
-               if (!$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'checkbox_html','sDEF')) $subpartArray['###HTML_INSERT###']='';
-               $markerArray['###TAF_LABEL_MUST###']=$this->pi_getLL('must');
-               $markerArray['###TAF_LABEL_SEND###']=$this->pi_getLL('send');
+                       $markerArray['###HASH_SPECIALCHARS###'] = t3lib_div::hmac($url, $this->hmacSalt);
 
-               $disclaimer =$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'disclaimer_text','sDEF');
-               if (empty($disclaimer)) $disclaimer = $this->pi_getLL('disclaimer');
-               $markerArray['###TAF_DISCLAIMER###']= $disclaimer;
-               $markerArray['###TAF_CONFIRMATION###']=$this->pi_getLL('confirmation');
-               $markerArray['###TAF_LABEL_BACK###']=$this->pi_getLL('back');
-
-               $markerArray['###FORM_CAPTCHA_RESPONSE###'] = $this->pi_getLL('form_captcha_response');
+                       $markerArray['###TAF_LABEL_ERROR###'] = $this->pi_getLL('error');
+                       $markerArray['###TAF_ERROR_EXPL###'] = $this->pi_getLL('error_expl');
+                       $markerArray['###TAF_LABEL_NAME###'] = $this->pi_getLL('name');
+                       $markerArray['###TAF_LABEL_EMAIL###'] = $this->pi_getLL('email');
+                       $markerArray['###TAF_TITLE###'] = $this->pi_getLL('title');
+                       $markerArray['###TAF_LABEL_PATH###'] = $this->pi_getLL('path');
 
+                       $markerArray['###TAF_LABEL_EMAIL_RECIPENT###'] = $this->pi_getLL('email_recipent');
+                       $markerArray['###TAF_LABEL_MESSAGE###'] = $this->pi_getLL('message');
+                       $markerArray['###TAF_LABEL_HTML###'] = $this->pi_getLL('html');
 
+                       if (!$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'checkbox_html', 'sDEF')) {
+                               $subpartArray['###HTML_INSERT###'] = '';
+                       }
+                       $markerArray['###TAF_LABEL_MUST###'] = $this->pi_getLL('must');
+                       $markerArray['###TAF_LABEL_SEND###'] = $this->pi_getLL('send');
 
-                       $wrappedSubpartArray['###LINK###']=array('<a href="'.htmlspecialchars($url).'">','</a>');
+                       $disclaimer = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'disclaimer_text', 'sDEF');
+                       if (empty($disclaimer)) {
+                               $disclaimer = $this->pi_getLL('disclaimer');
+                       }
+                       $markerArray['###TAF_DISCLAIMER###'] = $disclaimer;
+                       $markerArray['###TAF_CONFIRMATION###'] = $this->pi_getLL('confirmation');
+                       $markerArray['###TAF_LABEL_BACK###'] = $this->pi_getLL('back');
 
+                       $markerArray['###FORM_CAPTCHA_RESPONSE###'] = $this->pi_getLL('form_captcha_response');
 
+                       $wrappedSubpartArray['###LINK###'] = array('<a href="' . htmlspecialchars($url) . '">', '</a>');
 
                        // code inserted to use free Captcha
                        if (is_object($this->freeCap)) {
-                                       $markerArray = array_merge($markerArray, $this->freeCap->makeCaptcha());
+                               $markerArray = array_merge($markerArray, $this->freeCap->makeCaptcha());
                        } else {
-                                       $subpartArray['###CAPTCHA_INSERT###'] = '';
+                               $subpartArray['###CAPTCHA_INSERT###'] = '';
                        }
-               // code inserted to use free Captcha
-
-
-
-
+                       // code inserted to use free Captcha
 
-                               // validation
-                       $error=0;
-                       $sent=0;
-                       if (t3lib_div::_GP('sendTip'))  {
+                       // validation
+                       $error = 0;
+                       $sent = 0;
+                       if (t3lib_div::_GP('sendTip')) {
 
-                               if ($this->validate($tipData,$url))     {
-                                       $this->sendTip($tipData,$url);
-                                       $sent=1;
+                               if ($this->validate($tipData, $url)) {
+                                       $this->sendTip($tipData, $url);
+                                       $sent = 1;
                                } else {
-                                       $error=1;
+                                       $error = 1;
                                }
-
                        }
-                               // Display form
-                       if ($sent)      {
-                               $subpart = $this->cObj->getSubpart($this->templateCode,'###TEMPLATE_TIPFORM_SENT###');
+                       // Display form
+                       if ($sent) {
+                               $subpart = $this->cObj->getSubpart($this->templateCode, '###TEMPLATE_TIPFORM_SENT###');
 
-                               $markerArray['###RECIPIENT###']=htmlspecialchars($tipData['recipient']);
+                               $markerArray['###RECIPIENT###'] = htmlspecialchars($tipData['recipient']);
 
-                               $content= $this->cObj->substituteMarkerArrayCached($subpart,$markerArray,$subpartArray,$wrappedSubpartArray);
+                               $content = $this->cObj->substituteMarkerArrayCached($subpart, $markerArray, $subpartArray, $wrappedSubpartArray);
                        } else {
 
-                               $captchaHTMLoutput = t3lib_extMgm::isLoaded('captcha') ? '<img src="'.t3lib_extMgm::siteRelPath('captcha').'captcha/captcha.php" alt="" />' : '';
-
-                                       // Generate Captcha data and store string in session:
+                               $captchaHTMLoutput = t3lib_extMgm::isLoaded('captcha') ? '<img src="' . t3lib_extMgm::siteRelPath('captcha') . 'captcha/captcha.php" alt="" />' : '';
 
+                               // Generate Captcha data and store string in session:
 
-                               $subpart = $this->cObj->getSubpart($this->templateCode,'###TEMPLATE_TIPFORM###');
+                               $subpart = $this->cObj->getSubpart($this->templateCode, '###TEMPLATE_TIPFORM###');
 
-                               $markerArray['###MESSAGE###']=htmlspecialchars($tipData['message']);
-                               $markerArray['###RECIPIENT###']=htmlspecialchars($tipData['recipient']);
+                               $markerArray['###MESSAGE###'] = htmlspecialchars($tipData['message']);
+                               $markerArray['###RECIPIENT###'] = htmlspecialchars($tipData['recipient']);
 
                                // Pre-fill form data if FE user in logged in
-                 if (!$this->postvars && $GLOBALS['TSFE']->loginUser) {
-                               $markerArray['###YOUR_EMAIL###'] = $GLOBALS['TSFE']->fe_user->user['email'];
-                               $markerArray['###YOUR_NAME###'] = $GLOBALS['TSFE']->fe_user->user['name'];
-                 } else {
-                               $markerArray['###YOUR_EMAIL###']=htmlspecialchars($tipData['email']);
-                               $markerArray['###YOUR_NAME###']=htmlspecialchars($tipData['name']);
-                 }
-
-                               $markerArray['###HTML_MESSAGE###']=$tipData['html_message'] ? 'checked' : '';
-                               $markerArray['###CAPTCHA_HTML###']=$captchaHTMLoutput;
-
-
-                               if (!$error)    {
-                                       $subpartArray['###ERROR_MSG###']='';
+                               if ($GLOBALS['TSFE']->loginUser) {
+                                       $markerArray['###YOUR_EMAIL###'] = $GLOBALS['TSFE']->fe_user->user['email'];
+                                       $markerArray['###YOUR_NAME###'] = $GLOBALS['TSFE']->fe_user->user['name'];
+                               } else {
+                                       $markerArray['###YOUR_EMAIL###'] = htmlspecialchars($tipData['email']);
+                                       $markerArray['###YOUR_NAME###'] = htmlspecialchars($tipData['name']);
                                }
 
+                               $markerArray['###HTML_MESSAGE###'] = $tipData['html_message'] ? 'checked' : '';
+                               $markerArray['###CAPTCHA_HTML###'] = $captchaHTMLoutput;
 
-                                       // Substitute
-                               $content= $this->cObj->substituteMarkerArrayCached($subpart,$markerArray,$subpartArray,$wrappedSubpartArray);
-
+                               if (!$error) {
+                                       $subpartArray['###ERROR_MSG###'] = '';
+                               }
 
+                               // Substitute
+                               $content = $this->cObj->substituteMarkerArrayCached($subpart, $markerArray, $subpartArray, $wrappedSubpartArray);
                        }
-                       return $content;
                }
+
+               return $content;
        }
 
        /**
-        * [Describe function...]
+        * Validates the submitted data.
+        *
+        * @param array $tipData
+        * @param string $url
         *
-        * @param       [type]          $tipData: ...
-        * @return      [type]          ...
+        * @return boolean
         */
-       function validate($tipData,$url)        {
-
-          // remove hmtl tags from url
-         $url = strip_tags($url);
-
-            // If the URL contains a '"', unset $url (suspecting XSS code)
-        if (strstr($url,'"'))    {
-            $url = FALSE;
-        }
-            // check if the first part of the url is actually the server where tip-a-friend is installed. If not, unset $url.
-        if(!preg_match('#\A'.t3lib_div::getIndpEnv('TYPO3_SITE_URL').'#',$url))    {
-            $url = FALSE;
-        }
-
-        $ret = TRUE;
-        if ( trim($tipData['name']) ) {
-            if ( preg_match( '/[\r\n\f\e]/', $tipData['name'] ) > 0 )    {
-                    // stop if there is a newline, carriage return, ...
-                $tipData['name'] = '';
-                $ret = FALSE;
-            } else {
-                $pattern = '/[^\d\s\w]/';    // search for characters that don't belong to one of the classes decimal, whitespace or word
-                $tipData['name'] = trim( preg_replace( $pattern, '', $tipData['name'] ) );    // strip the mentioned characters
-            }
-        }
+       function validate($tipData, $url) {
+
+               // Remove any tags from url
+               $url = strip_tags($url);
+
+               // If the URL contains a '"', unset $url (suspecting XSS code)
+               if (strstr($url, '"')) {
+                       $url = FALSE;
+               }
+               // Check if the first part of the url is actually the server where tip-a-friend is installed. If not, unset $url.
+               if (!preg_match('#\A' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . '#', $url)) {
+                       $url = FALSE;
+               }
+
+               $ret = TRUE;
+               if (trim($tipData['name'])) {
+                       if (preg_match('/[\r\n\f\e]/', $tipData['name']) > 0) {
+                               // Stop if there is a newline, carriage return, ...
+                               $tipData['name'] = '';
+                               $ret = FALSE;
+                       } else {
+                               // Search for characters that don't belong to one of the classes decimal, whitespace or word
+                               $pattern = '/[^\d\s\w]/';
+                               // Strip the mentioned characters
+                               $tipData['name'] = trim(preg_replace($pattern, '', $tipData['name']));
+                       }
+               }
 
                if (
-                 $url &&
-                 $ret &&
-                 is_object($this->freeCap) &&
+                       $url &&
+                       $ret &&
+                       is_object($this->freeCap) &&
                        trim($tipData['name']) &&
                        $tipData['email'] &&
                        $tipData['recipient'] &&
                        ($this->freeCap->checkWord($tipData['captcha_response']))
 
-                       ) {
-                               return 1;
-                       }
+               ) {
+                       return TRUE;
+               }
+
+               return FALSE;
        }
 
        /**
-        * [Describe function...]
+        * Returns only one receiver to avoid spam mails.
+        *
+        * @param string $emails
         *
-        * @param       [type]          $emails: ...
-        * @return      [type]          ...
+        * @return string
         */
-       function getRecipients($emails) {
+       function getRecipients($emails) {
                // Prevent sending this recommendation to multiple recipients
                $emailArr = preg_split('/[,; ]/', $emails);
 
                return $emailArr[0];
        }
 
-
        /**
-        * [Describe function...]
+        * Sends the email with submitted data to the receiver.
         *
-        * @param       [type]          $tipData: ...
-        * @param       [type]          $url: ...
-        * @return      [type]          ...
+        * @param array $tipData
+        * @param string $url
+        *
+        * @return void
         */
-       function sendTip($tipData,$url) {
-                       // Get template
-               $subpart = $this->cObj->getSubpart($this->templateCode,'###TEMPLATE_EMAIL###');
-
-    $markerArray=array();
-
-                       // Set markers
-               $markerArray['###MESSAGE###']=htmlspecialchars($tipData['message']);
-               $markerArray['###RECIPIENT###']=htmlspecialchars($tipData['recipient']);
-               $markerArray['###YOUR_EMAIL###']=htmlspecialchars($tipData['email']);
-               $markerArray['###YOUR_NAME###']=htmlspecialchars($tipData['name']);
-               $markerArray['###URL###']=$url;
-
-               $subject =$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_subject','sEmail');
-    if (empty($subject)) $subject = $this->pi_getLL('mail_subject');
-    $markerArray['###TAF_MAIL_SUBJECT###']= $subject;
-    $link_text =$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_link_text','sEmail');
-    if (empty($link_text)) $link_text = $this->pi_getLL('mail_link');
-    $markerArray['###TAF_MAIL_LINK###']= $link_text;
-    $message =$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_message_text','sEmail');
-    if (empty($message)) $message = $this->pi_getLL('mail_message');
-    $markerArray['###TAF_MAIL_MESSAGE###']= $message;
-    $footer =$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_footer_text','sEmail');
-    if (empty($footer)) $footer = $this->pi_getLL('mail_footer');
-    $markerArray['###TAF_MAIL_FOOTER###']= $footer;
-
-
-
-
-                       // Substitute in template
-               $content= $this->cObj->substituteMarkerArrayCached($subpart,$markerArray,$subpartArray,$wrappedSubpartArray);
-
-                       // Set subject, conten and headers
-               $headers=array();
-               $headers[]='FROM: '.$tipData['name'].' <'.$tipData['email'].'>';
+       function sendTip($tipData, $url) {
+               // Get template
+               $subpart = $this->cObj->getSubpart($this->templateCode, '###TEMPLATE_EMAIL###');
+
+               $markerArray = array();
+
+               // Set markers
+               $markerArray['###MESSAGE###'] = htmlspecialchars($tipData['message']);
+               $markerArray['###RECIPIENT###'] = htmlspecialchars($tipData['recipient']);
+               $markerArray['###YOUR_EMAIL###'] = htmlspecialchars($tipData['email']);
+               $markerArray['###YOUR_NAME###'] = htmlspecialchars($tipData['name']);
+               $markerArray['###URL###'] = $url;
+
+               $subject = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_subject', 'sEmail');
+               if (empty($subject)) {
+                       $subject = $this->pi_getLL('mail_subject');
+               }
+               $markerArray['###TAF_MAIL_SUBJECT###'] = $subject;
+               $link_text = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_link_text', 'sEmail');
+               if (empty($link_text)) {
+                       $link_text = $this->pi_getLL('mail_link');
+               }
+               $markerArray['###TAF_MAIL_LINK###'] = $link_text;
+               $message = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_message_text', 'sEmail');
+               if (empty($message)) {
+                       $message = $this->pi_getLL('mail_message');
+               }
+               $markerArray['###TAF_MAIL_MESSAGE###'] = $message;
+               $footer = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'email_footer_text', 'sEmail');
+               if (empty($footer)) {
+                       $footer = $this->pi_getLL('mail_footer');
+               }
+               $markerArray['###TAF_MAIL_FOOTER###'] = $footer;
 
+               // Substitute in template
+               $content = $this->cObj->substituteMarkerArrayCached($subpart, $markerArray);
 
-               $cls=t3lib_div::makeInstanceClassName('t3lib_htmlmail');
+               // Set subject, conten and headers
+               $headers = array();
+               $headers[] = 'FROM: ' . $tipData['name'] . ' <' . $tipData['email'] . '>';
 
-               if (class_exists($cls) && ($this->conf['htmlmail'] || $tipData['html_message']))        {       // If htmlmail lib is included, then generate a nice HTML-email
-                       list($subject,$plain_message) = explode(chr(10),trim($content),2);
+               // If htmlmail lib is included, then generate a nice HTML-email
+               if ($this->conf['htmlmail'] || $tipData['html_message']) {
                        $Typo3_htmlmail = t3lib_div::makeInstance('t3lib_htmlmail');
+                       list($subject, $plain_message) = explode(chr(10), trim($content), 2);
                        $Typo3_htmlmail->start();
                        $Typo3_htmlmail->useBase64();
 
@@ -372,9 +418,7 @@ class tx_tipafriendplus_pi1 extends tslib_pibase {
                        $Typo3_htmlmail->organisation = '';
                        $Typo3_htmlmail->priority = 3;
 
-       //              debug($url);
-
-                               // this will fail if the url is password protected!
+                       // This will fail if the url is password protected!
                        $Typo3_htmlmail->addHTML($url);
                        $Typo3_htmlmail->addPlain($plain_message);
 
@@ -382,28 +426,27 @@ class tx_tipafriendplus_pi1 extends tslib_pibase {
                        $Typo3_htmlmail->setContent();
                        $Typo3_htmlmail->setRecipient($tipData['recipient']);
 
-//                     debug($Typo3_htmlmail->theParts);
+                       //                      debug($Typo3_htmlmail->theParts);
                        $Typo3_htmlmail->sendtheMail();
                } else { // Plain mail:
-                               // Sending mail:
-#                      $GLOBALS['TSFE']->plainMailEncoded(, $subject, , implode($headers,chr(10)));
-      $plain_message =trim($content);
+                       // Sending mail:
+                       $plain_message = trim($content);
                        $this->cObj->sendNotifyEmail($plain_message, $tipData['recipient'], '', $tipData['email'], $tipData['name']);
                }
        }
 
        /**
-        * [Describe function...]
+        * Generates the tipUrl link for the configuration.
         *
-        * @return      [type]          ...
+        * @return string
         */
-       function tiplink()      {
-               $url=t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
-               $subpart = $this->cObj->getSubpart($this->templateCode,'###TEMPLATE_TIPLINK###');
+       function tiplink() {
+               $url = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
+               $subpart = $this->cObj->getSubpart($this->templateCode, '###TEMPLATE_TIPLINK###');
 
                // Generate link configuration
                $tConf = $this->typolink_conf;
-               $tConf['additionalParams'] .= '&tipUrl='.rawurlencode($url) . '&tipHash=' . t3lib_div::hmac($url, $this->hmacSalt);
+               $tConf['additionalParams'] .= '&tipUrl=' . rawurlencode($url) . '&tipHash=' . t3lib_div::hmac($url, $this->hmacSalt);
 
                if (empty($subpart)) {
                        // Support native link output for easier update
@@ -412,33 +455,31 @@ class tx_tipafriendplus_pi1 extends tslib_pibase {
                        } else {
                                $value = $this->pi_getLL('link');
                        }
+
                        return $this->cObj->typoLink($value, $tConf);
                } else {
                        // Generate markerArray for template substitution
-                       $wrappedSubpartArray=array();
-                       $wrappedSubpartArray['###LINK###']= $this->cObj->typolinkWrap($tConf);
-
-                       $markerArray=array();
-                       $markerArray['###URL###']=$url;
-                       $markerArray['###URL_ENCODED###']=rawurlencode($url);
-                       $markerArray['###URL_SPECIALCHARS###']=htmlspecialchars($url);
+                       $wrappedSubpartArray = array();
+                       $wrappedSubpartArray['###LINK###'] = $this->cObj->typolinkWrap($tConf);
 
-                       $markerArray['###TAF_LINK###']= $this->pi_getLL('link');
+                       $markerArray = array();
+                       $markerArray['###URL###'] = $url;
+                       $markerArray['###URL_ENCODED###'] = rawurlencode($url);
+                       $markerArray['###URL_SPECIALCHARS###'] = htmlspecialchars($url);
 
+                       $markerArray['###TAF_LINK###'] = $this->pi_getLL('link');
 
                        // Substitute
-                       $content= $this->cObj->substituteMarkerArrayCached($subpart,$markerArray,array(),$wrappedSubpartArray);
+                       $content = $this->cObj->substituteMarkerArrayCached($subpart, $markerArray, array(), $wrappedSubpartArray);
+
                        return $content;
                }
        }
-
-
 }
 
 
-
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1.php'])        {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1.php']);
+if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1.php']) {
+       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1.php']);
 }
 
-?>
+?>
\ No newline at end of file
index 9112ff2..4d6e845 100644 (file)
@@ -1,77 +1,73 @@
 <?php
 /***************************************************************
-*  Copyright notice
-*
-*  (c) 2007  <>
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-
-
-
+ *  Copyright notice
+ *
+ *  (c) 2007  <>
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
 
 /**
  * Class that adds the wizard icon.
  *
- * @author      <>
- * @package    TYPO3
- * @subpackage tx_tipafriendplus
+ * @author     <>
+ * @package    TYPO3
+ * @subpackage    tx_tipafriendplus
  */
 class tx_tipafriendplus_pi1_wizicon {
 
-                                       /**
-                                        * Processing the wizard items array
-                                        *
-                                        * @param       array           $wizardItems: The wizard items
-                                        * @return      Modified array with wizard items
-                                        */
-                                       function proc($wizardItems)     {
-                                               global $LANG;
+       /**
+        * Processing the wizard items array
+        *
+        * @param array $wizardItems: The wizard items
+        *
+        * @return array Modified array with wizard items
+        */
+       function proc($wizardItems) {
+               global $LANG;
 
-                                               $LL = $this->includeLocalLang();
+               $LL = $this->includeLocalLang();
 
-                                               $wizardItems['plugins_tx_tipafriendplus_pi1'] = array(
-                                                       'icon'=>t3lib_extMgm::extRelPath('tipafriend_plus').'pi1/ce_wiz.gif',
-                                                       'title'=>$LANG->getLLL('pi1_title',$LL),
-                                                       'description'=>$LANG->getLLL('pi1_plus_wiz_description',$LL),
-                                                       'params'=>'&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=tipafriend_plus_pi1'
-                                               );
+               $wizardItems['plugins_tx_tipafriendplus_pi1'] = array(
+                       'icon' => t3lib_extMgm::extRelPath('tipafriend_plus') . 'pi1/ce_wiz.gif',
+                       'title' => $LANG->getLLL('pi1_title', $LL),
+                       'description' => $LANG->getLLL('pi1_plus_wiz_description', $LL),
+                       'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=tipafriend_plus_pi1'
+               );
 
-                                               return $wizardItems;
-                                       }
-
-                                       /**
-                                        * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
-                                        *
-                                        * @return      The array with language labels
-                                        */
-                                       function includeLocalLang()     {
-                                               $llFile = t3lib_extMgm::extPath('tipafriend_plus').'locallang.xml';
-                                               $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
-                                               
-                                               return $LOCAL_LANG;
-                                       }
-                               }
+               return $wizardItems;
+       }
 
+       /**
+        * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
+        *
+        * @return array The array with language labels
+        */
+       function includeLocalLang() {
+               $llFile = t3lib_extMgm::extPath('tipafriend_plus') . 'locallang.xml';
+               $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
 
+               return $LOCAL_LANG;
+       }
+}
 
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1_wizicon.php'])        {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1_wizicon.php']);
+if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1_wizicon.php']) {
+       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1_wizicon.php']);
 }
 
 ?>
\ No newline at end of file
index a690af8..a6a66b8 100644 (file)
 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 <T3locallang>
-    <meta type="array">
-        <description>Language labels for tipafriend</description>
-        <type>module</type>
-        <csh_table></csh_table>
-        <labelContext type="array">
-        </labelContext>
-    </meta>
-    <data type="array">
-        <languageKey index="default" type="array">
+       <meta type="array">
+               <description>Language labels for tipafriend</description>
+               <type>module</type>
+               <csh_table />
+               <labelContext type="array" />
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
                        <label index="no_valid_url">No valid url was given.</label>
-             <label index="error">Error!</label>
-             <label index="error_expl">You didn't fill in all required fields or the email addresses was not valid!</label>
-             <label index="name">Your Name: *</label>
-             <label index="email">Your E-Mail: *</label>
-             <label index="title">You're now sending this link to an email recipient</label>
-             <label index="path">You recommend the following page:</label>
-             <label index="email_recipent">Recipient email: *</label>
-             <label index="message">Message</label>
-             <label index="html">HTML message:</label>
-             <label index="must">You must fill in fields with * correctly!</label>
-             <label index="send">Send</label>
-             <label index="disclaimer"></label>
-             <label index="confirmation">Message is sent to:</label>
-             <label index="back">Go back</label>
-             <label index="mail_subject">Tip: Check this</label>
-             <label index="mail_message">Message:</label>
-             <label index="mail_link">wants you to take a look at this link:</label>
-             <label index="mail_footer">Best regards</label>
-             <label index="link">Click here to tip a friend about this page!</label>
-             <label index="form_captcha_response">Code</label>
-        </languageKey>
-        <languageKey index="dk" type="array">
-        </languageKey>
-        <languageKey index="de" type="array">
+                       <label index="error">Error!</label>
+                       <label index="error_expl">You didn't fill in all required fields or the email addresses was not valid!</label>
+                       <label index="name">Your Name: *</label>
+                       <label index="email">Your E-Mail: *</label>
+                       <label index="title">You're now sending this link to an email recipient</label>
+                       <label index="path">You recommend the following page:</label>
+                       <label index="email_recipent">Recipient email: *</label>
+                       <label index="message">Message</label>
+                       <label index="html">HTML message:</label>
+                       <label index="must">You must fill in fields with * correctly!</label>
+                       <label index="send">Send</label>
+                       <label index="disclaimer">Disclaimer</label>
+                       <label index="confirmation">Message is sent to:</label>
+                       <label index="back">Go back</label>
+                       <label index="mail_subject">Tip: Check this</label>
+                       <label index="mail_message">Message:</label>
+                       <label index="mail_link">wants you to take a look at this link:</label>
+                       <label index="mail_footer">Best regards</label>
+                       <label index="link">Click here to tip a friend about this page!</label>
+                       <label index="form_captcha_response">Code</label>
+               </languageKey>
+               <languageKey index="dk" type="array">
+               </languageKey>
+               <languageKey index="de" type="array">
                        <label index="no_valid_url">Es wurde keine gültige URL übergeben.</label>
-            <label index="error">Fehler!</label>
-            <label index="error_expl">Sie haben nicht alle benötigten Felder ausgefüllt. Die mit einem * gekennzeichnete Felder müssen ausgefüllt werden!</label>
-            <label index="name">Ihr Name: *</label>
-            <label index="email">Ihre E-Mail: *</label>
-            <label index="title">Seite weiterempfehlen</label>
-            <label index="path">Folgende Seite wird von Ihnen empfohlen:</label>
-            <label index="email_recipent">E-Mail des Empfängers: *</label>
-            <label index="message">Mitteilung</label>
-            <label index="html">Als HTML versenden:</label>
-            <label index="must">Mit einem * gekennzeichnete Felder müssen ausgefüllt werden!</label>
-            <label index="send">Absenden</label>
-            <label index="disclaimer">Die eingegebenen Informationen auf dieser Seite werden nicht verwendet um Werbemails zu verschicken und werden ebenfalls nicht an dritte weitergegeben.</label>
-            <label index="confirmation">Die Empfehlung der Seite wurde an folgende E-Mail Adresse verschickt:</label>
-            <label index="back">weiter</label>
-            <label index="mail_subject">Seitenempfehlung</label>
-            <label index="mail_message">Mitteilung:</label>
-            <label index="mail_link">hat Ihnen folgenden Link empfohlen:</label>
-            <label index="mail_footer">* Bitte beachten Sie, dass die E-Mail Adresse nicht überprüft wurde</label>
-            <label index="link">Diese Seite weiterempfehlen</label>
-            <label index="form_captcha_response">Code</label>
-        </languageKey>
-        <languageKey index="no" type="array">
-        </languageKey>
-        <languageKey index="it" type="array">
-             <label index="error">Errore!</label>
-             <label index="error_expl">Non hai riempito tutti i campi obbligatori nel modulo o l'indirizzo email non e' valido!</label>
-             <label index="name">Nome e cognome: *</label>
-             <label index="email">Il tuo email: *</label>
-             <label index="title">Stai inviando questo link a un indirizzo email di un conoscente.</label>
-             <label index="path">La pagina che desideri segnalare e' la seguente:</label>
-             <label index="email_recipent">Email del destinatario: *</label>
-             <label index="message">Messaggio</label>
-             <label index="html">messaggio HTML:</label>
-             <label index="must">i campi con * sono obbligatori!</label>
-             <label index="send">Invia</label>
-             <label index="disclaimer"></label>
-             <label index="confirmation">Messaggio inoltrato a:</label>
-             <label index="back">Pagina precedente</label>
-             <label index="mail_subject">Consiglio: verifica questi campi</label>
-             <label index="mail_message">Messaggio:</label>
-             <label index="mail_link">desidera che tu dia uno sguardo a questa pagina:</label>
-             <label index="mail_footer">Cordiali saluti</label>
-             <label index="link">Segnala la pagina...</label>
-             <label index="form_captcha_response">Codice</label>
-        </languageKey>
-        <languageKey index="fr" type="array">
-        </languageKey>
-        <languageKey index="es" type="array">
-        </languageKey>
-        <languageKey index="nl" type="array">
-        </languageKey>
-        <languageKey index="cz" type="array">
-        </languageKey>
-        <languageKey index="pl" type="array">
-        </languageKey>
-        <languageKey index="si" type="array">
-        </languageKey>
-        <languageKey index="fi" type="array">
-        </languageKey>
-        <languageKey index="tr" type="array">
-        </languageKey>
-        <languageKey index="se" type="array">
-        </languageKey>
-        <languageKey index="pt" type="array">
-        </languageKey>
-        <languageKey index="ru" type="array">
-        </languageKey>
-        <languageKey index="ro" type="array">
-        </languageKey>
-        <languageKey index="ch" type="array">
-        </languageKey>
-        <languageKey index="sk" type="array">
-        </languageKey>
-        <languageKey index="lt" type="array">
-        </languageKey>
-        <languageKey index="is" type="array">
-        </languageKey>
-        <languageKey index="hr" type="array">
-        </languageKey>
-        <languageKey index="hu" type="array">
-        </languageKey>
-        <languageKey index="gl" type="array">
-        </languageKey>
-        <languageKey index="th" type="array">
-        </languageKey>
-        <languageKey index="gr" type="array">
-        </languageKey>
-        <languageKey index="hk" type="array">
-        </languageKey>
-        <languageKey index="eu" type="array">
-        </languageKey>
-        <languageKey index="bg" type="array">
-        </languageKey>
-        <languageKey index="br" type="array">
-        </languageKey>
-        <languageKey index="et" type="array">
-        </languageKey>
-        <languageKey index="ar" type="array">
-        </languageKey>
-        <languageKey index="he" type="array">
-        </languageKey>
-        <languageKey index="ua" type="array">
-        </languageKey>
-        <languageKey index="lv" type="array">
-        </languageKey>
-        <languageKey index="jp" type="array">
-        </languageKey>
-        <languageKey index="vn" type="array">
-        </languageKey>
-        <languageKey index="ca" type="array">
-        </languageKey>
-        <languageKey index="ba" type="array">
-        </languageKey>
-        <languageKey index="kr" type="array">
-        </languageKey>
-        <languageKey index="eo" type="array">
-        </languageKey>
-        <languageKey index="my" type="array">
-        </languageKey>
-        <languageKey index="hi" type="array">
-        </languageKey>
-    </data>
-    <orig_hash type="array">
-        <languageKey index="default" type="array">
-        </languageKey>
-        <languageKey index="dk" type="array">
-        </languageKey>
-        <languageKey index="de" type="array">
-        </languageKey>
-        <languageKey index="no" type="array">
-        </languageKey>
-        <languageKey index="it" type="array">
-        </languageKey>
-        <languageKey index="fr" type="array">
-        </languageKey>
-        <languageKey index="es" type="array">
-        </languageKey>
-        <languageKey index="nl" type="array">
-        </languageKey>
-        <languageKey index="cz" type="array">
-        </languageKey>
-        <languageKey index="pl" type="array">
-        </languageKey>
-        <languageKey index="si" type="array">
-        </languageKey>
-        <languageKey index="fi" type="array">
-        </languageKey>
-        <languageKey index="tr" type="array">
-        </languageKey>
-        <languageKey index="se" type="array">
-        </languageKey>
-        <languageKey index="pt" type="array">
-        </languageKey>
-        <languageKey index="ru" type="array">
-        </languageKey>
-        <languageKey index="ro" type="array">
-        </languageKey>
-        <languageKey index="ch" type="array">
-        </languageKey>
-        <languageKey index="sk" type="array">
-        </languageKey>
-        <languageKey index="lt" type="array">
-        </languageKey>
-        <languageKey index="is" type="array">
-        </languageKey>
-        <languageKey index="hr" type="array">
-        </languageKey>
-        <languageKey index="hu" type="array">
-        </languageKey>
-        <languageKey index="gl" type="array">
-        </languageKey>
-        <languageKey index="th" type="array">
-        </languageKey>
-        <languageKey index="gr" type="array">
-        </languageKey>
-        <languageKey index="hk" type="array">
-        </languageKey>
-        <languageKey index="eu" type="array">
-        </languageKey>
-        <languageKey index="bg" type="array">
-        </languageKey>
-        <languageKey index="br" type="array">
-        </languageKey>
-        <languageKey index="et" type="array">
-        </languageKey>
-        <languageKey index="ar" type="array">
-        </languageKey>
-        <languageKey index="he" type="array">
-        </languageKey>
-        <languageKey index="ua" type="array">
-        </languageKey>
-        <languageKey index="lv" type="array">
-        </languageKey>
-        <languageKey index="jp" type="array">
-        </languageKey>
-        <languageKey index="vn" type="array">
-        </languageKey>
-        <languageKey index="ca" type="array">
-        </languageKey>
-        <languageKey index="ba" type="array">
-        </languageKey>
-        <languageKey index="kr" type="array">
-        </languageKey>
-        <languageKey index="eo" type="array">
-        </languageKey>
-        <languageKey index="my" type="array">
-        </languageKey>
-        <languageKey index="hi" type="array">
-        </languageKey>
-    </orig_hash>
-    <orig_text type="array">
-        <languageKey index="default" type="array">
-        </languageKey>
-        <languageKey index="dk" type="array">
-        </languageKey>
-        <languageKey index="de" type="array">
-        </languageKey>
-        <languageKey index="no" type="array">
-        </languageKey>
-        <languageKey index="it" type="array">
-        </languageKey>
-        <languageKey index="fr" type="array">
-        </languageKey>
-        <languageKey index="es" type="array">
-        </languageKey>
-        <languageKey index="nl" type="array">
-        </languageKey>
-        <languageKey index="cz" type="array">
-        </languageKey>
-        <languageKey index="pl" type="array">
-        </languageKey>
-        <languageKey index="si" type="array">
-        </languageKey>
-        <languageKey index="fi" type="array">
-        </languageKey>
-        <languageKey index="tr" type="array">
-        </languageKey>
-        <languageKey index="se" type="array">
-        </languageKey>
-        <languageKey index="pt" type="array">
-        </languageKey>
-        <languageKey index="ru" type="array">
-        </languageKey>
-        <languageKey index="ro" type="array">
-        </languageKey>
-        <languageKey index="ch" type="array">
-        </languageKey>
-        <languageKey index="sk" type="array">
-        </languageKey>
-        <languageKey index="lt" type="array">
-        </languageKey>
-        <languageKey index="is" type="array">
-        </languageKey>
-        <languageKey index="hr" type="array">
-        </languageKey>
-        <languageKey index="hu" type="array">
-        </languageKey>
-        <languageKey index="gl" type="array">
-        </languageKey>
-        <languageKey index="th" type="array">
-        </languageKey>
-        <languageKey index="gr" type="array">
-        </languageKey>
-        <languageKey index="hk" type="array">
-        </languageKey>
-        <languageKey index="eu" type="array">
-        </languageKey>
-        <languageKey index="bg" type="array">
-        </languageKey>
-        <languageKey index="br" type="array">
-        </languageKey>
-        <languageKey index="et" type="array">
-        </languageKey>
-        <languageKey index="ar" type="array">
-        </languageKey>
-        <languageKey index="he" type="array">
-        </languageKey>
-        <languageKey index="ua" type="array">
-        </languageKey>
-        <languageKey index="lv" type="array">
-        </languageKey>
-        <languageKey index="jp" type="array">
-        </languageKey>
-        <languageKey index="vn" type="array">
-        </languageKey>
-        <languageKey index="ca" type="array">
-        </languageKey>
-        <languageKey index="ba" type="array">
-        </languageKey>
-        <languageKey index="kr" type="array">
-        </languageKey>
-        <languageKey index="eo" type="array">
-        </languageKey>
-        <languageKey index="my" type="array">
-        </languageKey>
-        <languageKey index="hi" type="array">
-        </languageKey>
-    </orig_text>
+                       <label index="error">Fehler!</label>
+                       <label index="error_expl">Sie haben nicht alle benötigten Felder ausgefüllt. Die mit einem * gekennzeichnete Felder müssen ausgefüllt werden!</label>
+                       <label index="name">Ihr Name: *</label>
+                       <label index="email">Ihre E-Mail: *</label>
+                       <label index="title">Seite weiterempfehlen</label>
+                       <label index="path">Folgende Seite wird von Ihnen empfohlen:</label>
+                       <label index="email_recipent">E-Mail des Empfängers: *</label>
+                       <label index="message">Mitteilung</label>
+                       <label index="html">Als HTML versenden:</label>
+                       <label index="must">Mit einem * gekennzeichnete Felder müssen ausgefüllt werden!</label>
+                       <label index="send">Absenden</label>
+                       <label index="disclaimer">Die eingegebenen Informationen auf dieser Seite werden nicht verwendet um Werbemails zu verschicken und werden ebenfalls nicht an dritte weitergegeben.</label>
+                       <label index="confirmation">Die Empfehlung der Seite wurde an folgende E-Mail Adresse verschickt:</label>
+                       <label index="back">weiter</label>
+                       <label index="mail_subject">Seitenempfehlung</label>
+                       <label index="mail_message">Mitteilung:</label>
+                       <label index="mail_link">hat Ihnen folgenden Link empfohlen:</label>
+                       <label index="mail_footer">* Bitte beachten Sie, dass die E-Mail Adresse nicht überprüft wurde</label>
+                       <label index="link">Diese Seite weiterempfehlen</label>
+                       <label index="form_captcha_response">Code</label>
+               </languageKey>
+               <languageKey index="no" type="array">
+               </languageKey>
+               <languageKey index="it" type="array">
+                       <label index="error">Errore!</label>
+                       <label index="error_expl">Non hai riempito tutti i campi obbligatori nel modulo o l'indirizzo email non e' valido!</label>
+                       <label index="name">Nome e cognome: *</label>
+                       <label index="email">Il tuo email: *</label>
+                       <label index="title">Stai inviando questo link a un indirizzo email di un conoscente.</label>
+                       <label index="path">La pagina che desideri segnalare e' la seguente:</label>
+                       <label index="email_recipent">Email del destinatario: *</label>
+                       <label index="message">Messaggio</label>
+                       <label index="html">messaggio HTML:</label>
+                       <label index="must">i campi con * sono obbligatori!</label>
+                       <label index="send">Invia</label>
+                       <label index="disclaimer">Disclaimer</label>
+                       <label index="confirmation">Messaggio inoltrato a:</label>
+                       <label index="back">Pagina precedente</label>
+                       <label index="mail_subject">Consiglio: verifica questi campi</label>
+                       <label index="mail_message">Messaggio:</label>
+                       <label index="mail_link">desidera che tu dia uno sguardo a questa pagina:</label>
+                       <label index="mail_footer">Cordiali saluti</label>
+                       <label index="link">Segnala la pagina...</label>
+                       <label index="form_captcha_response">Codice</label>
+               </languageKey>
+               <languageKey index="fr" type="array">
+               </languageKey>
+               <languageKey index="es" type="array">
+               </languageKey>
+               <languageKey index="nl" type="array">
+               </languageKey>
+               <languageKey index="cz" type="array">
+               </languageKey>
+               <languageKey index="pl" type="array">
+               </languageKey>
+               <languageKey index="si" type="array">
+               </languageKey>
+               <languageKey index="fi" type="array">
+               </languageKey>
+               <languageKey index="tr" type="array">
+               </languageKey>
+               <languageKey index="se" type="array">
+               </languageKey>
+               <languageKey index="pt" type="array">
+               </languageKey>
+               <languageKey index="ru" type="array">
+               </languageKey>
+               <languageKey index="ro" type="array">
+               </languageKey>
+               <languageKey index="ch" type="array">
+               </languageKey>
+               <languageKey index="sk" type="array">
+               </languageKey>
+               <languageKey index="lt" type="array">
+               </languageKey>
+               <languageKey index="is" type="array">
+               </languageKey>
+               <languageKey index="hr" type="array">
+               </languageKey>
+               <languageKey index="hu" type="array">
+               </languageKey>
+               <languageKey index="gl" type="array">
+               </languageKey>
+               <languageKey index="th" type="array">
+               </languageKey>
+               <languageKey index="gr" type="array">
+               </languageKey>
+               <languageKey index="hk" type="array">
+               </languageKey>
+               <languageKey index="eu" type="array">
+               </languageKey>
+               <languageKey index="bg" type="array">
+               </languageKey>
+               <languageKey index="br" type="array">
+               </languageKey>
+               <languageKey index="et" type="array">
+               </languageKey>
+               <languageKey index="ar" type="array">
+               </languageKey>
+               <languageKey index="he" type="array">
+               </languageKey>
+               <languageKey index="ua" type="array">
+               </languageKey>
+               <languageKey index="lv" type="array">
+               </languageKey>
+               <languageKey index="jp" type="array">
+               </languageKey>
+               <languageKey index="vn" type="array">
+               </languageKey>
+               <languageKey index="ca" type="array">
+               </languageKey>
+               <languageKey index="ba" type="array">
+               </languageKey>
+               <languageKey index="kr" type="array">
+               </languageKey>
+               <languageKey index="eo" type="array">
+               </languageKey>
+               <languageKey index="my" type="array">
+               </languageKey>
+               <languageKey index="hi" type="array">
+               </languageKey>
+       </data>
+       <orig_hash type="array">
+               <languageKey index="default" type="array">
+               </languageKey>
+               <languageKey index="dk" type="array">
+               </languageKey>
+               <languageKey index="de" type="array">
+               </languageKey>
+               <languageKey index="no" type="array">
+               </languageKey>
+               <languageKey index="it" type="array">
+               </languageKey>
+               <languageKey index="fr" type="array">
+               </languageKey>
+               <languageKey index="es" type="array">
+               </languageKey>
+               <languageKey index="nl" type="array">
+               </languageKey>
+               <languageKey index="cz" type="array">
+               </languageKey>
+               <languageKey index="pl" type="array">
+               </languageKey>
+               <languageKey index="si" type="array">
+               </languageKey>
+               <languageKey index="fi" type="array">
+               </languageKey>
+               <languageKey index="tr" type="array">
+               </languageKey>
+               <languageKey index="se" type="array">
+               </languageKey>
+               <languageKey index="pt" type="array">
+               </languageKey>
+               <languageKey index="ru" type="array">
+               </languageKey>
+               <languageKey index="ro" type="array">
+               </languageKey>
+               <languageKey index="ch" type="array">
+               </languageKey>
+               <languageKey index="sk" type="array">
+               </languageKey>
+               <languageKey index="lt" type="array">
+               </languageKey>
+               <languageKey index="is" type="array">
+               </languageKey>
+               <languageKey index="hr" type="array">
+               </languageKey>
+               <languageKey index="hu" type="array">
+               </languageKey>
+               <languageKey index="gl" type="array">
+               </languageKey>
+               <languageKey index="th" type="array">
+               </languageKey>
+               <languageKey index="gr" type="array">
+               </languageKey>
+               <languageKey index="hk" type="array">
+               </languageKey>
+               <languageKey index="eu" type="array">
+               </languageKey>
+               <languageKey index="bg" type="array">
+               </languageKey>
+               <languageKey index="br" type="array">
+               </languageKey>
+               <languageKey index="et" type="array">
+               </languageKey>
+               <languageKey index="ar" type="array">
+               </languageKey>
+               <languageKey index="he" type="array">
+               </languageKey>
+               <languageKey index="ua" type="array">
+               </languageKey>
+               <languageKey index="lv" type="array">
+               </languageKey>
+               <languageKey index="jp" type="array">
+               </languageKey>
+               <languageKey index="vn" type="array">
+               </languageKey>
+               <languageKey index="ca" type="array">
+               </languageKey>
+               <languageKey index="ba" type="array">
+               </languageKey>
+               <languageKey index="kr" type="array">
+               </languageKey>
+               <languageKey index="eo" type="array">
+               </languageKey>
+               <languageKey index="my" type="array">
+               </languageKey>
+               <languageKey index="hi" type="array">
+               </languageKey>
+       </orig_hash>
+       <orig_text type="array">
+               <languageKey index="default" type="array">
+               </languageKey>
+               <languageKey index="dk" type="array">
+               </languageKey>
+               <languageKey index="de" type="array">
+               </languageKey>
+               <languageKey index="no" type="array">
+               </languageKey>
+               <languageKey index="it" type="array">
+               </languageKey>
+               <languageKey index="fr" type="array">
+               </languageKey>
+               <languageKey index="es" type="array">
+               </languageKey>
+               <languageKey index="nl" type="array">
+               </languageKey>
+               <languageKey index="cz" type="array">
+               </languageKey>
+               <languageKey index="pl" type="array">
+               </languageKey>
+               <languageKey index="si" type="array">
+               </languageKey>
+               <languageKey index="fi" type="array">
+               </languageKey>
+               <languageKey index="tr" type="array">
+               </languageKey>
+               <languageKey index="se" type="array">
+               </languageKey>
+               <languageKey index="pt" type="array">
+               </languageKey>
+               <languageKey index="ru" type="array">
+               </languageKey>
+               <languageKey index="ro" type="array">
+               </languageKey>
+               <languageKey index="ch" type="array">
+               </languageKey>
+               <languageKey index="sk" type="array">
+               </languageKey>
+               <languageKey index="lt" type="array">
+               </languageKey>
+               <languageKey index="is" type="array">
+               </languageKey>
+               <languageKey index="hr" type="array">
+               </languageKey>
+               <languageKey index="hu" type="array">
+               </languageKey>
+               <languageKey index="gl" type="array">
+               </languageKey>
+               <languageKey index="th" type="array">
+               </languageKey>
+               <languageKey index="gr" type="array">
+               </languageKey>
+               <languageKey index="hk" type="array">
+               </languageKey>
+               <languageKey index="eu" type="array">
+               </languageKey>
+               <languageKey index="bg" type="array">
+               </languageKey>
+               <languageKey index="br" type="array">
+               </languageKey>
+               <languageKey index="et" type="array">
+               </languageKey>
+               <languageKey index="ar" type="array">
+               </languageKey>
+               <languageKey index="he" type="array">
+               </languageKey>
+               <languageKey index="ua" type="array">
+               </languageKey>
+               <languageKey index="lv" type="array">
+               </languageKey>
+               <languageKey index="jp" type="array">
+               </languageKey>
+               <languageKey index="vn" type="array">
+               </languageKey>
+               <languageKey index="ca" type="array">
+               </languageKey>
+               <languageKey index="ba" type="array">
+               </languageKey>
+               <languageKey index="kr" type="array">
+               </languageKey>
+               <languageKey index="eo" type="array">
+               </languageKey>
+               <languageKey index="my" type="array">
+               </languageKey>
+               <languageKey index="hi" type="array">
+               </languageKey>
+       </orig_text>
 </T3locallang>
index 621237f..dd13b06 100644 (file)
 .clear {
        clear: left;
-       margin:0px;
-       padding:0px;
+       margin: 0;
+       padding: 0;
 }
+
 .tx_tipafriend {
-       margin-top:0px;
-       margin-right:0px;
-       margin-bottom:0px;
-       margin-left:0px;
+       margin: 0;
 }
+
 .tx_tipafriend form {
-       margin: 0px;
+       margin: 0;
 }
+
 .tx_tipafriend .tx_tipafriend_url {
        margin-bottom: 20px;
 }
 
-.tx_tipafriend_tiplink {
-
-}
-
-.tx_tipafriend_url H1 {
-       
-}
 .tx_tipafriend_path_label {
-       margin-right:5px;
-       font-weight:bold;
-       float:left;
+       margin-right: 5px;
+       font-weight: bold;
+       float: left;
 }
+
 .tx_tipafriend_path_url {
-       font-weight:normal;
-       font-style:normal;
-       float:left;
+       font-weight: normal;
+       font-style: normal;
+       float: left;
 }
+
 .tx_tipafriend_error_box {
-       background-color:#E0E0E0;
-       border-style:solid;
-       border-width:1px;
-       border-color:#000000;
-       margin-top:0px;
-       margin-right:0px;
-       margin-bottom:10px;
-       margin-left:0px;
-       padding-top:5px;
-       padding-right:5px;
-       padding-bottom:5px;
-       padding-left:5px;
-       font-weight:bold;
-       color:red;
+       background-color: #E0E0E0;
+       border: 1px solid #000000;
+       margin: 0 0 10px 0;
+       padding: 5px;
+       font-weight: bold;
+       color: red;
 }
+
 .tx_tipafriend_error_header {
        color: #FF0000;
        font-weight: bold;
        text-align: left;
-       margin: 0px 0px 5px 0px;
+       margin: 0 0 5px 0;
 }
+
 .tx_tipafriend_error_text {
        color: #FF0000;
        font-weight: normal;
        text-align: left;
-       margin: 0px 0px 0px 0px;
+       margin: 0;
 }
+
 .tx_tipafriend_formfield {
-       padding-top:5px;
-       padding-right:0px;
-       padding-bottom:5px;
-       padding-left:0px;
-       clear:left;
+       padding: 5px 0 5px 0;
+       clear: left;
 }
+
 .tx_tipafriend_formfield LABEL {
-       font-weight:bold;
-       text-align:right;
-       width:200px;
-       margin-right:5px;
-       float:left;
-}
-.tx_tipafriend_html, #tx_tipafriend_html {
-       /*display:none;*/
+       font-weight: bold;
+       text-align: right;
+       width: 200px;
+       margin-right: 5px;
+       float: left;
 }
+
 #tx_tipafriend_html {
-       border-style: none;
-       border-width: 0px;
+       border: none;
        background-color: #FFFFFF;
        width: auto;
        float: left;
 }
+
 .tx_tipafriend_formfield INPUT, .tx_tipafriend_formfield TEXTAREA {
-       width:200px;
-       background-color:white;
-       border-style:solid;
-       border-width:1px;
-       border-color:black;
-       color:#000000;
-       margin-left:0px;
-       padding-left:0px;
-       float:left;
+       width: 200px;
+       background-color: white;
+       border: 1px solid #000000;
+       color: #000000;
+       margin-left: 0;
+       padding-left: 0;
+       float: left;
 }
+
 .tx_tipafriend_formfield INPUT:focus, .tx_tipafriend_formfield TEXTAREA:focus {
-       background-color:#E0E0E0;
+       background-color: #E0E0E0;
 }
+
 .tx_tipafriend_codetext .tx-srfreecap-pi2-image {
-       width:200px;
-       height:74px;
-       padding:0px 0px 0px 0px;
-       margin:0px 0px 0px 0px;
+       width: 200px;
+       height: 74px;
+       padding: 0;
+       margin: 0;
 }
+
 .tx_tipafriend_codetext {
-       text-align:justify;
-       font-size:10px;
-       line-height:normal;
-       border-color:black;
-       border-style:solid;
-       border-width:0px;
-       background-color:white;
-       width:200px;
-       color:#000000;
-       font-weight:normal;
-       margin:0px 0px 0px 0px;
-       float:left;
+       text-align: justify;
+       font-size: 10px;
+       line-height: normal;
+       border: none;
+       background-color: white;
+       width: 200px;
+       color: #000000;
+       font-weight: normal;
+       margin: 0;
+       float: left;
 }
+
 .tx_tipafriend_text {
-       text-align:justify;
-       font-size:10px;
-       line-height:normal;
-       border-color:#CCCCCC;
-       border-style:none;
-       border-width:1px;
-       background-color:white;
-       width:200px;
-       margin:15px 0px 0px;
-       float:left;
+       text-align: justify;
+       font-size: 10px;
+       line-height: normal;
+       border: none;
+       background-color: white;
+       width: 200px;
+       margin: 15px 0 0;
+       float: left;
 }
+
 #tx_tipafriend_button {
-       width:200px;
-       background-color:#E0E0E0;
-       border-color:black;
-       border-style:solid;
-       border-width:1px;
-       text-align:center;
-       font-weight:bold;
-       margin-top:0px;
-       margin-right:0px;
-       margin-bottom:0px;
-       margin-left:0px;
-       padding-top:3px;
-       padding-right:0px;
-       padding-bottom:3px;
-       padding-left:0px;
-       float:left;
+       width: 200px;
+       background-color: #E0E0E0;
+       border: 1px solid #000000;
+       text-align: center;
+       font-weight: bold;
+       margin: 0;
+       padding: 3px 0 3px 0;
+       float: left;
 }
+
 .tx_tipafriend_werbemail {
-       text-align:justify;
-       font-size:10px;
-       line-height:normal;
-       border-color:#CCCCCC;
-       border-style:none;
-       border-width:1px;
-       background-color:white;
-       width:200px;
-       margin:0px 0px 30px 0px;
-       float:left;
-}
+       text-align: justify;
+       font-size: 10px;
+       line-height: normal;
+       border: none;
+       background-color: white;
+       width: 200px;
+       margin: 0 0 30px 0;
+       float: left;
+}
\ No newline at end of file