This file contains hidden or 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 | |
/* ----------------------------------------------------------------------- */ | |
/* [SAVE MAIL ATTACHMENTS/InlineImages] #php #class #function #attachments */ | |
/* ----------------------------------------------------------------------- */ | |
/** | |
* INSPIRED BY | |
* @see http://cantstopgeeking.blogspot.com/2018/12/php-email-message-class-for-extracting.html |
This file contains hidden or 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 | |
/* -------------------------------------------------------------------------------- */ | |
/* [CSS AVATAR] Generate an HtML/CSS Avatar from agiven Name #php #function #avatar */ | |
/* -------------------------------------------------------------------------------- */ | |
/** | |
* CSS_AVATAR() Generate an HtML/CSS Avatar from agiven Name | |
* @see [css credits] [https://codepen.io/lunamatic/pen/NWbXxaR] | |
* @param [string] $nick [Name that should generate an avatar (without name it will return only the css)] |
This file contains hidden or 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 | |
/* -------------------------------------------------------------------------------------------- */ | |
/* [Delete Old] Delete files older than a given age (in seconds) recusiv #php #function #delete */ | |
/* -------------------------------------------------------------------------------------------- */ | |
// TEST | |
delete_older_than('limit', 1); | |
/** | |
* delete_older_than() |
This file contains hidden or 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 | |
/* ---------------------------------------------------------------------------- */ | |
/* [CC LICENSES] Print CC License Image from given Parameter #php #function #cc */ | |
/* ---------------------------------------------------------------------------- */ | |
/** | |
* creativecommonsLicense() CC LICENSES INFO HTML | |
* @see https://de.wikipedia.org/wiki/Creative_Commons | |
* @param integer $adaptations [1-3] |
This file contains hidden or 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 | |
/* ----------------------------------------------------------------------------- */ | |
/* [is animated GIF] Detect if a GIF file is animated or not #php #function #gif */ | |
/* ----------------------------------------------------------------------------- */ | |
/** | |
* Detect if a GIF file is animated or not | |
* | |
* We read through the file til we reach the end of the file, or we've found at least 2 frame headers |
This file contains hidden or 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 | |
/** | |
* JWT (JSON Web Token) Implementation | |
* | |
* Minimum implementation used by Realtime auth, based on this: | |
* | |
* READ https://codeofaninja.com/2018/09/rest-api-authentication-example-php-jwt-tutorial.html | |
* INFO http://self-issued.info/docs/draft-jones-json-web-token-01.html | |
* CODE https://github.com/luciferous/jwt |
This file contains hidden or 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
<!-- | |
/* ----------------------------------------------------------- */ | |
/* [JS Log] Vanilla JavaScript Log Function #js #function #log */ | |
/* ----------------------------------------------------------- */ | |
--> | |
<script> | |
function log(msg, color) { |
This file contains hidden or 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 | |
/* ------------------------------------------------------------------------------ */ | |
/* [Highlight Code] Easy Highlight HTML and PHP Code #php #class #syntaxlightning */ | |
/* ------------------------------------------------------------------------------ */ | |
class highlight { | |
private static $highlight = array(); | |
private static $start_line = 0; | |
private static $cache_path = null; |
This file contains hidden or 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 | |
/* -------------------------------------------------------------------------- */ | |
/* [Bad Word Filter] Stay away from bad and offensive words #php #class #text */ | |
/* -------------------------------------------------------------------------- */ | |
// the class | |
class BadWordFilter { | |
// variable for storing bad words |
This file contains hidden or 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 | |
/* ------------------------------------------------------------- */ | |
/* [Create MS Word RTF] Text to Microsoft Word #php #class #word */ | |
/* ------------------------------------------------------------- */ | |
/** | |
* @uses https://github.com/phprtflite/PHPRtfLite | |
* @see http://sigma-scripts.de/phprtflite/docs/ | |
* @see https://joelonsoftware.com/2008/02/19/why-are-the-microsoft-office-file-formats-so-complicated-and-some-workarounds/ | |
*/ |