Skip to content

Instantly share code, notes, and snippets.

@CaMer0n
CaMer0n / After
Last active December 18, 2015 00:29
forum/plugin.xml - recent changes. BEFORE is correct. See: userClasses and extendedFields
<?php
Array
(
[@attributes] => Array
(
[name] => Forum
[lan] =>
[version] => 2.0
[date] => 2012-08-01
[compatibility] => 2.0
<?php
// Test
?>
@CaMer0n
CaMer0n / e107 prefs cleaner
Last active December 16, 2015 17:41
This should clean-out any corruption that has occurred from the v1.0.3 parser bug.
<?php
require_once("class2.php");
require_once(HEADERF);
global $pref; // just in case.
echo "<h2>Cleaned Prefs</h2>";
$stripsan = array('[sanitised]','[/sanitised]','##xss##');
@CaMer0n
CaMer0n / teamviewer_menu.php
Created March 16, 2013 01:21
Example Teamviewer Menu
<?php
global $ns;
$text = '
<div id="ts3viewer_937902" style="width:; background-color:;"> </div>
<script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>
<script type="text/javascript">
@CaMer0n
CaMer0n / gist:5094691
Created March 5, 2013 21:56
jQuery UI Datepicker Issue / Bug Problem - testing code.
// From the jQuery API docs.
print_a("
d - day of month (no leading zero)
dd - day of month (two digit)
o - day of the year (no leading zeros)
oo - day of the year (three digit)
D - day name short
DD - day name long
m - month of year (no leading zero)
mm - month of year (two digit)