Skip to content

Instantly share code, notes, and snippets.

View grafix777's full-sized avatar

Gabriel Ramirez grafix777

  • U.S.A.
View GitHub Profile
@grafix777
grafix777 / deploy.php
Created January 29, 2021 18:29 — forked from oxguy3/deploy.php
Script used to automatically deploy from GitHub to a cPanel shared hosting server
<?php
/**
* deploy.php by Hayden Schiff (oxguy3)
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9
*
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal.
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms.
*/
// random string of characters; must match the "Secret" defined in your GitHub webhook
@grafix777
grafix777 / contactForm.php
Created January 5, 2021 21:23 — forked from jackabox/contactForm.php
A Standard PHP contact form with validation of required fields
<?php if(isset($_POST['cf_submit'])) {
$errors = array();
$success = null;
$required_fields['cf_name'] = 'You are required to enter your Name.';
$required_fields['cf_email'] = 'You are required to enter your E-mail Address.';
$required_fields['cf_subject'] = 'You are required to enter a Subject.';
$required_fields['cf_message'] = 'You are required to enter a Message.';
foreach($_POST as $key => $value) {
@grafix777
grafix777 / style.css
Created April 28, 2016 16:53 — forked from WebEndevSnippets/style.css
Gravity Forms: 4 Column CSS
/* 4 column Gravity Forms custom ready class ------------------------------------------------------*/
.gform_wrapper .top_label li.gfield.gf_first_quarter,
.gform_wrapper .top_label li.gfield.gf_second_quarter,
.gform_wrapper .top_label li.gfield.gf_third_quarter,
.gform_wrapper .top_label li.gfield.gf_fourth_quarter {
margin:0 0 8px 0;
width:24%;
}
@grafix777
grafix777 / wp_mail_smtp.php
Created April 26, 2016 23:02 — forked from butlerblog/wp_config.php
Configure WordPress wp_mail function to send through SMTP server http://b.utler.co/Y3
/**
* This function will connect wp_mail to your authenticated
* SMTP server. This improves reliability of wp_mail, and
* avoids many potential problems.
*
* Author: Chad Butler
* Author URI: http://butlerblog.com
*
* For more information and instructions, see:
* http://b.utler.co/Y3