Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* General class for setting the message icon array and returning index values
*
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 2.0 dev
(function ($) {
'use strict';
$.sceditor.plugins.undo = function () {
var base = this;
var editor;
var charChangedCount = 0;
var previousValue;
var undoLimit = 50;
<?php
/**
* @name ElkArte hooks/triggers documentor
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 0.0.1
*
*/
class Settings_Form
{
public static function prepare_db(&$config_vars)
{
...
// If we have inline permissions we need to prep them.
if (!empty($inlinePermissions) && allowedTo('manage_permissions'))
{
// We'll need to initialize inline permissions sub-form
require_once(SUBSDIR . '/Permission.subs.php');
@emanuele45
emanuele45 / a) SettingsForm.class.php
Last active August 21, 2016 16:48
Your (live627) version
class Settings_Form
{
public static function prepare_db(&$config_vars)
{
...
// If we have inline permissions we need to prep them.
if (!empty($inlinePermissions) && allowedTo('manage_permissions'))
{
// We'll need to initialize inline permissions sub-form
require_once(SUBSDIR . '/Permission.subs.php');
@emanuele45
emanuele45 / a) SettingsForm.class.php
Last active August 21, 2016 16:48
Current version
class Settings_Form
{
public static function prepare_db(&$config_vars)
{
...
// If we have inline permissions we need to prep them.
if (!empty($inlinePermissions) && allowedTo('manage_permissions'))
{
// We'll need to initialize inline permissions sub-form
require_once(SUBSDIR . '/Permission.subs.php');
<?php
/**
* Extension of the default Exception class to handle controllers redirection.
*
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 1.1 beta 1
@emanuele45
emanuele45 / WpHelpers.template.php
Created March 31, 2015 22:12
WP theme wrapper
<?php
/**
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 1.0.2
*
*/
<?php
class Members_Restv1
{
public function __construct($db)
{
$this->db = $db;
}
public function get($id, $params)
<downloadtable>
{
"version": "4.1.0",
"version_short": "4.1.0",
"milestone": "AOO410m18",
"build": "9764",
"svn_rev": "r1589052",
"rel_date": "2014-Apr-29",
"prev_version": "4.0.1",