View Single Post
Valgfri brukertittel
Kekurikekaka's Avatar
Trådstarter
Det gjorde bare siden helt hvit

Nå ser koden sånn ut:

Kode

<?php
/*
+---------------------------------------------------------------+
| Contact Form by bugrain (www.bugrain.plus.com)
|
| A plugin for the e107 Website System (http://e107.org)
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: e:\_repository\e107_plugins/contactform_menu/contactform.php,v $
| $Revision: 1.10 $
| $Date: 2006/06/01 22:27:23 $
| $Author: Neil $
+---------------------------------------------------------------+
*/
   require_once("../../class2.php");

   // Check that the viewing is allowed for current visitor
   if (!check_class($pref['contactform_visibility'])){
      header("location:../../index.php");
      exit;
   }

   require_once(HEADERF);

   // Include the e107 Helper classes
   if (file_exists(e_PLUGIN."e107helpers/e107Helper.php")) {
      require_once(e_PLUGIN."e107helpers/e107Helper.php");
   } else {
      print "Fatal error, cannot find e107Helper class, this plugin requires the e107 Helper Project plugin to be installed";
      require_once(FOOTERF);
      exit;
   }

   if (file_exists(e_PLUGIN."contactform_menu/contactform_class.php")) {
      include(e_PLUGIN."contactform_menu/contactform_class.php");
   } else {
      print "Fatal error, cannot find contactForm class, possible incorrect installation";
      require_once(FOOTERF);
      exit;
   }

   if (file_exists(THEME."contactform_template.php")) {
      include_once(THEME."contactform_template.php");
   } else {
      include_once(e_PLUGIN."contactform_menu/contactform_template.php");
   }
   include_once(e_PLUGIN."contactform_menu/contactform_shortcodes.php");

   $contactform->getMainPage();
   require_once(FOOTERF);

   if ($_GET['deafult']=="reklame") {
   echo Send Melding Til</td><td class=\'forumheader3\'>;
   echo <select class='tbox' name='id' size='1'>;
  echo <option value='3'>Reklame (Reklame)</option>;
   echo <option value='2'>Support (Support)</option>;
   echo </select>;
   } else {
   echo Send Melding Til</td><td class=\'forumheader3\'>;
   echo <select class='tbox' name='id' size='1'>;
   echo <option value='2'>Support (Support)</option>;
   echo <option value='3'>Reklame (Reklame)</option>;
   echo </select>;
   }

?>