Skip to content

Instantly share code, notes, and snippets.

View dianaprajescu's full-sized avatar

Diana Neculai dianaprajescu

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Include external CSS. -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.css">
<!-- Include Editor style. -->
@dianaprajescu
dianaprajescu / image_upload.php
Created September 6, 2016 14:40
PHP Image Server Upload for Froala WYSIWYG HTML Editor
<?php
require 'PATH_TO_FROALA_SDK/lib/froala_editor.php';
$response = FroalaEditor_Image::upload('/uploads/');
if (is_string($response)) {
http_response_code(404);
return;
}
<?php
// We are a valid Joomla entry point.
define('_JEXEC', 1);
// Setup the base path related constant.
define('JPATH_BASE', dirname(__FILE__));
// Maximise error reporting.
error_reporting(E_ALL);
ini_set('display_errors', 1);
@dianaprajescu
dianaprajescu / linkedin_test.php
Last active October 8, 2015 01:48
JLinkedin test
<?php
// We are a valid Joomla entry point.
define('_JEXEC', 1);
// Setup the base path related constant.
define('JPATH_BASE', dirname(__FILE__));
// Maximise error reporting.
error_reporting(E_ALL);
ini_set('display_errors', 1);
@dianaprajescu
dianaprajescu / twitter_test.php
Created August 4, 2012 17:24
JTwitter test
<?php
// We are a valid Joomla entry point.
define('_JEXEC', 1);
// Setup the base path related constant.
define('JPATH_BASE', dirname(__FILE__));
// Maximise error reporting.
error_reporting(E_ALL);
ini_set('display_errors', 1);