Skip to content

Instantly share code, notes, and snippets.

@cjwebdev
cjwebdev / gist:052efd0a299879da50fd7f1e25ac6a34
Created November 27, 2017 02:19
Set default Permissions with PHP
<?php
$start_dir = '/home/hiscoes/public_html/wp-content/plugins'; // Starting directory name no trailing slashes.
$perms['file'] = 0644; // chmod value for files don't enclose value in quotes.
$perms['folder'] = 0755; // chmod value for folders don't enclose value in quotes.
function chmod_file_folder($dir) {
global $perms;
$dh=@opendir($dir);
//http://pl.php.net/manual/en/function.date.php
date("jS F, Y", strtotime($course['Start_Date__c']))
@cjwebdev
cjwebdev / click-off.js
Created March 8, 2018 00:08
Click off/away
$('.overlay').on('click', function(event) {
if (!$(event.target).closest('.exit-popup').length) {
signup.closeSignup();
}
});