Jump to content

email


henri
 Share

Recommended Posts

i cant see the html source helas. So also not the form action..

log php:

 

<?php 

/*
=====================
Template for log data
===================== 
*/

include("./includes/functions.inc.php");

// Set basic variables
$headline = $page->get("headline|title");
$body = $page->body; 

// Get the log file
$dir = $_SERVER['DOCUMENT_ROOT'] . "/logs/";
$my_file = $dir . 'index.txt';
$lines = file($my_file);

// Create table
$body .= '<table>';
$body .= '<thead><tr><td><strong>Datum</strong></td><td><strong>Naam/email</strong></td><td><strong>Onderwerp bericht</strong></td></tr></thead>';
$body .= '<tbody>';

// Output the data
foreach($lines as $line)
{
    $fields = explode(" -> ", $line); 
    $body .= '<tr>';
    $body .= '<td>' . $fields[0] . '</td>';
    $name_email = $fields[1];
    $name_email = str_replace('<', '&lt;', $name_email);
    $name_email = str_replace('>', '&gt;', $name_email);
    $body .= '<td>' . $name_email . '</td>';
    $body .= '<td>' . $fields[2] . '</td>';
    $body .= '</tr>';
}

// Finish table
$body .= '</tbody>';
$body .= '</table>';

// Load the template
include("./includes/main.inc.php"); 
 

Link to comment
Share on other sites

/**
 * prependTemplateFile: PHP file in /site/templates/ that will be loaded before each page's template file
 *
 * Uncomment and edit to enable.
 *
 */
// $config->prependTemplateFile = '_init.php';

/**
 * appendTemplateFile: PHP file in /site/templates/ that will be loaded after each page's template file
 *
 * Uncomment and edit to enable.
 *
 */
// $config->appendTemplateFile = '_done.php';

 

so NOT enabled

Link to comment
Share on other sites

so its not in the database, its not in the files.. where can it be??

<?php

/*
===================================================
The main HTML/markup wrapper file for the templates
===================================================
*/

include("head.inc.php");

if($page->template == "courses" || $page->template == "courses") 
{
    require("filter.inc.php"); 
}

?>

    <!-- Main content -->

    <div id="content<?php if($page->template == "schedule") echo '-schedule'; ?>">
    
        <?php
            // Has a form been sent successfully?
            if(isset($_POST["security_field"]) && trim($_POST["security_field"]) != "") 
            {
                if($form_success == true) 
                {
                    echo "<p class=\"form_success\">Het formulier is verzonden. Wij nemen zo spoedig mogelijk contact met u op.</p>";
                }
                else
                {
                    echo "<p class=\"form_failure\">Het formulier is niet verzonden. Probeert u het nog eens of neem op een andere wijze contact met ons op. Excuses voor het ongemak.</p>";
                }
            }
            
            // Are the results filtered?
            if($page->template == "courses" && isset($_GET["filter_place"]))
            {
                echo "<p class=\"not_available\">Dit overzicht is gefilterd. <a href=\"" . $page->url . "\">Verwijder het zoekfilter</a>.</p>";
            }
            
            // Is this course or holiday currently not available
            if(($page->template == "course" || $page->template == "holiday" ) && $page->is(Page::statusHidden))
            {
                echo "<p class=\"not_available\">Deze cursus of reis is op dit moment niet beschikbaar.</p>";
            }
            
        ?>
        <?php $class = ($page == $homepage)? " class=\"home\"" : ""; ?>
        
        <?php
        
            // Is this a holiday that is fully booked?
            if($page->template == "holiday" && $page->fully_booked == true)
            {
                echo '<div id="fully-booked">Note bene: voor deze reis zijn geen plaatsen meer beschikbaar.</div>';
            }
        
        ?>
            
        <?php if($headline) echo "<h1" . $class . ">" . $headline . "</h1>"; ?>
        <?php if($body) echo $body; ?>
        
        <?php 
        
        if($page->template == "contact" 
        || $page->template == "course" 
        || $page->template == "holiday"
        || $page->template == "newsletter") 
        {
            if(!$page->is(Page::statusHidden)) include ("contact.inc.php"); 
        }
        /*
        else
        {
            if($page->template == "register") include ("register.inc.php"); 
        }
        */
        ?> 
                        
        <!-- Testimonials -->
    
        <div id="testimonials">
            <?php
            
            // Load a random quote
            $quotes = $pages->get("id=1241");
            $quotes = $quotes->children; 
            $quote  = $quotes->getRandom();
            
            // Display quote
            $this_quote = $quote->body; 
            $this_quote = trim(str_ireplace(array('<p>', '</p>'), '', $this_quote)); 
            echo "<div id=\"testimonial\" class=\"no-mobile\">";
            echo "<div class=\"quote\"><p><span class=\"bqstart\">&#8220;</span>" . $this_quote . "<span class=\"bqend\">&#8221;</span></p></div>";
            echo "<div class=\"speaker\"><p>" . $quote->title . "</p></div>";
            echo "</div>";
            
            ?>
        </div>    
    </div>

<?php

// Load sidebar
if($page->template != "schedule") include("sidebar.inc.php"); 

// Include the footer
include("foot.inc.php");

?>

Link to comment
Share on other sites

if($page->template == "contact" 
        || $page->template == "course" 
        || $page->template == "holiday"
        || $page->template == "newsletter") 
        {
            if(!$page->is(Page::statusHidden)) include ("contact.inc.php"); 
        }

Check contact.inc.php

1 minute ago, henri said:

$email_users = $homepage->recipients; 

Might be a field on the homepage.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...