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 (!class_exists('CreateDocx')) { | |
require __DIR__ . '/phpdocx_free/classes/CreateDocx.inc'; | |
} | |
$file = new splFileInfo(tempnam('/tmp/', 'atlas_toets_') . '.docx'); | |
$docx = new CreateDocx($file->getExtension()); | |
//-- Create the header and footer |
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 | |
/* BLGG - Example */ | |
function blgg_preprocess_node(&$vars) | |
{ | |
// ff controleren wat het juiste element is !!!! | |
$block = &$vars['content']['links']['print_html']['#links']['print_html']; | |
if (!empty($block)) | |
{ |
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 | |
$max = isset($_GET['iterations']) ? (int) $_GET['iterations'] : 100; | |
$mod3 = 0; | |
$mod5 = 0; | |
$out = array(); | |
for ($i = 0; $i <= $max; $i++) |
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
class MichaelC(object): | |
def __init__(self): | |
super(MichaelC, self).__init__() | |
def _get(self): | |
return [ | |
1, | |
2, | |
3 | |
] |
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 | |
namespace erikfrerejean\musicunique; | |
// Setup quick 'n dirty autoloader | |
spl_autoload_register(function($class) { | |
$namespace = 'erikfrerejean\\musicunique\\'; | |
if (strpos($class, $namespace) !== 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
MODNAME = Some MOD | |
VERSION = 1.0.0 | |
PACKAGENAME = QuotePostBackLink.zip | |
PACKAGEFILES = install.xml license.txt modx.prosilver.en.xsl root | |
CURL = /usr/bin/curl | |
GIT = /usr/bin/git | |
.title: | |
@echo "$(MODNAME) - $(VERSION)\n" |
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
// Code line | |
$var = 'foo'; | |
print ($var); | |
// MOD 1 changes foo to foobar and prints in upper case | |
$var = 'foobar'; | |
print (strtoupper($var)); | |
// MOD 2 changes foo to bar | |
$var = 'bar'; |
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
object(phpbb_event_data)[20] | |
private 'data' => | |
array | |
'postrow' => | |
array | |
'POST_AUTHOR_FULL' => string '<a href="./memberlist.php?mode=viewprofile&u=2" style="color: #AA0000;" class="username-coloured">Erik</a>' (length=110) | |
'POST_AUTHOR_COLOUR' => string '#AA0000' (length=7) | |
'POST_AUTHOR' => string 'Erik' (length=4) | |
'U_POST_AUTHOR' => string './memberlist.php?mode=viewprofile&u=2' (length=41) | |
'RANK_TITLE' => string 'Site Admin' (length=10) |
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 | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
class phpbb_ext_test_event_test_assign_block_vars_listener implements EventSubscriberInterface | |
{ | |
static public function getSubscribedEvents() | |
{ | |
return array( | |
'core.assign_block_vars' => 'cabv', |
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
<fieldset> | |
<legend>Naam</legend> | |
<input id="voornaam"...... /> | |
<input id="doopnaam"...... /> | |
<input id="achternaam"...... /> | |
</fieldset> | |
<fieldset> | |
<legend>Adresgegevens</legend> | |
<input id="straat"...... /> | |
<input id="nr"...... /> |