Code Monkey home page Code Monkey logo

monstra-cms-contact's Introduction

Contact

Simple contact plugin for Monstra CMS

Usage:

Shordcode for content

{contact recipient="[email protected]"}

Code for templates

<?php Contact::display('[email protected]'); ?>

monstra-cms-contact's People

Contributors

awilum avatar ravilrrr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

monstra-cms-contact's Issues

Filter special characters

How do we block special characters from being sent? I've try and it was vulnerable to SQL injection.

Subject: Complaint from Yeap
To: [email protected]
X-PHP-Originating-Script: 0:PHPMailer.php
Date: Mon, 8 Dec 2014 17:16:44 +0800
Return-Path: [email protected]
From: [email protected]
Reply-To: [email protected]
Message-ID: <18298f5e9bbefd7eec2a6e7088facba1@localhost>
X-Priority: 3
X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1

Internet slow <form method="post">
    <?php echo (Form::hidden('csrf', Security::token())); ?>
    <label><?php echo __('Name', 'contact'); ?></label>
    <input  type="text" name="contact_name" class="input-xlarge" value="<?php echo $name; ?>" /><br />
    <label><?php echo __('Email', 'contact'); ?></label>
    <input  type="text" name="contact_email" class="input-xlarge" value="<?php echo $email; ?>" /><br />
    <label><?php echo __('Message', 'contact'); ?></label>
    <textarea class="input-xxlarge" rows="10" name="contact_body"><?php echo $body; ?></textarea><br /><br />

    <?php if (Option::get('captcha_installed') == 'true') { ?>
    <label><?php echo __('Captcha', 'users'); ?></label>
    <input type="text" name="answer"><?php if (isset($errors['captcha_wrong'])) echo Html::nbsp(3).'<span class="error">'.$errors['captcha_wrong'].'</span>'; ?>
    <?php CryptCaptcha::draw(); ?>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.