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 | |
/** | |
* Symlinks executable binaries in the current working directory to /usr/bin. | |
* | |
* I've used this to conditionally register and test different PHP versions, | |
* and as a helper when updating. | |
* | |
* Renames and keeps any existing colliding files it finds. Prefixes | |
* them with the current UNIX timestamp. |
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 | |
/** | |
* The plugin class. | |
*/ | |
class abc_plugin | |
{ | |
/** | |
* The plugin version. |
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 | |
/** | |
* Generates a new checksum file. | |
*/ | |
foreach (check_file_integrity(INTEGRITY_MD5) as $file => $md5) | |
{ | |
if ($md5) | |
{ |
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 | |
/** | |
* An example skeleton that adds Options link to the plugins panel. | |
* The class is named after the plugin. | |
* | |
* To the link to show up, the plugin needs to be armed with a | |
* "PLUGIN_HAS_PREFS" flag. Flags can be distributed/added using the | |
* "flags" field in the compiled plugin package and are stored in the | |
* txp_plugins table's "flags" column. |