This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require dirname(__DIR__) . '/vendor/autoload.php'; | |
$loop = React\EventLoop\Factory::create(); | |
$pusher = new Pusher; // Create a Pusher class that implements Ratchet\Wamp\WampServerInterface | |
// The loop | |
// Binding to 127.0.0.1 means the only client that can connect is itself. | |
// To accept remotes we should bind to 0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('America/New_York'); | |
/* | |
*--------------------------------------------------------------- | |
* APPLICATION ENVIRONMENT | |
*--------------------------------------------------------------- | |
* | |
* You can load different configurations depending on your |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Virtual host servername | |
# Virtual Hosts | |
# | |
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot c:/wamp64/www | |
<Directory "c:/wamp64/www/"> | |
Options +Indexes +Includes +FollowSymLinks +MultiViews | |
AllowOverride All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- original author: Cory LaViska (@SEE https://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3) --> | |
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> | |
<style type="text/css"> | |
.btn-file { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ---------------------------------------------------------------------------- | |
// | |
// class.floodblocker.php - FloodBlocker class, ver.0.01 (April 15, 2005) | |
// | |
// Description: | |
// Class allowing to protect the scripts from flooding and to prevent | |
// automatic download of the site from single IP. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<DieCutLabel Version="8.0" Units="twips"> | |
<PaperOrientation>Landscape</PaperOrientation> | |
<Id>Address</Id> | |
<PaperName>30252 Address</PaperName> | |
<DrawCommands> | |
<RoundRectangle X="0" Y="0" Width="1581" Height="5040" Rx="270" Ry="270" /> | |
</DrawCommands> | |
<ObjectInfo> | |
<AddressObject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is a function that uses regular expressions to match against the various VAT formats required across the EU. | |
* (tested, simple but effective) | |
* | |
* TODO: Change country names to ISO codes? | |
* | |
* @param integer $country Country name | |
* @param integer $vat_number VAT number to test e.g. GB123 4567 89 | |
* @return integer -1 if country not included OR 1 if the VAT Num matches for the country OR 0 if no match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddHandler application/x-httpd-php53 .php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// ------------------------------------------------------------------------ | |
/** | |
* CSV Helpers | |
* Inspiration from PHP Cookbook by David Sklar and Adam Trachtenberg | |
* | |
* @author Jérôme Jaglale | |
* @link http://maestric.com/en/doc/php/codeigniter_csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var match_validators = { | |
fullemailaddress: eval("/^([a-zA-Z0-9_'+*$%^&!.-])+[@+](([a-zA-Z0-9-])+.)+([a-zA-Z0-9:]{2,4})+$/"), | |
emailcharplus: eval("/^([a-zA-Z0-9_'+.-])/"), | |
emailaddress: /^[^\@]\@[^\.]\./, | |
emailchars: /^[a-z0-9\_\-\@\.]+$/, | |
email_localpart_chars: /^\w[\w-.+%]*/, | |
email_localpart_chars_cap: /^[A-Za-z0-9\_\-\.]+$/, | |
atsign: /\@/, | |
notestsign: /\@/, | |
hostname: /^((\*\.|[a-zA-Z0-9])([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/, |
NewerOlder