Skip to content

Instantly share code, notes, and snippets.

DigitalDesigner DigitalDesignerOnline

Block or report user

Report or block DigitalDesignerOnline

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DigitalDesignerOnline
DigitalDesignerOnline / export_csv.php
Created Nov 13, 2017 — forked from janschoepke/export_csv.php
MySQL CSV Export via PHP (PHP7 ready)
View export_csv.php
<?php
/* vars for export */
// database record to be exported
$db_record = 'XXX_TABLE_NAME_XXX';
// optional where query
$where = 'WHERE 1 ORDER BY 1';
// filename for export
$csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv';
// database variables
@DigitalDesignerOnline
DigitalDesignerOnline / dl-file.php
Created Oct 25, 2017 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
View dl-file.php
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+
View custom-registration.php
<?php
/*
Plugin Name: Custom Registration
Description: Updates user rating based on number of posts.
Version: 1.1
Author: Tristan Slater w/ Agbonghama Collins
Author URI: http://kanso.ca
*/
You can’t perform that action at this time.